Skip to content

ci: collect collision snapshots and evidence-linked escape classes #4043

Open

Description

@schlessera

Part of #2948. Found during #2950's source inventory.

Context

The hourly collector has no acquisition path for collision snapshots or the published escape audit. CollisionReport (scripts/collisions.ts:38-45) is unversioned on-demand output; WorkEvent (scripts/ci-throughput.ts:14-20) has failure classifications but no escape class. #2937 delivered a historical issue-comment ledger, not a normalized collector. #2953 collects red-main evidence only. #2956 consumes these signals but does not own their acquisition.

Scope

Add bounded, read-only acquisition of collision snapshots and evidence-linked escape classifications to the timing archive. Define per-kind integer versions, stable identities, provenance and explicit unknown/acquisition errors; integrate acquisition with the hourly budget. Preserve the six classes from #2937 without inferring them from failure mechanisms alone.

Out of scope

Proof/merge policy, collision locks, automatic causal diagnosis, report delivery and full logs.

Acceptance criteria

  • Collision observations retain capture time, graph/head identities and collision kinds; repeated snapshots remain distinguishable from repeated pairs.
  • Escape observations retain run/attempt, class, evidence and unknown reason; unsupported attribution stays unknown.
  • Offline fixtures prove overlap deduplication, acquisition failure visibility and unknown-version refusal.
  • The inventory documents the actual record kinds, numeric versions and collection cadence.

Verification

Focused offline tests, failing-first and restored mutation receipts, plus check:pr. No network test.

Contract impact

Repository measurement tooling only; no product contract change.

2026-11-16 triage at main 3b104890f8: Verified CollisionReport (scripts/collisions.ts:38-45), WorkEvent (scripts/ci-throughput.ts:14-20) and the matching inventory gaps in docs/process/ci-evidence.md. The six existing escape classes are bypassed-confirmation, selection-miss, harness-change, confirmed-then-flaked, inherited-red and unknown; preserve evidence links and unknown attribution. Keep bounded acquisition/versioning and the shared hourly API budget, use existing storage conventions, and update the inventory from actual implemented kinds. No policy or design prerequisite remains. Existing p2 and parent #2948 are preserved; agent-ready covers this scoped acquisition task, not reporting or rollout.

Activity

  1. added
    type: chore
    area: ci
    priority: p2
    on Nov 15, 2026
  2. added
    agent-ready
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyarea: cipriority: p2type: chore

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions