GeezerVison is showing github.com — id: F11.12 remainder - id world journal check and journal backup commands (gates F13.7 step 2) · Issue #10821 · developing-today/code
id: F11.12 remainder - id world journal check and journal backup commands (gates F13.7 step 2) #10821DescriptionWhat is missing
F11.12 (journal format management, Phase 11 plan) is only partly landed, and the
remainder gates F13.7 step 2 (session protocol v2 frame types) for issue #5532 /
queue task 9599: the F13.7 design (doc/2026-11-01_design_id789.md, Gate 4 and
invariant 9) forbids introducing additive provider frame kinds until the broader
F11.12 frame-compatibility gate completes, and explicitly warns not to treat
issue #227's closure as skipping it.
Evidence (fresh, 2026-11-16, lane any-d working task 9599)
Landed:
Not landed:
Exit criteria (from the Phase 11 F11.12 definition)
- 'id world journal check' exists and reports a journal's format version and
validity, refusing/clearly flagging a journal written by a newer format.
- 'id world journal backup' produces a file that restores byte for byte.
- A test opens a journal with a future version and gets a clear refusal
(the restore-side refusal already exists; pin the CLI surface to it).
Unblocks
Activitydeveloping-today commented on Nov 16, 2026 dezren39 commented on Nov 16, 2026
Agent note — task 17520 triaged + picked up (lane code-a): journal check + backup commands
- Triage (inline, §1c): work kind
task/small-fix — two local CLI commands wired onto existing journal machinery; priority priority/high (already on the issue — it gates F13.7 step 2, task 9599 dep-blocked on id: F11.12 remainder - id world journal check and journal backup commands (gates F13.7 step 2) #10821); effort effort/m (already set). Removing status/needs-triage.
- Verified fresh: issue id: F11.12 remainder - id world journal check and journal backup commands (gates F13.7 step 2) #10821 OPEN, no held / user/owned / do-not-merge / do-not-auto-edit labels. Packet evidence confirmed on current main:
crates/id-worlds/src/world/journal.rs carries JOURNAL_VERSION = 1, per-entry versions to 9 (MAX_JOURNAL_VERSION), and WorldCore::restore refuses newer headers via check_journal_version; no journal subcommand exists in crates/id-cli/src/cli/world.rs.
- Plan: add
id world journal check <dir> [--json] (reports world id, header version vs supported max, entry count, validity; newer-format and corrupt journals flagged with a nonzero exit, reusing the unsupported world journal version {n} refusal wording) and id world journal backup <dir> <out> (byte-for-byte copy of journal.jsonl, validated as a journal first, refuses an existing output), as local-only commands beside Fork/Provenance in crates/id-cli/src/commands/world.rs, reusing its read_world_journal pattern.
- Acceptance check: the packet's three criteria — check reports version/validity and flags newer formats; backup restores byte for byte (test); closing this issue clears the F11.12 gate for task 9599.
dezren39 commented on Nov 16, 2026 🤖 Agent note — task 17520 COMPLETE: id world journal check and id world journal backup shipped
PR #10827 MERGED (merge commit 74e5ef2d36b2701428dbc87a0c6e660ecaadf1ee), branch queue/17520-10821-journal-cmds, commit d447d498f3. This issue is closed by that merge; closing it clears the dependency gate for queue task 9599 (the F11.12 exit-criteria verification, #5532).
What shipped
id world journal check <dir> [--json] (crates/id-cli/src/cli/world.rs JournalCommand::Check, handler in crates/id-cli/src/commands/world.rs): audits journal.jsonl — header version vs MAX_JOURNAL_VERSION, flagging newer-format journals with the restore path's own refusal wording (unsupported world journal version {n}, mirroring check_journal_version in id-worlds); per-entry parse failures with line numbers; entries requiring a higher version than the header declares (via journal_version_required_by); and torn-tail detection — unlike the provenance inspection read, which skips a torn tail, the format audit reports it as a problem. Prints world id, versions, and entry count; exits nonzero when invalid.
id world journal backup <dir> <out>: byte-for-byte copy of a journal that checks valid; refuses an existing output; reads the copy back and byte-compares before reporting success — the F11.12 exit "backup restores byte for byte" as an executable property.
Verification
cargo test -p id-cli: 682 lib tests pass, including new named-oracle tests journal_check_reports_a_valid_journal, journal_check_flags_a_newer_format_journal (future-version refusal through the check surface), journal_backup_is_byte_for_byte_and_restores (bytes equal; a directory holding only the backup as its journal checks valid and yields the same provenance world id), journal_backup_refuses_existing_output_and_invalid_journal, and world_journal_subcommands_parse (clap surface).
- Codex review failed on Codex usage limits with zero inline findings — recorded, not a code signal. CodeRabbit neutral.
- This run also served as the §1c inline triage for this issue (verdict in the pickup note):
task/small-fix, priority/high and effort/m kept.
— lane code-a queue worker, task 17520
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|