Repository navigation
Description
Summary
contractSync.consumers.<repo>.paths is the only thing the three contract guards look at. When a consumer moves its copy of a producer's contract, all three report success while the file that repo really builds from goes unchecked. Nothing notices until someone changes the config by hand.
Approach
Extend audit-contracts step 2 (workflow/skills/audit-contracts/SKILL.md:39) so it also asserts that every contractSync.consumers.*.paths entry exists in that consumer's origin/main. A path that does not exist means the config lags the repo, and is reported and fixed exactly like stale drift: a loop-config.json PR here.
Where the three guards go quiet today:
.github/actions/contract-check/check.sh:23—touched=$(git diff --name-only "$BASE_SHA" HEAD -- $paths). Withpathsnaming a file the repo no longer has,touchedis empty and the check exits 0 withNo copied contract changed. A hand edit to the live copy passes, which is WeMeditateWeb#269's failure mode..github/workflows/dispatcher.yml, thecontracts-syncjob —git status --porcelain -- $SYNC_PATHSis clean on a path the sync command never writes, so the job printsAlready current. Nothing to open.and the consumer stays stale.workflow/skills/audit-contracts/SKILL.md:45— the same cleangit statusreads as current.
Why the audit and not the check. docs/why.md#a-contract-check-checks-what-a-pr-changes rejects a check that fails a PR for drift that is not that PR's (WeMeditateWeb#310), and assigns drift on main to the sync and this audit. Failing check.sh on an absent configured path would redden every PR in a consumer repo until the config caught up — the rejected shape, with a wider blast radius.
A skill edit here also bumps version in workflow/.claude-plugin/plugin.json, per AGENTS.md.
Acceptance criteria
-
audit-contractsstep 2 asserts everycontractSync.consumers.*.pathsentry exists in that consumer'sorigin/main, and names the repo and the path when one does not. - A missing path is handled as drift here, in a
loop-config.jsonPR, never by failing a consumer's CI. -
versioninworkflow/.claude-plugin/plugin.jsonis bumped in the same PR. - The rule names no path and no repo: both come from
loop-config.json.
Verification checklist
-
claude plugin validate ./workflow --strict && node --test workflow/lib/*.test.mjspasses. -
node workflow/lib/rule-delta.mjs --base origin/main workflow/skills— every removal named in the PR body. - In a clone of a consumer on
origin/main, with onepathsentry edited to a path that repo does not have, the new assertion names that repo and path. Restore the entry afterwards.
Notes
- Found by the adversarial review on fix(loop): WeMeditateWeb's payload types copy moves to types/payload/ #297, on
loop-config.json:321. That PR moves WeMeditateWeb's entry totypes/payload/payload-types.tsand records the hazard indocs/why.mdunder A contract check checks what a PR changes (73abd5c). Merging it back to back with refactor: reorganise folders by topic, import through @/, and keep server/ server-only WeMeditateWeb#327 was the whole mitigation. - Rejected: listing the old and the new path together through a move.
git addon a path that no longer exists exits 128, socontracts-syncwould fail its job rather than go quiet. - This repo needs no ticket before work starts (
prAllowlistGlobsin.claude/workflow.json). The ticket carries the finding and the two rejected designs, so the change arrives with its reasoning.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Hold Until
Projects
- StatusShow more project fieldsDone
Activity
Ardnived commentedon Nov 21, 2026
@sydevs-bot implement
sydevs-bot commentedon Nov 21, 2026
🤖 no session running
approved by Ardnived
recent dispatches
Written by the sydevs dispatcher. Sessions never edit this comment.