Skip to content

id: validation gap — no planted-bug / mutation check exists for membership voiding + frontier (P2.3/P2.8) #1395

Closed

Description

@dezren39

Gap found by the #1075 validation audit (Phase 2, P2.3/P2.8) — 2026-10-27

The plan of record (doc/2026-10-11T11-08-42Z_design_remaining_work/plan-phases.md) requires, for voiding (P2.3): "S2 scenarios; a planted bug must fail", and for P2.8: "Property tests over random operation orders, and planted-bug checks … mutation checks on demand".

The property half exists and is strong (pkgs/id/tests/membership_properties.rs, voiding_properties.rs, groups/tests.rs proptests, encryption/tests.rs roster property). But a fresh search of pkgs/id on main 452d69e6 (2026-10-27) finds no planted-bug / mutation check anywhere: no planted or mutation/mutant references in pkgs/id/src/membership, pkgs/id/src/groups, pkgs/id/tests, the justfile, or tests/README.md. Nothing demonstrates that a deliberately planted voiding/frontier bug is actually caught by the suite — the exact failure mode P2.3/P2.8 were written to prevent (a test suite that passes both the correct and the broken implementation).

Acceptance criteria

  • A documented, runnable planted-bug check exists for the membership/voiding layer (e.g. a script or just recipe that applies one or more named mutations to frontier/voiding logic and asserts the scenario/property suites fail for each).
  • The check is recorded in pkgs/id/tests/README.md with how to run it on demand.
  • At least the voiding-authority mutation and one frontier-mapping mutation are covered.

Found by: queue task 1256 (validation audit of #1075), slice 3 (Phases 2–4 walk). Parent audit: #1075. Path-to-Phase-12 queue: #1235.

Activity

  1. added
    kind/testTest coverage, test infrastructure, or test-only fixes
    priority/highImportant and time-sensitive
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    nowOrg Project gate: active priority — orchestrator adds to the board
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    Triage verdict: confirmed — gap is real on current main

    Probed origin/main 0e26fa4b3 (2026-11-02) with case-insensitive greps for planted|mutation|mutant across pkgs/id/** plus fault-inject|byzantine|adversarial|negative-test|chaos|sabotage sweeps:

    • No planted-bug / mutation check exists for membership voiding + frontier. Every keyword hit is incidental:
      • permutation(s) in pkgs/id/tests/membership_scenarios.rs:160,228, voiding_scenarios.rs:178,179,208, voiding_properties.rs:248, event_store/resolve.rs:562 (substring mutat inside permutation);
      • mutation in the state-change sense (world/handle.rs, world/mod.rs, world/tests.rs:2806, protocol.rs, fileops.rs, benches, worker-poc/README.md, DOM ignoreMutation in image-node-view.ts);
      • mutate() helper in pkgs/id/tests/relay_ops.rs:131 is about systemd unit rendering for relay ops, not voiding/frontier;
      • evil* fixtures elsewhere are path-traversal/security test names, unrelated.
    • The property-test half cited in the issue is present (pkgs/id/tests/voiding_properties.rs has proptest content), so the gap is exactly as described: nothing demonstrates a deliberately planted voiding/frontier bug gets caught.

    Route: enqueueing a scoped small_fix follow-up packet for issue #1395 (add a planted-bug check that fails the suite when a voiding/frontier invariant is deliberately broken). No hard-stop labels on this issue; triage claims no files changed.

  4. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    Done: triaged, follow-up enqueued

    • Outcome: triaged — issue stays open, gap confirmed on origin/main 0e26fa4b3.
    • Follow-up: task 6582 (small_fix packet) queued to add the planted-bug check for voiding + frontier.
    • Queue labels cleared (work/assigned, queue/claimed, status/in-progress removed).
  5. 48 remaining items

  6. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  7. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  8. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (triaged)

  9. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

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

    Queue task(s) [7238, 2576, 6582] 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 11566.

  10. added a commit that references this issue on Nov 8, 2026
  11. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · done (triage verdict — remainder landed via PR #4754, merged this shift)

    Verdict — the gap was real on main; the fix existed as an unmerged PR; it is now merged and this issue closes

    Verified fresh 2026-11-08:

    • Before the merge: a code search for planted in pkgs/id on main returned nothing — the check was not on main, so the prior "done" markings (tasks 7238, 2576, 6582) were indeed partial, exactly as the audit found.
    • The fix path was PR test(id): planted-bug check for membership voiding + frontier (#1395) #4754 (test(id): planted-bug check for membership voiding + frontier), OPEN since 2026-11-03, no hard-stop labels, not a draft. The 2026-11-04 triage left it to its "owner"; nothing landed in four days — the evaporation pattern the audit exists to catch.
    • I reviewed the full diff (disposition recorded on the PR, comment 6716335158): it satisfies every acceptance criterion — runnable documented check (just planted-bug-check, pkgs/id/tests/README.md section), voiding-authority mutation + frontier-mapping mutation, baseline-green required first. Codex produced no findings (its review failed on usage limits; dispositioned on the PR). Both mutations' target lines verified verbatim on current main before merging.
    • PR test(id): planted-bug check for membership voiding + frontier (#1395) #4754 MERGED 2026-11-08T02:46:25Z, merge commit 13ebecc. Post-merge readback: pkgs/id/tests/planted-bug-check.sh and pkgs/id/tests/planted/voiding-authority.patch are on main.

    Remainder, filed separately: the PR documents that planted mutations at Engine::void (delegation-grant voiding) survive the current suites because they have no delegation-grant coverage. That gap is filed as issue #7071 — it is outside this issue's acceptance (the two named mutations above) and does not keep this issue open.

    Closing as complete on the PR #4754 evidence.

  12. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Claim + premise correction — queue task 17637 (Lane BJ, 2026-11-22).

    Task 17637 arrived titled "Triage #1395: deploy-pm-stack — flake deploy app for aggregator/projector/tunnel/ready-for-agent (epic #973)". That title is a packet defect: this issue is the membership voiding/frontier planted-bug validation gap, and #973 is the usage-snapshot-writers issue. Neither concerns the deploy tool.

    State of this issue, verified fresh: closed and complete — the planted-bug check landed via PR #4754 (merged 2026-11-08T02:46:25Z), and the closing triage record stands at comment 6716346092. No live claim or remaining work exists here, and no deploy work was done under this number.

    The deploy-pm-stack triage the task asked for was performed against the real deploy program (epic #5765; tool v1 #5766; M1 #5768; M2 #5769 closed today after the cutover; M3 #5770 closed, deliverables on main) and is recorded in full on the follow-up issue it produced: #12768 — the deploy registry covers 15 targets today, but aggregator / projector / tunnel / ready-for-agent are not among them; #12768 names the lane-sized slice that registers them.

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)kind/testTest coverage, test infrastructure, or test-only fixesnowOrg Project gate: active priority — orchestrator adds to the boardpriority/highImportant and time-sensitivesource/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