Harden generate-spec: build-time intake, SKILL↔guide seam, Decision Ledger + §0 pre-build gate#3
Open
Carr1005 wants to merge 1 commit into
Open
Harden generate-spec: build-time intake, SKILL↔guide seam, Decision Ledger + §0 pre-build gate#3Carr1005 wants to merge 1 commit into
Carr1005 wants to merge 1 commit into
Conversation
Restructure how the generated spec surfaces design decisions, fixing three failure modes found while running the agent-memory course through the loop: - Replace the fixed six-slot "learner-intake" table with a course-derived **Decision Ledger** (§5.5, §6): one reviewable table holding every point where a build could diverge — learner-context AND pattern-critical / course-contradicted technique & dependency decisions — each pinned to one buildable course-derived default. Adds the invariant/options/default/ trade-off/owner row anatomy and a surfacing bar (§5.5). - Add a §3 dependency-precedence rule so a heavy course dependency (e.g. a cloud DB) resolves to one baked default — substitute-local unless the tech IS the taught subject — never a menu or contract (new traps §12.8/§12.9). - Add the **§0 "Before you build — REQUIRED" gate** (§6.0): an imperative, build-agent-addressed, mechanism-agnostic instruction to present every Ledger row (labeled "course default") and HARD STOP — end the turn and wait for the user's reply before writing code, with no "proceed on no response" escape (new trap §12.10). - Demote CTX-C to reference-only; add the owner provenance label (§9); add the matching §14 pre-handoff checks. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hardens the
generate-specskill and its guide so a generatedspec.mdis buildable, reproducible, and surfaces its design decisions to the learner. Four commits, each a distinct fix found by running a course (agent-memory) through the loop.Commits
Make learner intake a build-time input, not a generation input (
e1d2b3f)One
spec.mdserves many learners, so the generator can't collect a specific learner's project. Intake becomes a build-time substitution: every learner-specific value is emitted as a[slot]carrying a course-derived default, so the spec builds as-is with zero intake and the generator never blocks asking for a project.Harden the SKILL.md ↔ guide seam; track the eval suite (
0eae7fe)Keep the spec-quality contract in one place.
SKILL.mddefers entirely toreferences/spec-generation-guide.md("do not restate its rules here") so the two files can't drift into two sources of truth.Untrack generate-spec evals/; keep the contract in the guide only (
772611e)Point-in-time eval artifacts were a second source of truth that drifts from the guide. Untracked via
.gitignore; the durable spec-quality contract lives in the guide's §3/§13/§14.Add Decision Ledger + §0 pre-build gate to the guide (
a45e738)The core restructure of how a spec surfaces design decisions, fixing three failure modes observed run-to-run:
ownerprovenance label (§9), and adds matching §14 pre-handoff checks.Scope / notes
spec-generation-guide.md,SKILL.md,.gitignore. No course content ships (courses/*is gitignored by policy — per-user workspace).PreToolUsehook could enforce, which isn't portable to an arbitrary learner environment — deferred).🤖 Generated with Claude Code