Skip to content

chore(contracts): re-sync from https://github.com/sydevs/SahajCloud/pull/861 - #233

Merged
sydevs-bot merged 5 commits into
mainfrom
claude/chore-sync-contracts
Oct 1, 2026
Merged

sydevs-bot merged 5 commits into
mainfrom
claude/chore-sync-contracts

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Preview

The diff changes no route or component, so both previews render as main does.

Contract impact

Generated Payload types, copied from SahajCloud. Nothing in src/, scripts/ or tests/ reads either removed field, so no consumer work follows. This repo is the end consumer of the copy.

Test results

  • Lean gate: ✓ lint, typecheck, 1617 unit tests across 124 files.
  • Dependency Audit: ✗ 2 high advisories, both undici — see the note below.
  • Build: N/A, CI runs it.

Notes for reviewer

The Dependency Audit job will go red, and that is the state you asked for. 628d0f4 reverts c2d48e1, dd7dacf and befb971, which removes the pnpm.overrides entry for undici and the scripts/audit-baseline.json note recording it. pnpm audit:check now fails on GHSA-rfgv-xxqx-mfg5 (WebSocket subprotocol DoS) and GHSA-w293-vg96-wgc3 (TLS validation bypass in BalancedPool), both high, reaching production through @payloadcms/sdk -> payload -> undici. main carries both too.

Two things follow, and neither is mine to settle:

  • The fix needs its own PR against main. The three reverted SHAs hold it intact.
  • fix-ci is what added the pin here in the first place, so the next red-CI dispatch on this branch may re-add it. Landing or parking the advisories elsewhere is what stops that.

The branch was opened by the dispatcher contract sync (contractSync in sydevs/claude-workflow loop-config.json), not from a ticket. A later producer merge adds its commit here while this PR is open.

Detail

Re-running pnpm run types:cms on the reverted branch produces no further delta, so the sync is current against SahajCloud main as of 2026-10-01.

The revert is a git revert of all three commits, not a rewrite — the branch history still carries the pin and its two review threads.

Docs swept for the removed fields and for undici: nothing stale.

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


🤖 Generated with Claude Code

https://claude.ai/code/session_01Ub4R69mX5dAuw4tFXETsqV

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Deploying sahajatlas with  Cloudflare Pages  Cloudflare Pages

Latest commit: 628d0f4
Status: ✅  Deploy successful!
Preview URL: https://aadc2f12.sahajatlas.pages.dev
Branch Preview URL: https://claude-chore-sync-contracts.sahajatlas.pages.dev

View logs

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

sydevs-bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running
CI fix 1

recent dispatches
  • 17:19Z address-review · attempt 1 · session · done
  • 17:19Z address-review · attempt 1 · session
  • 19:39Z address-review · attempt 1 · session · done
  • 19:39Z address-review · attempt 1 · session
  • 19:32Z adversarial-review · attempt 1 · session · done

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

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Dependency Audit went red on GHSA-rfgv-xxqx-mfg5 (WebSocket subprotocol
DoS) and GHSA-w293-vg96-wgc3 (TLS validation bypass in BalancedPool),
both fixed in undici >= 7.29.1.

No in-range update reaches it. `payload` pins `undici` to the exact
version `7.29.0`, and still does at 3.90.2, so raising `@payloadcms/sdk`
changes nothing. A pnpm override is the only route that does not wait on
upstream.

The advisories are in the production graph via
`@payloadcms/sdk -> payload -> undici`, so `main` is red on this too.
Fixed here, per fix-ci: the branch that must go green owns it.

The override also cleared four low and five moderate advisories. undici
is server-side only, so no browser graph changed: `pnpm size` reports
`standalone` 301.9 KiB, `embed` 303.7 KiB, `loader` 2.6 KiB, all within
budget and unmoved.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hrs1Y1FDJJeb5cRjx9HSt1
@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 Sep 30, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🧐 Adversarial review

Holistic. The contract half is clean: SahajCloud main no longer declares loginAttempts or lockUntil on Manager, and nothing here reads either. The security half is the question. A repo-wide undici pin now rides a PR titled "re-sync copied contracts", on a body the dispatcher wrote at creation and never rewrites — it still claims "no hand edits". main carries both advisories, so #225 and every later PR inherit them until this lands. Merge it soon and deliberately, or lift c2d48e1 onto its own PR against main.

Findings

  • should-fix — ^7.29.1 overrides an exactly-pinned transitive with the widest range available (package.json:130).
  • consider — the override records no id, no owner, and no removal condition (package.json:129).

What was checked

  • Type removal verified against sydevs/SahajCloud main src/payload-types.ts. Grepped src/, scripts/, tests/ — no consumer of either field.
  • scripts/audit-baseline.json is empty, so the weekly --strict run finds no stale entry.
  • The dispatcher contracts-sync job builds on the open PR and stages only SYNC_PATHS, so a later producer merge keeps c2d48e1.

Generated by Claude Code

Comment thread package.json Resolved
Comment thread package.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 Sep 30, 2026
`^7.29.1` overrode an exactly-pinned transitive with the widest range npm
semver offers. It took a minor on the very first install — the lockfile
resolved 7.30.0 — and would take every future 7.x minor the same way.

Nothing in this repo exercises undici, so a bad minor would surface in
production with no local gate in front of it. `~7.29.1` clears both
advisories, keeps patch updates flowing, and stops the drift.

Verified at 7.29.1: `pnpm audit --prod` reports 0 high and 0 critical.
The three remaining findings are payload, fast-uri and dompurify, and are
unchanged by this range.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NT6o46iEfWtyw7CjoYmVkN
`scripts/audit-baseline.json` is this repo's home for booked dependency
risk, and its own note argues an entry must name the id and the owner. A
`pnpm.overrides` line books the same risk while recording none of that.

Neither gate can retire it either. `check-audit.mjs` fails only on a high
advisory the audit still reports, and `--strict` prunes only baseline
entries, so an override that `payload` has since made redundant would sit
there unnoticed.

The note now carries both GHSA ids, why an override was the only route,
the condition that retires it, and why the range is `~` rather than `^`.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NT6o46iEfWtyw7CjoYmVkN
@sydevs-bot sydevs-bot changed the title chore(contracts): re-sync copied contracts from SahajCloud chore(contracts): re-sync from SahajCloud, plus an undici security pin Sep 30, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Addressed both adversarial-review threads, both adopted. Pushed befb971.

The ^7.29.1 range is ~7.29.1 in dd7dacf. It had already drifted: the lockfile resolved 7.30.0 on the first install, and resolves 7.29.1 now. pnpm audit --prod reports 0 high and 0 critical there.

The unrecorded override now sits in the scripts/audit-baseline.json note in befb971, with both GHSA ids and the condition that retires it: payload raising its own undici pin to 7.29.1 or later.

The review's holistic point stands and is not mine to settle. The title and body now name both halves instead of claiming "no hand edits". Whether to lift c2d48e1 onto its own PR against main is yours.

Lean gate green. Docs checked, nothing stale.

🤖 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 Sep 30, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review September 30, 2026 19:46
@sydevs-bot
sydevs-bot requested a review from Ardnived September 30, 2026 19:46
Ardnived added a commit that referenced this pull request Sep 30, 2026
The Dependency Audit gate fails on GHSA-rfgv-xxqx-mfg5 and
GHSA-w293-vg96-wgc3 in undici 7.29.0, which `payload` pins exactly. The
failure exists on main too; #233 carries the same override. These hunks
are byte-identical to it, so whichever lands first, the other merges clean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Ardnived

Ardnived commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

@sydevs-bot Revise this ticket so that it only contains the contract sync, not the security update or docs change

@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed awaiting labels Oct 1, 2026
Reverts c2d48e1, dd7dacf and befb971. The reviewer asked for this PR to
hold the contract sync alone, so the undici override and the baseline note
that records it come off here.

The two advisories are unfixed again — GHSA-rfgv-xxqx-mfg5 and
GHSA-w293-vg96-wgc3, both high, reaching production through
`@payloadcms/sdk -> payload -> undici`. `main` carries them too, so the
Dependency Audit job goes red on this branch exactly as it does there. The
fix needs its own PR against `main`; the three reverted SHAs hold it intact.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Ub4R69mX5dAuw4tFXETsqV
@sydevs-bot sydevs-bot changed the title chore(contracts): re-sync from SahajCloud, plus an undici security pin chore(contracts): re-sync from https://github.com/sydevs/SahajCloud/pull/861 Oct 1, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Done — this PR is the contract sync alone now.

628d0f4 reverts c2d48e1, dd7dacf and befb971. The diff is two removed Manager fields and nothing else. No history was rewritten.

⚠️ The Dependency Audit job goes red with it. Dropping the override puts GHSA-rfgv-xxqx-mfg5 and GHSA-w293-vg96-wgc3 back, both high, via @payloadcms/sdk -> payload -> undici. main is red on them too.

The fix needs its own PR against main. The three reverted SHAs hold it intact. Say the word and I will open it.

One more thing to know: fix-ci is what added that pin here. The next red-CI dispatch on this branch may re-add it.

Lean gate green — lint, typecheck, 1617 tests across 124 files. Re-running types:cms gives no further delta. Docs checked, nothing stale.

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


Generated by Claude Code

@sydevs-bot sydevs-bot added awaiting and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 1, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Oct 1, 2026
Merged via the queue into main with commit 20502eb Oct 1, 2026
25 checks passed
@sydevs-bot
sydevs-bot deleted the claude/chore-sync-contracts branch October 1, 2026 17:39
Ardnived added a commit that referenced this pull request Oct 1, 2026
* fix(embed): adopt the theme root on mount, and stack the compact overlay above host chrome

The wrapper was handed to BrandTheme as a ref to its own parent, which React
attaches only after the child's layout effect runs. The effect adopted <html>
and recovered only if the client's colours changed later — never in path
mode or for a record with no colours. Every portal then landed on the host's
<body>, outside the scoped stylesheet: the compact card's dialog opened as a
bare full-viewport map with no drawer, search or close button (seen live on
shrimataji.org). The wrapper is now state, and App renders once it exists.

The expanded dialog sat at z-50 in the host's stacking context, so a theme
header at z-index 100 painted over its controls and a click there dismissed
it. It now uses z-index 2147483000.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(changelog): reference #234

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(ci): pin undici to 7.29.1 against two high advisories

The Dependency Audit gate fails on GHSA-rfgv-xxqx-mfg5 and
GHSA-w293-vg96-wgc3 in undici 7.29.0, which `payload` pins exactly. The
failure exists on main too; #233 carries the same override. These hunks
are byte-identical to it, so whichever lands first, the other merges clean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(widget): publish the theme root from the wrapper's callback ref

BrandTheme still published the wrapper from its own layout effect, which runs
after every descendant's first render. On a warm cache (path mode) a
deep-linked compact dialog read `widgetOverlayContainer()` in that render and
mounted on the host's <body> before remounting inside the wrapper.

`useFrame` becomes `usePublishedNode(publish)`, the one hook for both module
singletons: the frame (`setFrame`) and now the theme root (`setThemeRoot`).
Widget publishes from the callback ref, so App's first render already sees
the wrapper. BrandTheme only paints `getThemeRoot()` and no longer releases
the root: the ref's null call does, and StrictMode's simulated unmount would
otherwise clear a root nothing republishes. The dialog's two layers share one
z-index constant.

`Widget.theme-root.test.tsx` replaces the BrandTheme spec. It asserts every
render of App's subtree sees the wrapper under StrictMode, and pins the
wiring in Widget.tsx. Verified to fail with the publish moved into an effect,
and with BrandTheme releasing the root.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(embed): say what hosts see, and name the stacking-context limit

The changelog entries now describe the symptom a host saw rather than the
theme-root mechanism, and reuse the existing [compact card] link. The guide's
overlay bullet notes that an ancestor stacking context caps the overlay's
z-index.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(docs): the widget, not BrandTheme, releases the theme root

Two comments still named BrandTheme as the owner of the release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(docs): keep every ancestor caveat under the embed guide's one warning

The stacking-context limit now sits beside the containing-block warning it
belongs with, and the overlay bullet points at both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(test): pin Widget's wiring by shape, not formatting

The StrictMode case already fails if BrandTheme releases the root, so the
source check on BrandTheme.tsx goes. The App gate regex tolerates a
reflow. The hook's docblock drops its history.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(docs): name the brand colours the changelog left out

In path mode the old bug wrote the palette onto the host's <html> as inline
CSS variables on every load, not only the light/dark class.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Ardnived added a commit that referenced this pull request Oct 10, 2026
…ile (#268)

The Dependency Audit job audited every production dependency in the
lockfile, so a new advisory against one already on main failed every
open PR. From 2026-09-30 to 10-03 it failed #233, #237, #243 and #248,
none of which touched a dependency, and fix-ci rewrote overrides and the
baseline on those unrelated PRs.

The shared Dependency Review job from sydevs/claude-workflow fails only
when a PR adds a high or critical runtime advisory. Advisories already
on main are the loop's daily Dependabot check's to fix. audit.yml, the
baseline and check-audit.mjs go with the old gate.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Ardnived added a commit to sydevs/SahajCloud that referenced this pull request Oct 10, 2026
Adds the shared Dependency Review job from sydevs/claude-workflow. It
compares only the dependencies this PR changes, and fails on a high or
critical advisory that reaches production code. An advisory already on
main never blocks a PR here: the loop's daily Dependabot check fires
audit-deps to fix it. SahajAtlasWeb's full-lockfile audit failed four
unrelated PRs at once that way (sydevs/SahajAtlasWeb#233).

Co-authored-by: Claude Opus 5.5 <[email protected]>
Ardnived added a commit to sydevs/WeMeditateWeb that referenced this pull request Oct 10, 2026
Adds the shared Dependency Review job from sydevs/claude-workflow. It
compares only the dependencies this PR changes, and fails on a high or
critical advisory that reaches production code. An advisory already on
main never blocks a PR here: the loop's daily Dependabot check fires
audit-deps to fix it. SahajAtlasWeb's full-lockfile audit failed four
unrelated PRs at once that way (sydevs/SahajAtlasWeb#233).

Co-authored-by: Claude Opus 5.5 <[email protected]>
Ardnived added a commit to sydevs/SahajAtlasWordpress that referenced this pull request Oct 10, 2026
Adds the shared Dependency Review job from sydevs/claude-workflow. It
compares only the dependencies this PR changes, and fails on a high or
critical advisory that reaches production code. An advisory already on
main never blocks a PR here: the loop's daily Dependabot check fires
audit-deps to fix it. SahajAtlasWeb's full-lockfile audit failed four
unrelated PRs at once that way (sydevs/SahajAtlasWeb#233).

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

3 participants