perf(history): normalize archive query once per read #476

Merged
kakashi-forgejo-writer merged 1 commit from perf/archive-query-once into main 2026-11-14 23:39:14 +00:00
Collaborator

Purpose

Normalize the archive query once per read instead of once per entry. No indexing, new dependencies, changed matching semantics or authorization changes.

Delivery of saved experiment 0face2830893bcd01e9dc4ebe57b55e6bc8bfa3f, not a new nightly experiment. Requalified on main 41f4bcb7b37c8c8274971f0329c95166aed17914.

Verification

Candidate 00278ff50aee86573c8b521b7c3809f0397c4481:

  • supported plugin materialization succeeded
  • direct TypeScript tsc -p tsconfig.json --noEmit: exit 0
  • session-archive, archive-summary, archive-query-normalization: 4 passed, zero failures/skips
  • 500-entry synthetic archive through actual SessionArchives.create/read: query normalization calls 500 baseline -> 1 candidate; total 250, paginated IDs e2/e4/e6 and empty-query total 500 unchanged
  • git diff --check clean; isolated worktree clean

Artifacts: .night-experiments/2026-11-14-history-query-delivery/ in agent workspace. No full-suite run, independent improvement evaluator, merge or activation claimed.

Independent review requested

Please review exact commit 00278ff50aee86573c8b521b7c3809f0397c4481 and record reviewer identity, reviewed SHA and findings using the existing review process. Operator requires independent external review before integration/release/activation. This PR and green tests do not satisfy that gate. Do not change repository approval settings.

## Purpose Normalize the archive query once per read instead of once per entry. No indexing, new dependencies, changed matching semantics or authorization changes. Delivery of saved experiment `0face2830893bcd01e9dc4ebe57b55e6bc8bfa3f`, not a new nightly experiment. Requalified on main `41f4bcb7b37c8c8274971f0329c95166aed17914`. ## Verification Candidate `00278ff50aee86573c8b521b7c3809f0397c4481`: - supported plugin materialization succeeded - direct TypeScript `tsc -p tsconfig.json --noEmit`: exit 0 - session-archive, archive-summary, archive-query-normalization: 4 passed, zero failures/skips - 500-entry synthetic archive through actual SessionArchives.create/read: query normalization calls 500 baseline -> 1 candidate; total 250, paginated IDs e2/e4/e6 and empty-query total 500 unchanged - git diff --check clean; isolated worktree clean Artifacts: `.night-experiments/2026-11-14-history-query-delivery/` in agent workspace. No full-suite run, independent improvement evaluator, merge or activation claimed. ## Independent review requested Please review exact commit `00278ff50aee86573c8b521b7c3809f0397c4481` and record reviewer identity, reviewed SHA and findings using the existing review process. Operator requires independent external review before integration/release/activation. This PR and green tests do not satisfy that gate. Do not change repository approval settings.
Collaborator

Kakashi review — head 00278ff50aee86573c8b521b7c3809f0397c4481, base 41f4bcb7b37c8c8274971f0329c95166aed17914

review_clear

Kakashi review — head `00278ff50aee86573c8b521b7c3809f0397c4481`, base `41f4bcb7b37c8c8274971f0329c95166aed17914` review_clear <!-- kakashi-review:96cf711f79f6c9edea391cdc1c4926cc2f2f36a1348598e4a8edff48c4aab953 -->
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
harness/core!476
No description provided.