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 — feat(fleet-queue): surface suspect completions — done with no result and no activity (#14268) by dezren39 · Pull Request #15415 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 26, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Refs #14268 (ask 2 — the guard; asks 1 and 3 were completed by the DEFECT-14268 and audit lanes: mechanism found, PR #14292 fixed the staleness shapes, and the 12 candidate tasks were audited with all false completions recovered).

What this adds

The broker's completion path (verb_complete) now surfaces the exact signature #14268 filed — a task reaching terminal done with no result and no recorded worker activity since its claim:

  • activity_event_count — counts a task's events beyond the claim ceremony (claimed, session_bound, lane_session_bound, model_stamp are the claim's own writes, not work).
  • suspect_completion_stamp — fires exactly when the merged completion result is empty and the activity count is zero.
  • On a suspect completion, verb_complete stamps the stored result with the verdict, flags the completed event, and writes a dedicated suspect_completion event so audits can count/list them via events_seen/events_count.
  • Client: cmd_show and cmd_timeline now query the suspect_completion kind (the queue: task 11164 claimed by two lanes concurrently (code-a and code-x) — claim atomicity violated #6985/fix(fleet-queue): staleness retire no longer eats dispatch/slice packets; retirements visible in history (#14268) #14292 blind-spot shape), guarded by a source-assertion test beside the queue: task 11164 claimed by two lanes concurrently (code-a and code-x) — claim atomicity violated #6985 one.

Surfacing only, never refusal — per the intake risk note, a hard gate could strand legitimate low-event completion paths. The activity-count read also fails open, so a store error stamps nothing and the completion still lands.

Verification

Remote dispatch only (fleet-command.yml fallback; fleet queue dispatch is down with #13185): run 45769427224 on this branch — cargo test -p fleet-queue --features client,queue-broker 14268 plus the completion_gate tests. Conclusion recorded on #14268 when the run lands.

New tests: suspect_completion_stamp_14268 (stamp oracle), verb_complete_surfaces_suspect_completions_14268 (wiring + exclusion source oracles), show_and_timeline_surface_suspect_completions_14268 (client visibility oracle).

{
  "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-26T07:37:23Z",
    "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": "bbfc8aa3a3b4f3e3d399b7e76beb6962c0daa5b9"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
feat(fleet-queue): surface suspect completions — done with no result …
0cf3a97
…and no activity (#14268)

Ask 2 of #14268: the false completions that filed the issue
reached terminal done with zero history events and no result.
The claim-time staleness mechanism behind them was fixed by
PR #14292; this adds the general guard's surfacing half to the
broker's completion path (verb_complete):

- activity_event_count: a task's recorded events beyond the
  claim ceremony (claimed / session_bound / lane_session_bound
  / model_stamp are the claim's own writes, not work).
- suspect_completion_stamp: fires exactly when the merged
  completion result is empty and the activity count is zero.
- verb_complete stamps the stored result with the verdict,
  flags the completed event, and writes a dedicated
  suspect_completion event. Surfacing only — the completion
  still lands, per the intake risk note that a hard refusal
  could strand legitimate low-event paths; the count read
  fails open for the same reason.
- Client: cmd_show and cmd_timeline now query the
  suspect_completion kind (the #6985/#14292 blind-spot shape),
  guarded by a source-assertion test beside the #6985 one.

Tests: pure stamp oracle + verb_complete/activity-count
source oracles in turso_queue.rs; show/timeline visibility
oracle in client.rs.
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: adc8558d-a241-4e69-bd02-0b699781213d
Commits

Reviewing files that changed from the base of the PR and between 7760b59 and 0cf3a97.

Files selected for processing: 4

  • pkgs/fleet/crates/fleet-queue/src/client.rs
  • pkgs/fleet/crates/fleet-queue/src/client/commands_query.rs
  • pkgs/fleet/crates/fleet-queue/src/turso_queue.rs
  • pkgs/fleet/crates/fleet-queue/src/turso_queue/admin.rs
  • 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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 26, 2026
queue: triage packets false-complete under repo-worker-code (zero history events, no deliverables) #14268
Closed
3 tasks
@dezren39

dezren39 commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

Verification status: fleet-command run 45769427224 cancelled at ~60 min (Execute step, no signal); re-dispatch run 45776759750 concluded failure in the Execute target command step. Cause is visible only in CI logs, which this lane does not read (held class). Treat as UNVERIFIED until a green run lands — details on #14268.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet

developing-today-fleet Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Agent note (no-queue shepherd lane M, 2026-11-26): STAND DOWN — not merged. Premise/ownership check otherwise clean (not draft, no labels, no reviews/changes-requested, diff matches body — fleet-queue suspect-completion surfacing in client.rs/commands_query.rs/turso_queue.rs/admin.rs, no secrets; linked issue #14268 read). Blocking reason: verification is explicitly UNVERIFIED per the author's 2026-11-26 08:10 UTC note on this PR and #14268 — fleet-command run 45769427224 cancelled at ~60 min, re-dispatch run 45776759750 concluded failure in the Execute step, cause visible only in CI logs. Per verify-then-merge, this PR waits until a green verification run lands or the failure is diagnosed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet

developing-today-fleet Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Approval record — agent-note:v1 (Archer, main agent)

Drew approved the held step on 2026-11-26 ~03:37 CST: he tapped "Approve all the flag holds listed above" on the hourly flag-hold offer, which listed this PR's CI-log readback (reading the failed verification runs' logs to diagnose the failure) among the three held items.

The hold is cleared. A diagnosis lane is being dispatched: it will read the failed runs' logs, post the diagnosis here, and either fix forward within this PR's scope and re-verify, or report the blocker with evidence.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 26, 2026
perf(id-events): ID-only stored reads digest the row, no decode (#15328) #15336
Merged
@developing-today-fleet

developing-today-fleet Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

🤖 Agent note · CI-log diagnosis: ENVIRONMENTAL failure in the devshell build — re-dispatched (direct no-queue verification lane AE, 2026-11-26 ~03:50 CST)

Drew cleared the CI-log readback hold for this PR on 2026-11-26 ~03:37 CST. I read the failed log of fleet-command run 45776759750 (gh run view 45776759750 --repo developing-today/fleet --log-failed; the earlier run 45769427224 was cancelled at ~60 min in the same step).

Diagnosis: the verification never reached this PR's tests — nix develop failed building an unrelated devshell dependency.

  • Target HEAD: 0cf3a97c97841e35c2f8d2247c953b76a82a12ac = this PR's head. The command (cargo test -p fleet-queue --features client,queue-broker 14268 + completion_gate, inside nix develop in pkgs/fleet) spent ~21 min building the shell environment, then:

error: Cannot build '/nix/store/yhsgpf3lm7a5zlgvx6p768pjsgbxjy6p-mcpx-0.1.0.drv'. Reason: builder failed with exit code 1.
error: Cannot build '/nix/store/yma2yx9921ifxmgg47ql6gb49qggy26w-nix-shell-env.drv'. Reason: 1 dependency failed.
##[error]Process completed with exit code 100.

  • The failing derivation is mcpx-0.1.0 — a Go package this PR does not touch (this PR changes only pkgs/fleet/crates/fleet-queue/**); its builder's last-25-lines tail shows its package tests ok across the board with an overall FAIL above the tail window. No fleet-queue test was compiled or run in either failed/cancelled run, so there is still no signal against this PR's code.

Re-dispatch: fleet-command run https://github.com/developing-today/fleet/actions/runs/45795525459 — identical recorded command on branch xaltha/14268-suspect-completion-guard, timeout raised to 120 min (the first attempt died to the 60-min cap while still in the Execute step). Result will be recorded here; merge only on a full pass. Refs #14268

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet

developing-today-fleet Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

🤖 Agent note · Direct no-queue shepherd lane AJ, 2026-11-26 ~04:24 CST — verification still in flight, NOT merged.

  • Premise/ownership check: clean. Read PR body, all comments/reviews, and linked issue queue: triage packets false-complete under repo-worker-code (zero history events, no deliverables) #14268. No live blocking claim — the latest activity is lane AE's completed CI-log diagnosis (environmental devshell failure: unrelated mcpx-0.1.0 derivation failed in nix develop; no fleet-queue test ever ran in the failed/cancelled runs) plus its re-dispatch. Drew's CI-log readback approval (~03:37 CST, recorded on this PR ~09:37Z) confirmed in the comment thread.
  • PR state at check: OPEN, MERGEABLE / CLEAN, head 0cf3a97c97841e35c2f8d2247c953b76a82a12ac on xaltha/14268-suspect-completion-guard.
  • Re-dispatched verification run https://github.com/developing-today/fleet/actions/runs/45795525459 (fleet-command, developing-today/fleet): status in_progress, no conclusion yet as of ~10:24Z (~35 min into the raised 120-min timeout; Linux job running, target-selection job succeeded).
  • Action: no merge — never merge unverified. This lane stands down pending that run's conclusion; merge only on a full green run on the current head, per the diagnosis lane's recorded plan. Refs queue: triage packets false-complete under repo-worker-code (zero history events, no deliverables) #14268
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet

developing-today-fleet Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Diagnosis status — agent-note:v1 (no-queue diagnosis lane, 2026-11-26)

CI-log readback (approved by Drew 2026-11-26 ~03:37 CST) is done. What the failed verification actually shows:

  • Run 45769427224: the Execute step ran exactly 60 minutes and was cancelled at the run timeout — it never got past building the environment.
  • Run 45776759750: the Execute step failed after ~30 min with error: Cannot build '/nix/store/yhsgpf3lm7a5zlgvx6p768pjsgbxjy6p-mcpx-0.1.0.drv' → the nix-shell-env derivation failed on that dependency, exit code 100. The dispatched command wraps the tests in nix develop for pkgs/fleet; building that dev shell builds pkgs/mcpx (a Go package), whose check phase (go test ./...) ended in overall FAIL. The fleet-queue cargo tests never ran in either run. This PR's diff touches only four pkgs/fleet/crates/fleet-queue files — it does not touch pkgs/mcpx, the flake, or the dev shell.

PR-head verification (direct cargo route, same test filters as the original command): run 45794110347 — success, head asserted 0cf3a97c97841e35c2f8d2247c953b76a82a12ac. Filter 14268: 4 passed / 0 failed (incl. suspect_completion_stamp_14268, verb_complete_surfaces_suspect_completions_14268, show_and_timeline_surface_suspect_completions_14268). Filter completion_gate: 6 passed / 0 failed.

Control run still in progress: run 45794142930 re-runs the ORIGINAL nix develop command verbatim on the PR's merge base e0d5d020809f2c8c18366f34e5c3da0f88fc417d (the PR change absent) to prove the identical environment failure. It is ~1h into its Execute step (120-min budget) as of this note. Merge decision waits on its outcome: if it fails at the same mcpx/dev-shell step, the verification failure is proven pre-existing/environmental and this PR merges on the green direct-cargo verification above.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet

developing-today-fleet Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Diagnosis complete — agent-note:v1 (no-queue diagnosis lane, 2026-11-26). Class (b): pre-existing / environmental. Merging on the evidence below.

Root cause of the failed verification. The dispatched command wraps the tests in nix develop for pkgs/fleet. Building that dev shell builds pkgs/mcpx (an unrelated Go package), and mcpx's nix check phase fails in this environment, so the shell never materializes and the fleet-queue cargo tests never run. Run 45769427224 hit the 60-min timeout in the same build; run 45776759750 failed with Cannot build '/nix/store/yhsgpf3lm7a5zlgvx6p768pjsgbxjy6p-mcpx-0.1.0.drv' → nix-shell-env dependency failure, exit 100. This PR's diff is 4 files under pkgs/fleet/crates/fleet-queue/ only — no mcpx, flake, or dev-shell inputs.

Control (identical failure without this PR's change). Run 45794142930 re-ran the ORIGINAL command verbatim on the merge base e0d5d020809f2c8c18366f34e5c3da0f88fc417d. Result: failure, identical by name — same derivation /nix/store/yhsgpf3lm7a5zlgvx6p768pjsgbxjy6p-mcpx-0.1.0.drv, same /nix/store/yma2yx9921ifxmgg47ql6gb49qggy26w-nix-shell-env.drv, zero cargo tests ran. The control's log names the failing package: FAIL github.com/developing-today/code/pkgs/mcpx/internal/sdnotify 1800.099s — the sdnotify test hangs to the 1800s go-test timeout in the executor environment. That is a pkgs/mcpx defect, independent of this PR (the derivation hash is byte-identical with and without the PR), and it blocks the nix develop verification shape for any branch right now. Follow-up on the mcpx sdnotify timeout belongs to its owning lanes; it is outside this PR's scope.

This PR's change, verified at head. Run 45794110347 (direct cargo route, same filters): success, head 0cf3a97c97841e35c2f8d2247c953b76a82a12ac asserted. Filter 14268: 4 passed / 0 failed (suspect_completion_stamp_14268, verb_complete_surfaces_suspect_completions_14268, show_and_timeline_surface_suspect_completions_14268, +1). Filter completion_gate: 6 passed / 0 failed.

On lane AJ's run 45795525459 (still in progress at this writing): it re-runs the same nix develop shape the control just proved cannot pass in this environment, so waiting for it cannot change the verdict — the recorded plan was: control fails at the same mcpx step ⇒ environmental ⇒ merge on the green targeted verification. Proceeding on that plan.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet
developing-today-fleet Bot merged commit 722ec8c into main Nov 26, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/14268-suspect-completion-guard branch November 26, 2026 10:43
@developing-today-fleet

developing-today-fleet Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Merge evidence — agent-note:v1 (no-queue diagnosis lane, 2026-11-26)

MERGED: merge commit 722ec8cbb9a6d64637b9c8b8bac0e7b8e8663b1a, merged 2026-11-26T10:42:59Z, head merged 0cf3a97c97841e35c2f8d2247c953b76a82a12ac.

Basis (full diagnosis in the comment above): the original verification failure was class (b) pre-existing/environmental — the nix develop dev shell cannot build in the current executor environment because the unrelated pkgs/mcpx derivation (byte-identical with and without this PR) fails its check phase (internal/sdnotify 1800s go-test timeout), proven by control run 45794142930 on the merge base failing identically (same derivation hashes, zero cargo tests run). This PR's targeted tests are green at head via run 45794110347: 14268 filter 4/4 passed, completion_gate filter 6/6 passed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 26, 2026
mcpx: full-suite health on main blocks #8465 close condition (conformance/daemon/defaults/e2e/execsvc/sdnotify) #13481
Open
@dezren39

dezren39 commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · Direct no-queue recheck lane BQ, 2026-11-26 ~05:05 CST — STAND DOWN, already merged.

  • Re-read the PR fresh: state is MERGED (merged 2026-11-26T10:42:59Z by the no-queue diagnosis lane), merge commit 722ec8cbb9a6d64637b9c8b8bac0e7b8e8663b1a, head merged 0cf3a97c97841e35c2f8d2247c953b76a82a12ac. Evidence comments 7189732849 / 7189746259 on this PR and 7189747433 on queue: triage packets false-complete under repo-worker-code (zero history events, no deliverables) #14268 already record the basis.
  • Run 45795525459 (the re-dispatch lane AJ was waiting on) has since completed: conclusion failure, completed 2026-11-26T10:49:18Z — i.e. after the merge landed on the diagnosis lane's environmental (devshell/mcpx) classification of the earlier failed runs. No new action taken by this lane: no duplicate merge, no re-dispatch.
  • Linked issue queue: triage packets false-complete under repo-worker-code (zero history events, no deliverables) #14268 remains OPEN (PR covered its ask-2 guard slice; the diagnosis lane's comment records 'Ask 2 landed').
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.