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 — id(world-manifest): plan/diff misreport seed and ceiling — a seed-only change reports 'no drift' and is never applied, while a ceiling reorder reports drift that grants (set-compared) ignore · Issue #1519 · developing-today/code

id(world-manifest): plan/diff misreport seed and ceiling — a seed-only change reports 'no drift' and is never applied, while a ceiling reorder reports drift that grants (set-compared) ignore #1519

New issue
Copy link
New issue
Copy link
Closed
Closed
id(world-manifest): plan/diff misreport seed and ceiling — a seed-only change reports 'no drift' and is never applied, while a ceiling reorder reports drift that grants (set-compared) ignore#1519
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Problem

plan() / diff() in pkgs/id/src/world_manifest.rs misreport drift in both directions:

  1. False negative — seed-only changes vanish. WorldState carries the live seed (world_manifest.rs:63-64, "The seed the active program was installed with"), and the manifest's seed is a declared field — but plan() only ever uses the seed as a ride-along on InstallModule (:207-218). If the module is unchanged and only the seed differs, the plan is empty and diff() prints "no drift". The new seed is never applied and the admin is told nothing is wrong.
  2. False positive — ceiling reorder is "drift", grants reorder is not. Grants are compared as BTreeSets (:231-240), so reordering the same grants produces no step. The ceiling is compared as an ordered slice (:242-249: current.ceiling.as_deref() != Some(ceiling.as_slice())), so writing the same ceiling in a different order produces a SetCeiling step and a drift line — a semantically empty change that id world apply will "apply" and count.

Evidence (verified this run, main 279c973)

Probe (crate on the laptop compiling the verbatim world_manifest.rs sha256 234f1dfc… + world_caps.rs sha256 679a2c25…, identical sandbox↔laptop; log hidden_files/probe-2026-10-27-laneB-manifest/out.log):

  • Manifest module_hash = "abc123", seed = 99 vs live state { module_hash: "abc123", seed: 7 } → steps=[], diff="no drift"
  • Manifest ceiling = ["time.now", "chat.say"] vs live ceiling ["chat.say", "time.now"] (same set) → steps=[SetCeiling { ceiling: Some(["time.now", "chat.say"]) }]
  • Control, grants mirror of the same reorder → steps=[]
  • Control, genuinely new schedule → ScheduleAt step as expected

Why it matters

id world diff is the admin's drift oracle and apply reconciles from the same plan(). A false "no drift" silently strands a seed change (the seed drives the program's deterministic initializer, so the world keeps running with the wrong one while the manifest claims otherwise), and order-noise drift trains admins to ignore diff output — the exact failure mode a declarative manifest exists to prevent.

Distinct from #818 (the CLI wiring fabricates the current state the plan runs against — this defect is in pure plan() itself, reproduced against a correct, hand-built state) and from closed #817 (omitted-field semantics).

Acceptance criteria

  • A seed-only difference produces an explicit reconciliation outcome — either a step that reinstalls with the new seed, or diff/plan surface the seed as unreconcilable-without-reinstall drift — pinned by a test; "no drift" for a differing seed is not an accepted outcome
  • Ceiling comparison is set-based like grants: reordering the same ceiling names yields an empty plan, and a genuinely different ceiling still yields SetCeiling
  • Tests cover: seed-only diff, ceiling reorder (no step), ceiling set change (step), grants behaviour unchanged
  • cargo test for the world_manifest module passes; apply_is_idempotent and the id(world-manifest): PR #801 — plan() treats omitted grants/ceiling/schedules as authoritative, contradicting 'empty fields are left alone' (omitted ceiling widens to whole catalog) #817 regression tests still pass

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

    @developing-today
    developing-todayBot
    on Oct 27, 2026 – with developing.today
    Contributor
    More actions

    CODE-580

  3. dezren39
    added
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Oct 27, 2026
  4. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (lane B, new-issue-creator-code-b)
    • Session / ID: new-issue-creator-code-b run, 2026-10-27 15:04 CDT
    • Found via: filed this run
    • Task: Triage the world_manifest plan()/diff() drift misreports: seed-only changes report "no drift" and are never applied; ceiling reorder reports drift while grants (set-compared) ignore reorder.
    • Expectation: effort s; done = acceptance criteria in the issue body met, incl. pinned ruling on seed-only reconciliation and set-based ceiling comparison, with tests.
    • Links: probe log hidden_files/probe-2026-10-27-laneB-manifest/out.log (goal workspace); related id(world-manifest): PR #801 — 'id world apply' prints 'applied N step(s)' for steps it explicitly did not apply, and diff/plan run against a fabricated seed=0 / empty-schedules state #818 (wiring-side fabricated state — distinct), id(world-manifest): an empty module_hash passes validation — parse accepts "" and plan/apply install it, contradicting validate's own '1 to 64 hex digits' rule #1517 (same module, validation hole)
  5. github-actions
    assigned
    dezren39
    on Oct 27, 2026
  6. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 28, 2026
  7. 85 remaining items

  8. dezren39
    added
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Oct 28, 2026
  9. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), Lane B shift
    • Session / ID: queue task 1801
    • Found via: queue claim (resume)
    • Task: Parked — CI on PR id(world-manifest): seed-only change plans a reinstall; ceiling compares as a set (#1519) #1741: only nix flake check still pending after 5-min poll, all other checks pass, 0 failures
    • Expectation: Resume condition: PR id(world-manifest): seed-only change plans a reinstall; ceiling compares as a set (#1519) #1741 checks settle; merge if green under standing criteria, then complete task
    • Links: PR id(world-manifest): seed-only change plans a reinstall; ceiling compares as a set (#1519) #1741
  10. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 28, 2026
  11. dezren39
    added a commit that references this issue on Oct 28, 2026

    id(world-manifest): seed-only change plans a reinstall; ceiling compa…

    2517684
  12. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane D shift
    • Session / ID: queue task 1801 (small_fix, resume)
    • Found via: queue claim
    • Task: Resumed from awaiting_ci: PR id(world-manifest): seed-only change plans a reinstall; ceiling compares as a set (#1519) #1741 CI verified fresh — all checks SUCCESS (incl. nix flake check, test shards, test-unit). Diff reviewed against the triage ruling on id(world-manifest): plan/diff misreport seed and ceiling — a seed-only change reports 'no drift' and is never applied, while a ceiling reorder reports drift that grants (set-compared) ignore #1519: seed-only reinstall step, no-module no-step, set-based ceiling, tests for seed-only / seed+module / ceiling reorder / ceiling set change. Merged PR id(world-manifest): seed-only change plans a reinstall; ceiling compares as a set (#1519) #1741 (squash) at 2026-10-28T21:59:17Z, merge sha 2517684. Closing this issue as fixed.
    • Links: PR id(world-manifest): seed-only change plans a reinstall; ceiling compares as a set (#1519) #1741
  13. dezren39
    closed this as completedon Oct 28, 2026
  14. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 28, 2026
  15. developing-today
    added
    status:done
    on Oct 28, 2026
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/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

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.