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(serve): group churn warning is blind to re-add cycles that complete between evaluations — the watcher compares net device sets every 60s, so a revoke+re-add inside one interval counts as zero · Issue #1847 · developing-today/code

id(serve): group churn warning is blind to re-add cycles that complete between evaluations — the watcher compares net device sets every 60s, so a revoke+re-add inside one interval counts as zero #1847

New issue
Copy link
New issue
Copy link
Closed
#4035
Closed
id(serve): group churn warning is blind to re-add cycles that complete between evaluations — the watcher compares net device sets every 60s, so a revoke+re-add inside one interval counts as zero#1847
#4035
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 jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

Problem

id(serve): the group churn warning (P4.9, #799) cannot see a device re-add that completes between two warning evaluations. Serve re-evaluates group warnings every 60 s, and the watcher derives re-adds by comparing the net authorized-device set at consecutive evaluations — so a revoke + re-add cycle that starts and finishes inside one interval leaves the evaluated set unchanged, counts as zero re-adds, and is lost forever, even though the group log the watcher re-reads on every pass contains both events.

A burst of re-adds is exactly the signal the warning exists for ("each re-add is a compromise recovery, so check the devices", groups/warnings.rs). Four cycles straddling evaluations warn; the same four cycles inside a single minute never warn — and a process cycling a device faster than once a minute can churn indefinitely without ever reaching the threshold of 4.

Evidence (verified this run on main 3675a470)

  • pkgs/id/src/commands/serve.rs:1191,1228 — the spawned task re-evaluates on GROUP_WARNING_INTERVAL = 60s.
  • serve.rs:1266-1292 (GroupWarningWatcher::evaluate): a device counts as re-added only if it is in the current group_active_devices set, was not in the previous evaluation's set (devices), and was in seen_devices. Two evaluations that see the same set therefore record nothing, whatever happened in between. The intermediate states are available — evaluate_group_warnings (serve.rs:1315) re-opens and re-folds the whole group log on every pass — but the watcher only ever receives the final Projection.
  • pkgs/id/src/groups/warnings.rs:39,139-148 — the evaluator itself is sound: it warns at CHURN_THRESHOLD = 4 re-adds in the 24 h window. It is starved of input, not wrong.
  • The shipped test pins only the visible shape: serve_group_warnings_fire_on_device_readd_churn (serve.rs:1598) calls evaluate_group_warnings after every revoke and every re-add, so each cycle straddles an evaluation by construction. No test performs two log writes between evaluations.
  • Laptop probe ~/git/fleet/probe-2026-10-28-laneA-churninterval/ (faithful transcription of the serve.rs:1270-1292 counting block + the warnings.rs window/threshold rule; serve.rs sha256 1fc3be8d…, warnings.rs sha256 f05bf215… at main 3675a470):
    • CONTROL (4 cycles straddling evaluations): counted=4 churn_fires=true.
    • BUG (the identical 4 revoke+re-add cycles completed between two evaluations): counted=0 churn_fires=false — the same group-log event history produces no warning.
    • A single intra-interval cycle also counts 0.

Why it matters

The churn warning is a security signal: a device re-add is the N8 compromise-recovery path, and a burst is supposed to make an operator look. The current sampling makes the signal depend on the phase alignment between the burst and a 60 s poll, and the fastest churn — a loop or an attacker cycling a device many times a minute — is the shape most reliably missed. The warning shipped in #799 / PR #1805 today; this is its detection blind spot, not a new feature request.

Acceptance criteria

  • A revoke + re-add cycle that completes between two warning evaluations is counted as a re-add (e.g. the watcher tracks progress through the group log / fold instead of comparing only net device sets, or evaluates on log change rather than only on the 60 s poll) — one mechanism, pinned by tests.
  • Regression test at the watcher level: four revoke+re-add cycles written to the group log with no evaluation in between, then one evaluation, produce the churn warning (readds = 4); the existing straddling-cycles test keeps passing unchanged.
  • Re-add timestamps: cycles recovered from the log are stamped no later than the evaluation that finds them and still age out of the 24 h window; the once-per-burst / re-arm behaviour of groups/warnings.rs is unchanged.
  • Size warnings and the startup evaluation pass are unchanged; existing id crate tests still pass (laptop or CI).

Dedup

Searched open + closed issues for group-warning/churn/evaluator terms. #799 (closed) is the feature request this implementation satisfied (merged as PR #1805 on current main); it does not cover the intra-interval blind spot. No other filing names the watcher's set-comparison derivation.

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
    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 28, 2026
  2. developing-today commented on Oct 28, 2026

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

    CODE-775

  3. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: filed

    • Agent: new-issue-creator (new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a run 2026-10-28 16:39 CDT
    • Found via: filed this run
    • Task: Triage the group-warning watcher's intra-interval churn blind spot (pkgs/id/src/commands/serve.rs GroupWarningWatcher) and pin the counting mechanism (log-progress tracking vs evaluation on log change).
    • Expectation: effort/s — re-add cycles completed between evaluations are counted, with a watcher-level regression test (4 cycles, no intermediate evaluation, then the churn warning); straddling behaviour and size warnings unchanged.
    • Links: packet hidden_files/queue-packets/packet-1847.json (repo-health-code-pilot); probe ~/git/fleet/probe-2026-10-28-laneA-churninterval/ (laptop)
  4. github-actions
    assigned
    dezren39
    on Oct 28, 2026
  5. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triage verdict

    • Agent: queue worker (repo-worker-code), Lane A
    • Session / ID: queue task 2742 (triage of id(serve): group churn warning is blind to re-add cycles that complete between evaluations — the watcher compares net device sets every 60s, so a revoke+re-add inside one interval counts as zero #1847), 2026-10-31 shift
    • Found via: queue claim
    • Task: Triage verdict: CONFIRMED on current main (081d69f, re-verified this shift, not from the filing evidence alone).
    • Evidence: pkgs/id/src/commands/serve.rs, GroupWarningWatcher::evaluate (~line 1392): a device counts as re-added only if it is in the current group_active_devices set, was not in the previous evaluation's set, and was in seen_devices — a pure net-set comparison between evaluations. A revoke+re-add cycle that starts and finishes inside one 60 s interval therefore still records zero re-adds, exactly as filed. The evaluator in groups/warnings.rs remains sound; it is starved of input.
    • Routing: scoped follow-up fix enqueued as queue task 5048 (small_fix): derive re-adds from the group log events folded since the previous evaluation, pinned by the watcher-level regression test (4 intra-interval cycles → churn warning, readds = 4), existing straddling test and window/re-arm behaviour unchanged.
    • Expectation: this issue stays open and queue/queued for task 5048; queue task 2742 completes as triaged.
  6. dezren39
    removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 1, 2026
  7. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane E shift
    • Session / ID: task 5048
    • Found via: queue claim
    • Task: Fix issue id(serve): group churn warning is blind to re-add cycles that complete between evaluations — the watcher compares net device sets every 60s, so a revoke+re-add inside one interval counts as zero #1847 — count intra-interval revoke+re-add cycles in the id(serve) group churn watcher (derive re-adds from group log events folded since the previous evaluation, not only the net-set diff), with the watcher-level regression test (4 cycles between evaluations -> churn warning, readds = 4).
    • Expectation: effort/s; done = branch + PR with the fix and regression test, existing straddling-cycles/window/size/startup behaviour unchanged, verified in CI.
    • Links: branch queue/5048-1847-churn-intra-interval (to be created on the laptop fleet worktree).
  8. dezren39
    removed
    queue/queuedHas a queued queue task
    on Nov 1, 2026
  9. 143 remaining items

  10. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 2, 2026
  11. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: picked_up
    task: 5048
    worker: repo-worker-code (lane A)
    pr: #4035
    note: Resuming task 5048 from awaiting_ci. Fresh check: #1847 OPEN, no hard-stop labels (held/user/owned/do-not-merge/do-not-auto-edit absent); PR #4035 is this task's own queue branch (queue/5048-1847-churn-intra-interval, head 87c31e0), not a foreign Drew-owned PR — author alone is not a stop. Found one undispositioned Codex P2 on current head (reconcile grant owners as well as device keys, unresolved, not outdated) — that blocks merge per the Codex gate, so fixing it in PR #4035 first. CI run 41461633547 still pending (fleet runner backlog).

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

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: parked
    task: 5048
    worker: repo-worker-code (lane A)
    pr: #4035
    note: Codex round-2 P2 (reconcile grant owners as well as device keys) FIXED in aa5acd3: evaluate reconciliation now rebuilds each active device's authorizing accounts from the fold (Projection::active_devices per current member) every pass, plus regression test serve_group_warnings_count_churn_after_a_grant_owner_is_removed. Reply posted on the thread (comment 4443852270) and the thread is resolved — both Codex threads on PR #4035 are now resolved. rustfmt --check on the laptop: only the 4 pre-existing diffs, none in the changed ranges. Parked on CI: id workflow run 41466379274 for head aa5acd3 still pending (no jobs started; fleet runner backlog), laptop load ~160 makes a local cargo run infeasible. Resume: run 41466379274 green -> merge PR #4035 and close #1847.

  14. dezren39
    added a commit that references this issue on Nov 2, 2026

    Merge pull request #4035 from developing-today/queue/5048-1847-churn-…

    7eb1435
  15. dezren39
    closed this as completedin #4035on Nov 2, 2026
  16. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: picked_up
    task: 5048 (repo-health-code-pilot, repo-worker-code; OpenChamber scheduled lane)
    state: claimed; resumed from prior verification that canonical PR #4035 binds this task
    next: Revalidate #1847 and #4035 metadata only. The PR, branch, worktree, and source are untouched under the Drew-owned hard stop.

  17. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: done
    task: 5048 (repo-health-code-pilot, repo-worker-code; OpenChamber scheduled lane)
    state: done (already_done)
    evidence: Fresh gh metadata confirmed #1847 CLOSED and canonical PR #4035 MERGED. Queue task completed with outcome=already_done. PR contents, branch, worktree, and source were not inspected or touched.
    bookkeeping: Sandbox backlog and sweep log deferred to fleet reconciliation.

  18. dezren39
    removed
    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 2, 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 jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

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.