Repository navigation
feat(catalog): identify local sources for automatic session exports - #204558
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. What this changesAdds optional catalog-row metadata identifying native, imported, and federated sessions and their eligibility for automatic export. Example: A paired Pi node returns thread pi-remote with native-local provenance and automatic export enabled.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR supplies a useful producer contract for automatic exports, and review found no actionable code defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherCatalog plugins project native stores and remote sources into Gateway session rows consumed by clients and export integrations. flowchart LR
A[Native session stores] --> C[Catalog providers]
B[Paired nodes and Gateways] --> D[Receiver projections]
D --> C
C --> E[Gateway catalog rows]
E --> F[Clients and export integrations]
Technical reviewBest possible solution: Keep provenance with existing catalog producers and receiver projections, with automatic selection enforced by the downstream exporter. Do we have a high-confidence way to reproduce the issue? This is a feature contract rather than a bug reproduction; current-main source confirms the metadata is absent. Is this the best way to solve the issue? The change uses the existing schema and projection owners, preserves source-home identity and explicit selection, and adds no competing exporter or persistent state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 74f61cac6c81. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +43, Tests +46, Docs +6. Total +95 across 14 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. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 (1 earlier review cycle)
Reviewed November 24, 2026, 5:56 AM ET / 10:56 UTC (Revision 2). |
|
@clawsweeper re-review Check d066b15 after the two reported extension lint errors were repaired. The direct focused lint and all 11 Session Share integration tests passed. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
|
Scheduled Bisect, local Node ( Could you update the test's expected entry for the new |
The receiver adds federated export provenance to shared catalog rows. Include it in the existing exact row assertion while retaining the unchanged peer fixture and latency, coalescing, and failure checks. Related: #204558 Validated: original focused case reproduces the scheduled CI failure; all 15 catalog Gateway tests pass with the updated expectation. Targeted lint, format, and Gateway-method test typecheck pass.
The receiver adds federated export provenance to shared catalog rows. Include it in the existing exact row assertion while retaining the unchanged peer fixture and latency, coalescing, and failure checks. Related: #204558 Validated: original focused case reproduces the scheduled CI failure; all 15 catalog Gateway tests pass with the updated expectation. Targeted lint, format, and Gateway-method test typecheck pass. (cherry picked from commit 4c68c0b)
The receiver adds federated export provenance to shared catalog rows. Include it in the existing exact row assertion while retaining the unchanged peer fixture and latency, coalescing, and failure checks. Related: #204558 Validated: original focused case reproduces the scheduled CI failure; all 15 catalog Gateway tests pass with the updated expectation. Targeted lint, format, and Gateway-method test typecheck pass. (cherry picked from commit 4c68c0b)
…penclaw#204558) * 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 * test(plugins): assert federated provenance in receiver integration * fix(catalog): project export policy within linted row mappings
The receiver adds federated export provenance to shared catalog rows. Include it in the existing exact row assertion while retaining the unchanged peer fixture and latency, coalescing, and failure checks. Related: openclaw#204558 Validated: original focused case reproduces the scheduled CI failure; all 15 catalog Gateway tests pass with the updated expectation. Targeted lint, format, and Gateway-method test typecheck pass.
What Problem This Solves
A catalog can present both a native session and a conversation received from another Gateway. Both can currently appear under a Gateway host. An exporter needs the producing catalog to identify which rows can be selected automatically.
User Impact
Catalog integrations can distinguish native local sessions from imported copies and federated sessions. This is the producer contract for the Beam connector. Existing catalog clients can keep selecting sessions explicitly.
Why This Change Was Made
Each provider knows its own source. Codex checks the selected home and locally started connection. Pi and Session Share assign provenance on the receiving side. The optional policy combines source origin with permission for automatic export.
Evidence
The Codex catalog and both Session Share catalog suites passed on Blacksmith Testbox. The same run checked protocol compatibility against the base commit. The changes include direct managed stdio, a managed proxy with an explicit socket, and a custom executable. The preceding run exercised all 13 Pi tests, including the paired-node case. The protocol registry, schema generation, and native model determinism checks also passed.
At
d066b15, the direct native Testbox command ran the sameoxc/no-map-spreadrule on the two previously failing files, then passed all 11 Session Share integration tests. Leasetbx_01m86jk3waprekb7399yynqcb8. The separate installed-Gateway qualification is exercising native, imported and proxied catalog rows.