Important product, architecture, workflow, and operational evolutions, newest first. Each entry is added in a separate documentation commit after the implementation commit and cites full canonical commit SHAs. Update logged hashes after any history rewrite or squash.
Commits: b5d9ec4, bd09932 · Release: tag v0.3.0
0.3.0 is published to crates.io, npm and GitHub Releases, and the release was verified the way the
last one was: the published crate returns 200, all seven npm packages carry the version, and
npm install sctxx@0.3.0 in a scratch directory runs sctxx 0.3.0 with the new handoff subcommand in
its help.
It carries the two changes that were worth a minor: --llm defaults to none (ADR 0007 — the old
default was ~813,000 tokens and 81 model calls on a large session, silently), and sctxx handoff —
the main line for a program, printing {program, argv, cwd, artifact} for a caller to spawn, sharing
ExtractArgs::deterministic with the TUI's h so the two cannot disagree about what a handoff costs.
The interesting work was testing against the session the review used: 235 MB, 103,757 events, 274
user turns, written repeatedly to the reviewer's own .sctxx until the artifact was worth reading. Six
runs, six real defects:
- A "next action" was a single 2,808-character
cat >> … EOFheredoc — 42% of L0, quoting a script a reader cannot act on. - The next action after that came from
npm view, whose newest failure was evt 22,372 of 103,757. A failure 80,000 events before the session stopped is not something to do next. stale: 100in the header was 86 missing files plus 14 commits no longer reachable from HEAD — the history had been rewritten, and only the files had a finding.- 86 "cited files are gone" were mostly npm debug logs, because the session read them.
- The derived current step was the last command, which on a session that ended by writing a changelog
was a heredoc. It now prefers the agent's own plan: "wire TrustTier::Sandboxed into
ModuleHost::spawn" is a state; "
tail -60 docs/DEVELOPMENT-LOG.md" is not. - Stack traces quoted with their indentation read as damage.
L0 went from 1,660 tokens to 1,028 against the ~1,000 the review set, and now leads with four real findings before the goal.
And the half that costs tokens was verified too. Claude's own backend was rate-limited (which is what
produced the empty artifact the review examined, and why the health gate exists), so the fold was run
through --llm cli:codex over the window since the provider's last compaction: 19.8 s, 4 operations
accepted, semantic: ok. It produced exactly what the deterministic layer cannot — a current step
naming the user's last request, and three next actions with [evt 103727] provenance. The comparison is
in the CHANGELOG's reasoning and the point stands: the deterministic artifact is useful, and the fold
is what turns "the last command was tail -60" into "push the progress, re-point acryl-cli onto
createAcrylEngineHost, run the cold-start test". The fold has to earn that, and ticket 16 now says how
to measure whether it does.
Commits: 05d0308
The artifact the review examined was produced by a run in which every model call failed. Its
state.json says it plainly: items: [], ops_log: [], rejected: [], and all 41 chunks
processed. report.json adds fold_calls: 81, accepted_ops: 0, rejected_ops: 0, and 73
warnings. Claude's subscription had hit its session limit:
"api_error_status": 429, "is_error": true,
"result": "You've hit your session limit · resets 10:30pm"Three separate defects turned that into a confident-looking mode: standard handoff:
- The backend hid the reason. Claude Code exits 1 with an empty stderr and puts the reason in
its JSON on stdout, so every warning read
exited with 1:and nothing else. The backend now reads whichever stream carries it, includesapi_error_status, and treatsis_error: trueon a successful exit as a failure too — otherwise an error message would have been returned as the model's answer for the fold to parse. - The fold swallowed systemic failure. Every failure became a warning and the run continued, which is right for one chunk and wrong for all 81.
- Nothing classified the result. An empty semantic layer rendered exactly like a full one, under
a header that says
mode: standard.
The fix is a health gate. classify_semantic maps the fold's own counters to
not_requested | ok | degraded | unavailable, the front matter now carries semantic:, and L0 leads
with a notice when it is not ok. The run that prompted this now says semantic: unavailable and
tells the reader that nothing in it was summarised by a model. The ordinary deterministic path stays
clean — a warning printed on the normal path is how warnings stop being read.
Then the audit, because the review asked the right question. It wanted the call graph rather than
an argument from documentation, so every public item of src/vendor/codex/ was grepped for call sites
outside the vendor directory. docs/CODEX-PROVENANCE-AUDIT.md is the result, and it confirmed the
review's correction while finding something it had assumed and could not check:
- Used: truncation (23 call sites across masking, chunking, ledgers and rendering), secret
redaction (51), rollback-aware reconstruction (21, from the Codex adapter), the
apply_patchgrammar (10, from the file ledger), and the memory-extraction prompt. - Not used:
tiered_input::select— the tiered budget-filling algorithm — has zero call sites.Tierclassifies rows;segment::plancuts the recency tail at an episode boundary. The review's one hedge ("the evidence-selection machinery is real and operational") is half right, and the wrong half mattered: our own marketing table attributed a 300 MB session fitting in a prompt to a mechanism that never runs.
So the story was corrected at its sources rather than in a footnote: the DEVELOPMENT-LOG headline ("Codex compaction algorithm extracted"), the vendor manifest, the npm README's lineage table, and an annotation on ADR 0002 whose content was careful but whose title implied a single algorithm exists. Ticket 15 asks the question the audit raises — wire the selector in or delete it — with the evidence that would settle it.
The lesson is the same one as the main-line rework, one level down. A claim in a README is a product surface. Ours described a mechanism this repository does not run, and nobody would have caught it from the inside, because every test passed and every line of the code was real.
Commits: <pending>
The same sentence has to work for a person and for a program: grab any session from any agent →
extract its context → wire that context into a new session of any coding agent. The TUI got it with two
keypresses (h, then choose). This is the other half: one command, one JSON object, no ceremony.
sctxx handoff <ref> --json # who could continue this?
sctxx handoff <ref> --to claude --json
# {program, argv, cwd, artifact, route, fallback, reused, ran: false}
sctxx handoff <ref> --to claude --run # or let sctxx start itprogram + argv + cwd is the whole contract: a caller spawns it and the receiving agent starts
with the handoff already loaded. --run is there for a caller that would rather not. The TUI and the
CLI share ExtractArgs::deterministic, so there is exactly one definition of what a handoff costs.
ADR 0007: --llm now defaults to none. The measurement that forced it, from that same session:
masked rows: 17088 (812830 tokens)
chunks to fold: 40 (807372 tokens)
planned calls: 41 fold + 40 premap
813,000 tokens and 81 model calls, from a command documented as producing "a compact, verified,
provenance-linked handoff artifact", in a project whose first constitutional rule is deterministic
first. The deterministic artifact is the same session in 24 seconds and zero tokens, and it is
complete: every pointer resolves through expand. The fold adds typed items and decisions — real
value, and not a prerequisite for a handoff. It is now one flag away, which is the point: a decision,
not a trap.
A bug the accompanying test found. --dry-run reported planned calls: 1 fold for a --llm none
run — it was reporting what a fold would call rather than what the run will call. That number is
exactly what someone consults before deciding, so under none it now reports zero calls and zero
estimated prompt tokens. A dry run whose numbers describe a different command is worse than no dry run.
The agent-facing reference was updated too, because a capability an agent cannot discover is not
one: skill/references/cli.md now leads with sctxx handoff, its JSON shape, the exit codes, and the
note that the receiving agent gets the whole terminal.
Commits: 2d6fbc4
The critique was right and it was about fundamentals, not polish. Using the TUI as a developer
would — search a session, then try to get the context out — meant opening a form of nineteen flags,
typing at fields that silently ignored typing, and pressing enter, which did not mean "commit" but
"run". What ran was --llm auto → cli:claude. Measured on that session (--dry-run, no model
called):
events: 103727 (46634 active, 273 user turns)
masked rows: 17088 (812830 tokens)
chunks to fold: 40 (807372 tokens)
planned calls: 41 fold + 40 premap
About 813,000 input tokens across 81 model calls, started by a keystroke that looked like it meant "next field", with no warning and no way to stop it.
The block's own purpose was behind its own machinery. The main line is: grab any session from any agent → extract its context → wire that context into a new session of any coding agent. The handoff was that feature, and it required an extraction first — so the shortest path to the point of the tool ran through a form that was beside the point.
What changed.
his the feature. It works straight from a session: pick an agent, confirm, done. It performs the extraction itself. No form, no prior step.- The extraction it performs is deterministic (
--llm none). The deterministic artifact already carries every[evt a–b]pointer, every ledger and the recency tail, which is what a receiving agent needs — at zero tokens and in seconds. The fold is a deliberate choice made throughe, where it belongs, not a default to fall into. - The confirmation says where and what. The destination is resolved and shown in full
(
/Users/…/project/.sctxx), never as.sctxx/, because a relative path does not answer "where did that go?". The exact command is shown too —Launch::planworks out the argv without requiring the artifact to exist, whileLaunch::runstill re-checks it immediately before spawning, so ADR 0004's guarantee survives the display being honest. - An artifact already on disk for that session is reused, matched through
artifact::source_reference, so a handoff of something already extracted does not redo the work. - Keys say what they do.
entercommits a field and advances; running is a row at the bottom that the reader navigates to and can see ("run · mode standard · llm auto → cli:claude · writes .sctxx/"). Typing at a field that is not typed into now explains itself instead of doing nothing. While a run is going, that row becomes "stop", and the run is genuinely cancellable:Cancelis checked at every stage boundary and before every model call, because that is where the minutes are. - Three flags left the form, with reasons:
--formatand--progressdescribe stdout and stderr, and a full-screen interface writes neither (FR-004);--dry-runprints a plan and exits. The drift test asserts the exclusions in both directions, so a new flag forces a decision and a stale entry fails.
The lesson worth keeping: a feature can be complete, tested and correct while the reason anyone
would use it stays three steps deep. h did everything it promised and still did not do the job.
Commits: d3c854b
The loop is closed: find a session, understand it, extract it, read it, hand it on. An extraction now
switches the pane to the artifact at L0 with no further keypress (FR-016), c returns to it, layers step
by number or tab, and o opens an artifact you already have by path (FR-016a).
Two design points worth keeping.
- The canvas reads the artifact rather than re-rendering it. The layers are the headings the renderer wrote, so what is on screen is what is on disk — including for an artifact sctxx did not produce — and the ledgers come along for free because L1 already carries them. A viewer that re-rendered would show what sctxx would write, which is a different and less useful thing.
[evt a–b]pointing goes through one implementation, not two.pipeline::artifact::expand_rangeswas extracted andsctxx expandnow calls it, so FR-016's "through the existingexpandpath" is true by construction.pipeline::artifact::source_referencealso became the single answer to "which session did this artifact come from", which is what lets a colleague's handoff be followed at all.
A real bug the tests found. The canvas highlighted the top visible line as the one enter acts on,
which is a rule a reader can see and act on. But a document shorter than the window has nothing to
scroll, so a pointer on its second line was unreachable — permanently. The canvas now has a cursor the
window follows, and every_line_is_reachable_even_in_a_document_shorter_than_the_window is the
regression test. This is the second time a render test has found something a PTY capture could not:
the first was a truncated path, this one an unreachable line.
Confirmed again, for the third time: a PTY byte-stream capture cannot prove that something is
absent. The canvas footer rendered as 1-4 lyer · ab next · j/k scrol in a capture — ratatui's diff
skips cells that already hold the same character, so single letters vanish from the stream while the
frame is perfect. TestBackend render tests are the instrument; the PTY is for "it starts and does not
crash".
src/pipeline/artifact.rs also absorbed the artifact-resolution helpers that used to be private to
cli::discover, along with their tests, so sctxx expand and the canvas share both the code and the
coverage.
406 tests on --all-features, 309 on --no-default-features.
Commits: b00bea3
ADR 0004's three rows are verified rather than probed. Each agent was given a real 58 KB deterministic artifact, and each answered with the source session's id — which appears only inside the artifact, not in the pointer sentence sctxx generates. So the test is content-level: it shows the handoff arrived, not that a flag parsed.
claude --append-system-prompt-file <handoff.md> 12.0s exit 0 id returned
pi --append-system-prompt <handoff.md> 15.0s exit 0 id returned
codex exec "<pointer>" (read the file itself) 20.5s exit 0 id returned
Evidence: specs/024-m8-interactive-tui/evidence/T2419.md.
What failed is the part worth keeping. Neither interactive launch reached a first turn. Both stopped at the agent's own trust prompt for a directory it had not seen:
Quick safety check: Is this a project you created or one you trust?
Do you trust the contents of this directory?
That is correct, and it is precisely what --dangerously-bypass-... exists to skip — which is why sctxx
never passes it. In practice a handoff starts in the project the session was about, which the developer
has already trusted, so this is an edge case rather than the normal path. But the pane was promising
"this exact command will run" while saying nothing about the first thing the developer would actually
see, so the confirming pane now says it and a render test holds the wording. A measured surprise
should become documented behaviour, not a footnote in an evidence file.
Two things are left unverified and are recorded as such. First-turn delivery in the interactive form
past that prompt, and resumability — reaching either would mean accepting trust on the developer's
behalf, or launching into a live project and letting the agent start working. An attempt to verify
resumability by relocating Claude's home (CLAUDE_CONFIG_DIR) failed instructively: it relocates the
credentials too, so the run answered Not logged in. A session record was still written, which shows
the store is written independently of the model call, but that is not a resumable session.
Commits: 7e85bb6
The last mile is closed. From a session in the browser: e extracts it, h lists the agents
installed here, enter shows the exact command, and a second confirmation hands the terminal over to a
new agent session whose first turn already carries the handoff.
The seeding routes are ADR 0004's, per agent and version-pinned:
claude --append-system-prompt-file <path> "<pointer>"
pi --append-system-prompt <path> "<pointer>"
codex "<pointer>" (no such flag, so the cwd carries the context)
Three properties are enforced by tests rather than by care:
- The artifact travels as a path. Its contents never cross argv — asserted directly, and SC-006's
planted
rm -rf /is the test that would catch a regression. - An unverified version gets the fallback, with the pointer and no flags at all, and the pane names
the version that was verified. Nothing is guessed at, which is the whole reason
verified_againstsits next to the detected version. - A handoff that is missing, unreadable, or not a file fails before anything is spawned. Claude Code
answers an unreadable
--append-system-prompt-filewith silence, so without this check the developer would find out from the receiving agent.
ADR 0006 changes the plan, deliberately. The launched thing is not a shell — it is Claude Code,
Codex, or Pi, each a full-screen application. Embedding one means rendering it at half width inside
another TUI that also wants the alternate screen and the keyboard; that is why croft's terminal widget
is 5,108 lines. So the TUI restores the terminal, runs the child with inherited stdio, and re-initialises
when it exits. portable-pty, vt100 and tui-term leave the dependency list, and sctxx still owns
the child — spawns it, waits for it, reports its exit status — which is what FR-022 was protecting. The
spec's screen table and FR-022 were updated rather than left disagreeing with the code.
A real bug the render tests found. A long filesystem path contains no spaces, and the pane was
keeping the first line of it and silently dropping the rest — so "the exact command is shown before it
runs" was, for exactly the case that matters, false. The pane now breaks long tokens itself
(wrap_hard) instead of trusting a wrapper that drops the tail, and a_long_token_is_broken_rather_than_lost
asserts no character is lost. A related cosmetic bug fell out of the same test: a seven-character field
label ran straight into its value ({name:<7} with handoff), which is now {name:<8}.
Two halves of tasks are honestly not done and say so in tasks.md: re-redaction at egress (T2414)
and cancelling a running extraction (T2408). Both were split rather than ticked.
382 tests on --all-features, 308 on --no-default-features.
Commits: 9987b9f, 3c07471 · Release: tag v0.2.0
0.2.0 is released. It is the first version with the interactive TUI and with sctxx update, and
the first with MSRV 1.88. All seven npm manifests move in lockstep with the crate;
node npm/check-versions.cjs is the check, and it also verifies that release.yml still builds every
platform package, so a package cannot ship empty.
sctxx update exists because sctxx has two install channels. It decides from its own executable
path — a node_modules component means npm, cargo's bin directory means cargo install — and prints
the detection, the reason, and the exact command before running it. Two deliberate refusals:
- It does not guess. A distribution package, a container, or a checkout build is refused with both
installer commands named. The detection compares path components, so a checkout under
npm-stuff/is not mistaken for an npm install. - It does not use
npm update. That stays inside the range recorded at install time and cannot cross a minor version, which is exactly what 0.1.3 → 0.2.0 is.npm install -g sctxx@latestis used instead, andcargo installgets--force, without which it refuses to replace the binary it already has.
The agent detector is the first genuinely new component of M8. Nothing could be reused: agentman
checks only whether a store directory exists, and the launcher's catalogue carries no versions. It asks
whether the binary is on PATH, which matters in both directions — a leftover store directory must
not advertise an agent that cannot be launched, and a binary in an unusual place is an install even
with no store yet. Versions are read by running --version with a five-second cap, because a CLI that
hangs on --version must not hang sctxx. On this machine all three are found at exactly the versions
ADR 0004 was verified on, each reported as verified rather than assumed.
An agent at any other version is reported as installed with the fallback named. That is what
carrying verified_against alongside the detected version is for, and it is the difference between a
feature that degrades and one that guesses.
Small thread worth following: the PATH lookup moved to agents::find_program, and
llm::cli::find_executable now calls it, so the LLM backends and the handoff cannot disagree about
whether a binary exists.
Commits: ff97084
sctxx --tui now closes the loop: find a session, understand it, extract it. e opens an
extraction form, enter runs it, progress streams into the pane stage by stage, and the result reports
every file written, the handoff path, and the CLI's own git warning.
The form is not a list of fields — that is the part worth remembering. It is clap's definition of
extract, read back with ExtractArgs::command(), and submitting goes back through clap with
ExtractArgs::parse_argv(). So the form cannot gain a control the CLI does not have, cannot lose one it
does, and cannot accept a value the CLI would reject, because clap decides all three. Presentation is
derived too: clap's SetTrue makes a toggle and get_possible_values makes a picker, so there is no
table anywhere mapping a field to a widget. Two tests hold the line: one asserts the form's fields
equal clap's arguments exactly, and one asserts reference is the only positional — so a new
positional fails the test instead of silently disappearing from the UI.
Making that work needed the CLI's value spaces to belong to clap rather than to Rust, so --mode,
--format, --redact and --progress now declare value_parser. Side effect worth having: a bad
--format used to be caught after a full extraction; now it is caught before any work starts.
Two rules moved into the library so the CLI and the TUI cannot disagree.
pipeline::write_destinationowns what a destination means — a directory gets the full set, a.md/.jsonpath gets that one file — and returns the handoff path plus everything written. The CLI's writer is now four lines.git_track_warningreturns the CLI's warning as a string instead of printing it, so the pane shows the same sentence rather than a copy of it (FR-015).ExtractOptionsis built byExtractArgs::options(), shared byrun()and the form, so a form submission and a command line are validated by exactly the same code.
Two deliberate asymmetries, both of which the code states rather than hides.
- An extraction is not superseded the way a preview is. A preview is speculative and
jis a held key, so it is dropped when it goes stale; an extraction is started by an explicit keypress and its progress is the thing the developer is watching. - It cannot be cancelled once running. T2408 keeps only that half, and the pane promises nothing
it cannot do. Cancelling means threading a flag through
pipeline::extract.
A relative destination resolves against the session's project, not against wherever sctxx was launched
— that is what .sctxx/ means to someone who opened the TUI from somewhere else.
Tests. 50 TUI tests, 336 on --all-features, 275 on --no-default-features. The one that matters
is running_the_form_writes_a_handoff: it opens the form on a fixture, sets --llm none, presses run,
and asserts a real handoff.md with provenance pointers is on disk. The write_destination refactor
also gained a CLI test for the named-file destination, which nothing had covered before.
Commits: 6bb5501
The preview pane now shows what is in a session. It had been discovery metadata only — where the
file is, not what it contains. FR-009 asks for the contents, and the contents are the deterministic
ledgers: user turns on the active branch, live versus total events, the files the work was about, the
last command and its status, unresolved error signatures, provider compactions, and the diagnostics.
No LLM backend is reachable from that path; src/tui/preview.rs does not reference llm at all.
The three rules that make it usable are the transferable part, and each has a test that fails without it. They are worth knowing before building the extraction runner (T2408) and the PTY pane (T2415), which need the same shape:
- A 150 ms settle delay.
jis a key people hold down. Without the delay a held key asks for every session it passes, and each read is seconds. - A generation counter, not a queue of intentions. A superseded job is dropped before it starts, not read and then discarded. The test gates the first read and asserts the queued one never reaches the reader — the difference between a stale answer and wasted work.
- A bounded cache. A cursor resting on a session must not re-read it, and returning to one should
be instant. Eviction uses
BTreeMaporder, sinceHashMapiteration order is not deterministic.
A failed read is remembered as a failure rather than retried on every cursor pass, and the session stays selectable with its reason shown (FR-010). The event loop now polls on a 50 ms tick, so work that finished while the developer was reading appears without a key press — which is the same mechanism the extraction progress stream will need.
Compactions are now reported as re-anchors versus history discards. That distinction is what ADR 0002 exists to preserve: "the provider tidied up" and "the early history is gone" are different facts to someone deciding whether to extract.
Two engineering notes for later work.
Diagnostic::label()is new on the IR. The match is exhaustive, so a new diagnostic variant is a compile error there rather than a blank line in a pane.- A PTY capture cannot be trusted to prove what is on screen. ratatui's diff does not re-emit cells
that are unchanged, so a word can be partly missing from the byte stream while being perfectly
present in the frame —
contentswas absent from a capture in which the pane was drawing it correctly. The fiveTestBackendrender tests insrc/tui/ui.rsare the fix: they assert the frame's contents, which is also what catches clipping at 80 columns.
Measured while doing this: a warm discovery pass over the 643 real sessions on this machine takes 0.75 s, against SC-002's <300 ms first paint, and it completes before the terminal is even initialised. Progressive fill is therefore genuinely needed, and it is now T2404 with a number attached rather than an assumption.
Commits: db8e53f, a1b9c65, d7363e0, 97caaed
M8 begins: sctxx --tui browses sessions. The first slice of block
specs/024-m8-interactive-tui/ is the list you can narrow without knowing an id — fuzzy search over
title, first message, id and directory; agent/recency/project filters; a preview read from discovery
alone, so browsing never opens a transcript. MSRV moved 1.85 → 1.88 for the viewport crates
(ratatui 0.30.1+, ignore 0.4.31+); rust-version is per-package, so a feature cannot carry its own.
The TUI is behind a default-on tui feature that --no-default-features excludes. ADR 0003 decided
the stack — lighter crates, no croft code copied, so the MIT machinery exists and is unused.
Wayfinder tickets 12, 13 and 14 are closed, which is what gated block 024's plan. The two that were still open turned into ADR 0004 and ADR 0005 and are worth knowing:
- Seeding a fresh agent session (ADR 0004). Nothing was reusable: the maintainer's launcher has no
prompt, file, or stdin channel. The design is that the artifact never travels inline — only a
one-line pointer crosses argv, the artifact crosses as a path or over stdin — with a cwd fallback for
every agent that asks nothing of the agent and so cannot break. Two findings changed the design rather
than decorating it: Claude Code's
--append-system-prompt-fileis not in--help(only in the--bareprose, confirmed by argument parsing), and it fails lazily and silently on an unreadable path, so the launch must pre-check every path it names. A--versionprobe cannot test flag existence — version printing short-circuits before validation. - sctxx and agentman (ADR 0005).
sctxxkeeps the only scanner and owns discovery semantics; no code is shared either way yet; the boundary is the versionedlist --jsoncontract. A shared crate is deferred with a trigger (after block 022) rather than rejected, because freezing discovery now would version an API known to be incomplete.
The cli: backends were polluting the user's own session history, and that is now fixed. Every
cli:claude completion wrote a real session into ~/.claude/projects: the backends run in an empty
scratch directory so the agent cannot see the repository, but Claude Code records a session per working
directory, so the scratch cwd only named the pollution. sctxx list then showed sctxx's own fold
prompts as sessions. Each CLI has a switch for this (--no-session-persistence, --ephemeral,
--no-session); all three templates pass it, and a unit test fails if one loses it — the failure is
silent, so it has to be a test rather than a review. The templates also now record the CLI version each
argv was verified against, which the doc comment had promised since the table was written.
What later work must know: block 024's tasks.md is authoritative (T2401–T2402 done, T2403 gated
behind nothing and gating every pane); every seeding row in ADR 0004 is probed, not verified end to
end, and T2419 is the task that starts real sessions; sessions already written by earlier versions were
deliberately not deleted — they are in the user's store.
Commits: 2de85f0, c58e79c, d5c8a28 · Release re-runs: 34559661480, 34560054937
npm i -g sctxx installs the right binary. A wrapper package declares six per-platform packages
as optionalDependencies, each carrying os/cpu; npm installs exactly one and no Rust toolchain is
involved. Verified by installing from the public registry into a clean prefix and running sctxx doctor through the shim. The packages are unscoped (sctxx-darwin-arm64, not @sctxx/cli-* as
§14.3 proposed) because npm scopes need an organisation this account does not have; the command users
type is unchanged.
Two release failures that only the second and third runs could reveal. The first dispatch died
because the npm job checked out the tag, and v0.1.0 predates npm/ — the binaries already come from
build artifacts, so the job now takes only the recipe from the running ref, and the version from the
tag. The second died on aarch64-unknown-linux-musl with GLIBC_2.28 not found while CI's identical
cross build passed: a restored target/ carried build scripts compiled on the runner, which the
container cannot execute. Cross jobs no longer take a cache. Both publish jobs are now idempotent, so
a partially-failed release is safe to re-dispatch — which is how the six npm packages got out.
One npm name is still missing. sctxx-win32-arm64 is refused by npm's spam detection (a new
account publishing a burst of similar names). Six of seven published; Windows on ARM falls back to
the shim's cargo install message until a re-dispatch gets it through. Provenance is inconsistent for
0.1.0 as a result — npm versions are immutable, so that is recorded rather than papered over.
The first real session extraction paid for itself immediately. A 14,151-line Claude Code session (6,753 events on the active branch — the rewind resolution doing real work) extracted deterministically in 7.6 s, and two defects that no synthetic fixture had exposed fell out:
- Every artifact's header claimed
masked: 0, artifact: 0.token_countshardcoded both, so the line a reader uses to judge how much was thrown away said nothing was. Neither is computable where it was written: the masked count belongs to the pipeline, and the artifact's own size is the size of the text being rendered. Both now come from the caller, andmarkdownmeasures a first pass so the header can state its own size — the two passes differ by one token, far below the estimate's precision. git check-ignoreprinted git's errors at the user. Added hours earlier withCommand::status, which hands the child the parent's stderr, so writing an artifact outside a repository producedfatal: not a git repository— from a check whose normal answer is exactly that.
Also observed, not yet acted on: cli: LLM backends leave a real session in the user's store for
every call (five were visible in ~/.claude/projects, identifiable by their sctxx-llm-<pid>-<n>
temp cwd), because using the user's login requires using the user's config directory. They pollute
sctxx list. Excluding them from discovery is the obvious fix and needs its own decision.
Commits: c03e4b5328f63aa1c979dc8d2a6c728fa07260d0, 684382cad54a656a861c60f6154e7918f7e6a18c
The repository now lives where it looks like it lives. All work up to this point happened in a
Delta-managed worktree under .delta/worktrees/…, while the project's own directory sat on the
original Initial commit with a stale untracked copy of docs/, specs/, AGENTS.md, and
.specify/. Two trees, one of them wrong, is a trap: an agent that opens the obvious path edits
yesterday's code. The main checkout was fast-forwarded to origin/main after verifying that every
untracked path it held was either an older copy or a byte-identical duplicate (the two files that
looked unique, docs/clean-room-adapters.md and docs/contracts-and-pipeline.md, already exist as
.claude/rules/*.md), and the stale trees were backed up to /tmp/sctxx-migration-backup first.
269 tests, the vendor check, cargo package, and a fresh npm ci && vite build all pass in the new
location. .delta/ remains on disk (3.5 GB, ignored locally) until it is deliberately deleted.
The last trace of that layout left the tests. tests/pipeline.rs normalized snapshot paths by
matching the fragments .delta/worktrees and tests/fixtures, then discarding the line and keeping
its last path segment. That encoded one machine's layout into the corpus and mangled the content it
was supposed to pin — the L3 retrieval line snapshotted as <path>/basic.jsonl\`` rather than the real - `…/tests/fixtures/claude/basic.jsonl`. Normalization is now anchored on CARGO_MANIFEST_DIR`.
extract --out warns when git would track the artifact. An artifact quotes the session — user
messages verbatim, paths, error output — so writing it into a repository leaves it one git add -A
away from being committed and pushed. Spec §19 item 6 asked whether sctxx should edit the user's git
config; the answer is no, but silence is worse. extract now asks git check-ignore (read-only, on
the §10.1 allowlist) and, when the answer is "not ignored", prints the reason and the exact command
that fixes it — on stderr, so stdout stays the artifact path. This is the first thing a new user will
see, because it is on their first real run.
Commits: c8678dedb7a9145014ee8cf3c328e417258394ba, 58c4315c65485cab1225157adb1b8b6afc64c178
Two of the three items left open at the v0.1.0 release.
The vendoring pin is real (ticket 11). Fetching
818f1cca8ccf8899f0f4d59336baebaccf358eed directly resolves it the opposite way from how the ticket
was written: the commit exists (dated 2026-09-10, matching the spec), every upstream path in the vendor
manifest is present at it, and the symbols the ports keep are there — including the sk-…/AKIA…
regexes, serialize_tiered_input with its 2 000/10 000 caps, and a nine-line prompt.md. This
corrected a claim made in this repository's own research: window_number on CompactedItem,
compact_token_budget.rs, and compact_remote_v2.rs are all in the pin, so the windowed-compaction
behaviour the ADR depends on is grounded in the pinned source rather than in a newer build. The narrow
real problem was the unversioned codex/ clone, which src/vendor/codex/README.md now labels as a
reading aid and never as provenance.
The fold now sees what the provider concluded (T0604). Spec §7.2 says native compactions are seeds
and §7.3 renders them as masked rows; only the row half existed. A chunk a few turns after a compaction
boundary saw nothing of what came before it, and nothing told the model the text was the provider's
lossy leftovers. fold_user version 2 adds a PRIOR PROVIDER SUMMARIES (LOW TRUST) block — summaries
strictly before the chunk, oldest first, the three most recent, 400 tokens each — with an explicit
"corroborate anything you act on, an item still needs a source range from this chunk" instruction. A
boundary left encrypted or never written is reported as unreadable rather than dropped.
What is still not proven: the seed block is justified by construction and unit tests, not by a
measured probe score, and its caps are reasoned defaults. Until M5's eval harness exists, prompt
changes cannot be shown to help rather than distract. That is the next real milestone, and
specs/000-wayfinding/map.md now names it as the destination.
Commits: 0b81048d81808574c86437e4290f89c629cde40e, f9591fdf9a9193134bef924d6e4870cadbd9f97b,
8105fb71889833ab96e0b57e92ad1618e7845656, 1fc1848ff2c48a4322b91de9da8c400fcb7d0093,
3a458a5159fe517fccffee5ca7d8d7c2acb8a265 · Tag: v0.1.0 · Release run: 34554821224
The first public release. Everything below was found by shipping — none of it showed up in the local gate, which is the point worth remembering.
Published. cargo install sctxx installs 0.1.0 from crates.io (verified from a clean root, and
the installed binary extracts a fixture correctly). Six target archives — macOS x86_64/aarch64,
Linux musl x86_64/aarch64, Windows x86_64/aarch64 — with .sha256 sidecars are on the GitHub
Release. The documentation site deploys to https://handyutils.github.io/sctxx on every push that
touches website/. CARGO_REGISTRY_TOKEN is now a repository secret, so a tag publishes without a
local token.
Three bugs only CI could see, all fixed:
- The crate shipped the website's
node_modules. Cargo matchesincludethe way gitignore does, so the bareREADME.md,LICENSE,NOTICE, andCHANGELOG.mdentries matched at every depth: 187 files instead of 66, 118 of them JS dependencies. Anchoring every entry to the package root fixed it, and CI now fails on any file outside the expected set (fixf9591fd). -D warningsbroke the minimal build. CI setsRUSTFLAGS: -D warningsfor every crate, which turned two latent warnings oncargo test --no-default-featuresinto errors:src/llm/api.rscompiled its parsing helpers and theCapabilitiesimport with theapifeature off, andtests/adapters.rsimportedadapters::sourceunconditionally while only the.jsonl.zsttest used it. Both are now gated with the feature (fix8105fb7).- Windows could not check out the repository. A zero-byte file named
tests/snapshots/pipeline__*.snap— a literal*in a filename — madegit checkoutfail with exit 128 before the build started. Deleted (fix8105fb7).
A cross-platform determinism bug that only Windows exposed (fix 1fc1848): the pipeline snapshot
expects Session source hash: 5eb5de4 and got 8ac319b. source_hash is the sha256 of the session
file's bytes, and with git's default core.autocrlf=true Windows checks fixtures out with CRLF. A
.gitattributes pinning * text=auto eol=lf fixes it and protects any future binary fixture. This
is the class of bug that cannot be caught on one platform.
An unsourced claim removed (fix 3a458a5): the README and site advertised "212 MB / 94,164 events
→ 61 KB handoff / 7.6 s" with no evidence file, no command, and no corpus behind it. Replaced with a
measured run on the M1 Max against a synthetic 302 MB session — 141,409 events, 288 user turns →
7.9 KB handoff in 5.0 s, zero model calls — recorded in
specs/004-m1-deterministic-handoff-skeleton/evidence/perf-synthetic-2026-09-11.md. The evidence also
records the real constraint: ~1.06 GiB peak RSS, about 3.8 bytes per input byte, which leaves little
margin above §16's 400 MB budget for a 100 MB session. Do not print a performance number without
running it.
Process debt carried forward: TDD's RED step was not observed as a separate run for the compaction
slice (specs/006-m2-codex-adapter/evidence/T0601-T0603.md records the gap), and T0604/T0605 remain
open in that block.
Commits: 0b81048d81808574c86437e4290f89c629cde40e
The research entry below identified two dead wires: NativeCompaction could not say whether a provider
boundary was a window re-anchor or a real history reset, and --since-compact (spec §3.4) had no flag.
Both are now closed, and the Codex compacted path is exercised by a fixture.
- IR:
NativeCompactiongainswindowed: bool(serde-defaulted, so an olderir.v1document still deserializes). Codex sets it fromcompacted.payload.window_number; every other adapter defaults to a reset, which is correct for Claude Code'sisCompactSummaryand Pi'scompactionSummary. - CLI:
extract --since-compactstarts at the newest reset when the session has one, otherwise at the earliest re-anchor, keeps the boundary event as the low-trust seed, and leaveseventsuntouched soexpandstill resolves every[evt a-b]pointer. A session that never compacted is a stderr notice with exit 0, never a failure. - Bug fixed: a
compacted.replacement_historymessage envelope nests its text undercontent, so a local compaction summary was previously read as an empty string. Nesting is now walked, bounded to eight levels so a corrupt session file cannot exhaust the stack. - Snapshot churn: exactly one added line (
"windowed": false) in each of the three existing compaction snapshots, reviewed individually, plus one new snapshot for the new fixture. - Still open in this block: T0604 (pass provider summaries to the fold as low-trust seeds — a
versioned-prompt change, deferred to its own slice) and T0605 (
prompts/baseline_codex_compact.md, M5-gated on the eval harness). Both are recorded unchecked inspecs/006-m2-codex-adapter/tasks.md. - Process debt recorded: RED was not captured as a separate failing run for T0601–T0603; the tests
were written alongside the implementation and the pre-change observable is stated in
specs/006-m2-codex-adapter/evidence/T0601-T0603.md. Do not let this become the habit — the methodology's RED step is what proves a test can fail.
Ledger: specs/006-m2-codex-adapter/ (spec, tasks, evidence).
2026-09-11 - - Codex context-management and extraction primitives ported; the compaction reuse boundary established.; the reuse boundary drawn
Commits: 7e814ef08d518aad2f645a702afa441d533bf039
The specs existed but the Codex side of the design was an assessment, not a reading. This change reads the reference clone's compaction path end to end and records what sctxx actually takes from it.
Findings that later work must honor:
compactedlines have two meanings.window_number == null(with areplacement_history) is a legacy history reset;window_number != nullis a window re-anchor that leaves the full transcript intact. sctxx's adapter emits the right event in every case — including the empty-messagecase, becausestr_fieldfilters empty strings — butNativeCompactiondoes not record which kind it saw, so--since-compactis currently undefinable. Ticketspecs/000-wayfinding/issues/05-codex-compacted-readability.mdis resolved; the IR change is scoped as candidate tasks T0601–T0605 inspecs/006-m2-codex-adapter/research.md.- Codex now ships a summarization-free compaction path. Token-budget compaction replaces the window
with canonical context plus retained evidence and writes
message: "". That is the upstream equivalent of sctxx's--llm noneartifact, and it needs no new mechanism here. - Two dead wires were found in the shipped code.
Session.native_compactionsis populated and read by nothing, so spec §7.2's "low-trust seeds" reach no consumer; and--since-compact(spec §3.4) has no flag. Both are in the candidate task list (T0604, T0605). - An anti-pattern to avoid: Codex's tiered budgeting returns an empty evidence string when the render still exceeds the budget. sctxx budgets must fail soft to the deterministic artifact.
- A provenance problem: the
codex/reference clone is a0.0.0-dev, ≥0.120-line build with no.git, so the pinned commit asserted inAGENTS.md, spec §2.3/Appendix A, the vendor README, and every vendored header cannot be verified. Filed asspecs/000-wayfinding/issues/11-codex-vendoring-pin.md; must be resolved before the M4 publish.
Decision record: docs/adr/0002-codex-compaction-algorithm-reuse.md. Evidence:
specs/006-m2-codex-adapter/research.md. Spec §19 item 2 is annotated as resolved.