Skip to content

chore: release_30_11_2026_v1 - #445

Merged
AakashVelusamy merged 1 commit into
mainfrom
staging
Nov 29, 2026
Merged

AakashVelusamy merged 1 commit into
mainfrom
staging

Conversation

@AakashVelusamy

@AakashVelusamy AakashVelusamy commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Brings main level with staging so prod runs what staging has been running.

What ships:


⚠️ Do not merge until the backend is in prod

This release changes what the agent sends, and it is a hard swap rather than an either/or:

-  "device_id": device_id,
+  "device_discovery_id": device_id,

The gateway-data side that accepts both keys is merged to its staging but not yet in prod. Prod's running code still reads data.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:

Backend in prod This release on devices Result
Correct order accepts both keys sends the new key reports land
If this merges first reads device_id only sends device_discovery_id every updated agent's reports are rejected

Merging 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) · d1ea227

  • codex (own score 3/5): The PR renames the device identifier in discovery reports, scan events, metrics, S3 requests, and memory-fix requests. It requires a backend deployment before this release can safely reach production; the PR description confirms that the currently deployed backend cannot accept the new key.
  • claude (own score 4/5): Renames the device identifier sent to the backend from device_id to device_discovery_id across 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 leftover device_id keys going to the backend; the only remaining uses are Sentry tags and co

findings: 0 P0 · 1 P1 · 0 P2 (top 5 P0/P1 inline) · engines: codex ✅ · claude ✅

rules applied: CLAUDE.md

* 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>
@AakashVelusamy
AakashVelusamy requested a review from a team November 29, 2026 21:19

@vigneshsubbiah16 vigneshsubbiah16 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ 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,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@AakashVelusamy
AakashVelusamy merged commit 39b816e into main Nov 29, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants