@volter/supercode-interchange
v0.1.40
Published
Harness metadata, lossless transcript codecs and session projections for Supercode
Readme
Supercode interchange
The ./parity-report subpath owns the frozen capability/orchestration ledger
report printed by supercode harness parity. The native evidence-audit helpers
retain their configuration/tool/runtime consumers and read the same unchanged
ledgers. This report does not execute the evidence resolver or verify runtime
support. Original records and
current-main recordings
retain their distinct source and native/handoff scopes.
The ./ontology-contracts subpath owns the committed schema and operation
inventory printed by supercode ontology schema|operations. Record-specific
definition sets and native JSON numeric facts are retained. The orchestrator
type generator and harness SDK operation generator read these contracts by
default; an explicit SUPERCODE_BIN still selects an external product's output.
The native schema functions and derives retire. Native serde models and operation
execution retain their unported runtime/codec owners. Original records
and current-main integration
retain distinct scopes; schema availability is not runtime support.
Read-only metadata and discovery projection for the daemon-owned session index in TypeScript architecture step 4. The port branch routes discovery and index windows through this library and the Teams owner. Dated private Mac/Windows observations cover selected small homes; publication, all-format and large-home qualification remain open.
The ./session-model subpath supplies the step-5 read service's typed message
and retained-session representation, native raw-line framing, normalized views,
projected message windows, inline-media elision and recorded profile history.
Source metadata is separate from provider-facing message serialization. Bounding
a display view keeps its raw records and imported count; a view is not an export
or a continuation artifact. The port branch's public load/follow handlers now
use these readers through caller-owned worker lanes; shared Rust models remain for
the native consumers named in the architecture plan. No runtime qualification
is claimed for these new helpers.
The read-codec slice has named document and store readers in
./session-codecs. They preserve raw text, native
message extensions, tool pairing and source metadata; the Goose store read
uses one read-only DB/WAL snapshot and refuses a changed source. They do not
own a native parsing process. The ./session-read service selects a structural
reader and never falls back to Rust. These readers
have source and syntax checks only, with no runtime
qualification claimed.
The same entry point exports registerSessionReader for caller-owned
teams-log: byte readers and loadClaudeHistoryWindow for bounded Claude
history pages. Teams consumes these and the document codecs through its declared
interchange dependency, including when installed from an npm tarball.
Hermes selects only native active rows for replay while retaining inactive rows
in its reconstructed raw container. Its lineage, trigger, surface and profile
interpretation is shared with the metadata reader; recorded lifecycle and
message timestamps retain their separate native rounding rules. No Hermes
write tier is introduced.
Grok separates user/system envelopes, assistant tools and screenshot results
from raw reasoning/backend records. Its portable residue is verified using the
existing BLAKE3 digest contract before restoration; missing-record summaries
name the lost residue. Path/summary overlays belong to the read service slice.
Claude selects its active graph branch and compacted history before decoding
messages, retaining exact reasoning blocks, tool outcomes, media and creating
record provenance. Semantic views name disconnected or degraded graph segments;
strict reads refuse a reconstruction they cannot establish. Its file reader
attaches native subagent transcripts and verifies the main and child file
identities. Its scoped index retains graph references and ordering/count
skeletons while materializing only requested assistant groups and summary
messages. The file handle closes before the result leaves the scope. The
public read/follow handoff has scoped private Mac/Windows observations;
these do not qualify a large corpus, native children or remote admission.
Codex has separate model-context and bounded display-history readers. The
model reader retains compaction replacement, turn grouping, reasoning and
native typed-input pairing; the display reader projects durable TurnItems or
legacy typed events with human-boundary anchors. Context and hook classification
is shared between both. Hook XML is parsed by the pinned saxes dependency;
source checks do not establish XML or display runtime parity. These additions
are used by the public load/follow path on this port branch.
Plain Codex options/loadWindow reads fold individual JSONL records into a
private disposable SQLite index, retaining four unchanged source fingerprints
per reading worker. They reconstruct only the requested page and summary;
changed sources rebuild their index. Transcript length no longer requires one
string. Individual record/message representation limits still apply. See
the window decision.
Pi's active parent chain retains compaction flags, native signatures and
message clocks, custom messages and source-native entry ids. Its OpenClaw
dialect follows recorded leaf redirects, excludes side appends from default
leaf selection and keeps vendor references inert. Unknown Pi image shapes
remain raw-only, following the existing reader's refusal to synthesize image
data it cannot establish. These are read-library additions, with no new
OpenClaw write tier. The observation above covers a small recorded leaf branch,
not every native compaction or side-append shape.
OpenCode's envelope and export-document readers share creation/id ordering,
compaction boundaries, portable message extensions and task-child provenance.
Completed tool parts split into calls/results, retaining masked original output
and attachment content. Its SQLite reader reconstructs native columns, reads
the external revert sidecar and verifies both identities; malformed JSON columns
remain diagnostic. Legacy JSON-tree directories retain their native
unsupported-source refusal. The small envelope observation does not qualify
concurrent SQLite/revert changes or all compaction/tool shapes.
Foreign-store snapshots share a 256 MiB cumulative row charge across scalar,
iterator and array reads. Accepted native rows remain complete; capacity
refuses the snapshot with the existing unreadable-session code. Failed close
keeps the exact owner and refuses successor snapshots. The
row-admission source record
separates this charge from SQLite's own allocations and runtime qualification.
The path layer selects formats structurally, pins native store selectors and
reads compressed transcripts through Node's zstd support.
The read library admits compressed input, decompressed output and an individual
physical record at the smaller of Node's Buffer capacity and four times its
single-string UTF-16 capacity. Oversize reads refuse with SESSION_UNREADABLE
at that byte budget; accepted bytes stay complete and this
reader does not modify the source. This bounds these byte owners, rather than
the reconstructed graph or total process memory. The
admission record
states current qualification limits.
Native sidecars
validate framing and retain malformed appended turns as raw parse loss.
They keep the foreign source-message/raw-record boundary separate from the
already-persisted message boundary. Same-format exports construct foreign
records for every continued turn; later sidecar saves append only new turns.
Private native turns never stand in for stock harness records. OpenCode
continuations reserve retained message/part IDs and continue whole-conversation
position markers, including tool results. The export contract
describes provenance, durable reduction and deterministic synthesis.
Recorded authored-data operations
retain save/reload/full export, durable inverse and repeated OpenCode export,
including the first incorrect literal-path reads and their correction. They
do not establish vendor import, Agent continuation, Windows or release support.
Grok summaries and OpenClaw path profiles keep their source meanings. Display
reads retain the native byte-window, human-anchor and fixed-byte-anchor rules;
those bounded views remain unsuitable as continuation artifacts. Public
load/follow uses ./session-read on this branch. Its TypeScript follower pins
the store selector, compares filesystem identities and reports snapshot,
append, rewrite and recoverable-error events. Cold follower opening performs
one selection read followed by a fingerprint-bracketed pinned read. Changed
full-history Claude files can reuse a conservative append projection after
comparing every old prefix byte. Partial, tool, branch, assistant-chunk and
companion changes retain the canonical full loader. This optimization has
source/syntax checks only, with no runtime qualification yet.
The npm stdio router and the machine's harness streams use caller-owned load
and follow worker lanes from @volter/supercode-teams/session-read-client.
Large parsing jobs do not run on their routing thread. Each stream owns its
subscriptions; response admission precedes activation, and close terminates
its workers. The machine rechecks operator authority before content leaves
an asynchronous read. Runtime-state events use authenticated loopback
frontend.v2.describe with an observe narrowing header, not transcript
activity. This read-only probe does not retire runtime receipts; the retained
registry owns that behavior until its later replacement. No Windows caller
authority implementation or runtime qualification is implied by this slice.
The SDK checks the read capability before moved requests; an older service
refuses explicitly instead of supplying a native read. Its catalog and other
retained operations remain independently available on the same client.
./session-claude-runtime folds the complete recorded Claude runtime manifest:
posture, cron/wakeup results, queue references, async child outcomes and
verbatim runtime residue. It validates forward references before exposing
posture and neither fires schedules nor launches children. The public
sessions.recorded_config door uses that full fold, leaving permission mode
unknown if unrelated runtime records are malformed. Codex policies (approval,
reviewer, sandbox) come only from recorded headers, with opaque values and numeric tokens retained. The
capability's recorded_config marker distinguishes this moved method from
older read services; retained methods and startup remain available after a
refusal. Private Mac/Windows observations
cover recorded posture/policies through npm and operator streams, including
unknown posture for malformed records. The manifest's other branches,
corpus/scale, concurrent reads and independent source review remain open.
Plain Claude and Codex recorded-configuration reads retain append-validated header and runtime folds. Unchanged reads parse no old records; appended complete lines extend the folds, while an unfinished final line belongs only to its current answer. Permission mode still requires a valid complete runtime reconstruction. A runtime call that retroactively names an earlier result rebuilds the fold; replacement, truncation and prefix changes use the existing append-scan validation. The configuration cache keeps at most 32 files and charges 400,000 retained reference/runtime entries, with the current-scan exception used by Claude scans. It retains no ordinary message bodies. Claude option-based message windows now share the retained replay scan, including native metadata residue. Requested payloads still cost their returned size; no full-session payload cache is added.
Daemon one-shot reads share a retained worker across caller transports. A caller's deadline rejects its wait without terminating that worker; duplicate pending reads share one parse, and 64 distinct reads bound the pending queue. Followers keep their own subscriptions. Closing a caller stream releases its followers, while a daemon-owned scan finishes against its bounded file snapshot. One-shot mail enrichment retains no resolved history: at most 16 in-flight session reads are shared, with a 250 ms optional wait per result. Follower histories are removed when their last subscription ends. Parse-fold retention is independent. Actual worker failure and daemon shutdown still release its state. These are source changes; large-transcript runtime and deadline qualification remain unperformed.
sessions.launch_agent reads <harness home>/supercode/launches/<session id>.json
in the same caller-owned load lane. Claude projects and Codex sessions
ancestors select the transcript's recorded home, independent of current vendor
defaults; no transcript must exist. Unsupported locators, unsafe ids, absent,
invalid UTF-8 or malformed records, and nonobject environments return null.
The environment is recorded metadata, never caller authority. The new
launch_agent capability marker refuses older read services explicitly.
Native runtime launch-record writers remain for their separate replacement.
Private Mac/Windows conversations
record selected-home answers and null malformed metadata through npm and
operator streams; concurrent path/record replacement and runtime writing remain
unqualified.
sessions.locate { harness, session_id } finds the conversation a harness
holds under a native id by that harness's own storage rule, with no listing
(ADR 0263): Claude Code's <id>.jsonl in the one project folder holding it,
Codex's rollout ending -<id>.jsonl. It answers found with the locator,
not_found, or unsupported for any other harness; its locate capability
marker refuses older services.
sessions.resume_instructions reads the complete selected transcript before
returning a structured launch. An explicit cwd wins over the transcript's
recorded cwd, then .; the locator supplies the harness and session id.
Default and explicit yolo policy use the shared generated startup table.
Grok receives its resolved default home only when that home is a symlink and
no explicit GROK_HOME was supplied. This returns arguments and environment;
it neither starts a harness nor writes a session or permission configuration.
The separate resume_instructions capability marker refuses older services.
The private Mac/Windows record
retains eight harnesses' specifications, cwd/environment cases and older-service
refusal through npm and loopback operator streams. Installed sets, actual live
resume and full-corpus qualification remain open.
The public @volter/supercode-interchange/pricing export owns the shared pinned
2026-10-03 model rates, literal model selection, paired rate overrides, cost
arithmetic and exact u64 counters. standardPrice, builtInPrice,
resolvePrice, costUsd and recordedCostUsd return fresh values;
recordedTokenTotal and addRecordedTokens accept bigint, canonical decimal
strings and safe integer Numbers, refusing unsafe or invalid counters. Checked
and wrapping operations retain the native u64 behavior. The __pricing npm
door transports IEEE-754 bits and decimal counts for native callers; runtime
budget gates remain native. This is a fixed snapshot, with no live-price or
provider billing claim. See the declarations,
ownership decision
and extraction record.
sessions.usage reads a complete lossless session in the load worker and groups
recorded tokens by the native day prefix and model. Claude keeps the last usage
record for each response id; Codex separates successive cumulative totals and
cached prompt deltas. Unknown models retain cost_unrecorded rather than a zero
price. Costs use the pinned 2026-10-03 native rate snapshot, including cache TTL,
fast-mode and inference-geo factors; this is not a live pricing feed. Exact u64
wire counts are retained independently of JavaScript number rounding. A separate
usage marker refuses older read services without closing their catalog lane.
Runtime budgets retain their separate native consumers.
Private Mac/Windows conversations
record small Claude/Codex usage and refusal examples through npm stdio and
loopback operator streams. Other-format/runtime corpus, concurrent replacement,
scale, remote revocation, all pricing/time branches and a new Windows native
artifact remain unqualified; these records do not establish an installed set.
sessions.spend reads recently modified Claude/Codex transcript tails in the
caller-owned load worker and counts child use on each parent. Its tail stop is
ten minutes before the requested window; Codex additionally keeps a preceding
total and model. Machine spend filters Claude usage before the last-response-id
fold, while per-session usage filters afterward, preserving their distinct
contracts. Costs use the same pinned rate snapshot. Counts stay exact on raw
wire frames; SDK JavaScript numbers can round. Totals count all sessions before
the requested row limit. Live registry names and enrolled-machine addresses are
display metadata, never proof of caller authority. A separate spend marker
refuses an older service. The npm sessions usage command uses this reader
without requiring a native accounting handler. Runtime budget gates and shared
native record readers retain their own consumers.
Private Mac/Windows spend records
cover small parent/child, tail-boundary, sort/limit and refusal cases through
npm and loopback operator streams, plus the new Mac native CLI handoff.
Large corpus, concurrent changes, every live-name/address branch, installed
sets and new Windows native forwarding remain unqualified.
resolveHarnessHomes follows native HOME-first defaults and preserves explicitly empty harness-specific
home values. projectMetadata applies workspace scope, native lineage, repository-family, profile, time and
metadata-search filters with stable newest-first ordering. It clones raw rows before descendant roll-up.
projectMetadataPage returns the existing hex JSON tuple pagination cursor and coverage receipt; a cursor
whose row no longer matches is refused. These helpers neither read conversation previews nor imply that a
metadata page is an enriched public discovery response.
Workspace matching follows path components, includes directories linked directly into a subtree without widening it to an ancestor, and preserves Hermes/OpenClaw's literal exact-directory matching. Repository family matching reads Git common-directory and origin files without spawning Git.
Internal readers cover the seven file-backed formats and the four native stores. File results keep verified fingerprints with their append offsets; compound rows also check auxiliary identities. Store snapshots are read-only and observe DB/WAL changes. OpenCode and Goose compare native row marks; Hermes retains mirror facts for query-time selection; orchestrator rows keep routing keys and the source change cursor. Codex names and history topics, and late Claude rename aliases, have separate append-aware ledgers.
readSourceJson(path, metrics, previous) can reuse an earlier result produced by
this process when the current open file has the same fingerprint. The handle
and path are still verified, and readability failures remain failures. A copied
or deserialized result is reread: native integer-versus-float facts belong to the
original parsed object. The machine owner keeps this raw cache in memory and
persists only derived registry facts. Source and package evidence
does not establish runtime or scale performance.
Bounded preview readers preserve source roles, provenance, native message cursors and Codex's adjacent event/response pairing. Preview search enriches eligible rows before pagination. These readers and discovery projection are connected to the owner; their presence is not a runtime or Windows qualification.
This package requires Node 22.15 or newer. It does not start a native harness, change a vendor home or own a database. The machine daemon owns index state and subscriptions.
The machine-tree journal fold is exposed at session-machine-tree; the Teams
reader combines it with fresh local process/registry facts. Public
sessions.tree uses the caller-owned load worker and requires its separate
tree capability marker. The CLI and daemon writer share that TypeScript
reader; lineage records and remembered names grant no caller authority.
Private Mac/Windows tree observations
cover small registry/history inputs, the public SDK/CLI/operator doors, journal
rollover/heartbeat and an in-progress daemon offer at shutdown. The new Mac
native CLI handoff is operated; new Windows forwarding, real vendor/runtime
corpus, automatic scheduling, concurrency, scale and installed sets remain
unqualified.
The session-activity projection keeps presence and turn evidence separate
from transcript freshness. The Teams sessions.activity_under reader joins
it to the nearest proven Claude/Codex process beneath each requested root;
its caller-owned load lane advertises activity_under separately. It reads
existing registry, rollout and runtime metadata and adds no caller identity,
provider launch or receipt retirement. Private Mac/Windows activity observations
cover owned descendant/registry selection, runtime precedence, malformed
requests and older-service refusal through SDK and operator doors. Live
Codex/vendor ownership, corpus/scale, concurrency, natural shutdown and
installed sets remain unqualified.
The activity subscription branch also routes subscribe/unsubscribe and the
activity-event stream to a separate caller-owned worker, admitted by the
activity marker. It retains incremental Codex cursors, runtime precedence,
Hermes fire links, transition-only notifications and a background pane-prompt
cache. The Hermes projection reads the complete home's validity dependencies
without exporting or writing a home. The native activity service/module and
CLI poll lane are removed; their shared mail/runtime readers remain.
Private Mac/Windows subscription records
cover snapshots, transitions, validation, unsubscribe/EOF and older-service
refusal through npm/SDK and real loopback operator streams. Owned Node fixtures
qualify Codex cursor/ownership mechanics; actual vendor sessions, pane/control
overrides, broader Hermes branches, concurrency/scale and installed sets remain
unqualified.
The shared method table also admits sessions.inbox through a separate
caller-owned Teams worker with an inbox marker. This bridge forwards to the
daemon's existing mailbox owner: operator reads consume unread messages,
while explicit session-address reads look only. It is not a pure transcript
read or a mailbox implementation in interchange. It preserves strict field
validation, the native positional-array forwarding and independent calls;
closing the caller aborts its sockets without retrying a consuming request.
Private Mac/Windows inbox records
cover the public SDK and loopback operator doors, admission/refusals and close
cancellation. Real mail delivery, all claim/channel branches, full timeout,
scale, remote grants and installed sets remain unqualified.
The shared method table also admits sessions.message through an independent
caller-owned Teams worker and a separate message marker. Admission and
Claude's user-level inbound report live in interchange; the worker forwards
one request to the existing machine mail owner, retains uncertain submitted
outcomes and never retries. It reads settings without changing policy.
Private Mac/Windows message records
qualify small owned operator-mail and settings cases, private operator streams,
loss/cancellation and the Mac native boundary. Vendor delivery, agent wake,
full deadlines, broader settings/store/grant branches and installed/published
sets remain unqualified.
Current-main integration records retain the independent message lane beside the explicit pure-read coalescer.
sessions.import admits an explicit document and transfer format in the
caller-owned load worker, using these same strict codecs and normalized model.
It accepts the native open-code alias; hermes selects the Codex import
document. It performs no home discovery, store mutation or vendor invocation.
The separate import capability marker refuses an older service rather than
routing the call back to a native parser. Export, translate, branch and handoff
use the separate transfer worker, including explicit continuation materialization.
Private Windows-first/Mac import records cover small supplied documents, explicit admission, operator streams, retained native normalized parity, older refusal and the new Mac native boundary. Broader corpus, scale, transport interruptions, installed sets and a new Windows native binary remain unqualified.
Support inventory
supportRegistryReport and the public harness.v1.support.report reader
report the declared native-format, runtime and orchestration wiring in stable
product order. They construct launch specifications, never execute or probe
a vendor. The descriptor table is canonical in
sdk/interchange/support-registry.base.json; scripts/support-registry.mjs
maintains the package copy. Codex executable admission and Grok's symlink-home
hint use the caller's reader environment. An older service lacking the separate
support capability marker is refused. The npm supercode harness report
command serves this same reader. Retained native runtime/probe consumers still
read the shared typed descriptor data and their existing orchestration table.
Private Windows-first/Mac finished-source records
cover thirteen SDK reports per OS, selected CLI forms, private operator streams,
older admission, native descriptor/environment comparisons and the new Mac
forwarding boundary. Actual vendor/probe behavior, broader path/home branches,
new Windows forwarding and installed/published sets remain unqualified.
User-level interoperation settings
loadHarnessSettings and public harness.v1.harnesses.settings read Claude's
user-level inbound setting through the same reader used by message admission.
The report hashes original file bytes, retains configured values and leaves
process-effective policy explicitly unknown. Other harness strings return
the native empty report; malformed parameters or invalid Claude settings
refuse. Separate SDK settings admission prevents an older service fallback.
The npm supercode harness settings command serves human or JSON output from
that reader. The public configureHarnessSettings export and
harness.v1.harnesses.configure apply one explicit accept/hold/refuse/reset
change in a separate settings lane, with settings_control:true admission.
Original-byte revisions, exact unrelated JSON, no-op behavior, symlink refusal
and atomic replacement remain. The returned report leaves effective process
policy unknown. Native report/settings writer dependencies retire; live
runtime/mail registry consumers retain their boundaries. This read itself
executes no recommendation and writes no policy.
Current public writer records
qualify selected owned Windows/Mac files, with explicit concurrency, symlink,
real-used-home and installed limits.
Private Windows-first/Mac records
cover selected SDK, CLI, operator, native report/refusal comparison and new
Mac forwarding cases. Effective policy, real configure/delivery, broader
path/concurrency branches, new Windows forwarding, installed sets and actual
machine upgrades remain unqualified.
Named profiles
The builtin-presets subpath owns the six built-in presets as exact TOML
assets. builtinPresetNames() returns a fresh array in reserved-name order;
builtinPreset(name) returns immutable text or null for an unknown,
case-sensitive name. Unknown names never read a filesystem path. Non-string
names and unpaired Unicode surrogates refuse. The profile generator derives
the existing profile rows and native constant aliases from this catalog.
Native configuration parsing and runtime remain typed callers through the
Node lookup transport. Ownership
and extraction evidence
describe the boundary.
listProfiles/getProfile from the session-read subpath implement public
harness.v1.profiles.list/get in the caller-owned load worker. Supercode
presets, Codex TOML profiles, Hermes profiles, OpenClaw agents and orchestrator
profiles retain complete native home validity, model/default selection and
known/unknown counts. SDK admission requires profiles:true separately;
the npm CLI profiles list/show uses the same reading. Profile mutations
have their separate Node door. The duplicate native
profile reader and complete home codecs are retired; native support keeps
static inventory facts only. Current workflow listener records survive typed
wire saves and strict configured-home validation, with no added authority.
Current ownership records
retain the first request-ID failure and corrected Windows/Mac observations.
Private Mac/Windows product records
qualify the named same-input native/TypeScript cases, CLI/operator readings,
older-service refusal, Windows routing-scope correction and new Mac native
forwarding/retirement. Broader corpus, concurrency, uncommon paths, new
Windows forwarding and published/installed sets remain unqualified.
Recorded memory documents and search
showMemory from session-read implements public harness.v1.memory.show
in the caller-owned load worker, with separate memory_show:true SDK
admission. It selects Claude project/session stores, Hermes user/profile
stores and OpenClaw agent workspaces; reports ordered prose documents with
bounded preview or full text, size and recorded timestamp; and keeps native
empty/refusal meanings. The npm memory show CLI uses this reader. It writes
no memory, starts no provider and changes no caller authority.
searchMemory uses the same selected stores and bounded prose reads in Node,
with independent memory_search:true admission and the npm memory search
CLI. Plain matching uses pinned Rust 1.99 Unicode 17 lowercase rules; regex
uses a byte NFA with pinned regex-syntax 0.8.11 Unicode 16 tables. Search
returns at most 512 matching lines with excerpts clipped to 200 Unicode
scalars, preserves native query/refusal meanings, and ignores the session
selector as native search did. The native search module, service dispatch
and advertisement retire together. Ownership
and extraction evidence
state the current and historical proof boundaries.
Private Mac/Windows product records
qualify the named same-input SDK, CLI/operator, older-service and new Mac
forwarding/retirement cases. Unusual paths, complete corpus/scale,
concurrent replacement, new Windows forwarding and installed sets remain
unqualified.
Recorded job notepads
readJobNotepad from session-read implements public harness.v1.jobs.notepad
in the caller-owned load worker with separate job_notepad:true SDK admission.
It reads Hermes notepad entries after complete job-file validation and the
first job/profile selection, preserving SQLite TEXT and UTF-8 refusals.
The read-only jobs notepad CLI uses the same reader; set/delete and verified
native readback retain their owners. This reader writes no notepad or job.
Original Mac/Windows records
retain their exact source scope; current native/installed composition,
concurrent writers and the wider home/store corpus remain unqualified.
Recorded run history
listRuns/getRun from session-read implement public harness.v1.runs.list
and get in the caller-owned worker, with separate runs:true admission.
They read Hermes, OpenClaw and orchestrator histories after complete home
validity, retaining source availability, execution/delivery separation,
ordering, limits and native record projection. The list/ls/get CLI uses the
same reader. No scheduler, claim, retry, pruning or writer runs here.
Original Mac/Windows records
retain their source scope. Broader corpus/concurrency, native controls,
new Windows forwarding and current installed composition remain unqualified.
Recorded scheduled jobs
listJobs/getJob from session-read implement public harness.v1.jobs.list
and get in the caller-owned load worker, with separate jobs:true admission.
They inspect Claude session cron/wakeup records and Hermes/OpenClaw/orchestrator
jobs, retaining native source availability, projections and refusal meanings.
The list/ls/get CLI uses the same reader. Shared native private job readback
and controls keep their owners; no scheduler, job writer or provider starts.
Original Mac/Windows records
retain their source scope, including exact wakeup delays and the SQLite UTF-8
pathname correction. Broader corpus/concurrency, native controls, new Windows
forwarding and current installed composition remain unqualified.
Installed skill packages
listInstalledSkills and public harness.v1.skills.list report the skill
packages selected by harness, scope, working directory and config homes.
They read managed, user, project, plugin and bundled roots for Claude Code,
Codex, opencode, pi, Hermes and OpenClaw; frontmatter supplies the recorded
name, description, version and optional enablement. Codex config supplies a
sequential enablement overlay after a complete TOML parse. Invalid or unread
config leaves the recorded frontmatter enablement unchanged. Unknown harnesses
and malformed request fields refuse explicitly. SDK listSkills requires the
separate skills:true marker; an older service is refused while its catalog
remains available. The npm supercode skills list/ls command uses the same
reader. Runtime loading and install/remove retain their own native boundaries.
This listing writes no package or policy and executes no vendor. Product observations are recorded separately by source.
Recorded routing inventory
listRoutes from the session-read entry projects recorded Hermes, OpenClaw
and orchestrator routes after complete owning-home validity. Public worker,
SDK routes:true admission and routes list/ls use the same reader.
Target filters, native source spelling, precedence and raw-number text retain
the native meanings. Listing resolves no live traffic and edits no route.
The complete native reader retires; shared codecs and control consumers stay.
Original Mac/Windows records
retain their own source and lifecycle limits.
Recorded inbound triggers
listTriggers uses complete owning-home readers and the caller-owned load
worker with separate triggers:true admission. Hermes root subscriptions and
static YAML routes, orchestrator profile order and OpenClaw duplicate-name/
mapping-position behavior retain native meaning. Rows return endpoint metadata
and secret presence; listing starts no endpoint and changes no store.
Original records retain
their own source, native comparison and lifecycle scopes.
Recorded channel inventory
listChannels and channelStatus serve public channel list/status in the
caller-owned load worker with separate channels:true admission. The npm
list/ls/status CLI shares the reader. Complete owning-home validity precedes
projection; credentials and caller environment contribute presence only.
Unfiltered catalog counts preserve native source skips, mirror/child rules
and transport grouping. Status stays unknown; listing opens no gateway.
Original records retain
their own source, native comparison and lifecycle scopes.
Recorded workflow board
loadWorkflow serves public workflow load through the caller-owned worker
with separate workflow:true SDK admission and npm workflow load. Explicit
or inferred Hermes/supercode backing retains the complete read-only board,
task/run/review/comment/dependency and residue projection. The sole native
reader/codec retires; shared model/schema, mutations, dispatch and authority
retain their owners. Listing creates no board, index or task.
Original records retain
their own source, corrected metadata ordering and native/operator scopes.
Human transcript rendering
@volter/supercode-interchange/human-export exports parseHumanExportFormat,
renderMessages and renderTranscript, with public TypeScript declarations.
This dependency-free subpath renders stored role/content/tool-call fields into
plain text or standalone escaped HTML. It includes system and empty turns,
preserves tool-call order, and leaves the original conversation untouched.
Provider-only message parts do not replace stored nullable content. Format
names are exactly text and html; an unknown string parses to null, and
an invalid rendering request throws. The typed readHumanExportText transport
returns {Ok: value} or {Err: message}.
The npm front door's internal __human-export command accepts one JSON request
argument or stdin and emits that typed result. A typed refusal exits zero;
excess arguments exit two. Native configuration and sessions export use the
same owner through a stored-field/result bridge; transport failure surfaces
through the retained infallible native API. Human rendering is a projection,
separate from the lossless session transfer APIs. See the
ownership decision
and recorded operations.
Corpus audit
@volter/supercode-interchange/corpus-audit owns the complete read-only audit
for Claude Code, Codex, Pi, OpenCode, Grok, Gemini and Goose. auditCorpus(root,
{format, limit}) preserves typed envelope refusals, unknown fields,
per-instance block coverage, tools and notes; corpusAuditJson retains exact
native integer wire counts. formatCorpusAudit produces the compact CLI view,
while formatCorpusAuditInventory produces the full library inventory. The
native selection contract and usage name
file/store limits and empty/error boundaries. The public CLI is supercode
audit; its remaining native parser forwards to this release's Node front door.
The audit-specific native models and classifiers have been removed. Shared
catalog, codecs, pricing and runtime owners remain separate. Original records
retain their source and native scope. Product observations are recorded
separately by source; installed composition remains unqualified.
Session emission and transfer
@volter/supercode-interchange/session-write exports the seven format writers,
same-format prefix splicing and native recovery containers. The session-read
entry exports transferSession, which loads the complete source and returns a
primary artifact, recovery files and an explicit fidelity/residue report.
A verified content-addressed residue cache can restore prior source records;
a cache miss, ambiguity or unsound prefix falls back to ordinary rendering.
Public sessions.export and sessions.translate run in a separate caller-owned
worker with separate capability markers. They are independent requests rather
than coalesced reads. Translation to Hermes returns an artifact; export to
Hermes invokes hermes sessions import --from codex through that vendor's CLI.
No other target is executed or installed. Shared native writer/model/residue
consumers in reduction, handoff and emulation remain until their owners move.
The emission version asset follows the interchange crate via the generator and
commit hook; bypassing generation can leave it stale.
Complete conversion
The public ./session-convert entry and supercode convert command share
literal-path and saved-family admission, all seven emitters, verified reduction
pointers and complete sidecar rehydration. Recorded reductions affect the view
token diagnostic; output uses the full source. A damaged literal may write
partial output to a distinct destination and then fail, but cannot overwrite
its own source. Saved Claude children are validated before primary output and
written afterward; concurrent failures do not imply transactional rollback.
Saved-family lookup may create an absent store directory, as the native reader
did. Literal Hermes conversion invokes its CLI; saved Hermes conversion retains
Codex emission without invoking a vendor. Shared runtime reduction decisions,
mutation, provider continuation and native library consumers remain separate.
Offline inspection
The public ./session-inspect entry and supercode inspect command report
complete literal sessions or saved working views after validating sidecar
reduction pointers. A persisted working transcript takes precedence over
mechanical reapplication. Partial literal reports end with failure.
./inspection-schemas reports fresh committed built-in schema definitions and
full/medium/minimal costs, after whole typed configuration admission when a
configured tier is requested. JSON inspection and parse-loss exits skip that
configuration read. No tool, hook, credential or provider runs. The generator
and commit hook maintain projections while native config/tool consumers remain.
Process ancestry keeps its current main owner and is outside this inspection
slice; no old ancestry operation qualifies current source here.
Branch artifacts and handoff specifications
sessions.branch and sessions.handoff, including SDK branchSession and
handoffSession, use the caller-owned transfer worker with independent
branch:true and handoff:true markers. A cut names exactly one user message
by its recorded claude_uuid; other keys, absent or duplicated user IDs
refuse. It retains only preceding messages and children linked to their kept
tool calls. Whole-session raw records and cut-specific source residue are
dropped; the original source remains unchanged. An omitted branch target
returns artifact:null; a supplied target uses the complete artifact builder.
Handoff rewrites the target identity to a fresh UUID (OpenCode uses ses_
plus its undashed UUID) and returns structured launch/materialization
instructions for all eight targets. Explicit cwd, including empty, precedes
recorded cwd and .. Neither method invokes a vendor, writes a destination
session store or executes its instructions. Artifact construction may populate
the same best-effort source residue cache as translation. The exclusive native
request/dispatch/artifact/cut/instruction helpers retire together. Native
reduction, shared writers/residue and terminal-launch consumers remain.
Current-main Windows/Mac recordings
retain the named SDK/worker/stdio paths. Independent board review, native
composition and installed/runtime support remain separate.
Continuation artifact materialization
sessions.materialize uses the caller-owned transfer worker and an independent
materialize:true marker. Claude, Codex, Pi and Grok get fresh-ID exclusive
files; OpenCode owns its import and read-only database confirmation. Source
recovery cache writes precede validation. Later bundle failure retains earlier
files and cancellation does not undo an import. No resume command executes.
Native materialization dispatch and the exclusive native module retire;
current native composition, used-home and actual vendor qualification remain
separate from the dated integration recordings.
Controlled skill packages
skills.install and skills.remove use a separate caller-owned worker and
skills_control:true admission, independent of listing. Claude, Codex, Pi and
OpenCode local packages use their loader roots; Hermes/OpenClaw keep their own
CLI doors and verified inventory readback. Native control/rendering retires;
shared native runtime loading and frontmatter retain their owner. Explicit null
mutation structs refuse. The CLI preserves the bare release installer and
selected listing/mutation cwd. No actual vendor installation or current native
composition is implied by the dated integration records.
Controlled profile commands
profiles.create and profiles.delete use an independent caller-owned worker
with profiles_control:true admission. Hermes/OpenClaw keep their own CLI
writers; the orchestrator keeps its package's live/cold operator and readback.
Native control and CLI decisions retire, with static support facts beside the
shared native profile reader. CLI cwd stays accepted grammar without redefining
profile homes. Current native/vendor/PTY/installed operation is separate from
these source ownership facts.
Human-readable transcript projection
The human-export subpath exports parseHumanExportFormat, renderMessages
and renderTranscript. Exact text/html selection, stored nullable content,
ordered tool placeholders, visible empty turns, headers and HTML escaping
retain native behavior. Provider-only parts do not replace stored text. The
input stays authoritative and unchanged; this human projection is deliberately
not a round-trippable session translation. Native consumers keep stored-field
transport and format metadata while their renderer retires.
Current Windows/Mac ESM and npm records
retain selected output/refusal behavior; native session-store export, new
native forwarding and installed execution remain unoperated.
Built-in presets
The builtin-presets subpath exports builtinPresetNames and builtinPreset.
Names retain reserved order and each names call returns a fresh array. Lookup
is exact case; an unknown string returns null, never a filesystem path. The
six immutable TOML files are the authority for native constant aliases and
generated profile rows as well. Configuration parsing and runtime remain the
caller's boundary. No preset policy or frozen parity status changes.
Current Windows/Mac ESM/npm/profile records
retain exact asset hashes, lookup/refusal behavior and the distinct unoperated
new-native/configuration/installed paths.
Shared Claude runtime manifest rendering
The claude-runtime-manifest subpath adds claudeRuntimeManifestJson for
native-field-order pretty JSON and readClaudeRuntimeManifestText for typed
Result transport. It shares the complete session-claude-runtime fold; native
runtime/store consumers retain only records and read transport. Lossless
inputs keep exact unsigned integers, while ordinary JS numbers must be safe.
A visibly changed counter uses its current value/type rather than stale parsed
metadata. No cron, child, queue message or provider operation executes.
Current Windows/Mac records
retain raw reconstruction, exact rendering/refusals and the mutation correction.
Native runtime/store, actual vendor sessions and installed operation remain
unoperated by this slice.
Startup argument and program specifications
The startup-arguments subpath exports startupArguments, codexProgram and
readStartupArgumentsText. It retains canonical pair order, nullable/empty cwd
quoting, caller key suppression and exact/equals unattended choices. Unknown
harnesses return an empty vector; malformed types refuse. Codex program choice
uses supplied source-OS facts and preserves the original relative-path refusal;
it does not reinterpret another OS's path or execute a program. The canonical
JSON table is SDK-owned and the generator maintains both existing readers.
Current Windows/Mac ESM/npm records
retain specifications only. Native callers/kernel facts, actual vendor flag
acceptance, complete existing SDK/resume callers and installed operation are
unoperated by this slice.
Path rules and first-touch notices
The path-rules subpath exports loadPathRules, matchRulePattern,
matchesPathRule, renderPathRule, isScopedPathRule, alwaysOnPathRules
and pathRulesNotice. Loading requires enabled/path_rules; it retains sorted
personal-first discovery, root-to-cwd order, canonical dedup and native bounds.
RulePath accepts strings, Unix bytes and Windows wide units. The byte matcher
treats only * specially; native path spelling remains significant.
pathRulesNotice returns the complete notice and next seen set without
mutating input or writing source files; the caller owns conversation state.
Current Windows/Mac public records
retain failed fixture setup and native runtime/concurrency/installed limits.
Shared support inventory and Grok specifications
The support-report subpath exports supportRegistryReport, harnessSupport,
supportsMemory, supportOrchestration, registry/memory/concept metadata,
selfSandboxSupported, grokRuntimeEnvironment and grokRuntimeLaunch.
Reports return fresh data and exact-case lookups; unknown harnesses are null.
Grok APIs return program/argv/env specifications only, with explicit home
presence, native canonical-link spelling, target-family sandbox omission and
unattended flag order. The source-observation transport is also declared.
The Node base asset, projection and generator own all wiring facts; none prove
vendor installation or live support. Current Windows/Mac records
retain full report comparisons and native/runtime/installed limits.
Output-style prompt input
The output-style subpath exports resolveOutputStyle and the immutable
BUILTIN_OUTPUT_STYLES catalog. It returns name, text, source, replaces_base
and exact section, or null for empty-name/unknown/unreadable selection. Neutral
built-ins return a resolved empty selection; empty/unknown names return null.
Claude personal files precede project files and built-ins; other harnesses
resolve built-ins only. It reads existing skill frontmatter, retains native
UTF-8/body limits and OS-path encoding, and writes no configuration or style.
Current Windows/Mac records
retain public results and the corrected capture; native agent assembly,
provider interpretation and installed operation remain unqualified.
Context-injection prompt contribution
The context-injection subpath exports builtinContextBlocks,
contextInjectionBlocks, renderContextBlocks and assembleContextInjection,
plus the retained-runtime transport. Inputs are resolved configuration facts
and caller-owned runtime splices. Built-ins keep fixed task/plan/protected/
background order; the enabled contribution appends configured blocks, then
splices. Rendering uses names/content verbatim, including empty or duplicate
headings. Disabled input returns empty and returned blocks do not mutate input.
These functions execute no described tool/policy/provider action.
Current Windows/Mac records
retain values and bytes; native agent/runtime and installed behavior remain
unqualified.
Pinned pricing and exact counters
@volter/supercode-interchange/pricing exports the pinned 2026-10-03 rates,
model/override resolution, standard cache factors, budget-cap and recorded
cost arithmetic, and exact token totals/addition. Token inputs accept bigint,
canonical unsigned decimal strings or safe integer Numbers within u64. Invalid
or unsafe Number inputs refuse. Rates are fresh objects; they are not a live
price feed. Declarations are authoritative.
Session usage and machine spend use this same owner. Native runtime callers retain a typed read transport with decimal counters and IEEE bits. Current Windows/Mac records qualify returned arithmetic/accounting, with actual native runtime, provider billing, installed/used-home and broader IEEE/parser branches left explicit.
Configuration module activation
@volter/supercode-interchange/module-activation exports the ordered frozen
MODULE_IDS, resolveModuleActivation, isModuleActive, fresh storage
defaultModuleActivation and typed readModuleActivationInput projection.
Capabilities are flat tables with optional boolean/null enabled and arbitrary
settings. Nested permission modules and mcp.serve are independent switches.
Search/web subflags default true even for inactive modules; the storage default
has all flags false. Apply-patch per-model defaults false in both shapes.
Declarations own exact fields.
This returns activation facts from supplied configuration. It writes no config and starts no tool, provider or permission action. Current Windows/Mac records retain the missing-default-export correction, typed native boundary and unoperated native/config/tool/runtime/installed limits.
Session Git provenance capture
@volter/supercode-interchange/git-metadata exports captureGitMetadata(cwd,
timestampMs) and gitMetadataJson. It uses ordinary local Git commands for
branch, optional SHA and dirty status; unavailable capture returns null.
Paths accept strings, UTF-8 bytes/byte records and Windows wide records.
Timestamps accept exact safe Numbers or signed-i64 bigint. Serialize with
gitMetadataJson to retain exact wire integers; decoded Number fields can round.
Declarations own the transport shapes.
This adds no session writer, provider call, diff or PR operation. Shared native record/serde codecs, Agent gates and sidecar writing keep their owners. Current Windows/Mac records qualify returned owned-repository capture, with native/store/installed and broader command/path behavior left explicit.
Configured model routing and shared catalog
./model-catalog owns the unchanged built-in alias/provider inventory.
./model-routing resolves supplied model_catalog settings: aliases/scopes,
patterns, rule overlays, effort/budget/tier, model filters, small/fallback
models and family prompts. It calls no provider and writes no config.
The harness SDK re-exports both owners. Routing declarations
and catalog declarations own exact shapes.
Model tables accept Map for explicit numeric-key/tie order. Exact bigint
budgets can represent native u64 settings before the preserved u32 narrowing;
unsafe direct Numbers refuse. The ./model-routing-json transport decoder
preserves original numeric tokens and serialized table order.
Current Windows/Mac records
retain these facts and the unoperated native/runtime/installed boundaries.
Model-change and per-turn usage records
./agent-provenance owns typed construction, reason/served-model updates,
classification and strict JSONL parsing/emission. Use safe Numbers or bigint
for exact desktop counters/timestamps; unsafe Numbers refuse. Canonical JSON
helpers preserve integer tokens and float spelling. Provider totals remain
independent; a missing price clears a prior budget estimate. This is not spend.
Declarations own the API and serialized Result transport.
Windows/Mac recordings
retain the separate native Agent/store/journal and installed boundaries.
Turn markers and persistent-goal records
./turn-goal owns all seven marker kinds, six finish labels, strict JSONL,
goal creation/revision/JSON and exact reminder text. Use safe Numbers or bigint
for desktop integer fields; raw integer tokens and IEEE bits have their own
serialized Result transport. Goal revision keeps creation time. This API does
not activate a goal or run/write a session. Declarations and
current recordings retain those boundaries.
Shared safe paths
./safe-path owns lexical/resolved path projections, component containment,
protected floors and strict relative-path refusals. It accepts the host OS
string/byte/wide representation and an optional explicit reader cwd. Matching
returns Inside with both subjects, Outside, or Unsafe. It performs reads only;
no returned fact establishes atomicity with a later write.
Declarations and current recordings
retain OS-specific prefixes, missing-tail semantics and native/runtime limits.
Permission rules and Bash canonicalization
./permission-engine owns deny/ask/allow rule algebra, command/path/domain
folds, protected/config/default projections and strict correlated JSON pipe
responses. Command evaluation accepts an optional execution cwd, granted roots
and reader context. Recognized redirects/writers retain raw rules plus lexical
and resolved protected floors across roots; Agent and skill callers pass their
execution context. The configured ToolRegistry skill tool captures additional
roots in that policy too; it needs no custom authorizer to retain their protected
floors. Registered-tool observations
record both protected roots and an allowed write through that captured policy.
Targets remain relative to shell cwd, including when other
roots are granted. Outside paths retain raw rules; unsafe aliases refuse.
A recognized wrapper remaining after sixteen unwraps returns Unparseable and
keeps the conservative decision floor. The separate256-command-node cap remains.
The pinned Bash Wasm extracts syntax and known targets without
executing command text. Owned alias and wrapper observations
retain decisions, skill admission and exact package custody. Actual approval stores, tool execution and OS
confinement are separate. Declarations,
grammar provenance and
current recordings retain exact integer
correlations, strict floors, heuristic gaps and native/installed limits.
Shared sandbox policy
@volter/supercode-interchange/sandbox-policy exposes setting/rank parsing,
ordered supplied environment filtering, engagement, filesystem/network
decisions and warning ledgers. The asynchronous filesystem API snapshots its
input and retains its original reason across callbacks. Availability is
supplied; these functions do not enforce an OS sandbox or execute a command.
Declarations and current recordings
retain native/approval/enforcement and installed limits.
Advertised tool schema tiers
@volter/supercode-interchange/schema-tiers exposes exact tier parsing and
fresh description/parameter pairs for full, medium and minimal advertisement.
The ordinary API retains ordinary JavaScript numeric precision; the text API
retains native integer/float types and selected map order. The transform keeps
types, required values and schema structure, applying the original recursion
and byte floor. Declarations and current recordings
keep actual Agent/provider and installed behavior separate.
Shared context-budget state
@volter/supercode-interchange/context-budget exposes isolated opaque usage
snapshots, parked fresh-context requests, both tool metadata records and their
shared-state Result door. Requests replace; take consumes once. Tool arguments
trim Rust whitespace and refuse without erasing a pending valid request. This
owner computes no accounting and applies no actual transcript transition.
Declarations and current recordings
keep Number/native token, actual Agent/ABI/guard/handoff and installed limits clear.
Clock and cancellable sleep
@volter/supercode-interchange/clock-tools exposes metadata, supplied/platform
time readings, exact projection text, duration admission and owned abortable
timers. The sleep ceiling is four hours; Node schedules at millisecond
resolution. Preparation starts no timer. Actual platform readings and supplied
projections remain distinct. Declarations and current recordings
retain numeric precision, legacy calendar, native/drop and installed limits.
update_plan transition
@volter/supercode-interchange/update-plan-tool exposes metadata, a pure
admitted replacement DTO and a synchronous caller-owned setter convenience.
Unknown statuses remain strings with pending marks; raw step text is retained.
Declarations and current recordings
retain copying, setter failure and native/Agent/storage limits.
Shared plan mode
@volter/supercode-interchange/plan-mode exposes one state, Tool definitions,
enter/exit/REPL decisions and correlated JSON-lines projection. Callers own
callbacks, permissions and lifetimes. Missing approval keeps the admitted
plan; a callback may re-enter, and allow clears current state. Declarations
and current records retain actual native/enforcement
and approval limits. Fixture approval prose is not authorization.
Structured question Tool
@volter/supercode-interchange/question-tool exposes ask_user/request_user_input
metadata, argument/schema/answer decisions and a caller-owned handler. Headless
refuses; AbortSignal abandons the await and notifies the handler. Declarations
and current records retain exact wire, actual native/
frontend and installed limits. Recorded answers are fixtures, not human acts.
Runtime skills
@volter/supercode-interchange/skill-runtime exposes complete discovery,
index/body/argument handling, invocation and shell policy decisions. It shares
the existing listing reader and permission engine. Declarations
and current records retain owned-root projection,
Windows missing sh and actual native/Agent/install limits. Shell bodies execute
only when enabled and the supplied shared policy admits them. Prompt expansion
and the registered Tool carry operation cancellation to the private process
group/Job Object. Cancellation and the unch
