Skip to content

AOCI-CODE v0.2.0-rc11

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Dec 23:48
· 10 commits to main since this release

AOCI-CODE v0.2.0-rc11 is built from 3e92aa0f0437ee2cfbaa48052096c74e140542be.

The eleventh 0.2.0 candidate makes the team configuration forward compatible
before 0.2.0 final (#242): a save keeps keys this binary does not know, and a
repository can name the oldest binary allowed to write it. It also lands
contributor PR #233, so a failed index write reports bounded machine facts
instead of native text and paths, and the parallel-sibling lock fix held out of
rc10, whose Windows-only test failure turned out to be the test comparing two
fixtures that had cut their batches differently.

  • Strict JSON readers (.aoci/curation.json, receipts, plans, and the team
    configuration) refuse nesting deeper than 10000 levels before scanning, as
    encoding/json does, so a deeply nested file is rejected at once instead of
    exhausting memory; duplicate-key checks are unchanged below that depth.
  • Forward-compatible team configuration passthrough and repository generation
    guard (min_aoci_version, #242): .aoci/config.json now preserves
    unrecognized keys verbatim (in deterministic sorted UTF-8 key order after
    known fields) at the top level and inside every nested object-typed
    configuration struct (ai, overview_delivery, automation,
    locale_migration, managed_scope, managed_scope.approval_thresholds,
    cognition_budget, cognition_budget.whole_index) across Save,
    MarshalBase, config set, and CAS transactions, while leaving existing
    configurations without unknown keys byte-identical. When an explicit known
    edit removes or clears an optional parent object (such as
    aoci config set automation_mode manual/legacy clearing automation, or a
    locale switch clearing locale_migration), unknown keys nested inside that
    removed object are deleted with it rather than retaining an empty object.
    Team configuration parsing and saving now strictly reject duplicate keys and
    case-colliding keys at any nesting level, JSON nesting deeper than 10000
    levels, and payloads exceeding 4 MiB (on both read and write, with zero
    writes on refusal), and detect the locale key case-insensitively to match
    struct decoding. Optional team-owned min_aoci_version (never written by
    0.2.0, excluded from all identities; behavior is unchanged when absent) stops
    every mutating and transaction-recovery CLI command and write-capable MCP
    tool with repository_generation_unsupported and zero writes when the
    running binary (including git describe development builds compared by base
    tag, or unparseable version strings) does not satisfy the required release or
    when the value is malformed. Read-only entry points (aoci_overview,
    status, verify, doctor, config get/list, scope show,
    index header show) continue to work (skipping legacy locale
    materialization when blocked); status, verify, and aoci_overview also
    surface the low-version notice, and aoci doctor reports an error-level
    finding with absolute-path upgrade guidance and exits non-zero.
  • When a guarded filesystem operation inside AtomicWriteCAS fails (resolving
    the target, taking the CAS lock, settling recovery, reading the target,
    writing the intent, staging the swap, or the exchange itself), prewrite
    aoci_update_entry batch writes and aoci_remove_entry index writes now
    report bounded machine facts (operation, enumerated reason, os_error,
    and a validated unsupported filesystem name) instead of raw native error
    text or local paths. In zh-CN this intentionally drops the previously
    visible native Chinese error text and paths. A preimage CAS conflict (another
    writer changed the index first) is not one of these operations and keeps its
    existing message (Refs #224; thanks to @enqiang for PR #233).
  • Parallel sibling batches of one logical plan serialize on the index lock
    (L4). A sibling whose pre-lock check found the plan or Volume preimage
    stale, because another sibling of the same plan had written its Volume but
    not yet its applied record, used to stop with
    code_candidate_volume_preimage_stale without taking the lock. It now
    re-plans and commits under the same lock hold, proving the latest state by
    replay; a genuine external change still fails closed with the same answer.
    Single, optimization and database batches, and previews, are unchanged.
    (Held out of rc10 after a Windows-only test mismatch, since traced to the
    test comparing two fixtures whose batches were cut differently.)

See docs/install.md and docs/supply-chain.md for asset verification.