Repository navigation
chore: release_30_11_2026_v1 - #445
Conversation
* feat(web-5977): send device_discovery_id on the discovery wire Renames the payload key device_id -> device_discovery_id across the report, scan-event, metrics, and S3 (meta + notify) payloads. The S3 uploader reads the new key with a fallback to device_id so any old-format payloads already queued offline still upload. Deploy AFTER gateway-data accepts both keys. Updated the wire-key assertions in the discovery-flow, s3-uploader and send-and-persist tests. * Merge pull request #433 from websentry-ai/WEB-6710 [WEB-6710] (#434) [WEB-6710] fix(skills): fit skill folders to a report budget, never drop a report [WEB-6710] * test: cover the new wire key on the s3 path, not just the fallback Every S3 fixture built its payload with the legacy device_id, so the tests only ever exercised the uploader's fallback branch while production now sends device_discovery_id. The default fixture now matches what the device builds, and a separate test covers a report queued before the rename. Verified the new test fails without the fallback and passes with it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * test: guard the metrics payload's device key The metrics POST piggybacks on the report endpoint and carries the device key like any other payload, but nothing asserted it. A regression to the old key would have shipped silently. Verified the guard bites: reverting just the metrics key makes this test fail with a KeyError, and it passes again once restored. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix: send device_discovery_id on the memory-fix wire too The memory-fix fetch and results POSTs were the last outbound paths still naming the device with the legacy key, so the claim that every path moved was not yet true. Nothing breaks either way today because the backend accepts both names, but it would once the legacy key is retired. The payload assertions move with it and stay exact-match, so a regression to the old key still fails them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: AakashVelusamy <aakash@unboundsecurity.ai> Co-authored-by: Vishnu <79318686+zeus-12@users.noreply.github.com> Co-authored-by: NandaPranesh <106886030+anonpran@users.noreply.github.com> Co-authored-by: Vignesh Subbiah <51325334+vigneshsubbiah16@users.noreply.github.com> Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com> Co-authored-by: pugazhendhi-m <132246623+pugazhendhi-m@users.noreply.github.com> Co-authored-by: Iyad Zargar <iyad.zargar@gmail.com> Co-authored-by: Iyad Zargar <dev@iyadzargar.com> Co-authored-by: Attachment Aditya <attachment.aditya@gmail.com>
vigneshsubbiah16
left a comment
There was a problem hiding this comment.
✅ Security consensus: no issues found. (reviewers: Claude, Semgrep, Gitleaks)
🤖 consensus review · reviewers: Claude, Semgrep, Gitleaks · head d1ea2277 · 2026-11-29T21:21Z
| "home_user": home_user, | ||
| "system_user": system_user or home_user, | ||
| "device_id": device_id, | ||
| "device_discovery_id": device_id, |
There was a problem hiding this comment.
P1 · Preserve compatibility with the deployed backend (codex)
New reports contain only device_discovery_id, so updated agents cannot report to the currently deployed backend. The PR description confirms that production reads only device_id and rejects reports without it. If this release reaches devices before the separate backend deployment, discovery reports are dropped fleet-wide.
scripts/coding_discovery_tools/ai_tools_discovery.py:3818-3824 constructs reports with device_discovery_id only; scripts/coding_discovery_tools/utils.py:1518-1522 makes the same swap for scan events. The PR description states that the production gateway currently reads only device_id and that its dual-key handler is not yet deployed.
Brings
mainlevel withstagingso prod runs what staging has been running.What ships:
This release changes what the agent sends, and it is a hard swap rather than an either/or:
The gateway-data side that accepts both keys is merged to its
stagingbut not yet in prod. Prod's running code still readsdata.get('device_id')only, with no knowledge of the new key — verified directly against a prod pod.So the order matters, and getting it wrong is not a subtle failure:
device_idonlydevice_discovery_idMerging this before the backend reaches prod would cause a silent fleet-wide discovery outage — each report arrives, finds no device identifier, and is dropped. Nothing in CI here can catch that, because this repo is individually correct and green across all nine OS and Python combinations.
Merge this once the gateway-data release carrying the dual-key handler is live in prod. That handler is what makes this a safe sequence rather than a synchronised cutover: with both keys accepted, old and new agents work simultaneously and the fleet can update at its own pace.
Ref: WEB-5977.
🤖 Generated with Claude Code
Unbound Review · Score 3/5 (1 P1) ·
d1ea227device_idtodevice_discovery_idacross all five places that send it: report builders, scan events, discovery metrics, memory-fix posts and the S3 upload meta/notify bodies. The S3 uploader also falls back to the old key, so reports queued before the update still name the device. A grep found no leftoverdevice_idkeys going to the backend; the only remaining uses are Sentry tags and cofindings: 0 P0 · 1 P1 · 0 P2 (top 5 P0/P1 inline) · engines: codex ✅ · claude ✅
rules applied: CLAUDE.md