Skip to content

2026-88: fix(spawn): warn when opencode health catalog scanned_at is stale - #88

Merged
Ivory2024 merged 1 commit into
mainfrom
fm/firstmate-pr80-84-87-audit-20261004
Oct 5, 2026
Merged

Ivory2024 merged 1 commit into
mainfrom
fm/firstmate-pr80-84-87-audit-20261004

Conversation

@Ivory2024

Copy link
Copy Markdown
Owner

Intent

병렬로. 퍼스트크루 깃허브 80번 84번 87번 전부 깃허브 올라간데서 오류나있는데 하나도 안 고쳐진 거 같아 확인하고 정정해 이것도 병렬로 진행하고
84 #84
87 #87
80 #80
전부 업무 처리할 때 $ultrawork 붙여서 처리해.

What Changed

  • bin/fm-spawn.sh now parses the opencode free-model health catalog's scanned_at at dispatch time, computes its age in days, and emits a stderr warning when it exceeds the ~10-day weekly scan cadence, noting the status/early_termination_detected read may no longer hold.
  • docs/model-dispatch-rigor.md updated to describe scanned_at staleness as a mechanical warning emitted by bin/fm-spawn.sh (not purely a manual brief-writing judgment call as previously documented), while keeping it a non-blocking narrow-more signal.
  • tests/fm-spawn-dispatch-profile.test.sh gains coverage for the new staleness warning behavior.

Risk Assessment

✅ Low: Single warn-only addition (no new blocking behavior) consistent with the updated doc, fails open silently on unparseable timestamps, and is covered by two new behavioral tests exercising the real script.

Testing

Drove the real bin/fm-spawn.sh opencode dispatch path three ways against disposable isolated HOME_DIR/fakebin setups built by the existing test harness: stale scanned_at warns and still dispatches, fresh scanned_at stays silent, and a malformed/unparseable scanned_at is tolerated without crashing or blocking the spawn. All passed; worktree left clean.

  • Live validation: ✅ go - 3 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Stale health-catalog scanned_at warns but still dispatches ✅ pass live test_opencode_dispatch_warns_on_stale_health_catalog_scan in tests/fm-spawn-dispatch-profile.test.sh — real bin/fm-spawn.sh run against an isolated HOME_DIR with a fake opencode/curl binary and a cata…
Fresh health-catalog scanned_at stays silent ✅ pass live test_opencode_dispatch_silent_on_fresh_health_catalog_scan — same harness with scanned_at=now; asserts exit 0, no warning text, and a written $id.meta
Adversarial: malformed scanned_at must not crash or block dispatch ✅ pass live ad hoc scratch test (sourced the real test file's helpers, invoked real bin/fm-spawn.sh via run_ship_spawn) with scanned_at="not-a-real-date"; exit 0, no spurious warning, $id.meta written — confirms…

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 3 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Stale health-catalog scanned_at warns but still dispatches ✅ pass live test_opencode_dispatch_warns_on_stale_health_catalog_scan in tests/fm-spawn-dispatch-profile.test.sh — real bin/fm-spawn.sh run against an isolated HOME_DIR with a fake opencode/curl binary and a cata…
Fresh health-catalog scanned_at stays silent ✅ pass live test_opencode_dispatch_silent_on_fresh_health_catalog_scan — same harness with scanned_at=now; asserts exit 0, no warning text, and a written $id.meta
Adversarial: malformed scanned_at must not crash or block dispatch ✅ pass live ad hoc scratch test (sourced the real test file's helpers, invoked real bin/fm-spawn.sh via run_ship_spawn) with scanned_at="not-a-real-date"; exit 0, no spurious warning, $id.meta written — confirms…
  • bash tests/fm-spawn-dispatch-profile.test.sh (full file — all tests incl. the two new ones pass)
  • ad hoc adversarial run: malformed scanned_at against real bin/fm-spawn.sh via the test file's own fixtures/helpers
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@Ivory2024 Ivory2024 changed the title fix(spawn): warn when opencode health catalog scanned_at is stale 2026-88: fix(spawn): warn when opencode health catalog scanned_at is stale Oct 5, 2026
@Ivory2024
Ivory2024 merged commit 3c073f5 into main Oct 5, 2026
36 of 38 checks passed
@Ivory2024
Ivory2024 deleted the fm/firstmate-pr80-84-87-audit-20261004 branch October 10, 2026 12:35
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.

1 participant