Repository navigation
chore(watch): sweep the harness surfaces left claiming the 60s poll floor - #422
Conversation
…loor marketplace#426 raised POLL_FLOOR and all three watcher defaults to 300s. Its sibling legs in this repo still stated the old floor, so they go stale the moment it lands (R1/R5 claim sweep): - .opencode/lib/watch.ts: POLL_FLOOR 60 -> 300. This is a DUPLICATE implementation of the same policy (R3); DEFAULT_INTERVAL_S derives from it, so the poll cadence and the clamp move together. - .opencode/instructions.md: the documented constant. - scripts/check-opencode-coord.mjs: the gate PINS the policy, so its assertion (`/below the 60s floor/`) and its seven sub-floor fixtures move with it - the fixture intervals were 60 (now refused), and the "keeps a valid interval" clamp case used 120, which the new floor correctly clamps. - .dsh/README.md, .reasonix/watch.items, .pi/extensions/watch.ts: the docs that quote the floor. STALL_MIN is untouched everywhere (minutes, not seconds). Agent: dsh-catchup-reconcile Assisted-by: DSH DeepSeek V4.1 Flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: harness config ( Comment thread: empty (0 comments) — nothing to disposition. Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…ld not match Both raised by the current BLOCK, and both are real: - .pi/extensions/watch.ts: `const INTERVAL = "60"` survived directly under the comment this PR corrected. It IS the poll interval handed to the floor-enforcing watcher, so with a 300s floor the pi watch could not arm at all (exit 5). Now "300". The claim- keyed sweep pattern could not match `INTERVAL = "60"`, so "no survivor" was not evidence - the sweep is now value-keyed. - .reasonix/watch.items: "one batched GraphQL poll per minute" still claimed a 60s cadence beside the raised floor; corrected to per interval (300s by default). STALL_MIN stays 60 in both harnesses - it is minutes, not the interval. Agent: dsh-catchup-reconcile Assisted-by: DSH DeepSeek V4.1 Flash (fully tested and validated)
Review — PASSHead SHA: Change class: harness config ( Security screen: PASS — no secrets/egress/supply-chain; the gate edit updates fixtures to the new floor (sub-floor refusal test still uses Comment dispositions (re-derived against current head
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
opencharly/marketplace#426 raised POLL_FLOOR and all three watcher defaults to 300s, and opencharly/opencharly#422 swept the umbrella surfaces. This is the SOURCE of the generated skill text that still stated the old floor (`internals/skills/git-workflow/references/watch-and-wake.md`), so it is fixed here in the owning entity rather than in the generated copy. - the section heading: "one poll per minute" -> "one poll per five minutes" - the FLOOR statement: POLL_FLOOR=60 / "defaults to 60s" / "sub-60s" -> 300s NOT touched: the B2b.1 takeover-window FLOOR, which is 60 MINUTES - a different knob, in the same reference. Agent: dsh-catchup-reconcile Assisted-by: DSH DeepSeek V4.1 Flash (fully tested and validated)
Summary
The umbrella leg of the watcher-interval cutover.
opencharly/marketplace#426raised the watcherfamily's
POLL_FLOORand all three defaults to 300s; this change moves the surfaces in THIS repothat still state or implement the 60s floor, so they do not go stale the moment it lands (R1/R5).
.opencode/lib/watch.ts-POLL_FLOOR = 60becomes300. This is a duplicate implementationof the same policy (R3), and
DEFAULT_INTERVAL_Sderives from it, so the cadence and the clampmove together.
.opencode/instructions.md- the documented constant,POLL_FLOOR = 300, "sub-300s".scripts/check-opencode-coord.mjs- the gate pins the policy, so it moves with it: itsassertion matched the literal
/below the 60s floor/(that message is built from the constant),and seven fixtures drove
coord_watchwithinterval: 60, which the new floor correctly refuses;the "keeps a valid interval" clamp case used
120, which the new floor clamps to 300. Both arefixed here.
.pi/extensions/watch.ts- a functional constant, not just a comment:const INTERVAL = "60"isthe interval handed to the floor-enforcing watcher, so with a 300s floor the pi watch could not arm
at all (exit 5). Now
"300"..reasonix/watch.itemsand.dsh/README.md- the comments that quote the cadence and the floor.STALL_MINis untouched everywhere: it is the stall window in MINUTES, not the interval.Refs opencharly/marketplace#425.
How tested
Run on this head (
c6fa738), every command rc=0:The commit also passed the repo's own
pre-commitumbrella gate (policy B, the self-tests, theopencode/pr-watch/pi gates, task contexts), ending
pre-commit: OK.The claim sweep, executed:
This sweep is VALUE-keyed, which the first revision's claim-keyed pattern was not: the previous
pattern (
POLL_FLOOR = 60|poll floor 60s|...) could not matchconst INTERVAL = "60", so its "nosurvivor" was not evidence - and a functional 60s survivor shipped in that head. Every remaining
60in the touched files is enumerated here, so a reader can check them rather than trust the claim:
STALL_MINin both harnesses is the stall window in MINUTES;watch.ts:282is a one-off lock retry,not the poll cadence;
:490is minute arithmetic on the stall window. None is an interval.The gate failed before the fixtures moved, and that failure is the R7 evidence: the same
check-opencode-coord.mjsreported 12 assertions failing, every one of them caused by a fixturebelow the new floor (
coord_watch: interval 60s is below the 300s floor - refusing). Reverting thefixture edits reproduces it.
NOT run, and said so rather than claimed: no R10 bed. No runtime target is touched - harness config,
docs and a gate's fixtures - so no bed is owed.
Disposition of the BLOCK on
d04e727.piconstant survived and the body mis-accounted the file.const INTERVALwas
"60"directly under the comment this PR rewrote; it is the value passed to thefloor-enforcing watcher, so a 300s floor would refuse it (exit 5) and the pi watch could not arm.
Now
"300". The body no longer calls the file "docs and comments": it carries a functionalconstant, and the sweep is value-keyed above.
survived beside the raised floor; it now reads "per interval - 300s by default", and the residual
enumeration above shows the remaining
60s are minutes, not intervals.Both were invisible to the first sweep because it was claim-keyed. That is the lesson this body now
encodes: a sweep of VALUES must match the value, not the phrasing.
Rulebook compliance
/charly-internals:git-workflowand/charly-internals:marketplaceloaded, and therepo's own
pre-commitgate ran the change-class checks.clampInterval(120)case were below the new floor, and the assertion was pinned to the oldliteral. All three are fixed above.
layer-charly-internals, then the refs bump and corpus regeneration) is named inmarketplace#425and carried in the session backstop.rather than letting two implementations of one rule diverge.
together in one change.
reverting the fixture edits, and the assertion moves with the constant it describes.
./bin/charly 2026.279.2047), which thepre-commit gate requires.
pod or deploy is affected, so no bed is owed.
Change classification
Harness configuration, comments and gate fixtures:
.opencode/lib/watch.ts,.opencode/instructions.md,.dsh/README.md,.reasonix/watch.items,.pi/extensions/watch.ts,scripts/check-opencode-coord.mjs. No Go, no schema, no pin, no generated artifact, no runtimetarget. Tier:
fully tested and validated- the affected gates and the repo'spre-commitgate allpassed on this head, and the changed behaviour was executed live above.
Agent:
dsh-catchup-reconcileAssisted-by: DSH DeepSeek V4.1 Flash (fully tested and validated)