Repository navigation
fix(loop): WeMeditateWeb's payload types copy moves to types/payload/ - #297
Conversation
sydevs/WeMeditateWeb#327 moves the copy from server/payload-types.ts to types/payload/payload-types.ts (the path SahajAtlasWeb already uses), so contract-sync commits, and contract-check compares, the new path. The two tests that read the real config follow it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
The diff is the config edit and nothing else: two tests change because they read the real config, and the third file is the config. It is as small as the problem allows. The consumer side holds — WeMeditateWeb#327 moves the file and updates types:cms, generatedFiles and prAllowlistGlobs, so after both merges the sync command writes exactly where this entry now looks. The merge-order note is right, for a reason it understates: see the one consider.
Findings
consider—loop-config.json:321: the merge gap leaves WeMeditateWeb's generated types unguarded, not merely green.
What was checked
- All three touched files read whole on the branch.
node --test dispatcher/test/*.test.mjsin a detached worktree: 399 pass, 0 fail, as the test plan claims. new-pieces.mjs:NONE, so no streamliner ran.- Every remaining
server/payload-types.tson the branch:contracts.test.mjs(×7) builds its own config fixture, so it is right to stay;docs/why.md:1947narrates incident #269 in the past tense and is still true. - Consumer side: WeMeditateWeb
mainand PR #327's head —package.json,.claude/workflow.json,.github/workflows/ci.yml. ItsContract check (SahajCloud types)step passes nopaths, so it defaults to this entry, read frommain. check.sh,action.ymland thecontracts-syncjob traced for both merge orders. Both pass; both go quiet in the gap.- No open contract-sync PR in WeMeditateWeb, so its stale
claude/chore-sync-contractsbranch is force-replaced frommainand carries nothing forward.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The adversarial review on #297 found that the window between a consumer moving a copied contract and this config following it is not merely green: it is unguarded. check.sh diffs only the configured path, so a hand edit to the copy the repo really builds from exits "nothing to check" — the failure WeMeditateWeb#269 was. contracts-sync and audit-contracts both read `git status` on a path nothing writes and report current. The PR body said CI passes either way, which is true and vacuous. Record the hazard where the next path move will look for it, including why listing both paths is not a fix: `git add` on a path that no longer exists is fatal under `set -euo pipefail`, so the sync job would fail instead of going quiet. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVkwPzEbeJ6GuJorM8
|
Addressed the adversarial review on b2bc962. Pushed 73abd5c.
Nothing outstanding. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
|
The newest commit, 73abd5c, is sydevs-bot's own, so it is not approved on your behalf. Read it, then say 🤖 sydevs dispatcher |
The story had no anchor, so the skill told it and `contract-paths.mjs`'s header told it again, while the anchor both cited covers only why a check fails a PR for its own change. The cited anchor is now the new entry's, and each caller keeps a rule and a pointer: the skill its imperative, the header one sentence of intent. The entry records what the two citations never did — which read makes each of the three guards go quiet, and the back-to-back merge that mitigated it by hand (#297, WeMeditateWeb#327). Addresses the adversarial review on #302. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZG7uf2opWm1dMXcYr
|
@sydevs-bot approve |
sydevs-bot
left a comment
There was a problem hiding this comment.
Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. 🤖 Written by the sydevs autonomous loop — see what this is
main (#297) recorded the moved-path hazard as a paragraph under *A contract check checks what a PR changes*; this branch records it as its own anchored section, which audit-contracts/SKILL.md:50 and contract-paths.mjs:11 both cite. Keeping both would state the same three guards twice, so the section stays and main's one fact it lacked — that WeMeditateWeb was the first consumer to move a copy — is folded into it. The anchor both callers cite survives, and so does main's. main's loop-config.json move to types/payload/payload-types.ts merged clean and needs no follow-up here: contract-paths.test.mjs reads the real config rather than naming a path, and its spelling assertion still passes. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjWijDNPGjupHZWKA8D
Conflict: workflow/.claude-plugin/plugin.json version. main bumped 5.10.0 -> 5.11.0 for #302's new workflow/lib/contract-paths.mjs; this branch stood at 5.10.1 for its merge-gate.mjs export. Resolved to 5.11.1 — main's minor stands, and this branch's workflow/lib change still carries a bump above it, so the plugin cache key moves for both. Nothing else conflicted, and nothing incoming touches the moved modules: #302 and #297 changed only workflow/lib, the audit-contracts skill, docs/why.md, loop-config.json's WeMeditateWeb contract paths, and two dispatcher tests that import gather.mjs and fire.mjs, neither of which this branch moved a symbol out of. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVAr3C2hHbsKE6d9bg
One conflict: the plugin version. Both sides bumped it, for the same reason and past the same older number. This branch took 5.10.1 in 4975cfe to clear the `test` check's "plugin files changed but version is still 5.10.0". #302 then took 5.11.0 on main. An install's cache directory is named after `version`, so the branch's `workflow/lib/payload.mjs` change still needs a string strictly past main's. Resolved to 5.11.1, which keeps both sides' intent: the patch digit is the branch's own reasoning in 4975cfe — the one shipped change is a guard on a handler name, and a minor is reserved for a feature. Everything else merged clean. main's #297 moved WeMeditateWeb's payload-types copy to types/payload/ in `contractSync`, and #302 added `workflow/lib/contract-paths.mjs` with the audit that checks those paths; this branch's own `loop-config.json` additions (`identity.dispatcherLogins`, `dispatch.rateLimitFloor`, `githubRetry.rateLimitMaxWaitSeconds`) are untouched beside them. Gates from the merge result: `claude plugin validate ./workflow --strict` passed, `node --test workflow/lib/*.test.mjs` 162 passed (the 5 new ones are #302's), `node --test dispatcher/test/*.test.mjs` 425 passed, `claude plugin validate .` passed. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjWg3VTaQeP1j8FCSva
Summary
sydevs/WeMeditateWeb#327 moves its copy of SahajCloud's generated types from
server/payload-types.tstotypes/payload/payload-types.ts, the path SahajAtlasWeb already uses. This PR points WeMeditateWeb'scontractSyncentry at the new path.loop-config.json: WeMeditateWeb'spathschange totypes/payload/payload-types.ts.docs/why.md: a moved copy disarms all three contract guards until this config follows.contract-check.test.mjs(the "defaults come from contractSync" case) andgather-ci.test.mjs(a sync PR's file list). They now use the new path.contract-check.test.mjs's fixture repo also createstypes/payload/.Merge order: merge right after WeMeditateWeb#327. The order is the mitigation, not a convenience.
contract-checkpasses either way, but vacuously: it compares only the listed paths, so in the gap a hand edit to the copy WeMeditateWeb really builds from exitsNo copied contract changed— WeMeditateWeb#269's failure mode.contracts-syncandaudit-contractsgo quiet too, both reading a cleangit statuson a path nothing writes. A SahajCloud schema sync landing in the gap leaves the real copy stale, and a later sync picks it up.Test plan
node --test dispatcher/test/: 399 pass, 0 fail. Onmainwith only the config change, 2 of these fail; this PR updates both.Notes for reviewer
consideris adopted as the merge-order paragraph above anddocs/why.md(73abd5c), not as code: the gap cannot be closed from this config alone.pathsentry, inaudit-contractsrather thancheck.sh. It is not built here — it edits a skill, and this PR is time-sensitive.🤖 Generated with Claude Code