Skip to content

fix(loop): WeMeditateWeb's payload types copy moves to types/payload/ - #297

Merged
Ardnived merged 2 commits into
mainfrom
claude/wemeditateweb-payload-types-path
Nov 22, 2026
Merged

Ardnived merged 2 commits into
mainfrom
claude/wemeditateweb-payload-types-path

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

sydevs/WeMeditateWeb#327 moves its copy of SahajCloud's generated types from server/payload-types.ts to types/payload/payload-types.ts, the path SahajAtlasWeb already uses. This PR points WeMeditateWeb's contractSync entry at the new path.

  • loop-config.json: WeMeditateWeb's paths change to types/payload/payload-types.ts.
  • docs/why.md: a moved copy disarms all three contract guards until this config follows.
  • Two tests read the real config: contract-check.test.mjs (the "defaults come from contractSync" case) and gather-ci.test.mjs (a sync PR's file list). They now use the new path. contract-check.test.mjs's fixture repo also creates types/payload/.

Merge order: merge right after WeMeditateWeb#327. The order is the mitigation, not a convenience. contract-check passes either way, but vacuously: it compares only the listed paths, so in the gap a hand edit to the copy WeMeditateWeb really builds from exits No copied contract changed — WeMeditateWeb#269's failure mode. contracts-sync and audit-contracts go quiet too, both reading a clean git status on 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. On main with only the config change, 2 of these fail; this PR updates both.

Notes for reviewer

  • The adversarial review's one consider is adopted as the merge-order paragraph above and docs/why.md (73abd5c), not as code: the gap cannot be closed from this config alone.
  • fix(loop): a stale contractSync path makes every guard report current #298 holds the guard that would catch a stale paths entry, in audit-contracts rather than check.sh. It is not built here — it edits a skill, and this PR is time-sensitive.

🤖 Generated with Claude Code

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

sydevs-bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

recent dispatches
  • 00:54Z address-review · attempt 1 · session · done
  • 00:54Z address-review · attempt 1 · session
  • 00:47Z review-pr · attempt 1 · session · done
  • 00:47Z review-pr · attempt 1 · session

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 21, 2026
@sydevs-bot sydevs-bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 21, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 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.mjs in 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.ts on the branch: contracts.test.mjs (×7) builds its own config fixture, so it is right to stay; docs/why.md:1947 narrates incident #269 in the past tense and is still true.
  • Consumer side: WeMeditateWeb main and PR #327's head — package.json, .claude/workflow.json, .github/workflows/ci.yml. Its Contract check (SahajCloud types) step passes no paths, so it defaults to this entry, read from main.
  • check.sh, action.yml and the contracts-sync job 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-contracts branch is force-replaced from main and carries nothing forward.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread loop-config.json Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Nov 21, 2026
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
@sydevs-bot

Copy link
Copy Markdown
Contributor

Addressed the adversarial review on b2bc962. Pushed 73abd5c.

  • Adopted — the merge gap. Verified all three guards on the branch: check.sh:23 exits No copied contract changed, contracts-sync prints Already current. Nothing to open., and audit-contracts reads the same clean git status. So the gap is unguarded, not merely green. docs/why.md now records it, and the merge-order note no longer leans on CI.
  • Filed — fix(loop): a stale contractSync path makes every guard report current #298, the guard that catches a stale paths entry, in audit-contracts rather than check.sh. Not built here: it edits a skill, and this PR merges in lockstep with WeMeditateWeb#327. Listing both paths is no fix — git add on a missing path exits 128.
  • Base already current, so no merge. Lean gate green. node --test dispatcher/test/*.test.mjs: 399 pass, 0 fail. Security review skipped: the push touches docs/why.md only.

Nothing outstanding.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 21, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor

The newest commit, 73abd5c, is sydevs-bot's own, so it is not approved on your behalf. Read it, then say @sydevs-bot approve, or enable auto-merge.

🤖 sydevs dispatcher

@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 21, 2026
sydevs-bot pushed a commit that referenced this pull request Nov 21, 2026
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
@Ardnived
Ardnived enabled auto-merge November 22, 2026 17:50
@Ardnived

Copy link
Copy Markdown
Contributor Author

@sydevs-bot approve

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@Ardnived
Ardnived added this pull request to the merge queue Nov 22, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Pending in SYDevelopers Technical Roadmap Nov 22, 2026
@sydevs-bot sydevs-bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 22, 2026
Merged via the queue into main with commit eaef9d9 Nov 22, 2026
36 checks passed
@Ardnived
Ardnived deleted the claude/wemeditateweb-payload-types-path branch November 22, 2026 17:51
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 22, 2026
sydevs-bot pushed a commit that referenced this pull request Nov 22, 2026
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
sydevs-bot pushed a commit that referenced this pull request Nov 22, 2026
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
sydevs-bot pushed a commit that referenced this pull request Nov 22, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants