Repository navigation
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 real behavior proof before merge. What this changesThis PR preserves managed service environment values referenced by saved auth profiles before Gateway startup removes stale values. Example: A systemd EnvironmentFile supplies DEEPSEEK_API_KEY, referenced only by a saved auth profile.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 2 items remain Keep this PR open: current main still loses credentials referenced only by auth profiles, and the patch addresses that concrete defect without a new actionable code finding. Priority: P1 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherGateway pre-bootstrap combines trusted environment sources, selected configuration, and saved auth references before passing the resulting environment to secret resolution. flowchart TD
A[Inherited service environment] --> B[Final config selection]
C[Shared and agent auth stores] --> D[Existing read owners]
D --> E[Referenced environment names]
B --> F[Managed value cleanup]
E --> F
F --> G[Secret resolution]
Technical reviewBest possible solution: Preserve selected auth-profile references through the existing environment and storage owners while retaining stale-value cleanup and snapshot custody. Do we have a high-confidence way to reproduce the issue? Yes, from source: a systemd-marked key absent from trusted dotenv and config references is deleted before its saved auth-profile reference resolves; the linked report supplies matching failure logs and a successful control. Is this the best way to solve the issue? The patch repairs the owning preservation decision, reuses backend and reader lifecycles, and updates affected PostgreSQL display consumers without introducing another storage or credential authority owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6859050d1944. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +216, Tests +693, Docs +12. Total +921 across 16 files. Added test files: 1. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 (12 earlier review cycles; latest 8 shown)
Reviewed October 22, 2026, 5:04 AM ET / 09:04 UTC (Revision 13). |
|
Addressed the secondary-agent failure-containment finding in Two actual bootstrap/reset-admission fixtures fail on the previous head with a registered physically invalid secondary store (119.91 s) and pass after the correction (103.77 s), including healthy SecretRef resolution and full source/config artifact hashes. Four post-build controls pass in 89.38 s. The updated body records all type/check/build evidence, the original Doctor timeout and inherited Gateway/Knip findings rather than claiming they were repaired. Installed-systemd/full Gateway proof and maintainer security approval remain outstanding. The isolated bootstrap and separate admission-owner tests are explicitly labeled as such. |
|
Addressed the agent-native-close snapshot finding in The agent-native-close finding is addressed by retaining the canonical snapshot reader fence in the existing auth read-pool entry. Its release occurs only after successful native close; failed admission and cached entries use the same custody. No independent cleanup registry or new cache-readiness policy is added. The corrected collector regression fails on the previous head in both readable and schema-refused cases: the real pooled reader remains open while its copy has been removed. After repair, explicit and global cleanup retain the copy until scoped pool close succeeds, then removal completes; original artifact hashes are unchanged. The full collector/pool/bootstrap composition passes 37 cases in 342.80 s. Full candidate and the mechanical fixture type correction have fresh P0–P2 reviews. Installed-systemd/full Gateway proof, representative startup/storage cost, maintainer security approval and the earlier Doctor CI timeout remain explicitly unresolved. Passing replays are not described as a timing fix or inherited failure. Final production types, all 27 consumer graphs, type-aware lint and build pass. The full-tree scan retains the exact seven verified baseline exports; no scanner exception is added. Earlier shared-state correction and evidenceAddressed the shared-state cleanup finding in eafcea1. Shared ownership and credential inspection now classify only settled row failures as unreadable. Canonical admission, native-close, cleanup and aggregated lifecycle failures propagate, so failed snapshot cleanup cannot admit startup. Other shared-auth inspection callers retain the same root/lifecycle failures. Both real environment-selection regressions fail on the prior head (33.938 s / 45.18 s) and pass after the fix. The complete bootstrap file passes all 23 cases (243.41 s), with unchanged source/config hashes, retained cleanup custody and joined fixture cleanup. Related owner controls pass 33 cases; production and all 27 consuming test graphs pass. The updated body records final validation and the outstanding installed-systemd/full Gateway and security-review gates. Private copies retain their existing owner and cleanup contract; the fixture proves a retained copy after removal failure, not credential disclosure. No schema, permission, dependency or operator-service change was made. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Updated branch/body for current main owners. The isolated actual startup-preparation control reproduces auth-only inherited key loss/SECRET_REF_NOT_FOUND; the common reader control exposes cleanup errors swallowed for both cell and row consumers. Repaired collector/pool/models cases42, complete startup-process cases23, and real PostgreSQL family/CLI cases18 pass (83 distinct). Current types/lint/database ratchets and complete16-file independent review pass; no test/guard weakening. The task-only Unix-socket PG cluster is stopped and test schemas removed. Installed-systemd/full Gateway, upgrade and representative cost/security-owner requirements remain explicit; no new Gateway run or old-head proof transfer is claimed. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Merge official main b280e5f for the actual process fixture conflict and failed test-line gate. Retain the original supported Doctor options, assertions and deadlines; no author allowance is applied. Current local runtime timeouts remain recorded for normal CI/review.
Related: #162675.
What Problem This Solves
A systemd Gateway discards inherited managed credentials referenced only by saved auth profiles during startup.
User Impact
Saved API-key/token references retain the inherited service values they need; unrelated stale values are still removed. Unreadable rows preserve uncertain values with a credential-safe Doctor warning. Admission, native-close and snapshot-cleanup failures remain errors. Whole-database inspection still has startup I/O and temporary-storage cost.
Why This Change Was Made
Read reference names through the existing auth owner after final configuration/state selection and before stale-value cleanup. The selected SQLite/PostgreSQL backend remains authoritative. Existing generic readers, display paths and snapshot/pool custody are reused. No new cache, engine owner, public option, schema, protocol, permission or credential-activation policy is introduced.
Evidence
Current exact-head CI 40853114101 completed successfully for
0f04f00112f4ad492377098c13320dea0d60ea85at 2026-10-29 10:17:22 UTC (18:17:22 Asia/Shanghai). The original local failures and controls below remain retained; workflow success does not explain their timeout causes.Current integration maintenance (2026-10-29), 0f04f00, normally merges official main
b280e5f40f9186b37339c9eed90f8ef38128f8a2for the actual process-fixture conflict and failed budget gate. Fifteen of the 16 proposal files are byte-identical to84fc9b71; only environment documentation absorbs a canonical line.The Doctor conflict retains the original four supported config-only options (
repairPrefixedConfig: true,observe: false,migrateState: false,migrateLegacyConfig: false). It already includes main's newmigrateState: falsechoice and does not restoredoctorOnlyStateMigrations. The owner implementation and option contract remain unchanged from the previous fixed main. Active-file legacy-key repair is still enabled; skipping legacy filename relocation does not waive it. The entire process test file, legacy input, original assertions and 60 s child / 75 s parent limits stay exact to the prior head.Budget and static checks
Native staged budget passes: 6,256,809 / 6,322,808, slack 65,999. The effective ceiling consists of unchanged official scalar 6,320,689 plus 2,119 from 17 unchanged official allocation files. The total is below the scalar alone by 63,880, so no author allowance or transferred grant is needed. The introduced LF test delta remains +695; production +214 and docs +12. No scalar, allocation, counting rule, ignore, deadline or assertion exception is authored.
Current production types PASS (137.00 s), full affected test-consumer types PASS (163.85 s), typed lint PASS (393.49 s), format/line-cap/whitespace and assertion-safety (138.25 s) PASS. Node 24.22.1 / pnpm 12.15.0 meet both manifests; dependency definitions and lock match the qualified installation, with no install reconciliation.
Fresh local autoreview covers the complete 16-file proposal against the pinned main at P0-P2: scoped-clean, no actionable finding. Review snapshot
015c727b85445e37bbf01399798e9e83bd79f274, candidate treecd82302be786e1d7b5c44eaaa6a19c56ba5837b3. This is static review; the reviewer expressly keeps runtime validation inconclusive and does not treat different environments as a paired pass or prove the timeouts fixed.Current runtime results and limits
The complete original four-file Node fallback run records 47 passes / 4 failures, 1,572.60 s wrapper time, including a 468.61 s worker-preparation build. The four failures are unchanged 60 s child deadlines (
code: null,killed: true,signal: SIGTERM): Doctor escaped-reference repair, managed template, managed auth-profile-only reference and fast--allow-unconfiguredstartup. The bootstrap file is 19/23; auth-list is 13/13 and collector/read-pool are 15/15. None of the four failed children emits the final result marker, so those failures establish neither lost credentials nor completed assertions. Their exact slow phase remains unclassified.A bounded producer control replaces only pre-bootstrap with exact pinned main while retaining the current support tree and original virtual runtime fixture. It executes to the real credential-loss assertion:
keyPresent: false,resolved: false,SECRET_REF_NOT_FOUND(1 failure, 457.49 s wrapper). Its child also checks that the persisted reference is unchanged. This is one canonical owning-module control, not an entire main checkout, installed binary or real service test. Restoring the candidate in that same original virtual-runtime layout still times out at 60 s (327.55 s wrapper); that is not a passing positive control.After those bounded failures, an explicitly separate diagnostic uses the existing helper's supported
runtimeRootoption to select the stable source checkout for the profile-only case. It keeps the private HOME/config/SQLite, Node arguments, all assertions and the same 60 s deadline, and executes no Doctor, listener or model endpoint. Only that test option is temporarily changed and then restored; source assets are guarded unchanged. The candidate completes one pass in 290.55 s wrapper time, including reference/config/state checks. The main-producer attempt in this layout times out (302.36 s) and is not a product negative. Results across those runtime roots are not combined into a same-environment red/green pair, nor do they explain the original four timeouts.All temporary production/test bytes and modes are restored, and the staged tree is unchanged. A raw index hash changed during read tooling, so byte-identical index restoration is not claimed; staged contents/modes and tree remain verified, with no raw-index overwrite.
Historical proof and remaining gates
The earlier
84fc9b71fixed-main run retains its own result: 50 passes and one unresolved Doctor 60 s timeout. Its prior canonical-producer negative / reviewed-producer positive comparison (287.41 s / 280.57 s) demonstrated the profile-only credential loss and restoration in the same original support environment. The relevant producer source and original fixture bytes are retained here, but that historical paired result is not called a fresh current-runtime pair and is not added to current pass counts. Main's independent discarded-clobbered recovery fixture correction remains credited to its upstream history; it is not evidence that the auth-profile feature was adopted on main.Old exact-head CI 40762114921 remains failed: merge
0c2e0a2aagainst base0661e52ameasures 6,311,602 / 6,310,783, over 819, net +695. Its native classification remains new — matching main job passed; selected scope not compared. The older local 6,311,345 / 6,310,560 failure belongs to its different fixed tree and is separate. No old job is rerun or reclassified by this integration's local budget pass.The existing test-failure policy retains those original failures, attempts and uncertainty under normal CI/review gates. Original-fixture runtime validation is not all green. The new-head workflow above supplies broad PR CI validation; no merge/admin exception or deadline waiver is requested. PostgreSQL was not executed locally, and workflow success alone is not a claim of individual PostgreSQL case coverage. Installed upgrade, ordinary public CLI, real systemd/Gateway and model-provider behavior remain unverified in this maintenance. No operator service was restarted or configured and no paid test resource, actual model request or upstream merge was performed.
The current classic
openclaw/security-sensitive-reviewand aggregateopenclaw/ci-gatestatuses still require maintainer approval for this exact revision. The successful CI workflow does not satisfy that separate security review or authorize merging.