Agent Continuity Specification 0.3.0
Status: release candidate. This document defines an archive interchange contract, not a claim that every adapter or captured session has every capability. See RELEASE.md for validation and limitations, USAGE.md for the reference CLI, and ADAPTERS.md for source scope.
The key words MUST, MUST NOT, SHOULD, and MAY describe requirements for this version. The versioned JSON Schemas and digest vectors below are part of this contract.
1. Purpose and boundary
ACS preserves the evidence available from agent clients: transcripts, native records, tool records, child streams, associated resources, and optionally the current workspace. An archive must remain inspectable after the source client, its account, and the original machine are unavailable.
Version 0.2.0 replaced the earlier draft's runtime-centric contract with an archival contract. It does not infer runtime write-ahead logs, leases, committed tool effects, safe resume points, or hidden model state from retrospective records. The unchanged draft is at versions/0.1-draft/SPEC.md. MIGRATION.md defines preservation of earlier records. RELATED_WORKS.md is retained historical research, not a capability declaration.
Version 0.2.1 adds opt-in producer recording, chunked capture, evidence-bound continuation graphs, declared dependency closure, historical Git extraction, and offline recovery receipts. It reads unchanged 0.2.0 archives; the prior contract is retained at versions/0.2.0/SPEC.md. It does not recover unrecorded past events, process memory, hidden model state, or unavailable remote resources.
Version 0.3.0 adds managed mechanical session records, rebuildable queries, reproducible readable projections, and optional plaintext transport. It reads unchanged 0.2.0 and 0.2.1 archives; the prior contract is retained at versions/0.2.1/SPEC.md. Rendering is offline and deterministic. It MUST NOT infer state from previously generated Markdown or contact a model.
The reference implementation acquires local files on POSIX systems, targeting macOS, Linux, and WSL. Native Windows, browser capture, online-only conversations, cloud account enumeration, remote orchestration, and external tool replay are outside this candidate's implementation scope.
2. Independent capability claims
An implementation MUST NOT replace these dimensions with a
single complete or resumable boolean:
| Dimension | Meaning |
|---|---|
| Inventory scope | Which roots, sessions, and surfaces were examined |
| Evidence | Which selected source bytes were retained |
| Consistency | What was observed about concurrent source changes |
| Parse coverage | Which records were decoded or left opaque |
| Normalization | Which captured records have evidence-bound mechanical interpretations |
| Rendering coverage | Which selected mechanical records and textual payloads have readable projections |
| Resource closure | Whether referenced resources are present and verified |
| Workspace recovery | Whether the captured workspace can be materialized |
| Portable continuation | Whether evidence can inform a new agent session |
| Native restoration | Whether a specified client actually loaded the restored session |
| Tool effects | What is known about effects outside the archive |
Unknown, unavailable, unsupported, and failed MUST remain distinguishable from verified. A gap MUST be represented in machine-readable metadata; success in another dimension MUST NOT erase it. Parsing all selected JSON records does not prove that all conversations or attachments were found. Hash integrity does not authenticate a source or establish the truth of a transcript.
The reference CLI's --require gates are exact predicates:
| Gate | Required condition |
|---|---|
evidence |
evidence: captured |
decoded |
parse: decoded |
stable |
consistency: observed-stable |
attachments |
resource_closure: verified |
workspace |
workspace: capture-time-recoverable plus actual inventory and closure validation |
portable |
continuation: portable-evidence |
native |
Always unmet in this candidate; no per-archive provider-load receipt support |
readable |
Verified rendering receipt, generated file inventory, complete selected navigation, and textual closure |
These are affirmative gates, not filters that discard
incomplete evidence. portable-evidence means usable
archival context, not a tested model continuation or a
generated authoritative handoff. Current adapters do not
prove global attachment closure. Native fixture-loader
profiles are separate test evidence and MUST NOT satisfy a
per-archive native requirement. A supplied coverage string
alone cannot establish workspace or native recoverability.
3. Objects and canonical manifests
The library contains:
objects/<sha256>
manifests/<sha256>.json
.staging/
quarantine/
.lock
search.sqlite
managed/interpretations/<sha256>.json
managed/collections/<sha256>.json
managed/views/<sha256>.json
managed/index.sqlite
readable/
Objects are immutable byte strings addressed by the lowercase, 64-character hexadecimal SHA-256 of their exact bytes. An object reference has exactly these members:
{
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"size": "0"
}
The example references an empty byte string. size and
unbounded counters, offsets, lengths, and ordinals MUST use
canonical unsigned decimal strings: 0 or a nonzero digit
followed by digits. Consumers MUST check both size and
digest at every reference, including conflicting references
to the same digest.
A manifest MUST be UTF-8 JSON serialized using RFC 8785 JSON
Canonicalization Scheme, with no appended newline or other
bytes. Its identifier is SHA-256 of those serialized bytes,
and its filename is <identifier>.json. The manifest MUST
NOT contain its own identifier. Non-finite numbers,
duplicate object keys, and values that cannot be represented
by the canonicalization contract MUST be rejected.
Native path metadata uses the original operating-system path bytes, encoded as:
{
"encoding": "base64",
"value": "cHJvamVjdC9maWxlLnR4dA=="
}
This represents project/file.txt. Such metadata is
evidence, not permission to read or write that path. Restore
paths require separate confinement and collision checks.
This encoding does not claim cross-platform filename
portability.
The authoritative schemas are manifest.schema.json, event.schema.json, and workspace.schema.json. The managed profiles additionally use record.schema.json, interpretation.schema.json, collection.schema.json, and rendering-receipt.schema.json. digest-vectors.json contains normative byte, canonicalization, and digest vectors. Managed descriptor and lossless JSONL examples are additionally defined by v030-digest-vectors.json. Schema acceptance alone is insufficient: closure, source references, path safety, and coverage semantics also require validation.
4. Manifest structure and identity
A new manifest has schema_version: acs/0.3.0, a kind of
session, whole-store, or legacy-import, and these
required fields:
source: client and native identity, with provenance.captures: objects acquired from the declared source.events: an object reference to the normalized journal.coverage: independent capability claims.gaps: structured limitations or acquisition failures.native: observed client metadata and restoration claims.
Optional fields are workspace, lineage, and
extensions. Unknown top-level fields are rejected.
Extension data belongs under extensions or
schema-permitted nested metadata. An exact object-reference
shape anywhere in the manifest is a closure dependency and
MUST be verified and transported.
Each capture contains blob, native-byte path, and
role. relative_path binds a resource to the declared
source root and is required for native file materialization.
Format, consistency, acquisition evidence, and
interpretation metadata MAY supplement the capture. Source
filenames and identity values MUST NOT become executable
instructions.
New filesystem captures record decimal Unix-nanosecond
acquisition_started_ns and acquisition_ended_ns under
observation, with clock_provenance equal to
unverified-host-wall-clock. SQLite source components
retain their own intervals in source_observations. These
are observed wall-clock readings, not synchronized
timestamps, causal ordering, or proof against clock changes.
source.observation separately labels export processing; a
shared SQLite batch can have an earlier acquisition
boundary. Observation-only clock changes MUST NOT force an
unchanged export to publish a new snapshot. Older archives
without these fields have unknown acquisition time; file
mtime/ctime MUST NOT substitute for it.
With content.format: acs/chunks/0.2.1, blob addresses
the canonical chunk descriptor, not concatenated raw bytes.
The descriptor has raw_sha256, decimal raw_size, and
ordered chunks containing ordinary object references.
Every non-final chunk is exactly 4 MiB; the final chunk is
nonempty and at most 4 MiB. An empty stream has no chunks.
There are at most 65,536 chunks. The embedded descriptor
MUST equal its stored canonical bytes, and concatenation
MUST verify against both raw digest and byte length.
extensions.event_journal_content uses the same descriptor
for a chunked normalized journal; events then addresses
that descriptor. Readers MUST reconstruct bytes before
parsing. All chunks remain explicit closure dependencies.
Chunking is opt-in through --chunked. It shares unchanged
fixed-size prefixes across append captures, but does not
eliminate full-prefix revalidation or metadata growth.
Canonical manifest documents are limited to 16 MiB in this
candidate. If adding inline workspace metadata exceeds that
bound, the exporter omits the workspace section and reports
workspace-metadata-limit with workspace coverage
unavailable, preserving the transcript archive. An omitted
workspace inventory MUST NOT be represented as recoverable.
Identity MUST distinguish a client or storage surface from
the model provider. It MUST NOT merge unrelated stores just
because they contain the same native thread ID. The
reference exporter binds client, native ID, declared root,
host, optional account namespace, source instance, and
capture scope into source.identity. Child streams retain
separate stream identities. Unknown account identity remains
null; credentials MUST NOT be read to guess it.
Copied stores on different hosts and divergent mirrors are
retained as separate evidence. lineage references
preceding archive observations; it is not provider
conversation parentage or a declaration of one authoritative
head. Reobserving unchanged content may reuse its current
snapshot. Returning to earlier bytes after an intervening
observation MUST retain that intervening lineage rather than
silently rewind history. Observation clocks are not causal
proof.
5. Journal and source references
events contains UTF-8 JSON Lines: one complete JSON object
followed by LF per event. An empty journal is valid for
opaque evidence. A normalized journal MUST NOT have a
partial last record. The original capture, not reserialized
JSON, remains authoritative for lexical and byte fidelity.
Each event requires event_id, kind, unsigned decimal
ordinal, and source_ref. Source references identify a
captured object by sha256 and exactly one locator form:
offsetandlength: byte positions within that object.json_pointer: an RFC 6901 pointer into decoded JSON.
The 0.2.1 stable-range form additionally supplies
capture_stream, the SHA-256 of a capture's native
relative_path bytes. It MUST resolve to exactly one
capture in this manifest and MUST use offset and length.
In this form, sha256 hashes the selected raw range, not
the entire capture. Verification MUST reconstruct and hash
that range even for an opaque event. This permits unchanged
normalized records to share journal chunks when the source
grows. It is not a free-standing object reference or
permission to consult an original file.
For 0.2.1 and later events with stream_id, that field is
the SHA-256 of the captured native relative_path bytes and
MUST select exactly one capture. In the whole-object form,
the selected capture's object digest MUST also equal
source_ref.sha256. In the stable-range form, stream_id
MUST agree with capture_stream; the range digest retains
its existing meaning. Equal object digests do not identify
equal native file occurrences. Consumers MUST NOT select one
such path by overwriting another in a digest-only index.
Legacy events without a recorded stream retain their prior
whole-object or stable-range locator semantics.
References MUST resolve to a declared capture, remain within its bounds, and use valid pointer escaping. A valid pointer must actually resolve, including correct array indexing. Normalized fields MUST NOT claim evidence outside the referenced source. Native provider payloads and unknown fields MUST remain accessible; opaque or malformed records MUST retain their original bytes and a diagnostic.
When native_payload is present, verification MUST compare
it with the decoded source record selected by that event's
byte range or JSON pointer. A source locator that merely
exists does not justify a different normalized payload.
Journal ordinals MUST be sequential decimal strings starting
at 0; this validates presentation order, not chronology.
Source-provided event IDs, parent IDs, branch/edit metadata, tool call/result identifiers, child streams, compaction records, and exposed reasoning MAY be projected into normalized fields. Missing relationships remain unknown. An adapter MUST NOT invent hidden reasoning, deleted turns, tool outcomes, or model state. Flattening a branch to its latest text MUST NOT replace the retained native evidence.
Event IDs distinguish occurrences, including repeated identical records. Appending to a source stream SHOULD retain IDs of unchanged records. Identity is scoped to the source and stream; journal ordinal is deterministic presentation order, not proof of cross-stream chronology or causality. Consumers MUST retain unresolved or conflicting native relationships instead of repairing them by assumption.
Derived views MUST remain separate from native operation
evidence. The candidate's extensions.gemini_derived_views
references a derived per-stream view of legacy Gemini
sessions and recorded set, patch, and rewind operations. It
retains source event IDs and diagnostics, does not replace
original operations, and does not claim Gemini native
restoration. The implementation is fixture-tested against
the public format semantics identified in
ADAPTERS.md.
6. Acquisition and concurrency
Acquisition MUST be read-only toward source stores. Discovery MUST NOT launch a provider, execute hooks, invoke credential helpers, contact a model, or start an app server. It MUST stay within explicitly selected roots and recognized sidecars; external symlinks MUST NOT authorize traversal.
For a growing file, capture a bounded observed prefix and record the observation. Preserve incomplete trailing bytes even when they cannot be decoded. Revalidate content rather than trusting size, timestamps, inode, or a saved cursor alone. Rotation, truncation, same-length rewrites, and divergent generations MUST NOT silently reuse stale bytes.
Multiple stable file reads do not establish an atomic
multi-file snapshot. A bounded recheck MAY establish
observed-stable, meaning no change was detected at the
checked boundaries. If changes persist, preserve available
evidence and report non-atomic or inconsistent capture.
atomic requires an actual coherent filesystem or database
snapshot mechanism; repeated reads alone do not qualify.
Session-scoped acquisition from a shared SQLite database uses a private acquired copy, handles its WAL, and preserves typed scoped rows and row locators. This is a logical capture, NOT the original database byte image. Unscoped tables and unknown schemas must produce gaps instead of importing unrelated sessions. A rollback journal with an active or unrecognized header prevents scoped logical acquisition. Cold PERSIST journals with fully zeroed headers remain readable. Discovery errors MUST surface as inventory gaps, not an empty successful inventory. Whole-store evidence remains a separate explicit choice.
A recognized dedicated-session database file set MAY retain
its original bytes within ordinary session scope. The AGY
adapter recognizes conversations/<UUID>.db and existing
WAL, SHM, and rollback-journal companions. This filesystem
ownership rule does not certify opaque database semantics or
an atomic, recoverable snapshot. The capture MUST retain
those limitations independently of raw-byte preservation. It
MUST NOT include a shared database under this exception.
whole-store retains recognized database file sets,
including existing WAL, SHM, and rollback-journal sidecars.
It may contain multiple conversations. Separate live-file
copies do not imply an atomic or recoverable database image.
Raw physical preservation and logical row preservation MUST
have different claims.
7. Workspace recovery
Workspace capture is opt-in and requires a declared boundary. A transcript's working-directory field is evidence, not authorization to inspect arbitrary paths. Default export MUST NOT capture the current workspace.
The reference workspace profile is acs-workspace/0.2.0. It
captures current file bytes, ordinary permission modes,
internal symbolic links, tracked absences, and nonignored
untracked files. Git recovery retains HEAD history closure,
canonical index entries and flags, staged blobs, raw index
evidence, and unstaged working-tree content separately.
Initialized submodules and available LFS media are
additional closure dependencies. Source Git configuration
and hooks MUST NOT be installed as executable restore
configuration.
Global exclude-file patterns must not be lost when execution
configuration is suppressed. The candidate reads only the
effective ignore-file setting and applies it during
untracked inventory, preserving system, global, repository,
and worktree precedence and included configuration. The
read-only lookup must not activate executable configuration
for subsequent Git operations. Missing configured ignore
files remain inert, as with Git's normal ignore handling. A
declared subdirectory inside a repository retains its ignore
rules without expanding the capture to the repository root.
Independent nested repositories use their own ignore rules.
These partial repository captures report a
metadata-not-captured gap and MUST NOT claim full Git
recovery. Symbolic link confinement must resolve other
archived links, not merely count lexical .. components;
transitive escapes and cycles prevent recovery. Shallow Git
history is preserved as partial evidence with an explicit
boundary-not-restored gap.
The candidate workspace profile bounds each object and Git command stream to 64 MiB, total referenced object bytes to 1 GiB, inventory entries to 100,000, submodule nesting to eight levels, and path and metadata depth to 64 levels. Metadata traversal is limited to two million nodes. Repeated references count toward the aggregate byte budget. These limits apply before object reads or destination writes. Oversized workspace evidence is reported as unavailable or partial; already retained evidence is not deleted. This is separate from transcript acquisition, which can stream larger raw evidence while leaving its normalization opaque.
Split, sparse, intent-to-add, and unmerged index evidence MUST not be treated as an ordinary clean index. Unsupported or missing state MUST produce a gap. Missing LFS media, unavailable submodules, hardlink topology, special files or permissions, and external symlinks can prevent a recoverable claim even when their evidence is retained.
A workspace acquired now is labeled capture-time, never
the historical state at a transcript turn. Historical
checkpoint claims require explicit source evidence and
binding. Rechecking transcript and workspace boundaries does
not prove their historical alignment or an atomic cut.
Restore MUST use an absent or empty destination, verify closure first, refuse traversal and overwrite, and never follow an archive-controlled parent symlink. It MUST restore staged and unstaged states independently and verify the resulting inventory. No network fetch, tool replay, Git filter, hook, or source-supplied executable is permitted.
8. Durable publication and verification
An implementation MUST durably publish referenced objects before publishing a manifest that names them. The reference implementation writes private staging files, fsyncs them, uses no-clobber publication under a local lock, and fsyncs the containing directory. Published manifests and objects are immutable. A corrupt preexisting object is quarantined, not silently accepted or discarded.
The manifest's durable publication is the archive commit point. An interrupted capture may leave unreferenced objects or staging files, but MUST NOT expose a committed manifest with missing dependencies. An index or cursor is rebuildable state, never the authority for retained history. Concurrent writers MUST NOT overwrite existing records. Retries MUST not manufacture duplicate unchanged snapshots.
Verification checks canonical manifest identity, schema, ancestry closure, every object digest and declared size, journal syntax, unique event IDs, sequential ordinals, source-reference membership and bounds, and equality of decoded native payloads with their referenced records. It MUST fail on conflicting sizes, missing ancestors, corruption, or unresolved source locators. Verification cannot prove omitted provider records never existed or certify a model's future behavior.
9. Security and transport
Raw originals are private evidence. Secrets already present inside a transcript remain part of that evidence; unrelated authentication stores are excluded. Destructive redaction MUST NOT replace originals. A future redacted derivative needs independent identity and provenance.
Local libraries use owner-only directories and files where POSIX permissions apply. They are plaintext at rest and must be placed on appropriately protected storage. Explicitly selected text and mechanical data MAY be committed to a private session repository. That choice is not redaction or proof that its contents contain no secrets. Evidence is untrusted data, never current instructions or authorization.
Encryption is OPTIONAL throughout 0.3.x and 0.4.x; its
requirements are reconsidered for 0.5.0. Omitting
--recipient MUST produce a plaintext package without
requiring age or keys. Supplying a recipient explicitly
requests age encryption and MUST fail if encryption fails;
it MUST NOT silently produce plaintext instead. Keys remain
outside archives. Earlier encrypted packages stay readable.
The portable envelope is a fixed-header USTAR stream
containing a canonical pack-index.json, selected manifests
and their lineage closure, managed records and descriptors,
referenced content, and selected rendering receipts.
Generated views MAY be regenerated rather than included. The
reference exporter omits reproducible rendering receipts
from backups by default; pack --include-views selects
eligible receipts explicitly. Their omission does not omit
mechanical records or source evidence. The package index
records whether receipts were included or are to be
regenerated. Source and managed closure MUST use one frozen
descriptor inventory; concurrent interpretation publication
MUST NOT create a package with missing origin prerequisites.
The plaintext package and its optional age envelope share
the same inventory and validation contract. The index
records roots, manifests, managed files, and objects with
content references. All inventory entries must be unique,
expected regular files; links, traversal, special files,
GNU/PAX extensions, and undeclared payloads are rejected.
The default flat profile retains acs-pack/0.2.0 and its
existing limits: 16 MiB per metadata document, 64 MiB
aggregate manifest bytes, 100,000 entries including the
index, 1 TiB total content, and 8 GiB minus one byte per
USTAR file. Limits MUST be checked before unbounded
allocation. Explicit pack --profile sharded-1 selects the
following additional profile. There is no automatic fallback
and no truncation.
9.1. Sharded inventory transport
acs-pack/0.3.0-sharded-1 preserves one globally closed
backup, including eligible whole collection descriptors;
inventory shards are transport partitions, not independent
session archives. The unchanged default flat profile and
earlier encrypted inputs remain readable. Unpack selects the
reader from the declared envelope format, not its filename.
Normalizers, naming, rendering, and native restoration
claims are unchanged by this transport profile.
The canonical
root index
is the first USTAR member, pack-index.json. It records the
format, receipt policy, decimal-string aggregate counts and
byte totals, and ordered shard references. Each reference
contains its decimal ordinal, SHA-256 address, byte size,
entry count, and assigned metadata byte total. The index
MUST fit 1 MiB and reference between one and 64 shards.
Each canonical
inventory shard
is stored as inventory/<sha256>.json, immediately after
the index in ordinal order. A shard contains its format,
ordinal, and typed entries with kind, confined path,
sha256, and decimal-string size. Kinds sort globally as
root, manifest, managed, then object, with lexical
paths within each kind. Roots reference an inventoried
manifest without duplicating its payload. Physical payloads
follow all shards in manifest, managed, then object path
order. Repeated paths, conflicting sizes, duplicate shard
ordinals, missing or extra payloads, and unreferenced
inventory entries MUST be refused across shard boundaries.
Each shard MUST fit 16 MiB and 100,000 typed entries. The manifest and managed payload bytes assigned to one shard MUST total at most 64 MiB; each metadata payload remains at most 16 MiB. The profile therefore permits at most 6,400,000 typed entries. The entire encoded USTAR stream, including inventories, headers, padding, and end markers, MUST fit 1 TiB, and each file MUST fit 8 GiB minus one byte. An optional age envelope is limited to 1 TiB plus a one-percent envelope reserve. Multipart transport retains its existing descriptor, part, count, and reconstruction limits; multipart splitting does not weaken the package profile. Quotas are fixed, not user-configurable.
Planning freezes the selected roots and one immutable descriptor inventory under the library lock. It independently enumerates source lineage, origin prerequisites, all selected interpretation versions, explicit content bindings and chunks, eligible collections, and optional complete view partition groups. Native reference-shaped JSON MUST NOT authorize additional objects. Later publication is excluded consistently. Planning verifies content and source predicates against captured CAS evidence, including journal order, occurrence uniqueness, graph/recording relationships, source paths and ranges, checkpoints, and chunk closure. These checks do not establish missing source coverage or native restoration.
The reference implementation uses private disk-backed SQLite ledgers with an 8 MiB page cache, file-backed temporary storage, and memory mapping off. Copying and hashing use 1 MiB blocks; individual metadata and source-journal record bounds remain explicit. The ledger is rebuilt from evidence, never imported from a caller's diagnostic database. Available staging/output capacity is checked with the existing 256 MiB reserve. Exhaustion or interruption MUST NOT publish a complete package or advance source cursors. Every payload is rehashed during final writing, and completed output is fsynced and published without overwriting an existing file.
Unpack stages the complete package privately and validates canonical indexes, all shard and payload digests, resource totals, global uniqueness, exact closure, source integrity, and requested complete view groups before importing any history. It reconstructs the closure independently from the fully staged evidence and compares it with the inventory. Age completion is authenticated before publication. Verified objects and manifests publish durably; lineage ancestors precede descendants. A publication interruption may retain a verified subset, never a complete-import success claim; retry is idempotent. Sharded command results report root, manifest, managed-file, object, and shard counts rather than unbounded identifier arrays.
Portable and native evidence materialization also enforce the 64 MiB aggregate ancestry-manifest metadata limit. Exceeding a profile limit MUST fail with a diagnostic rather than silently omit an ancestor.
Unpack stages privately, verifies the entire inventory and closure, and, for encrypted input, authenticates age completion before publishing. Ancestors publish before descendants. Publication of the whole imported batch is not atomic; an interruption may leave a verified subset. Reimport is safe and retains the input. Encryption authentication does not prove authorship or the truth of captured content.
10. Continuation and conformance
Portable restoration materializes archived evidence without
requiring the original store. Native restoration builds an
isolated compatible client store; merely printing the old
session ID is not native restoration. Materialization alone
MUST remain materialized-unverified until an identified
client version actually loads the result.
resume --plan emits an inert plan. It MUST NOT launch a
client, transmit evidence, execute transcript instructions,
or retry uncertain external effects. Credentials,
permissions, workspace availability, client compatibility,
and unresolved effects remain explicit prerequisites. A
successful fixture loader test MUST NOT mark every real
archive provider-tested.
Conformance requires the versioned schemas and digest vectors plus positive and adversarial tests for raw roundtrip, unknown and partial records, graph/source identity, concurrent mutation, durable publication boundaries, corruption, hostile paths, scoped databases, workspace reconstruction, plaintext and encrypted closure transport, and offline restoration with original stores unavailable. Every capability report must identify its tested format or client version and its remaining gaps. Candidate status ends only after the release gates in RELEASE.md are met.
11. Continuation graph profile
extensions.continuation_graph references an
acs/continuation-graph/0.2.1 materialization. Verification
MUST recompute it from source-verified native payloads, not
trust supplied normalized parent or tool fields. It retains
nodes, explicit parent and revision edges, unresolved native
identities, cycles, candidate heads, selection, and tool
lifecycle evidence. Duplicate native IDs MUST remain
ambiguous. Native IDs are resolved within their recorded
stream; cross-stream identity is not guessed.
The reference profile recognizes native uuid, id, and
message_id; parent fields parentUuid, parentId,
parent_id, and parent; and explicit revision_of or
replaces fields. Native current_node or selected_head
may select one unambiguous head. --head EVENT_ID records
an operator selection separately from native evidence. No
declaration means selection remains unknown even when only
one candidate head exists.
effective_event_ids is selected ancestry in journal order,
not an exact provider prompt. Unresolved edges or cycles
prevent that materialization. Compaction does not recreate
missing source turns, original model inputs, reasoning,
sampling state, or deleted revisions. Raw events are never
removed by graph selection.
Tool call/result IDs are scoped to the stream. Exactly one
call and result yield result-observed; a call without a
result yields no-result-observed. Orphan results and
duplicates remain explicit. Every external effect remains
unknown. The graph profile is limited to 100,000 nodes and
16 MiB serialized metadata; exceeding it preserves raw
capture with a graph-profile gap.
12. Declared resource and historical closure
Additional --resource-root boundaries permit recognized
structured attachment references, not arbitrary paths from
prose. Captures outside the client root MUST retain their
acquisition root and original relative path. Their portable
materialization uses a separate dependency namespace; native
client restoration MUST NOT install them implicitly. Remote
resources and outside-root, missing, symlinked, or
unreadable targets remain gaps. No current adapter asserts
universal resource closure.
--dependency ROLE=PATH selects a file as instructions,
memory, configuration, tool, plugin, MCP, lockfile, opaque
native state, or historical-checkpoint evidence. The
acs/dependencies/0.2.1 profile records exact bytes and
operator-declared provenance. It does not install, run, or
assert the effective precedence of that file. Authentication
stores are excluded by the bounded filename policy; callers
MUST review selected configuration for embedded secrets.
Unrecorded environment variables, executable dependencies,
remote MCP state, model weights, and credentials remain
outside verified closure.
--checkpoint-root explicitly selects a local Git
checkpoint repository, including a separately authorized
Gemini shadow repository. ACS retains an offline bundle,
observed refs before and after acquisition, and its object
format. It does not infer native session binding from a
directory name or undocumented JSON fields. Shallow stores,
linked stores outside the root, object alternates, and
unavailable history produce gaps.
restore --target checkpoint --commit OID extracts a chosen
archived commit's regular-file tree without checkout, hooks,
filters, or tool replay. It preserves ordinary modes and
validates path collisions. Symbolic links and submodules are
reported but not materialized in this profile. This is
operator-selected historical Git evidence, not proof of the
workspace at a particular model turn. The profile bounds
bundle and individual blob bytes to 64 MiB, aggregate file
bytes to 1 GiB, and entries to 100,000.
13. Prospective recording and barriers
acs record is an opt-in producer interface, not a global
hook or a watcher of uninstrumented agents. It accepts JSONL
envelopes containing sequence, kind, and payload.
Kinds are native, state, barrier, checkpoint, and
operation. Optional producer_time_ns and
dropped_before are decimal strings. Producer, generation,
and sequence identify one immutable record; counters and
timestamps are limited to 20 decimal digits. Each envelope
is bounded to 64 MiB.
An acknowledgement MUST follow durable object and manifest publication. Identical byte retries return the same snapshot; conflicting retries MUST fail. Missing sequence numbers and declared dropped counts MUST be retained. Continuing after loss does not repair it. State is rebuilt from manifests after a crash, not from an authoritative cursor. Producer clocks are unverified; reported lag is receive time minus producer time and may be negative.
Barrier payloads declare a checkpoint_id. A checkpoint
payload names participant producer, generation, sequence,
and snapshot receipts. Every participant MUST acknowledge
the same checkpoint ID. Any prior missing events or a
participant advancing before checkpoint acquisition makes
the boundary degraded. Optional snapshot_refs bind exact
archived evidence, workspaces, or databases into closure.
producer-barrier means only a complete acknowledgement set
for the declared producer streams. It MUST NOT mean a
coherent operating-system snapshot, quiesced user agents,
atomic workspace/database state, or captured process RAM. A
producer must actually instrument and acknowledge its own
interface. Uninstrumented streams and provider-private state
remain unknown. ACS never pauses a provider or installs
instrumentation implicitly.
Operation payloads require operation_id and one of
planned, started, completed, failed, or uncertain.
Reconciliation keeps unfinished and conflicting receipts
uncertain. A reported completion is not proof of an external
side effect or exactly-once execution. Recovery MUST NOT
automatically retry any operation.
14. Recovery evidence and resource limits
acs drill verifies closure, materializes an absent or
empty destination using archived bytes, compares output, and
publishes an acs/recovery-receipt/0.2.1 record bound to
the original snapshot. Its inventory is evidence of that
local drill, not an authenticated third-party attestation.
The original provider stores are not read. No provider
loader or model is started. Materialization, provider
loading, and actual execution are distinct;
--require native remains unmet.
The retained 0.2.1 archive-journal normalization is record-bounded for JSONL and uses a disk-backed event journal. Large files containing bounded records can be decoded without an aggregate 64 MiB source limit. Individual oversized records remain opaque ranges; JSON documents and legacy logical SQLite payload decoding retain the aggregate 64 MiB limit. New rowwise SQLite archive-journal occurrences are explicitly opaque exact ranges, read in fixed-size blocks without materializing cells. Managed interpretation is a separate claim. Additional derived views and graph metadata have independent bounds.
Scoped SQLite staging defaults to 256 MiB per source file
set. --sqlite-source-bytes explicitly raises or lowers
that budget for discovery and export. Before each staged
component, available disk MUST cover its size plus the
configured reserve (--sqlite-reserve-bytes, default 64
MiB). Concurrent disk use can still invalidate that
observation; I/O failure MUST NOT acknowledge a capture.
Discovery streams session identifiers, bounded to 100,000
identities and 16 MiB of identity bytes per database; a
single identity is limited to 1 MiB. Projection preflight
bounds matching row count to 100,000 per table. A refused
database MUST produce a gap, while independently captured
transcripts may still publish. These are per-source limits,
not a promise that all-session export fits a disk.
Corpus-wide bytes, available disk, pack limits, and
unresolved records still require reconciliation.
Scoped acquisition requires Python 3.12's incremental
blobopen API and SQLite 3.43 or newer with octet_length,
including small legacy-envelope captures. Missing runtime
support MUST be a classified refusal, not zero discovered
sessions. Valid small projections retain the exact
sqlite-logical JSON bytes and digests of the earlier
codec, with a 32 MiB legacy-output budget. Larger
projections use format: sqlite-logical-jsonl and
role: sqlite-rows, preserve the declared native filename,
and MUST use the existing chunk descriptor. Each
LF-terminated document follows sqlite-row.schema.json and
schema: acs/sqlite-session-row/0.3.0. It holds one typed
row, original table metadata, decimal table/row ordinals,
and the original rowid or composite-primary-key locator.
Identical rows remain separate occurrences.
Ordinary rowid TEXT/BLOB cells use bounded incremental reads
and disk-backed base64 encoding, without loading a whole
cell into Python. WITHOUT ROWID, fully shadowed rowid
aliases, generated columns and virtual tables use a separate
private derived rowid database. SQLite copies only the
explicitly selected rows, not source triggers or unrelated
sessions. Its SQLITE_LIMIT_LENGTH is 32 MiB, bounding each
whole native row as well as every individual string/BLOB.
Above-bound layouts MUST report
sqlite-derived-rowid-native-row-length-limit, not a
successful empty capture. Originals remain retained in
separately selected whole-store evidence; the scoped
projection is not a substitute for those bytes.
Source and derived database encodings MUST agree. Valid
UTF-16 TEXT is incrementally converted to the legacy UTF-8
typed-text representation. Malformed UTF-16 remains base64
native bytes with its explicit encoding; malformed UTF-8
also remains typed bytes. Failed decoding MUST produce an
interpretation gap, never replacement Unicode. Original
rowids, key cells, NULL, binary bytes, large integer decimal
values, and real hex spellings remain preserved.
Rowid incremental reads and bounded native row copying are distinct resource claims. Python heap tests alone are not native RSS measurements. Disk-backed derivation and ordering can be slow. The streamed output retains the existing 65,536-chunk, 4 MiB/chunk capacity; free-space reserve is rechecked during spooling and derivation. I/O failure, interruption or a resource refusal MUST NOT publish a complete manifest or advance a cursor. Staged source/WAL handling and source-stability observations remain unchanged.
The 0.3.0 managed normalizer MUST use streaming extraction and disk-backed staging for oversized individual JSON records and strings. A resource limit MUST produce an explicit gap, not a silently truncated message or an empty successful interpretation. Native evidence remains intact even if a normalized field cannot be decoded. Unknown records MUST have a visible readable occurrence and a link to preserved content. Decoding and rendering claims are independent from source integrity.
The reference managed normalizer bounds each decoded record's aggregate structure to 10,000 nodes, 2 MiB of inline metadata, and depth 128. Ordinary large strings are streamed into chunked references rather than counted as unbounded inline values. Exceeding a structural bound MUST preserve the full captured source range using disk-backed staging, expose an unknown occurrence and gap, and link its full text when the range is valid UTF-8. Malformed or non-UTF-8 ranges remain opaque original bytes with explicit diagnostics; they MUST NOT be mislabeled decoded text. These limits are bounded decoding, not permission to discard evidence or textual closure.
0.2.0 archives remain readable without rewriting their
manifests. Consumers unaware of 0.2.1 MUST reject the newer
version rather than interpret chunk descriptors as native
source bytes. Existing acs-pack/0.2.0 transports explicit
object closure for either supported manifest version.
15. Managed sessions and interpretations
The data flow is captured native evidence, immutable mechanical records and digest-addressed content, managed selection and query index, then readable projections. Mechanical records and content are authoritative for rendering. Native evidence is authoritative for validating their interpretation. SQLite and readable files are rebuildable outputs; their loss MUST NOT lose session history.
Managed descriptors MUST use the canonical encoding and
digest rules in section 3. Their digest-named file is their
identity; documents MUST NOT hash themselves circularly.
Mechanical records are ordered UTF-8 JSONL object shards,
referenced by digest and size from interpretation
descriptors. JSONL serialization MUST retain lossless native
values, deterministic key ordering, and one LF per record.
The reference normalizer's 0.3.0-7 profile sorts keys by
Unicode code point, emits ASCII JSON escapes for non-ASCII
code points, separates items with comma-space and keys from
values with colon-space, and appends LF. Integers are exact
decimal literals; non-finite numbers and duplicate keys are
rejected. This is lossless JSON, not JCS. Native lexical
bytes remain in captured evidence; normalizer versions bind
their specific decoding and serialization choices. Publish
referenced content and shards durably before their
interpretation or collection descriptor. Interpretations are
immutable. A changed normalizer or revised decoding creates
another interpretation, never overwrites the earlier
interpretation or source manifest. Mutable indexes MUST NOT
hide independently discoverable descriptors.
An interpretation descriptor has
schema_version: acs/0.3.0, normalizer_version,
session, capture, ordered records object references,
coverage, and gaps. session.key binds the captured
source identity; session.identity retains native identity
fields and session.display stores stable naming metadata.
capture.snapshot names the source manifest; origin_host,
observation_host, and source_kind distinguish
provenance. A record has schema_version, kind, id,
decimal ordinal, source_ref, data, and optional
lossless native. Source references bind a captured object
and a byte-range or JSON-pointer locator; derived source
mappings MAY additionally name input records. A pointer
relative to a captured row document MUST additionally carry
json_pointer_scope: range, offset, length, and the
exact captured native_path. Its pointer is resolved within
that bounded JSON document, not the entire JSONL file.
Profile 6 row records retain and verify their table/row
ordinals, locator kind, and typed row locator as a complete
tuple. Existing profiles 1–5 remain readable without
rewriting their records or source evidence. Long native
strings MUST use chunked acs_text references when they
exceed the inline profile budget. The record's explicit
text_refs inventory MUST bind each substitution's JSON
pointer, blob, and encoding utf-8-surrogatepass. An
optional content member embeds the existing
acs/chunks/0.2.1 descriptor. When present, blob
addresses that descriptor's canonical bytes, not the raw
string. raw_sha256 and decimal raw_size bind the
reconstructed UTF-8 bytes; ordered chunk references bind
each part. Section 4's 4 MiB chunk sizes, descriptor parity,
and reconstruction checks apply. Every oversized string in
the reference profile uses these chunks so no individual
normalized textual Git object exceeds 100 MiB. An ordinary
nonchunked reference still addresses its exact text bytes.
Only inventoried pointers represent substitutions: native
dictionaries with the same keys MUST remain ordinary native
data. Reconstructing the original JSON value and
reserializing it is separate from checking the lexical
captured bytes; lone surrogates retain their lossless native
representation and a display diagnostic.
Any additional native scalar substitution, including a
decimal-number wrapper, MUST inventory its exact pointer and
original type or token separately from ordinary native
objects. Native dictionaries with matching marker keys MUST
not acquire a substituted meaning. Non-finite spellings such
as NaN or Infinity are invalid JSON evidence and MUST
produce an unknown occurrence and diagnostic, not a decoded
decimal value. The captured lexical source remains available
independently of a decoded numeric value.
The reference profile uses numeric_refs entries containing
pointer and the exact json_number token. The value at
that pointer is an acs_decimal wrapper. Only that binding
identifies a numeric substitution; matching native objects
remain objects. Decimal and exponent spellings and negative
zero retain their exact tokens; ordinary integer values
retain arbitrary-precision integer semantics.
Identity distinguishes client, recorded model provider,
account namespace, native thread, child stream, source
generation, origin host, and observation host. A quarantine
mirror MUST label its acquisition provenance and receipt;
declared Air origin does not turn a Pro observation into a
live Air capture. Divergent sources sharing a native ID
remain distinct. A collection descriptor binds its name,
exact interpretations, and selection containing selected
snapshot digests, receipt references, and origin. Host
labels alone are not selection proof.
Mechanical records represent sessions, capture snapshots,
streams, message occurrences, content blocks, tools,
relationships, branches, revisions, compaction, goals,
tasks, artifacts, dependencies, gaps, unknown occurrences,
and uninterpreted native records. Each interpreted record
MUST bind its source manifest and captured locator.
Unavailable relationships stay unknown. Identical repeated
messages remain separate occurrences; only identical stored
content deduplicates. Exposed reasoning is preserved as
recorded evidence, never inferred hidden reasoning. The
generic tool kind retains the original tool_call or
tool_result classification in data; it does not rename
or discard native fields. Generic native records retain
unknown fields even when no semantic projection is
available.
Source-native payloads and filename bytes MUST remain available losslessly. Large integers MUST NOT round through floating-point conversion; arbitrary native integers use the existing lossless native encoding or decimal strings in normalized counters. Large strings and binary payloads use verified content references rather than an unbounded inline allocation. Text decoding errors retain original bytes and diagnostics. Tool call/result linkage MUST NOT imply that an external effect completed.
Managed display metadata stores stable title, title origin,
date provenance, folder assignment, and capture selection.
The reference naming profile is recorded as
session.display.naming_version: 0.3.0-3. Existing
assignments from that profile remain stable across revised
interpretations. Provisional interpretations without that
naming profile remain retained evidence; their assignments
do not determine the final profile's first assignment. Use
recorded title and date where available, then an explicitly
labeled request excerpt or undated fallback. One stable
dated folder represents one source thread;
collision-resistant source identity suffixes distinguish
divergent threads. Every retained capture remains separately
addressable. Changing the selected capture is a new recorded
selection, not deletion of history. Rendering MUST NOT use
existing folder names, filesystem timestamps, locale,
current time, or model inference to fill these fields.
The reference Claude naming profile recognizes a nonempty
aiTitle on a native type: ai-title record as a recorded
title. Recorded titles take precedence over provisional
request excerpts. A Claude message marked isMeta: true
remains an archived occurrence but does not supply the
request-excerpt fallback. These client-specific fields do
not assign naming semantics to other clients' records.
Bounded title prefixes are display metadata; complete native
title values remain preserved in mechanical content.
The Grok naming profile recognizes a nonempty string
generated_title only on the root JSON document of the
selected session's summary.json metadata capture. The
capture MUST have format: json, identity-directory
ownership and native-record identity. Its relative parent
filename bytes MUST hash to the captured source instance,
any explicit source instance MUST agree, and its root
info.id MUST match the selected native session ID. A bare
summary.json uses the explicit root's . owner anchor.
Tool records, nested payloads and child or compaction
summaries belonging to another source instance within the
selected capture do not acquire this field's title
semantics. A separately selected child source MAY supply its
own bound primary summary. Existing recognized generic
titles throughout the same document retain their prior
traversal and first-recorded precedence; this scoped field
is considered only afterward, before continuing to the next
captured file. Normalizing this correction creates a
0.3.0-7 interpretation with naming profile 0.3.0-3;
earlier normalizer-six and naming-two interpretations,
folder assignments and generated files remain immutable and
readable. A newly selected profile MAY assign a different
folder without replacing those earlier records or files. The
naming version changes recognized source semantics, not the
folder slug algorithm or rendering profile.
An origin alias MUST NOT merge captures merely because their
native session identifiers match. A recorded
capture.origin_binding names the exact physical source
identity, snapshot-bound proof, and proposed origin
identity. The reference Air Codex mirror profile requires a
verified direct-transfer receipt and complete aligned
transcript stream membership. It rehashes both complete
captured streams and verifies the complete nonempty older
stream as a prefix of the mirror. Unproven or incompatible
stream sets retain separate identities. The physical source
identity remains recorded. Explicit
capture.origin_dependencies inventories proof objects,
transfer receipts, and prerequisite origin snapshots; a
complete backup MUST include them. A text-only Git
projection retaining these references but not native source
closure MUST NOT claim independent byte-proof verification.
Source membership and ranges alone do not establish decoded correspondence. Verification MUST independently compare supported reversible native payloads, explicit text/number substitutions, and decoded SQLite or native task/goal fields against captured bytes. The reference report distinguishes source bindings, reversible correspondence, unsupported derived mappings, opaque records, and absent native evidence. Derived fields not checked against their source MUST NOT be included in a general claim that all interpretation was verified.
managed/index.sqlite MUST be rebuildable solely from
canonical managed records and descriptors. The reference
query profile has these tables:
| Table | Columns |
|---|---|
sessions |
key, identity, display |
captures |
interpretation, session_key, snapshot, coverage |
records |
interpretation, id, kind, ordinal, source_ref, data, native |
interpretations aliases captures. Typed views are
streams, messages, content_blocks, tools,
relationships, branches, revisions, compaction,
goals, tasks, artifacts, dependencies, and gaps.
Each view filters the matching mechanical kind rather than
parsing readable Markdown. Record-bearing query rows retain
their interpretation and occurrence IDs; the interpretation
binds canonical shard digests. A cached query MUST NOT serve
a corrupt record as verified evidence. Decimal ordinals
remain lossless text; queries needing numeric order MUST NOT
sort decimal strings lexicographically or convert them to
rounded floating-point values.
16. Reproducible readable projections
A collection MAY record selection.root_interpretations,
mapping session-key SHA-256 digests to selected
interpretation digests. Each supplied key and value MUST be
canonical; each value MUST belong to that collection and
resolve to an interpretation owned by exactly that session
key. Validation MUST cover the entire supplied map before
session or capture filtering. Invalid, unavailable,
nonmember and wrong-session roots MUST fail, never silently
fall back. Partial maps are permitted. A capture filter that
retains a mapped session but excludes its designated root
MUST fail; valid maps for other, filtered-out sessions do
not invalidate session selection.
For a mapped session, the same designated interpretation supplies root naming, date, folder, origin-host placement and root transcript. Every selected earlier interpretation remains independently navigable and included in the GitHub mechanical/text closure. This choice asserts no source recency, safe resumption or replacement of history.
The reference renderer uses 0.3.0-4 only when the
effective selection has explicit roots. Renderer-four
session receipts record options.collection, the effective
immutable collection digest; options.root_interpretations,
the session's explicit map or an empty map for an unmapped
session; options.root_selection; and
options.root_selection_basis, either explicit-collection
or legacy-digest-order. Navigation receipts record the
same effective collection and complete effective root map.
Verification checks these options against the immutable
collection. The view index records the same renderer
version. Unmapped sessions retain legacy digest ordering.
Absent or empty maps retain renderer 0.3.0-3 output,
receipt bytes and path semantics without inferring model,
normalizer or naming-profile recency.
Filtered explicit selections MUST emit a bounded immutable
effective collection so their GitHub projections regenerate
from emitted mechanical data alone. The reference recipe is
named render-selection and records the sorted actual
interpretation and snapshot sets, effective root map,
original origin_host, and original receipt list followed
by the original collection's canonical-byte blob reference
if not already present. Its selection.derived_from has
format: acs-render-selection/1 and collection, the
original collection digest. Those original bytes are opaque
source evidence, not authorization to import unrelated
interpretations. The original managed collection remains
unchanged in its library. Recipe validation checks canonical
source bytes, bounded size, origin, exact receipts, selected
membership, snapshot set and effective map correspondence.
Full collection rendering reuses the original collection. Rendering the complete effective recipe reuses its digest; further filters derive directly from its original anchor, without recursive recipes or intermediate selection blobs. Initial and fresh-clone renders MUST bind the same effective collection digest and options and produce the same file bytes. Filtering to only unmapped sessions retains an empty effective map and renderer three. No-map legacy collections acquire no new recipe merely because of filtering. All recipes and original blobs remain subject to existing canonicalization, integrity, confinement and metadata bounds.
acs sessions list inventories managed sessions, captures,
identities, and coverage. show SESSION returns structured
state and accepts an explicit capture selection. normalize
creates immutable interpretations from captured archives,
including supported legacy versions. rebuild-index
replaces only the rebuildable SQLite query index. render
selects a session, collection, or all managed sessions with
--profile filesystem|github and --out PATH. It operates
offline from managed data and content without contacting
providers or original stores.
Normal acs export captures evidence, normalizes it,
durably publishes managed state, then invokes this same
rendering service. --view filesystem|github|none defaults
to filesystem; --view-out PATH defaults to library
readable/. A rendering failure MUST NOT discard a
successfully committed capture. Exit 0 means requested
requirements passed, 2 means usable data with unmet
requirements, and 1 means fatal operation failure. Results
MUST preserve independent per-source success and failure.
The GitHub profile publishes _acs/ canonical mechanical
data and required content, generated indexes/, and
sessions/ORIGIN/YYYY/MM/YYYY-MM-DD-description--SOURCE/.
Undated threads use a labeled undated path. Thread views
contain SESSION.json, TRANSCRIPT.md, GOALS.md,
TASKS.md, HISTORY.md, machine/, goals/, tasks/,
artifacts/, dependencies/, and capture views under
snapshots/SNAPSHOT/. machine/ files are projections too.
The repository's authorized README, AGENTS, and archive
guide explain generation and untrusted evidence handling.
Render recorded speakers, timestamps, model changes, branches, subagents, revisions, compaction, exposed reasoning, tools, goals, and tasks. Missing or opaque data MUST be visible. Preserve native goal/task source files separately from generated summaries. A goals/task count of zero MUST distinguish known absence from unavailable data. All retained captures MUST be navigable, not just the latest view. Recorded selected paths MUST remain distinct from alternative history.
Tool results of at most 4 KiB MAY appear inline. Larger results MUST link their complete payload. Markdown pages MUST be at most 256 KiB; textual payload pages MUST be at most 512 KiB. Ordered navigation, source mappings, and reconstruction byte counts and digests bind paginated parts to their complete content. Limits include formatting and navigation bytes. Pagination MUST NOT silently omit records, split away undecoded evidence, or break textual closure.
Archived instructions MUST appear as quoted evidence. Unsafe markup is escaped; automatic remote-image loading is suppressed. Generated links MUST resolve to inventoried local outputs or be clearly identified inert source references. Transcript text MUST NOT authorize arbitrary file collection, command execution, or publication.
The same selected canonical records, renderer version,
profile, and options MUST produce identical relative paths
and file bytes in fresh destinations. A rendering receipt
binds selected record digests, interpretation and collection
identities, renderer_version, profile, required
profile_version: 0.3.0, options, relative output paths,
sizes, digests, and source mappings. Receipt identity MUST
not depend on output destination or wall clock. SQLite
rebuilding MUST not change projection bytes.
Each canonical rendering receipt MUST fit the 16 MiB
descriptor bound. Larger ordered file inventories use
receipts with partition: group, number, count,
first_file, file_count, and total_files. Counters are
canonical decimal strings; part numbers start at zero. Parts
retain identical metadata except files and partition and
appear in part-number order in the view index. The group
digest is SHA-256 of canonical receipt metadata excluding
files and partition, followed by one NUL byte, then each
canonical file entry followed by one LF byte, in inventory
order. Verification MUST reject missing, duplicate,
reordered, or inconsistent parts and check the reconstructed
group digest. An individual metadata envelope or file entry
that cannot fit remains an explicit failure, never a
truncated inventory. Small unpartitioned receipts remain
supported.
The reference renderer can use independent copy-on-write clones for identical generated bytes on macOS APFS. It verifies both source and cloned bytes, and falls back to ordinary verified byte writes when cloning is unavailable or fails. It never uses hardlinks to authoritative content or between these newly generated duplicates. This physical optimization does not change paths, file bytes, or receipt semantics and does not assert a capacity-saving guarantee.
Existing user-authored files MUST be preserved. Previously
generated files changed by the user cause reported
conflicts, not overwrites. Rendering validates confinement,
collisions, links, and bounds before materialization and
publishes generated updates atomically under concurrency
protection. Interrupted publication MUST leave recoverable,
verified state, never a false complete receipt.
verify --views checks receipts and all inventoried output
bytes; --require readable additionally checks selected
navigation and complete textual closure. Evidence,
normalization, rendering, resource closure, and restoration
remain separate claims.
17. Independent reconstruction and release acceptance
A private session repository MUST contain sufficient
canonical data under _acs/ to regenerate every checked-in
projection from a fresh clone without source clients,
previous views, SQLite, or model inference. Full native
originals, large databases, and binaries MAY reside in
separately inventoried private release backups. That split
MUST be explicit: mechanical-only regeneration does not
prove full source evidence closure or native restoration.
Every selected textual payload MUST be reachable from the
repository; an off-repository binary is not a substitute for
missing transcript text.
Plaintext backup-only recovery MUST separately restore source evidence, managed data, and projections with the original stores unavailable and without encryption tools. Optional encrypted backups require their declared key and runtime dependencies. Multipart descriptors MUST verify ordered part sizes/digests and reconstructed package bytes; interrupted transfer remains retryable without dropping committed captures. Do not introduce paid LFS or an additional service to satisfy this profile.
The reference demonstration selects retained Air Codex and Claude collections through verified receipts, including earlier captures and direct-bridge quarantine mirrors. It MUST reconcile discovered files, source identities, captures, decoded records, opaque material, missing resources, rendered outputs, and failures independently. Unrelated observer-machine or WSL sessions are excluded, not silently merged by a shared library path. Pilot counts and provider versions belong in private operational receipts or the release ledger, never the public specification page.
Acceptance tests MUST include source correspondence, repeated events, goals/tasks, branches, subagents, compaction, unknown records, oversized single strings, pagination, naming collisions, hostile paths/markup, user-edit conflicts, concurrency, interruption, disk exhaustion, and corruption, paired with valid-input cases. Two fresh renders, deletion of prior views, SQLite rebuild, distinct historical captures, fresh-clone reconstruction, and plaintext backup-only recovery MUST be tested. Accepted P0/P1 adversarial findings require fixes and regressions before final release. Browser capture, automatic agent execution, hidden runtime state, and new native restoration guarantees remain outside 0.3.0.