Skip to content

AOCI-CODE v0.2.0-rc7

Pre-release
Pre-release

Choose a tag to compare

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

AOCI-CODE v0.2.0-rc7 is built from 1cad9aea986dc734da8500323a84ea2b7f1c2ba8.

The seventh 0.2.0 candidate fixes what a third real-host first build exposed:
a Claude Code session acting as a new user rebuilt RuoYi-Vue-Plus with its
MySQL schema on rc6 and, having accepted the database Evidence before writing
any Code Entry, found Maintain and Bootstrap pointing at each other. Code work
now comes first and Bootstrap follows once Code is aligned. Reviews of these
fixes also closed write-path gaps that predate rc6: a refused batch no longer
acknowledges its Observe review or lets one domain of an explicit batch land
without the other, and a mixed batch that leaves one Volume byte-identical
keeps a readable, replayable recovery receipt. Incomplete batches name their
missing candidates, Database Maintain applies the transport budget and flags
replies that still exceed it, and a multi-batch build no longer asks for a
refresh after every Apply.

  • Accepting Database Evidence before Code is aligned preserves the accepted
    Evidence and lets Maintain issue Code work. Auto-mode acceptance reports
    when Bootstrap is deferred. Once Code and required Observe review are
    complete, Guide, Maintain, Check, Verify, the status page, and the Apply
    terminal proof direct the Host to Bootstrap the Database Volume.
  • Database Cognition status and auto acceptance follow the shared next action.
    Auto acceptance identifies sources still owing Evidence or prompts for scan
    when the Code Baseline is absent. Both Bootstrap entry points stop before
    formal writes if Code Volume bytes conflict with their Baseline. Disabled
    sources without formal table Entries remain visible and carry no authoring
    blocker.
  • With automation.mode=auto, database baseline accept keeps an accepted
    Evidence a success when the Code Baseline cannot be read but can be
    restored, deferring Bootstrap to restore_formal_assets_from_one_commit;
    when Bootstrap stops on any other error, the failure's details name the
    accepted source, snapshot digest, table count, and Evidence Baseline.
  • Submitting an incomplete authoring batch against a valid, still-current
    machine-issued receipt now returns zero-write repair_required with
    localized findings naming the missing candidate(s) (omitting
    candidate_index since omitted targets have no submitted position, and
    summarizing count plus the leading 10 targets when more than 10 are
    missing), retry_scope, preserve_other_candidates, and a localized
    completion action. Ordinary Code, parallel sibling, and Database incomplete
    batches previously returned stopped with an unlocalized fallback;
    cognition optimization incomplete batches previously returned
    repair_required with only a generic candidate_invalid finding and an
    empty retry_scope. On incomplete Code batches, locatable binding errors
    on submitted candidates (candidate_id or source_sha256 mismatches) are
    reported in the same round alongside the missing targets. When only missing
    targets are reported, Hosts preserve already-authored Entries, add every
    missing candidate from the same issued batch's candidate list, and resubmit
    the complete batch. Over-submitted or unissued targets return stopped for
    Code and Database batches, while cognition optimization batches carrying
    unissued targets continue returning repair_required with
    cognition_optimization_batch_mismatch. A wrong batch identity that cannot
    prove one current receipt, or a drifted source file (including a symlink
    replacing a managed regular file), Evidence, Composite, Scope, or Volume
    preimage, returns stopped across all domains.
  • Database Maintain (both no-argument / scope="all" Volumes Maintain and
    explicit scope="database", including aligned or blocked responses with zero
    candidates) now folds cognition_current items out of
    database_cognition.items, caps advisory lists with list_truncation totals
    while preserving summary counts and complete current-page Evidence, and
    caps its complete serialized response (including its trailing newline) to the
    team transport budget maintain_transport_budget_bytes while keeping
    database_cognition_batch_evidence_bytes as the multi-table Evidence-byte
    upper bound. A single table whose Evidence exceeds
    database_cognition_batch_evidence_bytes is still delivered alone without
    truncation, and any single-table (or sample-free) response that still exceeds
    maintain_transport_budget_bytes ships complete with
    transport_budget_exceeded: true (omitted when within budget).
  • Maintain now records semantic_threshold from the same deduplicated
    semantic-change count as aoci_overview(check_only=true) before Baseline
    advances so transport-budget batch splitting never loses a reached threshold.
    aoci_update_entry Apply passes its live post-Apply governance alignment and
    remaining semantic-change count (excluding orphans) to the same pending
    refresh status decision as check_only: unaligned Apply with remaining
    semantic work reports refresh_deferred_until_stable, unaligned Apply with
    zero remaining semantic work (such as orphan-only debt) reports
    refresh_required, and aligned Apply reports refresh_ready_for_overview.
  • Mixed Code+Database Apply batches where one Volume's bytes stay identical
    (advancing only its Baseline source fingerprint or Database Evidence binding)
    now guard the unchanged Volume in the version-4 recovery receipt, validate the
    receipt before any formal write, verify every Volume fingerprint against its
    planned postimage or Guard before saving .aoci/baseline.json (preserving
    the active receipt and original Baseline if third-party bytes appear),
    recognize the sibling Volume's postimage during Baseline verification and
    replay, and report formal_writes_started: true with non-zero-write
    completion wording whenever a Volume write or Baseline publication actually
    lands (including crash-recovery replays and fingerprint-only Applies, while
    true zero-change resubmissions keep formal_writes_started: false). Active
    version-4 receipts left behind by v0.2.0-rc6 or earlier in this state
    remain readable on upgrade: resubmit the same complete batch through
    aoci_update_entry to resume and archive the recovery receipt. Complete
    any active recovery with the current version before downgrading to
    v0.2.0-rc6 or earlier, because older binaries reject the guarded
    version-4 receipt shape; after downgrading, continue from a batch the older
    version's Maintain issues, since an archived rc7 batch cannot be replayed
    there.
  • An attached Observe review is recorded after Entries Apply succeeds (and for
    cognition optimization batches, after archiving the completed Entries
    recovery receipt so the Scope transaction is never blocked). Rejected
    submissions preserve the Baseline and the pending review; mid-Apply Observe
    drift keeps the structured observe_review_stale finding outside alignment
    truncation alongside observe_review_current with
    review_current_observe_evidence; and a Scope failure that leaves an active
    Scope receipt preserves the failure reason and routes to Scope recovery
    (close_pending_recovery with scope status, scope resume --transaction,
    and Agent Guide). Retrying the same batch after an interruption between
    Entries Apply and Observe acknowledgement recovers cleanly, and an ordinary
    replay whose Observe acknowledgement updates the Baseline no longer claims
    zero formal writes. Known limitation: if a cognition optimization batch is
    interrupted after archiving its Entries receipt and before Observe
    acknowledgement, and the caller acknowledges Observe separately and calls
    aoci_maintain(intent="cognition_optimization") instead of retrying the
    original batch directly, the newly issued batch completes formally aligned
    but loses the earlier batch's replaced count in the draft checkpoint.
  • Each explicit Code or Database batch ID requires all its issued Entries.
    Omitting a domain refuses the whole request, including any removals or
    updates in the other domain. Standalone removals remain available by path.
  • When confirming an attached Observe review fails after its Scope
    transaction published the Baseline (an archive or CAS clean-up failure),
    Apply reports formal_writes_started: true from that transaction's own
    record and routes to Scope recovery; a concurrent session's write is never
    counted as this request's.

Known limitations

The following cases are deferred until after 0.2.0:

  • In a repository root that is not a Git checkout, the restore advice for an
    unreadable formal asset still names a git -C command that cannot run
    there; restore the files from your own copy instead.
  • After an authenticated session, the default (non-v2) check_only can report
    refresh_ready_for_overview while governance is not yet aligned; the
    cognition-state/v2 checkpoint and Apply agree. An early Overview is
    delivered and marked unreliable, so no stale cognition is claimed.
  • A program other than AOCI that rewrites an unchanged formal Volume in the
    instant between the final fingerprint check and the Baseline save can still
    have that Volume's planned fingerprint recorded; AOCI assumes no concurrent
    writer of the same privilege edits formal assets during an Apply.
  • When .aoci/baseline.json is a symbolic link (unsupported), a zero-change
    resubmission reports formal_writes_started: true because the Baseline
    digest cannot be read; nothing is written.

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