Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; no new actionable issues were found. Reviews (13) · Last reviewed commit: "fix(reconcile): size merge-watch arming ..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: thank you @Dematom1, and thanks for working through every review round. On head Waiting on you for one thing: live validation is inconclusive (both scenarios ran only in the Contract-class (my own read): new-default. The scan's documented contract was that it never invokes |
5ef0bc5 to
232e32c
Compare
|
Speaking as Kun's firstmate: thank you @Dematom1. Head Waiting on you for the same one thing as last time: live evidence. The body now says "live 3/3", but all three rows cite the A small thing I noticed, not required: a few of the The branch merges cleanly onto main Contract-class (my own read): new-default, unchanged. Every home's unconfigured inactive scan now calls |
25ec2e7 to
2bbfd21
Compare
|
Speaking as Kun's firstmate: thanks @Dematom1. Head Waiting on you for two things:
Contract-class: new-default, and the VISION read is unchanged. Once both are done and the full suite is green, this goes to Kun for the decision. That step waits on Kun, not on you. |
|
Live evidence from code revision
The current validation candidate is |
2bbfd21 to
718e292
Compare
|
Speaking as Kun's firstmate: thank you @Dematom1. On head Waiting on you for one last small thing: as you noted, that run was on Contract-class: new-default (unchanged). Once that's in and the full suite is green, Kun makes the call. That step waits on Kun, not on you. VISION.md: unchanged, aligns (noise risk only). |
|
Live lab rerun on head Command: The real watcher observed the scripted canonical |
|
Speaking as Kun's firstmate: thank you @Dematom1 for re-running the lab on The run shows the timeout message now reads correctly ( Waiting on you for:
The Full suite check is ours to start, so it doesn't count against you. Contract-class: new-default (unchanged). Once this is in and the full suite is green, Kun makes the call. That step waits on Kun, not on you. VISION.md: unchanged, aligns. A bound that's too tight would add noise, which is the one thing to watch. |
…resence checks before skipping, and consistent incarnation comparison for legacy metadata. Shell syntax and diff checks pass. The approved merge-outcome skip and behavioral tests remain unimplemented; this phase is incomplete
…ry before watch arming, validated complete poll artifacts before skipping, and added a matching-merge-outcome skip. The existing behavioral test fails: its fixture lacks fm-guard.sh, and the legacy identity check also reports fm_meta_incarnation unavailable in fm-pr-check.sh. Behavioral coverage for the approved findings remains incomplete; this phase is not verified
…ded a persistent cursor for watch attempts, restricted the merged-marker shortcut to matching recorded/ready URLs, and preferred a canonical ready PR URL for parent delivery. `bash -n bin/fm-inactive-reconcile.sh` and `bash tests/fm-inactive-reconcile.test.sh` pass. Dedicated fairness, replacement-PR, and parent-delivery behavioral tests were not added; the existing suite does not directly verify those cases
…e.sh`: task IDs now end with a real newline, and cursor reset writes an empty line. This restores scanning after the last attempted child. Existing timeout, replacement-PR delivery, and ready-watch tests pass with `bash -n bin/fm-inactive-reconcile.sh` and `bash tests/fm-inactive-reconcile.test.sh`; `git diff --check` passes
…done: PR … checks green` lines and delivers their URL over stale `pr=` metadata. Added behavioral coverage for timed-out watch fairness and cursor wrap, plus replacement-PR delivery. `bash -n`, the inactive-reconcile test suite, and `git diff --check` pass. ci-1 was not touched
…sing `kind` defaults to `ship` before scout/secondmate exclusion. This applies at the shared `arm_ready_pr_watch` boundary for every ready task. Updated the behavioral test to omit `kind` and verify PR metadata and the merge poll are installed. The targeted test passed; the full test script later timed out after 180 seconds. `git diff --check` passed
A registration measured 1.3-2.8s locally with a stub forge on a loaded host, before real forge latency, so the 3s bound timed out healthy registrations. Bound it by FM_PR_WATCH_ARM_SECS (default 10) and let the wedged-scan backstop allow for that attempt.
718e292 to
8acbb68
Compare
|
Why arming timed out in the 1. Cause: the 3s bound was too tight for I timed
Fix (one commit,
2. Lab run on the PR head The lab script was reworked so every write stays under
An earlier run of the previous lab script on the pre-rebase commit |
|
Speaking as Kun's firstmate: thank you @Dematom1. That's a clear answer to both of my questions. What's new on
The attestation binds this head with no skipped steps, the quick checks pass, Greptile passes 5/5, and all threads are resolved. Thanks also for flagging the remaining noise case: with a forge slower than the bound, the "could not be armed" notice re-queues after each one is handled. I'll put that in front of Kun as part of his decision rather than ask you for more here. Nothing more is needed from you right now. The red |
|
Closing this one: #8086 landed the same mechanism. A small follow-up on top of it will cover what remains. |
Intent
U2 of the worker-hygiene report, approved by the captain as its own narrow upstream PR: arm the merge watch deterministically. When a canonical
done: PR <url> checks greenline is published, the publishing path recordspr=and the poll sidecar in code (bin/fm-inactive-reconcile.sh already parses these lines for parent delivery; bin/fm-pr-check.sh is idempotent), so a ship lane's merge watch never depends on a supervisor turn.What Changed
fm-inactive-reconcile.shnow makes a bounded PR-watch registration attempt for canonical green-PR ship outcomes, validating the task incarnation and ready status before registration.FM_PR_WATCH_ARM_SECSto bound registration time and documented the merge-watch behavior and timeout.Risk Assessment
✅ Low: The change is scoped to bounded, cursor-based PR-watch arming and its registration validation; the reviewed paths show no material source defect or intent conflict.
Testing
Drove the isolated live watcher through ship arming, merge detection, and scout exclusion; then ran the focused reconciliation tests. Both checks completed successfully, and the worktree is clean.
Evidence: Live watcher scenarios
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
🔧 **Test** - 2 issues found → no changes applied ✅
FM_LIVE=0 bash tests/fm-inactive-reconcile.test.shgit diff --check b7d2533fb3737b9b76bc1e46419bafaee370e7fc 8acbb688575ca56c68d640595b446c961b973b26Checked availability ofherdr,tmux, andclaude; did not start a lab because the only supplied live-watcher route requires an out-of-worktree symlink.🔧 No changes applied.
✅ Re-checked - no issues remain.
bash ~/.treehouse/agent-workspace-b8697d/3/agent-workspace/data/fm-hyg-u2-merge-arm/live-lab/lab-8034-inworktree.sh "$PWD" .FM_LIVE=0 bash tests/fm-inactive-reconcile.test.sh✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.