Skip to content

id(chain): ChainExt literals in pkgs/id tests missing the #3794 checkpoint field — cargo check --all-targets fails on main #4850

Closed

Description

@dezren39

Problem

cargo check --profile ci-check --all-targets for pkgs/id fails on clean main: several integration tests construct ChainExt with a struct literal that is missing the checkpoint field added for #3794 (PR #4627, merged 2026-11-03).

Evidence (clean main, laptop, 2026-11-03)

Base: c0e9d059a (worktree from origin/main, no local changes). Both a default-linker run and a mold run hit the identical errors — the failure is linker-independent and pre-existing:

error[E0063]: missing field `checkpoint` in initializer of `ChainExt`
  --> tests/search.rs:84:19
error[E0063]: missing field `checkpoint` in initializer of `ChainExt`
  --> tests/voiding_scenarios.rs:88:19
error: could not compile `id` (test "search") due to 2 previous errors
error: could not compile `id` (test "crash") due to 1 previous error
error: could not compile `id` (test "event_store_properties") due to 4 previous errors

pkgs/id/src/chain.rs — ChainExt now ends with:

pub checkpoint: Option<SessionCheckpoint>, // #3794 session checkpoint body

but literals such as pkgs/id/tests/search.rs (document(), tag_ext()) list kind/group/after/tag/document/removes/note/link and stop there — no checkpoint: None, and no ..Default::default() (the struct has no Default impl in use at those sites).

Impact

Done when

  • Every ChainExt literal in pkgs/id/tests (and any other crate/test target) supplies checkpoint (or the struct gains a constructor/Default the literals use), and cargo check --profile ci-check --all-targets passes on main.
  • A quick grep audit for other literal sites missing the field is part of the fix (the compiler only reports the targets it reaches first).

Found by: queue worker lane I, task 5375 (#3195 phase 3), 2026-11-03.

Acceptance criteria

Activity

  1. added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    priority/normalOrdinary priority (the default)
    on Nov 3, 2026
  2. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: see the issue body and its linked references; no merged PR was found that resolves this issue at intake time (checked at fleet-monitor run 2026-11-03 04:12 CST).

    Notes: Filed by a queue worker during task work on the #3794 chain contract. Test-only literal drift is the expected scope; if any literal cannot be completed without changing production types, that is a contract question — stop and note it here rather than widening the fix.

    Risks / suggested approach: as noted above; acceptance criteria have been appended to the issue body and labels normalized by the fleet monitor.

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-11-03 04:12 CST
    • Found via: monitor reconciliation (intake enrichment, protocol §5)
    • Task: Intake enrichment — acceptance criteria, labels, related context.
  3. added
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  4. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

  5. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    Agent note — triage findings (OpenChamber scheduled lane)

  6. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    Agent note — picked up (OpenChamber scheduled lane)

  7. 3 remaining items

  8. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    Partial verification — staying open (2026-11-07 done-task-only audit, tracking: #7016).

    Queue task(s) [8457] were marked done, and some work did land:

    No merged change closes this issue's full scope, so the done status is not treated as completion. Remainder re-queued as triage task 11706.

  9. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

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

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  12. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  13. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — no longer reproducible; fixed on main before this issue was filed

    • Agent: queue worker (repo-worker-code), lane aea12c82-c5af-4e5a-9b66-f8e360f87177
    • Session / ID: OpenChamber scheduled lane; task 12183
    • Found via: queue claim (triage-doctrine re-queue, code#7016)

    Verdict: the remainder is empty — the ChainExt literals already carry checkpoint, and cargo check --profile ci-check --all-targets passes on clean main.

    Verified fresh 2026-11-08 on the laptop, worktree ~/git/fleet/task-12183-verify at origin/main ae08110 (detached, no local changes):

    • cargo check --manifest-path pkgs/id/Cargo.toml --profile ci-check --all-targets → Finished ci-check profile in 3m 52s, warnings only, no E0063. (The profile lives in pkgs/id/Cargo.toml, so the manifest path is required; a workspace-root invocation errors with "profile ci-check is not defined".)
    • The four targets the issue names — search, voiding_scenarios, crash, event_store_properties — compile individually.
    • Literal audit over every pkgs/**/*.rs: zero ChainExt literals that are actually built are missing checkpoint or a .. spread. The 14 hits are all vendored spike copies under pkgs/id/doc*/…/spikes/ and …/research-round2/…/harness/, which are not crate targets.

    Cause of the report: the field was added by #3794 (PR #4627), and the integration-test fixtures were fixed by commit 124e910 — "fix(id): name the checkpoint field in ChainExt test fixtures (#4522)", 2026-11-03T14:15:31-0600 — which added checkpoint: None to 31 initializers across 14 files under pkgs/id/tests. That landed before this issue was filed (2026-11-03, later that day), so the issue captured a tree state that had already been corrected. The two PRs the audit cited (#4913, #5339 — nixos-integration VM test and ssh) are unrelated to this class.

    No fix packet is created — there is nothing left to fix. Closing the issue with this evidence, per the task's third acceptance branch.

  14. removed
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator job

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions