Repository navigation
chore(contracts): re-sync from https://github.com/sydevs/SahajCloud/pull/861 - #233
Conversation
Deploying sahajatlas with
|
| Latest commit: |
628d0f4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://aadc2f12.sahajatlas.pages.dev |
| Branch Preview URL: | https://claude-chore-sync-contracts.sahajatlas.pages.dev |
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
Deploying sahajatlas-design with
|
| Latest commit: |
628d0f4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4af70616.sahajatlas-design.pages.dev |
| Branch Preview URL: | https://claude-chore-sync-contracts.sahajatlas-design.pages.dev |
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
left a comment
There was a problem hiding this comment.
🧐 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.1overrides 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/SahajCloudmainsrc/payload-types.ts. Greppedsrc/,scripts/,tests/— no consumer of either field. scripts/audit-baseline.jsonis empty, so the weekly--strictrun finds no stale entry.- The dispatcher
contracts-syncjob builds on the open PR and stages onlySYNC_PATHS, so a later producer merge keepsc2d48e1.
Generated by Claude Code
`^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
|
Addressed both adversarial-review threads, both adopted. Pushed The The unrecorded override now sits in the 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 Lean gate green. Docs checked, nothing stale. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
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]>
|
@sydevs-bot Revise this ticket so that it only contains the contract sync, not the security update or docs change |
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
|
Done — this PR is the contract sync alone now.
The fix needs its own PR against One more thing to know: Lean gate green — lint, typecheck, 1617 tests across 124 files. Re-running 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
* 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]>
…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]>
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]>
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]>
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]>
Summary
loginAttemptsandlockUntilfrom the generatedManagertype, after feat(auth)!: cut managers over to passwordless, disabling the local strategy SahajCloud#861 removed them upstream.pnpm run types:cmsagainst SahajCloudmain, with no hand edits.628d0f4reverts the undici security pin that rode this branch, so the diff is the contract sync alone.Preview
The diff changes no route or component, so both previews render as
maindoes.Contract impact
Generated Payload types, copied from SahajCloud. Nothing in
src/,scripts/ortests/reads either removed field, so no consumer work follows. This repo is the end consumer of the copy.Test results
undici— see the note below.Notes for reviewer
The Dependency Audit job will go red, and that is the state you asked for.
628d0f4revertsc2d48e1,dd7dacfandbefb971, which removes thepnpm.overridesentry forundiciand thescripts/audit-baseline.jsonnote recording it.pnpm audit:checknow fails on GHSA-rfgv-xxqx-mfg5 (WebSocket subprotocol DoS) and GHSA-w293-vg96-wgc3 (TLS validation bypass inBalancedPool), both high, reaching production through@payloadcms/sdk -> payload -> undici.maincarries both too.Two things follow, and neither is mine to settle:
main. The three reverted SHAs hold it intact.fix-ciis 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 (
contractSyncin sydevs/claude-workflowloop-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:cmson the reverted branch produces no further delta, so the sync is current against SahajCloudmainas of 2026-10-01.The revert is a
git revertof 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