Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Merged as e145264 under the authorized inherited-failure exception, with reviewed head 4d98937. CI run 38930592365 completed with tests, typechecks, lint, and security passing. Its only substantive failures were:
These caused the aggregate CI gate failure. The final dependency and security-sensitive review statuses passed. No CI rerun or unrelated source change was used to obtain green. The lane-authorized exact-head merge API fallback avoided provisioning a native-helper worktree inside the excluded canonical checkout. Measured receipt-owner CPU improved 2.0367 → 0.0380 ms for one new session and 7.5421 → 2.9374 ms for 100 new sessions. Allocation was neutral. End-to-end RPC CPU/allocation remains unmeasured because the isolated source Gateway did not finish startup within the bounded attempt; no endpoint-level speedup is claimed. |
* commit 'a4c73619a5c': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…157433 * commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…/decision-onnx-v2-proof-20261016 * commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…ision-accounting-native * commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…158510 * commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…esafe-decision-native * commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…/decision-tool-v2-proof-20261016 * commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
* perf(sqlite): bound session receipt scope publication * perf(sqlite): preserve full-sweep scope traversal
What Problem This Solves
Session reads that discover a new receipt scope scan and hash every registered scope in the agent database. The bucketed snapshot introduced in #173410 reduced copying but retained this whole-inventory scan; cohort publication from #172404 avoids one publication per row but still pays it for each new cohort.
User Impact
Reduces main-thread work when history, session-list, and session-description reads retain facts for previously unseen sessions. Stored data, schemas, write admission, permission checks, and receipt invalidation are unchanged.
Why This Change Was Made
The receipt owner already knows which normalized scope keys it discovers or retires. Carry those keys through the existing publication boundary and visit only them in the same snapshot builder. Initial snapshots still include all scopes; general publications retain the sweep required to reclaim retirement shared by another isolate. Historical snapshot membership and live shared revision cells keep their existing semantics. Warm reads already publish nothing and retain that behavior.
Production delta: +16 lines across three existing modules. The small interface/iteration growth preserves immutable snapshots, cross-isolate retirement cleanup, and the original full-map traversal; it adds no cache, revision, schema, or second snapshot implementation. No new module or export.
Evidence
src/infra/sqlite-database-admission.worker.test.tspass, including publication after dispatch, scoped/unscoped commits, retirement replacement, rejected admission, and 5,000-task-message coverage. Two focused files together took 139.5 seconds including cold worker-bundle preparation; worker-file test execution was about 23 seconds. This integration proof is reused across the traversal-only refinement; the 3-test receipt file passes again on the final candidate (3.66 seconds wrapper wall time), and PR CI owns final-head broad proof.oxfmt, repository lint withconfig/tsconfig/oxlint.core.json, andgit diff --checkpass.Measurement
A synthetic owner-boundary benchmark on Linux/Node 26 starts each case with 5,000 session-key/session-ID pairs (10,000 scopes). It invokes the production receipt and admission registry owners. Baseline is
0dc31f5f6430; final source is4d98937e1eba. Unprofiled main-thread CPU usesprocess.threadCpuUsage(), five rounds per case; separate V8 sampling includes allocations collected by minor and major GC.Discovery improves 53.6× for one session and 2.57× for a 100-session cohort. Allocation is neutral: unchanged bucket copying dominates. General-publication timing ranges overlap (before 1.56–1.90 ms, after 1.76–1.87 ms); its small sampled allocation floor does not establish an allocation win. A full-sweep iterator regression found during measurement was removed before landing by preserving the original
Map.forEachtraversal.These are receipt-owner costs with session-shaped scope cardinality, not end-to-end RPC latency or a seeded database/Gateway result. Endpoint-level
chat.history,sessions.list, andsessions.describeCPU/allocation were not obtained: the source-launched synthetic Gateway exceeded the bounded 240-second startup budget beforestartupSettledor any measured RPC. It reached HTTP bind at about 236 seconds, then began main-session recovery. This is a measurement setup limit, not a product-performance result. The seeded fixture contained 5,000 sessions and 6,000 retained runs (235,978,752-byte agent database; 11,780,096-byte shared database); no production data was used. The longer interleaved warm-cohort control is also neutral within noise: baseline range 0.225–0.268 ms, final 0.193–0.283 ms (6 × 1,000 calls per revision).Inherited CI failures
Final-head CI run 38930592365, attempt 1, has an inherited
check-guardsfailure: the duplicate-scan coverage check rejects the tracked root filecli-parent-lifetime.mjsbecause it is missing from the scan targets and intentional exclusions. The actual CI merge ise9b674c63cfbfee93e4c990ebf79b051947ab35e, with main parentbb642e181e130153894a45f141a5368123bcd487and this PR head4d98937e1eba61da007294c4c44dd1a3808d2ad6.The focused
node scripts/check-duplicates.mjs --coveragesubcheck fails identically on the PR head, the tested merge inventory, CI's unchanged main-parent inventory, and then-current mainec90dc1ef23dd9c9dd731479b4431d9b082b78d5: the only uncovered path iscli-parent-lifetime.mjs. Baseline inventories were loaded into isolated temporary Git indexes (GIT_INDEX_FILEplusgit read-tree), without switching or changing the checkout; this subcheck reads only tracked paths and its static target list. The guard source is byte-identical across these revisions, and the uncovered file is unchanged between CI's main parent and tested merge. The tested merge changes only this PR's four SQLite files.checks-fast-baseline-ratchetsalso fails its mock-export subcheck on the unchangedsrc/flows/doctor-plugin-source-captures.test.ts:32, which mocks../process/supervisor/darwin-bun-process-census.jswithout an isolation annotation. A focused single-file reproduction using the production parser, resolver, mock scanner, and baseline comparison finds the identical ungrandfathered fingerprint0f314816d50228e6240f1048998f802dd80d499ba91277a72f2a366e9c574dd2on CI's main parent and tested merge. The guard, scanner, fixture, target module, and baseline ledger are unchanged by this PR.Both inherited issues have since been repaired on main:
cfb9b5082d60adds the missing duplicate-scan target;cb196c383039adds the fixture's isolation annotation. The focused mock reproduction is clean on newer mainecdf8d3b779d705940a90b9fc4fffad6ccf7e2ed. The older scheduled-main classifier is superseded by direct evidence from CI's exact main parent. All 42 substantive passing jobs include tests, typechecks, lint, and security; the two attributed guard failures cause the aggregate CI gate to fail. Landing uses the authorized inherited-failure exception. No CI rerun, unrelated source edit, or rebase was used to chase green.