Repository navigation
docs(changelog): record the user-submissions intake repair, and retire its stale caveat - #237
Conversation
…e its stale caveat Thursday's contract survey found the host-facing changelog silent about #213, and carrying one claim that #213 made false. #213 moved registration and report-an-issue onto `POST /user-submissions` after SahajCloud#800 deleted `/events/:id/register` and `/user-messages`. Until then every registration answered the generic "Something went wrong" panel and every issue report reached nobody — the most host-observable class of change there is, and the file had no entry for it. The #195 entry's warning said reporting an issue "still fails", because the CMS required every report to name a form and the widget had none to name. #213 settled that by naming no form and taking the contact address by omission, and #216 then pointed it at the authored contact form. The file is one `[Unreleased]` block with no release boundary, so that warning read as current: a host checking whether reports reach us was told they do not. Checked against src/config/api/mutate.ts (the submission shape and the refusal path), src/types/payload/response-types.ts (the four refusal codes) and RegistrationForm's challenge reset. docs/embedding.md needs nothing: the intake path is not documented there, and the origin is unchanged. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_011kjX73DTLokcsrGco9eYq8
Deploying sahajatlas-design with
|
| Latest commit: |
928f36d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://470ae084.sahajatlas-design.pages.dev |
| Branch Preview URL: | https://claude-docs-contract-changel.sahajatlas-design.pages.dev |
Deploying sahajatlas with
|
| Latest commit: |
928f36d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0d643338.sahajatlas.pages.dev |
| Branch Preview URL: | https://claude-docs-contract-changel.sahajatlas.pages.dev |
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
Dependency Audit failed on two new high advisories, GHSA-rfgv-xxqx-mfg5 (WebSocket subprotocol DoS) and GHSA-w293-vg96-wgc3 (TLS certificate validation bypass in BalancedPool). Both are fixed in undici 7.29.1. This failure is not this PR's. The branch changes CHANGELOG.md alone and touches no dependency file, so main is red on the same two advisories. Fixing it here is still correct, and the override no-ops once payload raises its own pin. A version bump cannot reach it: undici arrives through @payloadcms/sdk -> payload, and payload pins `undici: 7.29.0` exactly, up to and including the latest 3.90.2. A pnpm override is the only way over an exact upstream pin, so it names the patch release rather than a range, and should be dropped when payload moves. The lockfile moves undici and nothing else. The bundle is unchanged — undici is a Node HTTP client that never enters the browser graph, and all three size budgets report the same chunks as before. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01X8BXoxnddW8gvswmKiwQv4
|
Dependency Audit was red on two new high The failure is not this PR's. Why an override rather than a bump. The lockfile moves 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
The CHANGELOG correction is right-sized and verifies against the code. The findings are wording that reads unconditionally where the code is conditional.
The PR is now two changes and the body describes one — fix the body, not the thread. package.json and pnpm-lock.yaml also trip securityReview.triggerPattern.
This is the third entry working around a file with no release boundary. The body names that root cause, then writes around it.
Findings
- should-fix —
CHANGELOG.md:269— "reports do reach us now" ignores an unsetreportIssueForm. - consider —
CHANGELOG.md:268— "the previous entry" points the wrong way. - consider —
CHANGELOG.md:283— explains #213 by a mechanism #216 replaced. - consider —
package.json:130— the override is exact and unowned.
What was checked
Read whole: mutate.ts, use-report-form.ts, atlas-config.ts, RegistrationForm.tsx, mutate.test.ts, audit-baseline.json. The retry on a deleted event holds: the 404 carries event_not_found. payload still pins undici: 7.29.0.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The note said "the previous entry", but the warning it supersedes sits below, in the [#195] entry. That entry's own replacement text already says "[#213] above", so both now read correctly in a file read top to bottom. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MJVd4rhuSMvgpuDVuUXVAc
"Reports do reach us now" read unconditionally, but the path exists only where an operator names a contact form. An unset `reportIssueForm` hides every entry point (use-report-form.ts:40, atlas-config.ts:12), so a host reading this would expect an affordance their atlas never shows. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MJVd4rhuSMvgpuDVuUXVAc
The entry explained [#213] by a report naming no form and taking the contact address by omission. The collection refuses such a row now (mutate.ts:308) — the row names the authored form. With no release boundary in this file, a superseded mechanism reads as current, which is the same failure the stale warning above it caused. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MJVd4rhuSMvgpuDVuUXVAc
An exact override is unconditional. "undici": "7.29.1" would hold undici at 7.29.1 even once payload raises its own pin past it, and would cap a future patched release the same way — the opposite of what a security override is for. A caret keeps the advisory floor and never holds the package back. The lockfile is unchanged at 7.29.1: it already satisfies the range, so no version bump rides along with this. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MJVd4rhuSMvgpuDVuUXVAc
|
All four adversarial findings adopted, one commit each. Pushed
On the last I took the range, not a baseline entry: The body no longer claims a Lean gate green — 1617 tests. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
…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]>
Summary
Two changes. The first is the ticket; the second is what it took to get CI green.
1.
CHANGELOG.md— the user-submissions intake repair.Fixedentry for [feat(api): migrate widget intakes to unified form-submissions #213], which repaired registration and report-an-issue after SahajCloud#800 deleted both endpoints they posted to./workflow:survey-contracts), check 3.2.
package.json+pnpm-lock.yaml— anundicioverride.Dependency Audit was red on two new high
undiciadvisories (GHSA-rfgv-xxqx-mfg5, GHSA-w293-vg96-wgc3). The failure is not this PR's —mainis red on the same two.undiciarrives via@payloadcms/sdk→payload, andpayloadpinsundici: 7.29.0exactly through the latest 3.90.2, so nothing in range moves it.The override is
^7.29.1— a floor, not a cap. An exact pin would holdundiciat 7.29.1 even oncepayloadraised its own pin past it, and would hold back a future patched release the same way. The floor sits at the patched version, so it cannot resolve below it, and the lockfile pins exactly as always. The resolved version is unchanged at 7.29.1: it already satisfies the range, so no version bump rides along.Preview
The diff changes no deployed route — there is nothing to deep-link.
Contract impact
CHANGELOG.mdis half of this repo's host-facing contract, besidedocs/embedding.md. This corrects what that document says; no widget behaviour changes, and no consumer needs a sync.docs/embedding.mdneeds nothing: it documents origins and parameters, and the intake's path appears in neither. The origin (cloud.sydevelopers.com) is unchanged by [#213]. Theundicioverride is build-side only — it never enters the browser graph, and all three size budgets report the same chunks.Test results
lint + typecheck + test:run— 124 files, 1617 tests passed, 53spnpm audit:check: ✓ 0 critical, 0 high; 0 new againstscripts/audit-baseline.jsoncomment-lint.mjs --base origin/main: ✓ 0 changed files, no banned comment addedManual verification
Fixedgroup — the new [feat(api): migrate widget intakes to unified form-submissions #213] one should make the [feat(api): migrate widget intakes to unified form-submissions #195] warning below it read as settled history rather than an open problem.^7.29.1floor is the behaviour you want for a security override, rather than an exact pin plus a booked line inscripts/audit-baseline.json.Review round
The adversarial critic raised four findings. All four adopted, one commit each:
CHANGELOG.md:269— "reports do reach us now" ignored an unsetreportIssueFormCHANGELOG.md:268— "the previous entry" pointed the wrong wayCHANGELOG.md:283— explained [#213] by a mechanism [#216] replacedpackage.json:130— the override was exact and unownedOn the last one I took the range rather than a baseline entry.
scripts/audit-baseline.jsonbooks advisories we are not fixing, and the weekly--strictrun fails on an entry already fixed (check-audit.mjslines 33-40) — so booking a fixed advisory would break that run. The range is the removal condition, made mechanical instead of written down.Notes for reviewer
Every factual claim was checked against the code, not against the commit message. What I verified:
external_registration,event_ended,registration_closed,event_full) —src/types/payload/response-types.ts:71.event_not_foundis deliberately not in that union, so the form falls back to the generic sentence — and it arrives as a refusal, which resets the spent challenge (RegistrationForm.tsx:198-207). That is the "lets the visitor try again" claim.sy-atlas-config.reportIssueFormhides every entry point (use-report-form.ts:40,atlas-config.ts:12). Delivery falls back to[email protected]only where the form names no recipient —src/config/api/mutate.ts:303-326. The entry now states both, which is the second finding above.Placement is the one judgement call. The file is a single
## [Unreleased]block with Changed/Added/Removed/Fixed groups repeating in loose waves, so there is no "newest Fixed group" by date. I put the entry at the top of the firstFixedgroup, directly above [#195], because the correction and the entry it corrects then sit together. Moving it elsewhere loses that adjacency.Detail
Why this was invisible. Nothing broke. [#213] shipped the fix 2026-09-18 and the file simply never recorded it, which is the same failure class as [#93] — the README telling hosts to load a filename the build had never emitted, for months.
Why the warning mattered more than the missing entry. A missing entry is a gap. The warning was an active, wrong claim: it told a host that reporting an issue fails, 170 lines below an entry ([#216]) saying reports reach the configured form's own recipient. The two contradicted each other in one document, and the stale one read as current because
[Unreleased]is the only version block in the file.That root cause is still open. This is the third entry to work around a file with no release boundary, and the third finding above is the same failure in a new place — a superseded mechanism reads as current for exactly the reason a superseded warning did. Worth its own ticket; this PR does not fix it.
What the survey checked and found clean, for the record — each against the code rather than against itself:
src/loader/config.tsparseConfig, no extras either wayi18nDetectionOptions.orderplusAppShell's resolutioncdn.usefathom.com,events.mapbox.comandreact-circle-flags.pages.devconfirmed from the installed packages, not from a grep ofsrc/geolocation(mapbox-gl'sGeolocateControl, the only control rendered),clipboard-write,web-share. Nofullscreen: noFullscreenControlmin-heightwarningMapFrame'sContainedFramereally does refuse an unfillable box, report it, and fall back to the viewportrouting=pathand memory routingmountDecisionrefuses to query mode and names its causeWeMeditateWeb/lib/atlas-embed.tsand the WordPress plugin'ssahaj_atlas_script_url()send only valid parameters, from the documented originOne stale pointer left unfixed, deliberately.
src/lib/embed-slot.ts:21says "SeemapIsContained", and no such symbol exists — the function ismapMode. That is a code comment rather than a published contract, and bundling it here would put two unrelated changes in one PR. Worth its own one-line PR.🤖 Generated with Claude Code
https://claude.ai/code/session_01MJVd4rhuSMvgpuDVuUXVAc