docs(skills): SDP agent on-ramps — graph-first reading, registrar-first authoring, mandatory in AGENTS.md - #23
Merged
Conversation
Teach the shipped machinery in the skills: delivery-state derivation in sdp-agent-surface; the three anchor builders with the two silent non-binding hazards, structural component/uses fields, the registrar-first executable transition, specOracle binding, and the document-realization convention in sdp-authoring; registrar routing in sdp-sessions. Restate the authoring-on-ramp behavior rules in lockstep (oracle pins moved with them) and rewrite AGENTS.md with the skills as mandatory on-ramps, every claim re-checked against the repo.
The agent-surface skill now teaches what the graph is made of — the four node types, the closed eleven-edge-type list, namespaced IDs — with a schema-lockstep test importing graphNodeTypes/graphEdgeTypes/graphClaims so the prose must move with the engine. The authoring skill shows the anchor-constant form as code, clarifies the bootstrap probe versus the catalog recipe bodies (review P1), names both has-verifier conferral routes, and states the exact registrar filename. AGENTS.md drops the overlapping plans range and orders CONTEXT.md before the skills. Co-authored-by: Cursor <cursoragent@cursor.com>
The source-checkout fence ran a corpus-count probe, so an agent copying the displayed command skipped recipe 1 and recipe 2. Show the wrapper with a body slot, matching the catalog.
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.
What this PR introduces
This PR lands the three SDP agent on-ramps and matures them to the flow the engine actually ships: lean, single-file skills that teach coding agents to work with the Protocol graph-first, without a verb wall or duplicated carrier law.
The repo already exposes the
sdpCLI and a typed reader; until now that surface lived in code and scattered docs. These skills make the intended workflow explicit and self-contained so agents (and humans) reach for the graph before they reach for the files. This cut also teaches the machinery that landed since the skills were first drafted: runnable registrars, structural anchor fields, and oracle binding, plus anAGENTS.mdrewrite that makes the skills the mandatory on-ramps.New surfaces
.agents/skills/sdp-agent-surface/SKILL.md— the graph-read skillTells agents to query the derived graph before reading
.sdp.mdfiles. Documents theg/graph/reportcontract, the anti-anecdote rule, and the refused actions. A new "How delivery state derives" section teaches the three claims (declared/anchored/inferred, never collapsed) and howimplementedandhas-verifierfall out of edges — directsatisfiesresolution, the resolvingspecTestanchor as sole verifier source, and the enabled-example route — withobservednamed as the designed-and-deferred liveness fact. Carrying law: spec:consumers.agent-surface; entrance decision: spec:decisions.agent-front-door (MD-22)..agents/skills/sdp-authoring/SKILL.md— the carrier-and-binding skillThe shortest complete path from build-backlog orientation through
sdp new spec, honest readiness,sdp validate --watch, and executable examples. A new "Bind code, tests, and oracles" section teaches the three anchor builders (codeAnchor,specTest,specOracle) and names the two silent non-binding hazards — only the anchor-constant form is extracted, and a builder call through an untrusted import mints nothing and reports nothing — plus the structuralcomponentandusesfields and the document-realization convention for Markdown deliverables. The executable transition is now taught registrar-first: example space, bound point, generated contracts, thespecOracle-bound oracle, one registrar activation beside the authored suite'sspecTestanchor, adopted-registrar commit, and a mutation-probed red result, withbindExamplenamed as the low-level adapter beneath the registrar. Carrying workflow: spec:consumers.authoring-on-ramp, whose behavior rules are restated in lockstep (oracle-pinned)..agents/skills/sdp-sessions/SKILL.md— the advisory routing skillRoutes delivery work through graph-first capture, design, implementation, review, and close shapes without workflow gates, now pointing the implement shape at the registrar-first transition. Carrying guidance: spec:consumers.delivery-session-on-ramp.
AGENTS.md— the handbook rewriteThe three skills are now named mandatory on-ramps: load the matching skill before any corpus question, Spec authoring, or delivery-session routing. Every claim in the file was re-checked against the repo for this rewrite — plan statuses against
plans/headers, the green-gate legs againstpackage.json, the CLI verbs againstsdp --help, the recipe count against the catalog — and the prose went through an unslop pass. The public README names only these three on-ramps and the shipped catalog of sixteen graph-first recipes.Ratified decisions this work exercises
.sdp.gherkinis a lawful per-ID carrier for behavior/example Specs.component/usesfields derive anchored structure; noimplementsfield; cycles stay data.Try it
Verification (re-measured at close)
npx vitest run test/skills.test.ts test/recipes.test.ts test/cli-q.test.ts test/package-smoke.test.ts— 56 passed, 0 failed.npx vitest run test/self-hosting-consumers-oracle.test.ts test/self-hosting-consumers.test.ts test/check-self-hosting-gates.test.ts— 12 passed, 0 failed.npm run check— pass (all 13 legs, preflight clean).npm pack --dry-run --jsonlists exactlysdp-agent-surface/SKILL.md,sdp-authoring/SKILL.md,sdp-sessions/SKILL.md, anddocs/agent-surface/recipes.md; nosdp-baseor reference tree.src/graph/delivery-facts.ts,src/extract/anchors.ts,src/extract/protocol-bindings.ts,src/codegen/contracts.ts, andsrc/testing/— no drift found.What is intentionally not here
sdp-base, orreferences/tree.src/,docs/agent-surface/,generated/, orpackage.json; no new carrying Spec, recipe, query verb, reader accessor, projection, context bundle, MCP surface, package entry, or runtime behavior.specs/consumers/authoring-on-ramp.sdp.mdedit restates existing law to match the shipped machinery; it introduces no new law, and its oracle pins moved in the same commit.bindExampleillustration; registrar-first guidance lives in the authoring skill.@architect-*taxonomy, folder-promotion ladder, FSM, scope gate, unlock reason,bySymbol, or skill-local recipe copy.Forward work
.sdp.gherkinexample; for now it points to the carrying Spec.Plans executed
AGENTS.mdrewrite in the latest commit are session work reviewed claim-by-claim against the engine; no new plan was opened for them.Greptile Summary
The authoring bootstrap now directs users to run the catalog’s required recipe bodies through the repository wrapper. The previously reported omission was disproved: executing catalog recipes 1 and 2 through the documented command returned both the ready-work view and the implementation/readiness drift results.
Confidence Score: 5/5
No blocking failure remains.
The documented authoring workflow was exercised with both required catalog recipes and produced the intended backlog and drift information.
What T-Rex did
Reviews (4): Last reviewed commit: "docs(skills): paste catalog bodies in th..." | Re-trigger Greptile