Skip to content

AOCI-CODE v0.2.0-rc4

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Nov 21:15
· 1 commit to main since this release

AOCI-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-*.json stored 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>.json and sized by its batch; a candidate-*.json written
    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-*.json files 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, so scope activate changed the Baseline, then stopped with
    cognition_transaction_ledger_required and left the change pending;
    scope resume and scope rollback refused for the same reason, and
    config set ledger_enabled true was 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 with aoci 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 way scope status does, 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 carried terminal_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: true in 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.txt used 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 budget scope status and a Scope Change report under Volumes applies the Meta's declared
    S quota and checks Database Volume Entries, as governance does.

  • A curation exclude decision 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 blocks scope status, and a large file no longer runs it out of memory.

  • A curation exclude decision 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 its status, resume and rollback commands were blocked by
    the recovery gate they close; init refuses a host configuration target
    reached through a symbolic link for every host, Claude Code hooks and Codex
    included, before reading it; aoci mcp and aoci ui no 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 repeated init keeps the Managed Scope role of a file
    it rewrites and no longer adds a path the Baseline never recorded; aoci ui
    and aoci ui --stop run while a recovery is pending, since the page shows
    that state itself; and a damaged help text asset fails --help instead of
    printing its marker with exit 0.

  • Fixes from the pre-release audit, team configuration: exclude_dirs,
    exclude_files, exclude_exts, curation_exclude and installed_agents
    in .aoci/config.local.json no 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_exclude refuses a directory, an absolute path, or a path leaving
    the repository: an entry names one file, and an invalid entry used to stop
    scope status and verify with managed_scope_curation_path_invalid.

  • Fixes from the pre-release audit, Database group: with a Database Volume,
    assessment and aoci_update_entry read only the snapshot database baseline accept recorded, 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, naming aoci 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 with local or
    global (a table named locale, say) no longer refuses the whole source as
    a partition index, and an explicit ASC NULLS LAST is 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; init again rewrites it); and a
    message whose argument contains %!, such as a file named 100%!.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 block aoci_overview for 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 explicit scope=database Maintain included, and still
    counts it in remaining, since a Database batch
    applied beside them staled every sibling still being authored; a sibling
    fetched by batch_id while 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_v2 agrees 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_rules or human_approval_channel values are refused on
    every team-file write; and scope activate reports already_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's updated_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 posture scope acknowledge pauses with a saved preview and the
    approve and apply commands, as scope activate does, instead of failing;
    the approval commands MCP hands out no longer carry --actor <id>, which a
    shell reads as a redirection (--actor has a default), and their
    guidance says to answer yes; 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 grades core_f with the same paraphrase
    tolerance as the full Attestation; and the capability manifest lists the
    capacity_stop delivery mode.

  • More of the audit's lower-priority findings: verify and check name 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 ./path matches 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's database_evidence no 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:
    its terminal_proof carries 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 at aoci_report or retired index agent commands; an
    expired observe_review in a batch answers repair_required; the index,
    check, and scan help describe Volumes behavior; and the optimization
    ranking lists e_scale_mismatch.

  • On Windows, a governed write on a volume that cannot do the atomic file
    replacement stops as atomic_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 scan rejects positional arguments with exit 2 before scanning.
    aoci scan svc-a ignored the argument and wrote the whole repository into
    the Baseline (PR #200 by @dayebishouji).

  • aoci scope budget set refuses a policy file with a second JSON value or
    stray text after the policy, and refuses --policy-file combined with
    --mode or a token flag; both used to succeed and save something other
    than what was asked (PR #202, PR #207 by @dayebishouji).

  • aoci init in 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 pi integrates Pi: it merges the aoci server into the
    project-level .pi/mcp.json, keeps that file out of Git and Managed Scope,
    and writes the managed AGENTS.md block. No Pi extension or hook is
    installed; verified with pi mcp list on Pi 1.6.0 (#209). The shared
    writer behind .mcp.json and .pi/mcp.json refuses a path that runs
    through a symbolic link instead of rewriting a file outside the
    repository, and in a directory no Git repository governs, init excludes
    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.