Repository navigation
feat(harness): add prime-agent adapter support - #2062
eduardstan wants to merge 18 commits into
Conversation
b564b03 to
920525d
Compare
920525d to
1d259e5
Compare
|
Rebased this branch onto current upstream Every failure had the same contribution regression: the cleanup The failures were:
I fixed the continuation in commit |
|
PR 2062 has been rebased onto current |
d4f2d39 to
825707b
Compare
|
Speaking as Kun's firstmate: Triage against tip main Contract-class: opt-in. Registers VISION.md (each rule)
Blockers (waiting-author / waiting-ci): Greptile P1 — missing Prime Agent executable preflight before recording a successful dispatch (fix before merge). CI tip run No auto-merge until green CI + preflight fixed. Captain-flag: no. Security FYI: none (no workflow file writes; ordinary harness registration). |
|
Speaking as Kun's firstmate: Newer activity after the 2026-09-08 stamp. Tip main Contract-class: opt-in (unchanged) — selecting VISION.md (each rule) — same as prior stamp: aligns across One captain / Authority / Scripts / Restart / Delegation / Fleet / Scope for a verified harness adapter. Security: clean. Please re-raise the tip through no-mistakes so attestation MATCHES |
|
Thanks for the triage on 9 September. The "PR must be raised via no-mistakes" check that failed at 06:28 UTC that day compared the body attestation (then bound to When convenient, could the workflows be re-run on this head? If anything else is needed on my side, I will take care of it. The follow-on slices (#2070, #2075) stay queued until this one lands, as agreed on #3953. |
c93851d to
48f9b85
Compare
…ispatch validation
48f9b85 to
6026d8a
Compare
|
Rebased onto the current |
What Changed
prime-agentas a recognized bare-adapter name acrossfm-spawn.sh,fm-harness.sh,fm-control-lib.sh,fm-bootstrap.sh,fm-teardown.sh, andfm-test-run.sh: resolves its executable from PATH once, refuses to launch if missing, clears foreign harness markers (CLAUDECODE,GROK_AGENT) while preservingPI_CODING_AGENTandFM_PI_HARNESS, and launches via a Pi-style single-positional brief with a-eturn-end extension (__PRIMEBIN__/__PRIMEEXT__template variables)..agents/skills/harness-adapters/references/harness/prime-agent.md) and updateSKILL.md,AGENTS.md, and other docs to list prime-agent among supported harnesses.tests/fm-prime-agent-harness.test.shand extend existing harness/spawn-dispatch/trace-context tests plustests/lib.shto cover the new adapter.Risk Assessment
✅ Low: Prime Agent registration is additive, mirrors the existing Pi/omp adapter patterns consistently across detection (fm-harness.sh), control tables (fm-control-lib.sh), spawn/launch/teardown wiring (fm-spawn.sh, fm-teardown.sh), dispatch validation (fm-bootstrap.sh), docs, and test-lib scrubbing; the fix commits in this run corrected a real gap (missing prime-agent case in model_flag_for_harness) and the tests exercise real behavior (rendered launch commands, refusal paths, control-table lookups) rather than source-text matching; prior-round decisions (tmux liveness revert, composer-surface tightening) are confirmed still applied/reverted as required.
Testing
Drove the real bin/fm-harness.sh, bin/fm-spawn.sh, bin/fm-control-lib.sh, and bin/fm-bootstrap.sh as actual subprocesses (not mocks) across all new prime-agent scenarios plus every sibling-harness test the diff touched; after fixing two test-only bugs everything passes, and the one remaining failure (fm-secondmate-harness.test.sh's concurrent-push timing case) reproduces identically on the unmodified base commit, so it predates and is unrelated to this change.
ok - Prime Agent detection splits its Pi-family marker without relabelling Pi or Claude(after fixing a missing ancestry-blind default in the test's own…ok - fm-harness: the cursor, gemini, and rovo markers outrank inherited Prime Agent markersok - fm-harness: a prime-agent ancestor alone never claims the identity; the launch marker does(fixed by bounding the real ps ancestry walk at the fabri…ok - fm-control-lib: prime-agent's lifecycle table matches its verified factsok - a prime-agent launch establishes the harness marker its own detection needsok - prime-agent refuses safely and actionably when the selected executable is unavailableok - a prime-agent secondmate spawn is refused by name, not as an unknown harnessPipeline
Updates from git push no-mistakes
⏭️ **intent** - skipped
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
.agents/skills/harness-adapters/SKILL.md:93- TheharnessesJSON map in SKILL.md has"prime-agent": "references/harness/prime-agent.md"listed twice in a row (lines 93-94), a copy-paste duplicate. JSON/jq silently take the last value so this is functionally harmless (confirmed: tests/fm-harness-adapter-references.test.sh loads this via jq and passes), but it's dead, mechanical duplication that should be trimmed to one line.🔧 Fix applied.
✅ Re-checked - no issues remain.
ok - Prime Agent detection splits its Pi-family marker without relabelling Pi or Claude(after fixing a missing ancestry-blind default in the test's own…ok - fm-harness: the cursor, gemini, and rovo markers outrank inherited Prime Agent markersok - fm-harness: a prime-agent ancestor alone never claims the identity; the launch marker does(fixed by bounding the real ps ancestry walk at the fabri…ok - fm-control-lib: prime-agent's lifecycle table matches its verified factsok - a prime-agent launch establishes the harness marker its own detection needsok - prime-agent refuses safely and actionably when the selected executable is unavailableok - a prime-agent secondmate spawn is refused by name, not as an unknown harnessbash tests/fm-prime-agent-harness.test.shbash tests/fm-spawn-dispatch-profile.test.shbash tests/fm-trace-context-spawn.test.shbash tests/fm-cursor-harness.test.shbash tests/fm-gemini-harness.test.shbash tests/fm-kimi-harness.test.shbash tests/fm-rovo-harness.test.shbash tests/fm-secondmate-harness.test.sh (baseline comparison only)manual live invocation of bin/fm-harness.sh with crafted env/ps ancestrymanual live invocation of bin/fm-bootstrap.sh's crew_dispatch_validate jq filter with real config/crew-dispatch.json fixtures✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.