Skip to content

app: show completed room tickets in the health counter - #3698

Merged
ashhart merged 3 commits into
ashhart:mainfrom
devopsfortunato:task/Tensorfold-Contribut+t-mwjtnw86-bag302
Nov 19, 2026
Merged

ashhart merged 3 commits into
ashhart:mainfrom
devopsfortunato:task/Tensorfold-Contribut+t-mwjtnw86-bag302

Conversation

@devopsfortunato

@devopsfortunato devopsfortunato commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

  1. The room health Tasks tile now shows completed tickets out of the room total, rather than tickets left out of the total. A room with eight completed tickets therefore shows 8/8, consistent with "All room tickets complete" and the final-readiness panel. The queue still receives the remaining tickets. FINAL's evidence, review and other safeguards are unchanged; this PR does not automatically finalize a room.
  2. The embedded VM-guest program accepts the BSD/Darwin killpg(2) result shape in command()'s two guarded cleanup kills. After p.wait() reaps the group leader, the second os.killpg returns EPERM on macOS (zombie-only group) instead of Linux's ESRCH; the exception escaped the narrow except ProcessLookupError and replaced the already-computed bounded result with VM tool refused: [Errno 1] Operation not permitted. Both guarded sites now swallow (ProcessLookupError, PermissionError). A trace-only diagnostic test (guest.trace-diagnostic.test.ts) mirrors the program with P*/F* stderr markers so a future divergence is localized to one syscall from the CI log alone.
  • Issue: Refs App: Tensorfold Desktop - Room: Tasks not shown as finished when completed #3517. This addresses the counter only; the reported missing FINAL remains a separate investigation.
  • Stacked on: main, base 699094f70570d547532f9d633502286202e7424a; two commits: b30037941f3df7979ca0bb0420f7dc804e32b4ba (counter + regression test), 5998b33f60dac4f23feddf81eb9fe355ab531c43 (bot-vm EPERM catch + diagnostic test).
  • atc overlap --json: after the final base update, atc overlap --pulls 3463 --base upstream/main --repo ashhart/TensorFold --json at 2026-11-17T08:46:35Z returned complete selected coverage, clean, zero conflict files. An independent, fully paginated file-list audit of all 455 open PRs at 2026-11-17T08:47:12Z found only app: show each Room's worktree and Git branch #3463 touching these two files. Its unrelated worktree-display test also appended at EOF; moving this regression before the existing attachment tests resolved that conflict. The repository-wide ATC view exceeds its comparison/time budgets, so this is not a claim that that view returned complete repository coverage.

Checks on this head

  • Head commit: 5998b33f60dac4f23feddf81eb9fe355ab531c43.
  • CI on this head: all 14 executed checks pass, the two scheduled-only host-nightly checks are skipped, including macOS desktop (862/862 passed, 0 failed). The previous head's single macOS failure (guest.test.ts:55, VM tool refused: [Errno 1] Operation not permitted) is resolved by the second commit; the same run executes the new trace-diagnostic test green.
  • Lean checker, python3 tools/zig/lean_check.py, on the base and on the first commit: 221 inherited problems on each, zero new. Both raw checker exits are 1; lean_new.py passes. python3 tools/pr_check.py --base upstream/main passes: two changed files, zero errors, zero warnings.
  • Tests run, with the command and pass, fail and skip counts:
    • node node_modules/jiti/lib/jiti-cli.mjs src/components/rooms/RoomView.attachments.test.tsx: pass, including all-completed 8/8, mixed 5/8, none-completed 0/8, empty 0/0, unchanged queue/FINAL props, and the existing attachment checks. The new test failed before the production change with actual 0/8, expected 8/8; it passes after the one-line change.
    • node node_modules/jiti/lib/jiti-cli.mjs electron/agent/bot-vm/guest.test.ts and .../guest.trace-diagnostic.test.ts: pass on Linux (Node 22.21.1), and on the macos-15 runner inside the desktop job above. On Linux the post-reap killpg raises ProcessLookupError(3); on Darwin the same site returns EPERM, which is now swallowed at both guarded sites.
    • npm test on the first commit: 856/857 test files passed, one host timeout, no skipped files. The unchanged runner kills each file after 120 seconds; scripts/settings-main-transaction.test.mjs exceeded that deadline.
    • The exact remaining file, node node_modules/jiti/lib/jiti-cli.mjs scripts/settings-main-transaction.test.mjs, passed in isolation with exit 0 in 170.4 seconds, exercising all its settings transaction cases. No test or timeout was changed. All files have passed across the aggregate run and this isolated retry; the aggregate command itself still exits 1 on this host. Publication with this limitation documented was explicitly approved.
    • npm run typecheck (tsc --noEmit --pretty false under Node 22.21.1): pass, zero diagnostics.
    • npm run verify:mobile: pass (lock checks, security regression checks, typecheck and lint).
    • Existing electron/agent/tickets.test.ts and electron/agent/rooms-run.test.ts: pass.
    • zig fmt --check build.zig zig and git diff --check: pass.
  • Not run, and why: Windows desktop execution and a packaged visual smoke test were not available here; the benchmark-clients jobs cover Windows. Native engine/model/GPU suites were not run for these renderer/guest changes; no inference code or interface changes.

Receipt

n/a for inference: these are a renderer-only presentation change and the VM-guest script's cleanup-kill error mapping; no inference path is reached.

  • Main against branch: before the counter change, the regression fails with 0/8 instead of 8/8; after it, all four counter scenarios pass. Before the EPERM catch, the macOS desktop job failed at guest.test.ts:55; after it, the same job passes 862/862.
  • Boxes it reaches: the desktop room-health Tasks tile; the bot-vm guest's run_command cleanup path. Queue and FINAL behavior remain unchanged.
  • New switch? Default, accepted values, profile row: n/a, no switch or configuration changes.
  • Environment, with the TensorFold commit, Zig and backend toolchain, machine and GPU, checkpoint and revision: head/base above; Linux arm64, Node 22.21.1, npm 10.9.8; Zig 0.17.0 used for formatting; macOS job on macos-15 (arm64). Backend, GPU, checkpoint and drafter revisions are n/a because no inference is reached.
  • Paths and platforms the change reaches, which I ran and which I could not: desktop renderer and bot-vm guest; host checks run on Linux arm64; macOS coverage comes from the desktop CI job above; Windows desktop execution not run locally.
  • Exactness, from tools/bench_concurrent.py --alone --serial or token_sha against "draft": false: n/a, no inference path.
  • Main against this branch, same machine and checkpoint, posted before asking for a run on our machines (or why you can't): n/a for inference; host red/green regression above, no maintainer hardware run requested.
  • Decode speed before and after, from tools/bench_openai.py: n/a, no inference path.
  • Prompt speed before and after: n/a, cannot reach prompt processing.
  • Licence of any new weights or drafter, or "n/a": n/a, no weights or drafter added.

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency (the existing test's normal locked app dependencies are installed).
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

@ashhart

ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Hi @devopsfortunato, thanks for the full receipt.

Both parts check out. The Tasks tile now counts completed tickets out of the room total, which matches the final gate, while the queue and FINAL still see the remaining tickets; the four counter cases fail on main and pass here. The guest's two guarded cleanup kills now also absorb the macOS EPERM result, so a bounded command keeps its computed result, and the diagnostic test can localise any future syscall divergence from a CI log alone. No inference code or tokens change.

No changes needed from our side.

  • Synthena

@ashhart
ashhart force-pushed the task/Tensorfold-Contribut+t-mwjtnw86-bag302 branch from 5998b33 to 3548619 Compare November 19, 2026 00:02
@ashhart
ashhart merged commit fe56a48 into ashhart:main Nov 19, 2026
1 of 15 checks passed
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thank you @devopsfortunato. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

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.

2 participants