Repository navigation
SOW-0122: fast --list-invocations and stock IDX alignment; track remaining CLI gaps #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ktsaou
wants to merge
26
commits into
sow-0160/xz-dictionary
Choose a base branch
from
sow-0122/journalctl-perf
base: sow-0160/xz-dictionary
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
993649b
Bound the invocation prefilter and align table IDX like stock
ktsaou 3865030
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou a89ed6b
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou f6be9b7
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou 27c3cf4
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou 1c6105d
Drop the trailing space inside a code span in SOW-0168
ktsaou b258c60
Remove trailing spaces inside Error: code spans in SOW-0122 and SOW-0168
ktsaou cad658a
Record SOW-0122 reproduction, aggregate results and full validation; …
ktsaou 17ddf44
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou 2f11219
List SOW-0166, SOW-0167 and SOW-0168 in the backlog order
ktsaou 667bedb
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou 247c8aa
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou e86de84
Record the user decisions for SOW-0122 and SOW-0168
ktsaou bcb5acf
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou 9fb8790
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou 86ca4e3
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou 4cdc466
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou 1dfff84
Apply 2026-11-03 backlog decisions to the SOW ledger
ktsaou b19938a
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou 334107a
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou 2a02a0f
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou e413409
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou f9399a6
Restore SOW ledger entries lost in the stack merge
ktsaou bd5957e
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou b16d4db
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou cffcb3d
Merge branch 'sow-0160/xz-dictionary' into sow-0122/journalctl-perf
ktsaou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
425 changes: 425 additions & 0 deletions
425
.agents/sow/done/SOW-0122-20260621-journalctl-performance-followups.md
Large diffs are not rendered by default.
Oops, something went wrong.
246 changes: 0 additions & 246 deletions
246
.agents/sow/pending/SOW-0122-20260621-journalctl-performance-followups.md
This file was deleted.
Oops, something went wrong.
87 changes: 87 additions & 0 deletions
87
.agents/sow/pending/SOW-0166-20261101-directory-realtime-seek-cost.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| # SOW-0166 - Directory Realtime Seek Cost | ||
|
|
||
| ## Status | ||
|
|
||
| Status: open | ||
|
|
||
| Sub-state: measured gap from SOW-0122; not activated. | ||
|
|
||
| ## Requirements | ||
|
|
||
| ### Purpose | ||
|
|
||
| Directory realtime seeks (`--since`, `SeekRealtimeUsec` on directory readers) | ||
| should cost about what stock does, independent of how many entries precede the | ||
| target. | ||
|
|
||
| ### User Request | ||
|
|
||
| Follow-up of SOW-0122 measurement (performance contract in `AGENTS.md`). | ||
|
|
||
| ### Assistant Understanding | ||
|
|
||
| Facts (SOW-0122, `.local/sow0122/report.md`, 300-file 1.5M-entry directory): | ||
|
|
||
| - `--since/--until` 60 s window mid-directory: Rust 3.54 s, Go 3.46 s, stock | ||
| v262 0.21 s. `--since` at the last minute: Rust 17.3 s, Go 5.4 s, stock | ||
| 0.16 s (one-off run). Single-file seeks are at parity. | ||
|
|
||
| Inferences (unverified): | ||
|
|
||
| - Rust `rust/src/journal/src/directory.rs` `fill_candidate` (around lines | ||
| 375-392) may step and discard older entries file by file instead of seeking | ||
| each file by realtime or skipping files whose tail is older than the target. | ||
| The Go directory path is not traced yet. | ||
|
|
||
| ### Acceptance Criteria | ||
|
|
||
| - Trace both languages, fix the per-file positioning to use journal-native | ||
| realtime seeks (entry-array bisection) and header head/tail bounds. | ||
| - On the SOW-0122 300-file directory fixture and procedure (SOW-0122 | ||
| Implications And Decisions: 3 runs, median wall time), the 60 s | ||
| `--since/--until` window and the last-minute `--since` each run in at most | ||
| 2x stock's median, or under 0.5 s when stock is below 0.25 s, in both | ||
| languages (proposed gate, agent-chosen; confirm at activation). The query | ||
| matrix and directory matrix still pass. | ||
|
|
||
| ## Analysis | ||
|
|
||
| Pending activation. | ||
|
|
||
| ## Pre-Implementation Gate | ||
|
|
||
| Not started. | ||
|
|
||
| ## Implications And Decisions | ||
|
|
||
| None yet. | ||
|
|
||
| ## Plan | ||
|
|
||
| Pending activation. | ||
|
|
||
| ## Execution Log | ||
|
|
||
| ### 2026-11-01 | ||
|
|
||
| - Created from SOW-0122 measurements. | ||
|
|
||
| ## Validation | ||
|
|
||
| Pending. | ||
|
|
||
| ## Outcome | ||
|
|
||
| Pending. | ||
|
|
||
| ## Lessons Extracted | ||
|
|
||
| None yet. | ||
|
|
||
| ## Followup | ||
|
|
||
| None yet. | ||
|
|
||
| ## Regression Log | ||
|
|
||
| None. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.