Skip to content

Extract Gate Presentation from first-officer-shared-core into a lazy spacedock-owned skill#296

Merged
clkao merged 2 commits into
nextfrom
spacedock-ensign/gate-presentation-skill-extraction
Jun 4, 2026
Merged

Extract Gate Presentation from first-officer-shared-core into a lazy spacedock-owned skill#296
clkao merged 2 commits into
nextfrom
spacedock-ensign/gate-presentation-skill-extraction

Conversation

@clkao
Copy link
Copy Markdown
Collaborator

@clkao clkao commented Jun 4, 2026

The FO's Gate Presentation block loaded on every boot but is needed only at a gate; this lifts it into a lazy skill to trim the eager boot read.

What changed

  • Move the ## Gate Presentation template + nine assembly rules into skills/present-gate/SKILL.md, byte-identical.
  • Rewrite the FO-core cross-ref into a Skill(skill="spacedock:present-gate") load-trigger at the gate point.
  • Add present_gate_test.go oracles: present-in-skill, absent-from-core, nine-rule, seam, no-helper-leak.
  • Add value-invariants: name-matches-seam, structural @-token scan, user-invocable: false.

Evidence

  • Offline go test ./...: 14/14 packages passed; a live gate-guardrail drive rendered a conforming gate from the lazy skill.
  • Moved block byte-identical to next 158-191 (matching SHA-256); detached adversarial audit findings closed.

Review guidance

The load-bearing change is the one-line seam in first-officer-shared-core.md ## Completion and Gates.


t3

clkao and others added 2 commits June 4, 2026 11:18
Move the entire `## Gate Presentation` block (the captain-facing gate-review
template + nine assembly rules) out of first-officer-shared-core.md into a new
FO-internal `skills/present-gate/SKILL.md`, loaded lazily via
`Skill(skill="spacedock:present-gate")` at the gate point instead of riding the
eager FO boot read. The always-on decide-to-gate / AC-cross-check / self-approve
logic stays in `## Completion and Gates`; only the rendering moves.

The moved block is byte-identical to origin/next lines 158-191.

Add skills/integration/present_gate_test.go (AC-1/AC-2): present-in-skill +
absent-from-core fingerprints, all nine assembly-rule fingerprints, Skill()-seam
present / @-include absent region-scoped to `## Completion and Gates`, and no
dispatch-helper leak in the skill. Each negative half demonstrated by real
mutation. Add "present-gate" to userSkills so the frontmatter + reference-closure
oracles cover it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…cable

Three test-strength fixes from the detached audit (tests only; the deliverable
behavior already passed validation including a live AC-3 drive):

1. TestPresentGateSkillNameMatchesSeam — assert the frontmatter name VALUE
   equals `present-gate` (the directory name and the
   Skill(skill="spacedock:present-gate") seam target), not just token presence.
2. TestFOCoreInvokesPresentGateSkill — replace the enumerated @-include ban with
   a structural regex scan (@(?:\.{1,2}/)*present-gate\b) over the
   `## Completion and Gates` region, catching the @./present-gate/SKILL.md family
   the old two-literal enum missed.
3. TestPresentGateSkillIsFOInternal — assert the frontmatter carries
   user-invocable: false.

Each negative demonstrated by real mutation then restored green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
clkao added a commit that referenced this pull request Jun 4, 2026
@clkao clkao temporarily deployed to CI-E2E-CODEX June 4, 2026 18:19 — with GitHub Actions Inactive
@clkao clkao temporarily deployed to CI-E2E-OPUS June 4, 2026 18:19 — with GitHub Actions Inactive
@clkao clkao merged commit bdeb5f3 into next Jun 4, 2026
4 checks passed
clkao added a commit that referenced this pull request Jun 4, 2026
clkao added a commit that referenced this pull request Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant