Skip to content

docs(changelog): record the user-submissions intake repair, and retire its stale caveat - #237

Merged
sydevs-bot merged 6 commits into
mainfrom
claude/docs-contract-changelog
Oct 1, 2026
Merged

sydevs-bot merged 6 commits into
mainfrom
claude/docs-contract-changelog

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

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.

2. package.json + pnpm-lock.yaml — an undici override.

Dependency Audit was red on two new high undici advisories (GHSA-rfgv-xxqx-mfg5, GHSA-w293-vg96-wgc3). The failure is not this PR's — main is red on the same two. undici arrives via @payloadcms/sdk → payload, and payload pins undici: 7.29.0 exactly 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 hold undici at 7.29.1 even once payload raised 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.md is half of this repo's host-facing contract, beside docs/embedding.md. This corrects what that document says; no widget behaviour changes, and no consumer needs a sync.

docs/embedding.md needs nothing: it documents origins and parameters, and the intake's path appears in neither. The origin (cloud.sydevelopers.com) is unchanged by [#213]. The undici override is build-side only — it never enters the browser graph, and all three size budgets report the same chunks.

Test results

  • Lean gate: ✓ lint + typecheck + test:run — 124 files, 1617 tests passed, 53s
  • pnpm audit:check: ✓ 0 critical, 0 high; 0 new against scripts/audit-baseline.json
  • comment-lint.mjs --base origin/main: ✓ 0 changed files, no banned comment added
  • Targeted specs: N/A — prose and dependency metadata only
  • Build: N/A (CI runs build + size)

Manual verification

  1. Read the two entries in order in the Fixed group — 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.
  2. Confirm the ^7.29.1 floor is the behaviour you want for a security override, rather than an exact pin plus a booked line in scripts/audit-baseline.json.

Review round

The adversarial critic raised four findings. All four adopted, one commit each:

Finding Commit
CHANGELOG.md:269 — "reports do reach us now" ignored an unset reportIssueForm 928e651
CHANGELOG.md:268 — "the previous entry" pointed the wrong way 88ed38c
CHANGELOG.md:283 — explained [#213] by a mechanism [#216] replaced 9e3b303
package.json:130 — the override was exact and unowned 928f36d

On the last one I took the range rather than a baseline entry. scripts/audit-baseline.json books advisories we are not fixing, and the weekly --strict run fails on an entry already fixed (check-audit.mjs lines 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:

  • The four refusal codes (external_registration, event_ended, registration_closed, event_full) — src/types/payload/response-types.ts:71.
  • event_not_found is 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.
  • The report names the authored form, and an unset sy-atlas-config.reportIssueForm hides 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 first Fixed group, 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:

Check Result
Script-URL parameters vs src/loader/config.ts Clean — five documented, five in parseConfig, no extras either way
Locale precedence Clean — doc's chain matches i18nDetectionOptions.order plus AppShell's resolution
CSP origins Clean — cdn.usefathom.com, events.mapbox.com and react-circle-flags.pages.dev confirmed from the installed packages, not from a grep of src/
Permissions Policy Clean — geolocation (mapbox-gl's GeolocateControl, the only control rendered), clipboard-write, web-share. No fullscreen: no FullscreenControl
Sizing, including the min-height warning Clean — MapFrame's ContainedFrame really does refuse an unfillable box, report it, and fall back to the viewport
routing=path and memory routing Clean — mountDecision refuses to query mode and names its cause
Both in-tree consumers Clean — WeMeditateWeb/lib/atlas-embed.ts and the WordPress plugin's sahaj_atlas_script_url() send only valid parameters, from the documented origin

One stale pointer left unfixed, deliberately. src/lib/embed-slot.ts:21 says "See mapIsContained", and no such symbol exists — the function is mapMode. 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

…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
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Deploying sahajatlas with  Cloudflare Pages  Cloudflare Pages

Latest commit: 928f36d
Status: ✅  Deploy successful!
Preview URL: https://0d643338.sahajatlas.pages.dev
Branch Preview URL: https://claude-docs-contract-changel.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 Oct 1, 2026
@sydevs-bot

sydevs-bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running
CI fix 1

recent dispatches
  • 08:55Z address-review · attempt 1 · session · done
  • 08:55Z address-review · attempt 1 · session
  • 08:33Z adversarial-review · attempt 1 · session · done
  • 08:33Z adversarial-review · attempt 1 · session
  • 08:24Z fix-ci · attempt 1 · session · done

Written 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
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Dependency Audit was red on two new high undici advisories — GHSA-rfgv-xxqx-mfg5 and GHSA-w293-vg96-wgc3. Pushed 9619a79, which overrides undici onto the patched 7.29.1.

The failure is not this PR's. main is red on the same two advisories, so the "CHANGELOG.md only" line in the body above no longer describes the diff — it now also carries package.json and pnpm-lock.yaml.

Why an override rather than a bump. undici arrives via @payloadcms/sdk → payload, and payload pins undici: 7.29.0 exactly, through the latest 3.90.2. Nothing in range moves it. The override names the patch release and should be dropped once payload raises its own pin.

The lockfile moves undici and nothing else. Full gate green: lint, typecheck, 1617 tests, build, and all three size budgets reporting the same chunks — undici never enters the browser graph.

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


Generated by Claude Code

@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 Oct 1, 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

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 unset reportIssueForm.
  • 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

Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md Resolved
Comment thread CHANGELOG.md 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 Oct 1, 2026
claude added 4 commits October 1, 2026 08:58
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
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

All four adversarial findings adopted, one commit each. Pushed 928f36d.

On the last I took the range, not a baseline entry: ^7.29.1 is a floor, so it cannot cap a future patched release. The lockfile stays at 7.29.1. A baseline entry would fail the weekly --strict run, which fires on an advisory already fixed.

The body no longer claims a CHANGELOG.md-only diff. It now describes both changes and why the second is here.

Lean gate green — 1617 tests. audit:check green — 0 high, 0 new.

🤖 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 Oct 1, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review October 1, 2026 09:04
@sydevs-bot
sydevs-bot requested a review from Ardnived October 1, 2026 09:04
@sydevs-bot
sydevs-bot enabled auto-merge October 1, 2026 09:04
@sydevs-bot
sydevs-bot added this pull request to the merge queue Oct 1, 2026
Merged via the queue into main with commit 76b1d86 Oct 1, 2026
65 of 70 checks passed
@sydevs-bot
sydevs-bot deleted the claude/docs-contract-changelog branch October 1, 2026 17:22
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]>
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