GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Define rollback compatibility for world profile journal entries · Issue #227 · developing-today/code

Define rollback compatibility for world profile journal entries #227

New issue
Copy link
New issue
Copy link
Closed
#1353
Closed
Define rollback compatibility for world profile journal entries#227
#1353
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/infrastructureInfrastructure / host-portability workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addednowOrg Project gate: active priority — orchestrator adds to the boardpriority/highImportant and time-sensitivesource/humanFiled directly by a humanstatus:done

Description

@dezren39
dezren39
opened on Oct 16, 2026
Issue body actions

Problem

World resource profiles are stored as a new JournalEntry::ExecutionProfile variant. New binaries can read older journals, but an older binary cannot deserialize a journal after this entry has been written. The entry is currently appended under the journal's existing header version, so an old binary may fail while reading the entry rather than rejecting the file up front.

Follow-up

Define the world-journal upgrade/rollback contract for new entry variants. Options include a versioned journal migration that atomically upgrades the header when the first new entry is written, an explicit no-downgrade policy with a reliable early refusal, or an operator-managed migration/backup workflow. Preserve read support for existing journals and ensure a failed migration cannot leave a partially rewritten journal.

This is not a blocker for forward-only upgrades, but operators must not roll back to an older binary after writing profile entries until a migration path exists.

Acceptance criteria

  • A written rollback/upgrade contract for new JournalEntry variants exists (versioned migration, explicit no-downgrade with early refusal, or operator-managed migration/backup) and is recorded in the journal code or docs it governs.
  • An older binary refuses an incompatible journal early and clearly (at header/version check), not mid-read on an entry it cannot deserialize.
  • Existing journals remain readable by new binaries (forward compatibility preserved).
  • A failed migration cannot leave a partially rewritten journal (atomicity demonstrated by a test or a documented atomic-rename procedure).

Activity

Next
  1. github-actions
    assigned
    dezren39
    on Oct 16, 2026
  2. dezren39 commented on Oct 17, 2026

    @dezren39
    dezren39
    on Oct 17, 2026
    MemberAuthor
    More actions

    Rollback finding, from the schedule and fixture work:

    • A binary built before fix(id): refuse a complete journal line this binary cannot read #244 reads a newline-terminated line it cannot parse as a torn append when it is the last line, and truncates it. That silently drops the newest entry, such as a ceiling change or a schedule. Only an unknown entry that is not last makes it refuse the journal. Earlier records said "refuses to open"; that was wrong for last-line entries, and those records are corrected on feat(id): persist per-world resource profiles #228 and feat(id): add world capability ceilings #231.
    • fix(id): refuse a complete journal line this binary cannot read #244 makes binaries built after it refuse any complete line they cannot read. Binaries already in the field still truncate.
    • Until a migration policy exists, restore a pre-change journal backup before rolling back.
  3. dezren39 commented on Oct 24, 2026

    @dezren39
    dezren39
    on Oct 24, 2026
    MemberAuthor
    More actions

    id train triage (2026-10-24): too-big-needs-design — journal upgrade/rollback contract for new entry variants (this is F11.12).

  4. dezren39
    added a commit that references this issue on Oct 25, 2026

    docs(id): Phase 14 plan — close-out: finish, measure, verify, open th…

    ee67188
  5. dezren39 commented on Oct 25, 2026

    @dezren39
    dezren39
    on Oct 25, 2026
    MemberAuthor
    More actions

    Phase 13 gate note (from the F13.1–F13.3 slice, branch id/phase-13-impl).

    The Phase 13 plan says F11.12 (journal format management) must land before the first new Phase 13 frame kind, because any new frame kind is forward-only for older binaries. I checked F11.12's state on origin/main (ff7a009):

    • Present: JOURNAL_VERSION = 1 in JournalEntry::Created, and open refuses a journal whose version is not equal to it (pkgs/id/src/world/core.rs:145-153). The fail-loud rollback check from fix(id): refuse a complete journal line this binary cannot read #244 is there too.
    • Absent: id world journal check, id world journal backup, and a header bump or migration when a newer entry kind is first written. The case this issue describes (ExecutionProfile appended under the v1 header) is still open.
    • .opencode/plans/2026-10-20_phase-11-status.md lists F11.12 as Planned. The Phase 12 plan's sequencing lists it among Phase 11 work as done. These two disagree; the status tracker is right.

    So the Phase 13 slice adds no new frame kind. Shell contract v1 (#783) writes down only frames that already exist on main. The SSH exec transport (#784) moves the existing frames over a new envelope. SSH-over-iroh (#785) is layer-1 tunnelling. Presentation tiers, focus, kitty keys and client providers are listed as reserved in the contract and stay behind this issue.

  6. dezren39
    added a commit that references this issue on Oct 25, 2026

    feat(id): versioned shell contract v1 with a conformance check (F13.1)

    35e9cea
  7. dezren39
    added
    kind/infrastructureInfrastructure / host-portability work
    source/humanFiled directly by a human
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    status/needs-triageNot yet triaged; needs a first look
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 27, 2026
  8. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    Intake review

    Design/contract follow-up: JournalEntry::ExecutionProfile entries are appended under the existing journal header version, so an older binary fails mid-read instead of refusing up front. Still live — no versioned journal migration or header gate is in place. Related merged PR #244 ("refuse a complete journal line this binary cannot read") hardens per-line refusal and may be a building block, but it does not by itself define the upgrade/rollback contract this issue asks for, so this is not closed as solved.

    Risks: World journals are operator state; a non-atomic migration can corrupt the only copy. Any contract must be tested against a journal written by the previous binary.
    Suggested approach: Pick the contract (the early-refusal variant is smallest and matches PR #244's direction), implement the header/version gate, and add a cross-version read test with a fixture journal.
    Related: PR #244 (merged, per-line refusal); world profile journal entries in pkgs/id.

    Enriched by the fleet monitor (intake pass): labels normalized and acceptance criteria appended to the body. This is triage only — no work has been started.

  9. dezren39
    removed
    priority/normalOrdinary priority (the default)
    on Oct 27, 2026
  10. 33 remaining items

  11. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/in-progressQueue worker lifecycle state
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 27, 2026
  12. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up (resume) — queue task 1300

    Resuming from the parked checkpoint: PR #1353 is open with all checks green on the current head (79747635, branch updated with main). This shift verifies CI fresh and merges under the standing criteria, then completes the task.

  13. dezren39
    added a commit that references this issue on Oct 27, 2026

    Merge pull request #1353 from developing-today/queue/1300-227-journal…

    452d69e
  14. dezren39
    closed this as completedin #1353on Oct 27, 2026
  15. developing-today
    added
    status:done
    on Oct 27, 2026
  16. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — queue task 1300

    PR #1353 merged (452d69e6, 2026-10-27T10:58:06Z) after fresh verification: all 31 PR checks pass on head 79747635 (incl. clippy-lint, cargo-check, all test shards, crash gates), diff is the journal-contract change only (5 files, +280/−11). Issue #227 is closed by the merge. The bump-on-first-write contract is in code with its cross-version fixture tests; local world suite was 205 passed at implementation (per PR body) and CI test shards re-verified it on the merged head.

  17. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 27, 2026
  18. dezren39
    marked this as blocked on Nov 1, 2026
    • id: validation — Phase 10 worlds as places #1077
  19. dezren39
    marked this as blocking on Nov 1, 2026
    • id(world): F11.7 host metrics, Prometheus endpoint and tracing spans #553
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/infrastructureInfrastructure / host-portability workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addednowOrg Project gate: active priority — orchestrator adds to the boardpriority/highImportant and time-sensitivesource/humanFiled directly by a humanstatus:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.