Skip to content

Fix watcher stat mtime probing - #163

Closed
benawad wants to merge 3 commits into
kunchenguid:mainfrom
benawad:fm/watcher-stat-path-fix-m2-nm
Closed

benawad wants to merge 3 commits into
kunchenguid:mainfrom
benawad:fm/watcher-stat-path-fix-m2-nm

Conversation

@benawad

@benawad benawad commented Jun 30, 2026 •

Copy link
Copy Markdown

Summary

  • add a shared validated stat helper for watcher/guard/wake mtime and signature reads
  • prefer BSD /usr/bin/stat on Darwin while rejecting nonnumeric GNU filesystem-stat output
  • fix BSD fm_path_sig to use integer %m instead of float %Fm and add Darwin coverage

Validation

  • no-mistakes run 01KWD0AC18D09ZSFGXFAWT21TJ passed review, test, document, and lint on head 4f6f939
  • no-mistakes push to upstream failed with 403 for benawad on kunchenguid/firstmate, so this PR is opened from the authorized fork benawad/firstmate
  • manual pre-gate validation also passed: bash -n bin/.sh tests/.sh; for test_script in tests/*.test.sh; do bash ""; done

Pipeline

Updates from git push no-mistakes

@nguyenhieuec nguyenhieuec left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review result: code-clean / merge-ready from local review, but I cannot merge with the current GitHub token.

Evidence checked:

  • Head: 4f6f939
  • Focused validation passed locally: bash -n on touched scripts/tests, tests/fm-watcher-lock.test.sh, tests/fm-wake-queue.test.sh, tests/fm-watch-triage.test.sh.
  • The prior merged watcher stat PR #28 is not a duplicate blocker; this PR is a follow-up that centralizes validated stat helpers and covers wake/supervise paths plus Darwin PATH ordering.
  • Current PR body contains the required no-mistakes marker. The failed no-mistakes workflow appears stale from an older PR body; I could not rerun it because GitHub requires repo admin rights.

Blocker: failed with . A maintainer needs to rerun/clear the stale check and merge, or grant/use a token with merge permission.

Verdict: Comment / merge-ready pending maintainer permission and stale check handling.

benawad added a commit to benawad/firstmate that referenced this pull request Jul 2, 2026


These files' Darwin-detection changes duplicate the fix already landed
more thoroughly in the still-open kunchenguid#163 (shared fm-stat-lib.sh). Restore
the prior uname-based branching here so this branch stays scoped to the
fish-shell launch fix.
benawad added a commit to benawad/firstmate that referenced this pull request Jul 2, 2026
@kunchenguid

Copy link
Copy Markdown
Owner

thanks for this. quick note on process - i require PRs to come through no-mistakes, which is why the "PR must be raised via no-mistakes" check is red here (this was opened directly).

the reason i ask for it: no-mistakes runs review, tests, lint, and docs on your branch before the PR is opened, so contributions arrive already validated. that keeps the quality bar high and keeps me from having to hand-review every change - i maintain this solo, so it's the only way i keep up.

can you re-raise it through no-mistakes? running the pipeline on your branch opens/updates the PR through the gate and turns that check green. the change looks useful, it just needs to come through that path. ping me if the setup gives you trouble.

@butlersrepos

Copy link
Copy Markdown

Session pre-read is assembled

data/ow-163-tree-session-prep/report.md, with captures in img/ beside it. Knowledge only — no code changed.

Both boards are now shown at native 1152×648. The Paladin frame comes from the ui-convergence-v1 audit run (2b49eb61). The Druid frame was missing from that run — the audit's shot list has exactly one talent entry and it stands the Paladin — so it was captured in a single headed pass with the harness's own --only=talent_tree --class=druid flag, into a separate directory that did not overwrite the audit frames.

The three things worth knowing before the session

1. The board is 9 grid nodes. Verified: 4 Blight, 0 Conjuration, 1 Wildshape, 1 Sword & Board, 2 Hammer Thrower, 1 Auramancer. One built capstone in the whole game. Five ghost frames. It will never be cheaper to re-style than it is now.

2. The two colour signals are already double-booked, before feats arrive.

  • ModSatellite sets its border to CAPSTONE_FRAME_COLOR unconditionally — every modifier wears amber whether or not its host is a capstone. So amber means capstone and ability modifier.
  • An ability node and a scaling-modifier satellite cut the same atlas cell (Rect2(4347, 1758, 52, 51)) with the same material. Slate means ability and scaling modifier.
  • The entire type taxonomy currently rests on size — 100 / 75 / 40 / 34 — and size is what a satellite gives up in order to orbit.

3. An independent reader already fails to read the taxonomy. The ui-convergence-v1 judge scored this screen 2.86 / hobby — lowest in the game — and described the modifier satellites as "the gold candelabra sprites attached to frame corners carry no legend." That is the legible-without-being-named problem failing in the wild at four node types, before feats make it five.

One structural note the report argues at length: type lives in the frame, state lives in the icon alpha, and locking leaves the frame at full strength. If a redesign preserves that split, ten states is five frames plus one fill rule — not ten bespoke looks.

Also found, independent of the session

BlightGraspingSkill.tres draws no icon. Its region = Rect2(176, 112, 16, 16) on the TrueHeroes sheet is entirely transparent — 0 of 256 opaque pixels (siblings sample 97–116). On the shipped Druid board it renders as an empty amber frame with an earned amber tether running into it, so the board says "you own this" and shows nothing. Two-value fix; a gate test asserting every achievement icon region has at least one opaque pixel would close the class permanently.

The board's locked state has never been photographed — _build_talent_tree calls _unlock_everything() before every shot, so the locked language the redesign is mostly about is in no committed capture.

Open questions

Stated as questions and deliberately unanswered — 11 of them in §6, plus a separate §7 of firstmate opinions kept out of them. Each is registered as a durable captain-held decision so none is settled by omission.

fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 2, 2026
… 1 (kunchenguid#163)

* fix: reclaim stale remote-job ownership locks instead of restart-storming

A crash or interrupted shutdown left mktemp leftovers in worker.lock, so rmdir failed and every later worker exited 1. Clear those leftovers on acquire and do not wait out a leftover heartbeat when the recorded owner is already gone.

Co-authored-by: Cursor <[email protected]>

* no-mistakes(review): make remote-job lock reclaim single-writer and heartbeat-safe

* no-mistakes(review): prove reclaim-marker takeover unique via atomic rename

* no-mistakes(review): restore a captured live claim marker instead of deleting it

* no-mistakes(review): capture claim marker into a fresh scratch directory

* no-mistakes(review): retry reclaim when the scratch directory cannot be made

* no-mistakes(review): keep shutdown quarantine from being swept by reclaim

* no-mistakes(review): revalidate lock ownership after winning the claim marker

* no-mistakes(review): stop reclaim from racing an owner's shutdown guard

---------

Co-authored-by: Cursor <[email protected]>
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.

4 participants