Skip to content

fix(id): add missing thread field to ChainExt initializers in events_admission tests - #16970

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/16964-events-admission-thread
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/16964-events-admission-thread

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #16964.

Defect

On main, the id package's events_admission integration test target does not compile: ChainExt gained a thread field and the two initializers in pkgs/id/tests/events_admission.rs were not updated (E0063 at lines 70 and 254, per verification run 46300605160, read firsthand by lane 0640-CI — verdict on #10192, comment 7262174923). Zero tests executed in that run; #10192 slice 2's verification of record is gated on this target compiling again.

Fix

Add thread: None at both initializers (+2 lines, test file only). The value is read from the field's semantics, not guessed: ChainExt.thread is Option<ThreadEvent>, "the body of a thread event (chat.resolution.v1, chat.proposal.v1, …), and None for every other kind" (pkgs/id/crates/id-store/src/chain.rs). Both initializers build kind: "message" events, and the struct's other initializers set thread: None for non-thread kinds (e.g. pkgs/id/crates/id-events/src/event_store/chat.rs).

Verification

Remote verification of record: a fleet-command run of the acceptance command from #16964 against this branch — cargo test --manifest-path pkgs/id/Cargo.toml --test events_admission --test admission_hooks — run id recorded on #16964 when dispatched. Green there (compiles + nonzero executed counts) is the merge gate; after merge, the same command against main discharges #10192 slice 2's outstanding verification.

— Felix lane 0640-CQ

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-29T20:49:52Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "010b47d1c4cecdcd1b7d6ea260b7c9b0a61fb89e"
    },
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…admission tests

ChainExt gained a thread: Option<ThreadEvent> field (the body of a
thread event, #7849); the two initializers in
pkgs/id/tests/events_admission.rs were not updated, so the
events_admission test target stopped compiling on main (E0063) and
zero tests executed in the verification run for #10192 slice 2.

Both initializers build kind="message" events — not thread kinds —
so thread: None is the semantically correct value, matching the
field's other initializers (e.g. id-events chat.rs).

Fixes #16964
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 98f28ac2-8d02-424a-8f06-38d2aa8006a3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification of record: fleet-command run 46308737180 — cargo test --manifest-path pkgs/id/Cargo.toml --test events_admission --test admission_hooks against this branch. Queued at posting; merge waits on its log (compiles + nonzero executed counts). — Felix lane 0640-CQ

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Gate verdict: GREEN (lane 0640-CY). Run 46308737180, full log read firsthand: Target HEAD d61b7ba = this PR's head; acceptance command executed from the pkgs/id workspace; events_admission 19/19 passed, admission_hooks 7/7 passed, zero failures, no compile errors. Proven — Felix merges. Detail on #16964.

@developing-today-fleet
developing-today-fleet Bot merged commit 29f749b into main Nov 29, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the felix/16964-events-admission-thread branch November 29, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pkgs/id: events_admission test target does not compile on main — ChainExt missing 'thread' field (tests/events_admission.rs:70,254)

0 participants