Repository navigation
fix(beam): keep automatic mirrors on the original authorized source - #204568
Conversation
…-mirror-source-home * commit 'b2ca0eabbd804db6c0ab09a772146e56fc153c85': test(session-share): verify provenance in projected peer rows fix(codex): reserve automatic export for direct managed sessions feat(catalog): identify sessions eligible for automatic export
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
…-mirror-source-home * commit 'c7030b6eecc0924071adf03aec1f7feeae92d477': test(plugins): assert federated provenance in receiver integration
…-mirror-source-home * commit 'd066b15cbf5cdfa58b07e98e22bcec490fc0bd17': fix(catalog): project export policy within linted row mappings # Conflicts: # extensions/acpx/src/pi-session-catalog-runtime.ts
|
Codex review: needs maintainer review before merge. What this changesBind automatic Beam exports to producer-certified native sources while preserving historical publication IDs. Example: Two catalog rows identify thread shared under home-a and home-b.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR addresses a source-selection defect that remains on main; the earlier credential-fixture finding is fixed, and no new correctness blocker was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherBeam polls registered session catalogs, reads eligible local transcripts, and uploads bounded snapshots to a configured receiver. flowchart LR
A[Native session files] --> B[Catalog providers]
B --> C[Source eligibility and locator]
C --> D[Beam mirror]
D --> E[Bound transcript read]
E --> F[Beam receiver]
Technical reviewBest possible solution: Keep producer-owned eligibility, exact source locators, and the existing receiver publication identity in the current catalog and mirror owners. Do we have a high-confidence way to reproduce the issue? Current main visibly ignores producer export eligibility and drops the selected source home before reading; no target code was executed during this read-only review. Is this the best way to solve the issue? The change repairs the existing owners rather than introducing a second exporter, and retaining v1 IDs prevents bypassing receiver retirement through a newly minted publication. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ab100d2a8fbd. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +156, Tests +166, Docs +8. Total +330 across 19 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)
Reviewed November 24, 2026, 6:34 AM ET / 11:34 UTC (Revision 4). |
|
@clawsweeper re-review Check 2c3f738. The native credential integration fixture now declares the actual producer, source home and stable automatic eligibility. Its existing prepared-token, cold-reload and recovery assertions remain. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review the current head |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review current head |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…penclaw#204568) * feat(catalog): identify sessions eligible for automatic export * fix(codex): reserve automatic export for direct managed sessions * test(session-share): verify provenance in projected peer rows * fix(beam): keep mirror reads bound to the selected source home * fix(beam): fence automatic exports at the original v1 publication * fix(beam): pin source files and fence historical host aliases * perf(acpx): share Pi file identity checks across a catalog scan * test(plugins): assert federated provenance in receiver integration * fix(catalog): project export policy within linted row mappings * test(beam): preserve the native credential reload integration * refactor(beam): share the current agent selection at dispatch
Depends on #204558.
What Problem This Solves
The Beam mirror previously selected rows by Gateway host kind and dropped the source home when reading a thread. A federated Gateway can look local, and more than one home can contain the same thread. Assigning a new public ID on upgrade can also publish a fresh row after the old source was released.
User Impact
The v1 mirror uses each eligible source's original public ID and keeps its exact agent and home for every read. Imported, unclassified, and ambiguous sessions require explicit selection. A receiver's previous release continues to retire the source. A catalog removed from the allowlist during a read cannot publish the pending result.
Why This Change Was Made
Providers can certify that host and thread identify the original native source across agents and homes. The host-qualified Codex homes can make that guarantee. The rebindable primary alias cannot. The receiver still sees the same v1 ID it used to track both publications and their release receipts.
Evidence
The staged formatter and whitespace checks passed. Regression cases exercise a qualified source with an existing v1 release receipt, two homes sharing an ID, an unclassified source, and a catalog removed while its read is in progress. Blacksmith Testbox completed the historical release, source identity and host-isolation suites described below.
Validation
Trusted Blacksmith proof passed the historical v1 release, ambiguous source, full-locator and host isolation scenarios in Beam, Claude, Pi and Codex at 002fc4f. https://github.com/openclaw/openclaw/actions/runs/45372668964
The subsequent reviewed Pi optimization reuses the uniqueness index across each native discovery generation. It does not retain file decisions after that generation expires. The latest source review cleared that change and the amended operator examples.
The synthetic credential integration catalog now declares native eligibility and its source home at
2c3f738. It still checks the prepared bearer, mid-read revocation, cold secret store and recovery. A pre-existing released v1 publication can originate on the frozen main implementation. The latest stable source sender has the same deterministic v1 ID and its receiver predates release receipts. The historical active-release regression therefore exercises the revision that can actually create that state.The incremental change at
f101a870uses the same strict agent selector for discovery and dispatch and preserves the source identity on the fresh Pi projection. The earlier run's Android instrumentation job stopped during dependency download with HTTP 403.