* feat(#3626): make CONTEXT.md seam claims checkable via SEAM.*.enforced-by gate Adds SEAM.<id>.owns / SEAM.<id>.enforced-by=lint-rule:<name>|test:<path> predicates to CONTEXT.md, generalizing the existing WORKTREE.SEAM.* shape, plus scripts/lint-seam-enforcement.cjs (wired into lint:ci) which fails when a declared single-owner seam names no existing, registered enforcement mechanism. Backs all six current module-level single-seam/ single-canonical-owner claims found in CONTEXT.md, including the Shell Command Projection Module's Windows-binary-resolution claim via #3619's local/no-private-binary-resolution rule. Scope is resolves-only per maintainer decision: the gate proves an enforcement pointer exists and is registered, not that its surface covers every file the seam claims. See docs/adr/3626-context-md-seam-claim-gate.md. Closes #3626 * fix(#3626): back the Package Identity Module's seam claim too Isolated adversarial review caught a miss in the "no grandfather list" sweep: the Package Identity Module also declares itself "Single seam owning GSD's published-package coordinates" and already names its real enforcement (scripts/lint-package-identity-drift.cjs). Backs it with SEAM.package-identity.owns/enforced-by=test:tests/package-identity.test.cjs, bringing the total to 7 backed seams. Also makes explicit, in the design doc and ADR, that function-level "single owner" sentences inside already-covered modules (STATE.md Document Module, etc.) are deliberately out of scope — a seam claim is about a module's boundary, not every function inside it. * docs(#3626): backfill changeset PR number --------- Co-authored-by: sim <sim@local>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"count": 263,
|
||||
"count": 277,
|
||||
"classes": {
|
||||
"ARCH": 1,
|
||||
"CI": 2,
|
||||
@@ -18,6 +18,7 @@
|
||||
"PROHIB": 10,
|
||||
"RELEASE-NOTES": 31,
|
||||
"RULESET": 60,
|
||||
"SEAM": 14,
|
||||
"SESSION": 9,
|
||||
"WAVE": 5,
|
||||
"WORKSTREAM": 5,
|
||||
@@ -1184,6 +1185,76 @@
|
||||
"klass": "RULESET",
|
||||
"value": "workflow size enforcement (#1074; BYTES not lines per #717; LF-normalized per #683) = differential attribution size ratchet (PRIMARY anti-creep since #2724/ADR-2719 §4: tests/emitted-attribution.test.cjs's real-tree test reports growth in any gsd-core/workflows/*.md with its exact byte delta vs `next`, no committed snapshot, requires an `Emitted-Drift-Ack-Growth:` commit trailer on the PR's own commits (ADR-3942, superseding ADR-2719 §3's fragment model — key is the bare filename, reason follows ` — `)) + loose tier hard caps (outer red lines, NEVER raised on approach: XL<=98304 / LARGE<=61440 / DEFAULT<=40960) + discuss-phase<32000; a file that grew fails the differential guard — add an ack entry naming the file and reason, justify the growth in the PR (or extract LAZILY-loaded content; eager @-imports don't reduce loaded context); crossing a hard cap means EXTRACT, not bump. The prior per-file baseline (tests/workflow-size-baseline.json, `npm run size:baseline`) is REMOVED by #2724. Its new-file cap (ADR-1610 Decision point 3, un-baselined files <=32768, the Codex anchor) is REVIVED inside the differential's size ratchet itself (`NEW_FILE_CAP` in tests/helpers/emitted-diff.cjs) rather than lost: \"not yet baselined\" is exactly \"present in sizeCurrent, absent from sizeBaseline\", a signal the ratchet already computes for its own reasons. NOT ack-able — same as the tier hard caps, the fix is extraction. Narrower than the original: this check cannot see XL/LARGE tiering (tests/workflow-size-budget.test.cjs's classification, invisible to the pure differential module), so a legitimately large NEW file must extract rather than tier in, one release earlier than an existing file would need to — a disclosed, deliberate simplification"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.capability-activation-precedence-owner.enforced-by",
|
||||
"klass": "SEAM",
|
||||
"value": "test:tests/capability-precedence-parity.test.cjs"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.capability-activation-precedence-owner.owns",
|
||||
"klass": "SEAM",
|
||||
"value": "the config-key four-level precedence walk (loadConfig result → workstream config.json → root config.json → registry.configSchema default → absent), owned solely by src/capability-activation.cts"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.git-query-readonly-seam.enforced-by",
|
||||
"klass": "SEAM",
|
||||
"value": "test:tests/git-base-branch.test.cjs"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.git-query-readonly-seam.owns",
|
||||
"klass": "SEAM",
|
||||
"value": "bounded, never-throw git repository introspection — base-branch detection, worktree-info detection, phase change-set detection"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.package-identity.enforced-by",
|
||||
"klass": "SEAM",
|
||||
"value": "test:tests/package-identity.test.cjs"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.package-identity.owns",
|
||||
"klass": "SEAM",
|
||||
"value": "GSD's published-package coordinates (packageName, binName, repoSlug, changelogRawUrl, manualInstallCommand) — single seam so a repoint/rename is a one-line change"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.phase-locator-milestone-enum.enforced-by",
|
||||
"klass": "SEAM",
|
||||
"value": "test:tests/phase-locator.test.cjs"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.phase-locator-milestone-enum.owns",
|
||||
"klass": "SEAM",
|
||||
"value": "listMilestonePhaseDirs(phasesDir, opts) is the single canonical owner of milestone-scoped phase-directory enumeration (ADR-3180 Decision 1, Phase 3, #3185)"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.shellcmdproj-win-binary-resolution.enforced-by",
|
||||
"klass": "SEAM",
|
||||
"value": "lint-rule:no-private-binary-resolution"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.shellcmdproj-win-binary-resolution.owns",
|
||||
"klass": "SEAM",
|
||||
"value": "Windows binary resolution (resolveExecutableBinary, projectSpawnInvocation) — which file a declared command name actually names, and cmd.exe mediation"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.verification-isphasecomplete.enforced-by",
|
||||
"klass": "SEAM",
|
||||
"value": "test:tests/verification-status.test.cjs"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.verification-isphasecomplete.owns",
|
||||
"klass": "SEAM",
|
||||
"value": "isPhaseComplete(phaseDir, deps?) is the single canonical owner of \"is phase P complete?\" (ADR-3180 §7.4, issue #3186)"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.worktree-safety-policy.enforced-by",
|
||||
"klass": "SEAM",
|
||||
"value": "test:tests/worktree-safety.test.cjs"
|
||||
},
|
||||
{
|
||||
"id": "SEAM.worktree-safety-policy.owns",
|
||||
"klass": "SEAM",
|
||||
"value": "Worktree Safety Policy Module — resolveWorktreeContext, parseWorktreePorcelain, planWorktreePrune, executeWorktreePrunePlan, W017 classification (see WORKTREE.SEAM.* above for full interface/invariant detail)"
|
||||
},
|
||||
{
|
||||
"id": "SESSION.2026-05-05",
|
||||
"klass": "SESSION",
|
||||
|
||||
Reference in New Issue
Block a user