feat(opencode): rollout/migration gate code (#1083) - #356
Merged
jeonghun-jj-lee merged 1 commit intoSep 14, 2026
Merged
jeonghun-jj-lee merged 1 commit into
jeonghun-jj-lee merged 1 commit into
Conversation
Add the deterministic, unit-testable core of the gate-migration and
coordinated-release slice (amicode#1083):
- SessionRollout.Capability.discover — a versioned {protocol_version,
mode, migration_boundary} object; full/partial/legacy resolved from
engine support + the session root's persisted mode + epoch marker,
without probing a mutation route. protocol_version reuses the #1077
registry generation. A rollback gate (fullDiscoveryEnabled) caps full.
- SessionRollout.Matrix.resolve — the supported mixed-version matrix
(old-engine+new-client -> legacy; new-engine+old-client -> pre_ledger
view; new+new -> full only for a full root, else labelled partial/legacy).
- SessionRollout.Migration.startEpoch — legacy -> partial ONLY via an
explicit epoch start (no infer/backfill path exists).
- SessionRollout.resolveReservation — in-flight v1 reservations resolve
as legacy, never adopted into a ledger op.
- SessionRollout.Rollback — the disable-full-before-withdraw-routes
ordering invariant, so no uncontextualized full-provenance mutation.
- SessionRollout.Release — manifest parse + all-required-passed readiness
evaluator + fork->binary-pin->extension ordering evaluator. Reads a
manifest and reports readiness only; default enablement stays off and
NO release act is performed (those are human-only).
40 focused tests green; package tsgo typecheck clean. Release-execution
acts (tag/pin/publish/overlay-sync/enablement flip) are human-only and
intentionally out of this slice.
Refs harmoniqs/amicode#1083
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
jeonghun-jj-lee
merged commit Sep 14, 2026
dddaf90
into
amico/issue-972-session-lineage-ledger
4 checks passed
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the testable code portion of harmoniqs/amicode#1083, part of #972.
HITL — READY FOR HUMAN REVIEW, not auto-merged.
Deterministic capability discovery, mixed-version matrix, migration boundary, in-flight reservation resolution, rollback safety, and the release-manifest readiness evaluator (default-enablement stays OFF).
HUMAN-ONLY, NOT done here: tagging the fork release, verified binary pin, extension publish, overlay sync, and the default-enablement flip. #1084 fills the matrix-case seam the evaluator reads.