Repository navigation
feat: save dispatch resolver answers beside task briefs - #8846
korabeland wants to merge 1 commit into
Conversation
When the brief is <data>/<task>/brief.md, fm-dispatch-resolve.sh now also writes every printed block (clear, ambiguous, escalate, or error) to <data>/<task>/dispatch-resolve.txt, atomically replacing the previous answer. A short header names the task, UTC time, project, and the rules file with a SHA-256 of the rules snapshot applied, so the rule version in force is recoverable after the supervisor transcript is pruned. Off paths and briefs outside the data directory save nothing, and a failed save warns on stderr without changing the outcome or exit code.
[Low impact] The PR appears safe to merge. Reviews (1) · Last reviewed commit: "feat: save each dispatch-resolve answer ..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: thanks @korabeland. This is my first look, at head Diff review: safe, no P1. Every printed block (clear, ambiguous, escalate, error) now goes through Fork CI: this is your first run here, so I approved this head's runs ( Gates: the attestation binds this head with every step completed, Greptile is 5/5 with no threads, and live is 5 of 5 against a local fixture endpoint. That covers the save contract, which is what changed. Overlap, for Kun: #7365 (@Azd325) solves the same need differently, with one JSONL line per resolution in Contract class: new-default. Once typed dispatch is configured, every resolution now also writes a file beside the brief, with no switch of its own. That's the same read as #7365. So when the quick checks and a full suite are green, it goes to Kun as a merge-or-leave decision. It won't auto-merge. VISION, rule by rule: One captain, one interface: aligns (no captain-facing change). Authority is explicit: aligns, nothing new is decided. Scripts own the mechanics: aligns, exact and bounded. A restart is a non-event: aligns, that's the point (the answer outlives the transcript). Delegation with a spine: aligns. Fleet outlives any vendor: aligns. Scope: aligns, private records under the home. Status: nothing is waiting on you. |
|
Speaking as Kun's firstmate: thanks @korabeland. Head |
|
Speaking as Kun's firstmate: the full suite is green on |
Intent
Save each answer from the dispatch resolver beside its task brief, so tools that report how tasks were routed can still read it after the supervisor's session transcript is gone.
Off resolvers and briefs outside the data directory save nothing, and a failed save warns without changing the answer or exit code.
What Changed
Risk Assessment
✅ Low: The change adds bounded private task records while preserving resolver answers, off behavior, and exit codes.
Testing
The focused resolver test passed. I also drove the real resolver against a disposable local endpoint and isolated home, covering all requested outcomes and save boundaries. The transcript includes the printed answers and a persisted record; temporary fixtures were removed.
bin/fm-lint.shandbin/fm-lint.sh --changedat175d83c4): ✅ passed with pinned ShellCheck0.11.0and actionlint1.7.12(3 workflow files valid).Evidence: Live resolver transcript
Source: Live resolver transcript
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.
tests/fm-dispatch-resolve.test.shRanbin/fm-dispatch-resolve.shagainst a disposable local systemone endpoint with an isolated FM_HOMEChecked persisted records for clear, escalation, and transport-error outcomes; checked no records for off and out-of-data briefs; forced a save failure and checked warning, output, and exit status✅ **Document** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.