Repository navigation
AOCI-CODE v0.2.0-rc4
Pre-releaseAOCI-CODE v0.2.0-rc4 is built from 79712d72f0f1e63a9904d972e1ba70b06a00ee47.
The fourth 0.2.0 candidate is the pre-release audit: a whole-system review of
persistence, recovery, the write path, scope and inventory, the CLI and Host
integrations, team configuration, the Database group, and the public text,
each finding verified against the code, the fixes carrying targeted
regression tests. Concurrent sessions that build one repository now finish without
duplicated or lost orphan removals, a removal is judged again under the write
lock, and a candidate receipt holds its batch rather than the whole plan, so a
large first build no longer writes hundreds of megabytes of receipts. Pi joins
the Agent integrations.
Upgrading: a repository governed by v0.2.0-rc3 needs no migration. With a
Database Volume, Maintain and aoci_update_entry now read only a snapshot
database baseline accept recorded: a snapshot captured but never accepted
holds its Database work until it is accepted. init --agent claude --hooks
rewrites an earlier Claude Code hook with quoted paths; one that worked
keeps working until then. A new Codex MCP configuration quotes its paths,
but init --agent codex keeps an existing [mcp_servers.aoci] table as it
is: one that a quote in the repository path already broke has to be
removed by hand before init writes it again. Rolling back follows docs/rollback.md: an
older binary reissues a batch whose receipt this version wrote under the new
name, and nothing else needs undoing.
Changes:
-
A candidate receipt holds its batch, not the whole plan. Every
.aoci/drafts/code-cognition/candidate-*.jsonstored the complete target
list of its plan: megabytes per twenty-file batch on a large repository,
400 MiB over one first build in the report. A receipt is now
batch-<id>.jsonand sized by its batch; acandidate-*.jsonwritten
earlier still works. The new name keeps a downgrade working: an older
binary sees no receipt for a batch this version issued and issues it again.
Archived Managed Scope transactions, which hold a complete preview each,
are pruned after 30 days when the next one is archived; candidate receipts
and archived Entries transactions are kept, since they prove the replay of
an applied batch. Once the repository is aligned with nothing pending, old
candidate-*.jsonfiles can be deleted by hand (#208). -
A Scope Change completes when the team has disabled the Ledger. The
terminal Ledger event was required after the formal writes, soscope activatechanged the Baseline, then stopped with
cognition_transaction_ledger_requiredand left the change pending;
scope resumeandscope rollbackrefused for the same reason, and
config set ledger_enabled truewas blocked by the pending change, so no
command could close it. Like an Entries write, a Scope Change now records
its terminal event only when the Ledger is enabled. A repository already
stuck this way closes withaoci scope resume --transaction <id>. Found by
the pre-release audit. -
Fixes from the pre-release audit, persistence and recovery group:
a CAS write records its recovery intent before its staging copy, so a
process stopped between the two no longer leaves a staging file recovery
refuses forever; on macOS and the BSDs a lock holder's identity no longer
depends on the caller's time zone or locale, which let a waiter take a live
holder's lock; a CAS lock directory in the shared temporary directory that
belongs to another user no longer makes every write fail; a database
onboarding rollback proves the Root can be restored before it restores the
Baseline, and restores a Root without a final line break; and a sensitive
file admitted by an exact high-risk opt-in is no longer reported missing
after its Entry is written. A Scope Change on a Volumes repository measures
the cognition budget the wayscope statusdoes, on the Code Volume and
over every declared asset: it measured the Root alone, so its R and S
bands checked no Entry and its plan recorded zero Entries. -
Fixes from the pre-release audit, write path group: the final Apply's
alignment check agrees with governance on a Volume that differs from its
Baseline only by line endings (a zero-write batch on a CRLF checkout never
closed) and on a declared-only database source such as MongoDB (the last
batch never carriedterminal_proof); a Volumes removal's post-write check
loads the cognition set from the Root instead of reading nothing; and a
removal whose Volume write landed but reported an error keeps its receipt,
so the next call finishes the Baseline instead of leaving the Volume ahead
of it. -
An Overview of a partial scope (
code,meta,project,database)
whose Attestation passed no longer prints
model_full_cognition_reliable: truein its metadata while its own
receipt says false; a scope proves only itself (pre-release audit). -
Fixes from the pre-release audit, scope and inventory group:
index_path
must be a plain path inside the repository (config set index_path ../outside.txtused to be saved, and only a later layout check kept it
from being read); a path Git still lists under a directory that became a
symbolic link is a filesystem boundary instead of a candidate whose
content was read from outside the repository; and the budgetscope statusand a Scope Change report under Volumes applies the Meta's declared
S quota and checks Database Volume Entries, as governance does. -
A curation
excludedecision whose file left the Baseline is matched
only against a regular file inside the repository, hashed as it is read: a
link to an outside file is not followed, a FIFO no longer blocksscope status, and a large file no longer runs it out of memory. -
A curation
excludedecision for a file the Baseline already recorded
stays in effect after the Scope Change that applies it. The decision was
matched against the Baseline record that change removes, so it was dropped
the moment it took effect and the repository asked for the same Scope
Change again; activating it turned the file back to index, and so on. A
path the Baseline no longer records is now matched against the file on
disk, in the one implementation the CLI, governance and Scope Change share
(pre-release audit). -
Fixes from the pre-release audit, CLI and host integration group: an
interrupted Database onboarding can be inspected, resumed and rolled back
again, since itsstatus,resumeandrollbackcommands were blocked by
the recovery gate they close;initrefuses a host configuration target
reached through a symbolic link for every host, Claude Code hooks and Codex
included, before reading it;aoci mcpandaoci uino longer record the
legacy Locale in a configuration written before that field, as the MCP
contract says the server never writes configuration (an ordinary command
still records it); a repeatedinitkeeps the Managed Scope role of a file
it rewrites and no longer adds a path the Baseline never recorded;aoci ui
andaoci ui --stoprun while a recovery is pending, since the page shows
that state itself; and a damaged help text asset fails--helpinstead of
printing its marker with exit 0. -
Fixes from the pre-release audit, team configuration:
exclude_dirs,
exclude_files,exclude_exts,curation_excludeandinstalled_agents
in.aoci/config.local.jsonno longer override the team file, as the
configuration contract says these are team-owned; a local copy made one
machine compute a different inventory and Scope state.config set curation_excluderefuses a directory, an absolute path, or a path leaving
the repository: an entry names one file, and an invalid entry used to stop
scope statusandverifywithmanaged_scope_curation_path_invalid. -
Fixes from the pre-release audit, Database group: with a Database Volume,
assessment andaoci_update_entryread only the snapshotdatabase baseline acceptrecorded, as they already did before the Volume existed;
a snapshot captured but not accepted was issued and written. A Legacy
migration or Fresh Bootstrap that creates the Database Volume now refuses
unaccepted Evidence before writing, namingaoci database baseline accept,
instead of failing its own verification after the writes. Without a
Volume, a disabled source no longer hides a due Database bootstrap. An
openGauss index whose table, schema, or name starts withlocalor
global(a table namedlocale, say) no longer refuses the whole source as
a partition index, and an explicitASC NULLS LASTis accepted. When an
openGauss query times out and the cancel request cannot reach the server,
the stuck read on the main connection now ends at once instead of waiting
for TCP keepalive. -
Fixes from the pre-release audit, contracts and text assets: the Claude
Code hook script and the Codex MCP configuration quote the binary and
repository paths, so a path holding$, a backtick, or a quote is passed
as written instead of expanded by the shell or breaking the TOML (a
previously installed hook keeps working;initagain rewrites it); and a
message whose argument contains%!, such as a file named100%!.go, no
longer fails as a formatting error, which stopped an Entry write as an
internal error. -
Fixes from the pre-release audit, recovery group, second pass: every
resume and rollback first settles an atomic write a crash cut after its
exchange, so such a write is no longer taken as done while its leftover
files blockaoci_overviewfor good, and third-party bytes it captured are
restored instead of overwritten; a status reports the state that settling
will leave and writes nothing; a Bootstrap whose Root went missing reads as
a conflict instead of rolled back; a Fresh
Bootstrap rollback reverses the exact write order, so a rollback stopped
after the Root no longer leaves a conflict neither resume nor rollback can
close; a rolled-back Database bootstrap no longer reads as
already_applied, and one whose applied result is written is resumed, not
rolled back, as a Migration now is too; an Entries rollback no longer files
its receipt with the replay archive, which let a resubmitted batch write
without a recovery receipt; and a move on a filesystem without native
no-replace rename reports a source it could not remove instead of leaving
the formal asset in place, while a create there no longer reports its own
published file as a conflict. -
Fixes from the pre-release audit, write path, delivery and scope, second
pass: while parallel Code sibling batches are out, Maintain holds Database
work back, an explicitscope=databaseMaintain included, and still
counts it inremaining, since a Database batch
applied beside them staled every sibling still being authored; a sibling
fetched bybatch_idwhile the repository is blocked (a pending recovery,
a budget or Locale stop, owed Evidence) returns the stop instead of a batch
every Apply refuses; a Bootstrap or Migration Plan under Managed Scope no
longer asks for Entries on empty, binary, oversized, or curation-excluded
files that governance holds out; an Overview chain finished after a newer
one no longer moves the refresh generation back; a chunked delta reports
formal Entry ordinals, the ones its Challenge asks for; an empty delta
under Dirty or Stale governance keeps its base, and its
cognition_state_v2agrees with its other fields; a cognition
optimization batch whose source changed only its line endings is planned
again instead of replayed until every update is refused, and a replayed
batch keeps its transport budget; a configuration written before the
Locale field keeps zh-CN through a Scope Change, and invalid
sensitive_name_rulesorhuman_approval_channelvalues are refused on
every team-file write; andscope activatereportsalready_aligned
under a review posture instead of asking for approval, while an observe
file edited where it stands is no longer read as aligned. A Plan that
moves nothing keeps the Baseline'supdated_at, as a Baseline save does,
so that answer holds more than a second after the last Apply. -
Fixes from the pre-release audit's lower-priority findings: under a
review posturescope acknowledgepauses with a saved preview and the
approve and apply commands, asscope activatedoes, instead of failing;
the approval commands MCP hands out no longer carry--actor <id>, which a
shell reads as a redirection (--actorhas a default), and their
guidance says to answeryes; the Claude Code hook command is quoted when
the repository path holds a space or a shell character, and an entry
installed unquoted on such a path is rewritten in place;scope status
reports an orphan or unbaselined Entry as authoring work instead of
aligned; the cognition probe gradescore_fwith the same paraphrase
tolerance as the full Attestation; and the capability manifest lists the
capacity_stopdelivery mode. -
More of the audit's lower-priority findings:
verifyandcheckname an
orphan's removal only when authoring is the verdict, not over a blocker or
owed Evidence that Maintain would refuse on; the Codex compaction snippet
is recognized after a checkout turned it into CRLF instead of reported as
a conflict;scope safety remove ./pathmatches the stored path; the
Guide answered when the Meta tag dictionary is unusable hands a command
bound to this binary and repository; the onboarding approval command
names its envelope by absolute path, so it runs from any directory; a
Migration refuses a header atom resolved into a Code or Database Volume;
a Database batch reads each source's snapshot once instead of once per
target; and the openGauss driver refuses a backend message whose length
is impossible instead of panicking. -
Database Evidence: an openGauss index or key whose column vector names a
column twice fails closed instead of losing the repeat; a SQLite table's
foreign key into a parent excluded from the selection resolves even when
the parent has a generated column, and a refused SQLite feature names its
table;verify'sdatabase_evidenceno longer reads current for Evidence
taken under another source selection; and the Ledger records a Host
delivery confirmation as accepted only when the delivery settled on it. -
The Guide's closing instruction says what the final batch already proves:
itsterminal_proofcarries the Verify, aggregate Check, and Guide verdict,
so none of them needs to run after remaining=0. Code orphan removals ride
only the response that issues a parallel plan, so sibling batches no longer
carry the same removals and every sibling applies. A removal is judged
again under the write lock: a file re-created while the batch waited keeps
its Entry and the batch writes nothing. A repository without its own.git
inside another Git repository is no longer judged by the enclosing
repository's ignore rules. Every command flag's help is localized; a
hand-kept list had left fifteen of them in English under zh-CN. -
Public text caught up with 0.2.0 behavior (pre-release audit): Database
deliveries are reused under the Database Baseline and Evidence guard; the
delivery store keeps bodies in bounded process memory, never on disk;
the Database specifications and guides drop 0.1.x rules (writable Legacy,
a cross-Volume R pre-check, no Volume creation) and name SQLite; Maintain
never advances the Baseline itself, even for format-only drift; hints no
longer point ataoci_reportor retiredindex agentcommands; an
expiredobserve_reviewin a batch answersrepair_required; theindex,
check, andscanhelp describe Volumes behavior; and the optimization
ranking listse_scale_mismatch. -
On Windows, a governed write on a volume that cannot do the atomic file
replacement stops asatomic_exchange_unsupported_filesystem[ReFS]and
says to keep the repository on NTFS. ReFS, a Dev Drive included, refuses
ReplaceFileW, and the failure read as an internal CAS error
(ReplaceFileW失败: Access is denied). Nothing is written when it stops;
troubleshooting documents the NTFS worktree route. ReFS itself is not yet
supported (#210). -
aoci scanrejects positional arguments with exit 2 before scanning.
aoci scan svc-aignored the argument and wrote the whole repository into
the Baseline (PR #200 by @dayebishouji). -
aoci scope budget setrefuses a policy file with a second JSON value or
stray text after the policy, and refuses--policy-filecombined with
--modeor a token flag; both used to succeed and save something other
than what was asked (PR #202, PR #207 by @dayebishouji). -
aoci initin a non-Git container warns when index-role files sit in a
directory outside every child Git repository, where no ignore file applies,
and hands the exclude command. A container whose sources all live in its
child repositories gets no warning (#184, PR #203 by @dayebishouji). -
aoci init --agent piintegrates Pi: it merges theaociserver into the
project-level.pi/mcp.json, keeps that file out of Git and Managed Scope,
and writes the managedAGENTS.mdblock. No Pi extension or hook is
installed; verified withpi mcp liston Pi 1.6.0 (#209). The shared
writer behind.mcp.jsonand.pi/mcp.jsonrefuses a path that runs
through a symbolic link instead of rewriting a file outside the
repository, and in a directory no Git repository governs,initexcludes
the host configuration it wrote from Managed Scope by rule before the first
scan; it used to enter the index role there. -
Documentation and tests: the container guide states when narrowing before
the first Entry needs approval (PR #199); the Windows lifecycle suite
compares paths by file identity and the Git root alias test uses a
junction (PR #205, PR #206), all by @dayebishouji.
See docs/install.md and docs/supply-chain.md for asset verification.