Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 26, 2026, 5:59 AM ET / 09:59 UTC. ClawSweeper reviewWhat this changesThe branch moves Beam mirror credentials into a prepared Gateway secret snapshot and adds manifest metadata for a capability-owned plugin secret. Merge readinessKeep open: the two prior P1 blockers remain—existing token objects need a migration, and the branch lacks current main’s in-flight upload cancellation after its stacked parent was squash-merged. Priority: P1 Review scores
Verification
How this fits togetherBeam has a local receiver/catalog plus an optional periodic mirror that uploads selected session data. The Gateway resolves plugin SecretRefs before runtime startup, then the mirror consumes the prepared value or stays unavailable. flowchart LR
A[Beam mirror configuration] --> B[Manifest secret contract]
B --> C[Gateway secret snapshot]
C --> D{Credential available}
D -->|yes| E[Beam mirror upload]
D -->|no| F[Cold mirror capability]
F --> G[Receiver and catalog remain available]
Decision needed
Why: This PR extends plugin manifest ownership semantics beyond the route-only current-main contract, so the intended reusable secret-isolation boundary needs maintainer direction. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +139, Tests +2420, Docs +22, Other 0. Total +2581 across 31 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase the Beam-only repair onto current main, preserve the abortable mirror lifecycle, and add a Beam-owned Doctor migration for obsolete token objects before approving the new manifest contract. Do we have a high-confidence way to reproduce the issue? Yes, from source: configured plugin entries are schema-validated during config reads, while the branch rejects object tokens that current main accepts; this read-only review did not execute the case. Is this the best way to solve the issue? No: preparing the credential once is the right direction, but the rebase must retain current main’s abortable upload lifecycle and migrate existing token objects. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2d6e0a23af19. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
fbc83ce to
aeb0287
Compare
d412490 to
dcc3950
Compare
|
Beam credential isolation and snapshot consumption landed in #176510 (bb8183d). The current mirror pauses on unavailable credentials without resolving them on every poll, so this older stacked implementation is superseded. Closed in a sweep of stale maintainer PRs (no activity for 7+ days). Reopen with a current reproduction if this still matters. |
What Problem This Solves
Fixes an issue where Beam advertised
mirror.tokenas SecretRef-capable but did not register or own it. The mirror resolved the credential again on every polling tick, so missing references bypassed owner isolation, exec providers could rerun repeatedly, and diagnostics could include reference details.Why This Change Was Made
Beam declares local capability owner
beam-mirror; parent PR #128318 maps it to exact runtime ownerplugin-capability:beam:beam-mirror. The complete mirror configuration binds last-known-good reuse, and runtime consumes only the prepared snapshot string. Per-tick resolution and identifier-bearing warnings are removed.This PR is stacked on #128318 and should be reviewed as the Beam-only child diff.
User Impact
An unavailable mirror token disables only outbound mirroring. Beam's authenticated receiver and session catalog remain available, while healthy unrelated capabilities continue normally. Exec/file/store/environment providers are resolved once during snapshot preparation.
AI-assisted implementation; I reviewed the diff, tests, live behavior, and security boundary.
Evidence
/readyz200, exact coldplugin-capability:beam:beam-mirror, receiver/catalog still registered, no active log, zero uploads;/readyz200, one real loopback upload with matching Bearer auth, no secret printed.Production LOC: +77/-28 (net +49, mostly strict manifest schema; runtime TypeScript is net negative). Tests: +615/-14.