Repository navigation
improve(secrets): limit expiry metadata to transient credentials - #146882
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. |
2e6bdee to
35eda9f
Compare
|
@clawsweeper re-review Please review current head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: blocked before merge. Reviewed September 13, 2026, 6:00 AM ET / 10:00 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR filters credential-expiry metadata in SQLite before loading it into JavaScript and adds regression coverage for unchanged deletion behavior. Merge readiness⛔ Blocked before merge - 2 items remain This remains a useful, focused optimization absent from current main and the latest release. No actionable introduced defect was found; the earlier merged optimization addresses a different query. Priority: P2 Review scores
Verification
How this fits togetherThe shared secret store holds saved credentials and temporary GitHub authorization records. Gateway maintenance periodically asks it to remove expired records while retaining ordinary credentials. flowchart TD
A[Gateway maintenance] --> B[Secret store cleanup]
C[Stored credential rows] --> B
B --> D[Deleted-row retention cleanup]
B --> E[Transient prefix and age filter]
E --> F[Exact name and expiry checks]
F --> G[Delete expired handoffs]
D --> H[Retained credentials]
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceSource +7, Tests +122. Total +129 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep expiry selection inside the existing store owner, with exact classification and retention semantics preserved and listed-owner participation recorded. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main materializes unrelated live credential metadata older than the cleanup threshold before filtering names. Runtime reproduction was not executed in this read-only review. Is this the best way to solve the issue? Yes. The query-level prefilter follows the existing listing pattern while leaving exact expiry decisions with their current owner; no schema, configuration, or public API expansion is needed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0d1cf24318b8. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
35eda9f to
9be9c68
Compare
|
@clawsweeper re-review The repaired head narrows the regression fixtures to the exact transient-prefix contract, preserves complete retained-row and deletion parity checks, and has refreshed focused/type/format evidence in the PR body. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Merged via squash.
|
* refs/heads/temp/pr-146883: (159 commits) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) ...
* refs/heads/temp/pr-146833: (43 commits) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) ...
* temp/pr-146802: (51 commits) improve: reduce worktree filesystem stalls and archive syncs (#146906) fix(ui): avoid extra chat rail work while replies stream (#146883) improve(ui): speed up populated Usage timelines (#146947) test(gateway): retain auth recovery failure diagnostics (#146925) fix(tests): create private temporary home directories (#146931) fix(backup): preserve discovery under concurrent state writes (#146912) fix: keep queued deliveries in their original state directory (#146917) fix(discord): settle voice waveform work before releasing input (#146885) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) ...
…ssion-list-roster-batch-20260913 * commit 'f513c0f345f7f2514c49ccfbc00adc3f78b9a755': (46 commits) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) fix: share Doctor lifecycle coordination with SQLite workers (#146714) fix: retain native session model provenance (#146801) fix: settle embedded transcript repairs before session cleanup (#146842) feat(macos): improve agent navigation and chat layout (#146531) ...
Additional instructions
Allow edits from maintainers is enabled.
What Problem This Solves
Resolves a problem where periodic Gateway cleanup materializes metadata for unrelated saved credentials while looking for expired GitHub setup and device handoffs. The unnecessary JavaScript work grows with the credential store.
Why This Change Was Made
Filter the two transient name prefixes in the owning secret-store query before materializing rows. Keep exact name classification and expiry decisions in the existing classifier. Deleted-row retention, all scopes and kinds, and the deletion transaction are unchanged. No schema, config, permission, or public API changes.
Production delta:
+7lines for the query boundary; tests:+122lines. The improvement is reduced metadata returned to JavaScript, without an index-seek, disk-I/O, or end-to-end latency claim.User Impact
The periodic cleanup does less unnecessary work as saved credentials accumulate. Setup and device handoffs expire on the same schedule, and other saved credentials remain unchanged.
Evidence
git diff --checkpass.import-meta-resolve; no caller-test pass is claimed. Required hosted checks remain pending.