HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.
Python agent-apiagent-frameworkagent-harnessai-agentsai-infrastructurecoding-agentconformance-testingdeepseek-harnessharness-engineeringhermesllmopen-protocolopen-sourceopen-standardpi-coding-agentself-hosteduhpunified-apiunified-harness-protocolunified-interface
Support matrix: a pair served as a model other than the id asked for is a finding, never a pass (#99)
github-actions[bot]db67ad694b47
diff --git a/scripts/support-matrix/render.py b/scripts/support-matrix/render.pyindex 7e388eec..3299080c 100644--- a/scripts/support-matrix/render.py+++ b/scripts/support-matrix/render.py@@ -23,11 +23,15 @@ for prov, rows in sorted(by.items()):# a turn served by a connection other than the one under test is a finding, never a passfindings.append(f"{r['harness']} x {r['model']}: served by {', '.join(r['foreign'])} (turn records: {', '.join(r.get('connections') or [])})")notes.insert(0, "served by another connection (finding below)")+ if r.get('substituted'):+ # the CLI ran a model other than the id asked for: the id is not served as itself, a finding+ findings.append(f"{r['harness']} x {r['model']}: served as {', '.join(r['substituted'])} (the CLI reports the model it ran)")+ notes.insert(0, f"served as {', '.join(r['substituted'])} (finding below)")out.append(f"| {r['harness']} | {r['model']} | {mark(r.get('first'))} | {mark(r.get('followup'))} | {mark(sw)}{(' ('+sw['to']+')') if sw.get('to') else ''} | {mark(r.get('artifact'))} | {mark(r.get('recycle'))} | {served} | {' ; '.join(notes).replace('|', '/')} |")- clean = [r for r in rows if not r.get('foreign')]+ clean = [r for r in rows if not r.get('foreign') and not r.get('substituted')]ok = sum(1 for r in clean for sc in ('first','followup','switch','artifact','recycle') if (r.get(sc) or {}).get('ok') is True)tot = sum(1 for r in clean for sc in ('first','followup','switch','artifact','recycle') if (r.get(sc) or {}).get('ok') is not None)- out += ["", f"{len(rows)} pairs, {ok} of {tot} scenario runs passed" + (f"; {len(rows) - len(clean)} pairs served by another connection are findings, not counted." if len(clean) < len(rows) else "."), ""]+ out += ["", f"{len(rows)} pairs, {ok} of {tot} scenario runs passed" + (f"; {len(rows) - len(clean)} pairs served by another connection or as another model are findings, not counted." if len(clean) < len(rows) else "."), ""]if findings:- out += ["Findings, pairs served by a connection other than the one under test:", ""] + [f"- {f}" for f in findings] + [""]+ out += ["Findings, pairs served by a connection other than the one under test or as a model other than the id asked for:", ""] + [f"- {f}" for f in findings] + [""]print("\n".join(out))diff --git a/scripts/support-matrix/run.mjs b/scripts/support-matrix/run.mjsindex 7e74acdd..e10aef97 100644--- a/scripts/support-matrix/run.mjs+++ b/scripts/support-matrix/run.mjs@@ -152,10 +152,14 @@ try {const ts = await page.evaluate(async (sid) => { const r = await fetch(`/api/harness/v1/sessions/${sid}/turns`); return r.ok ? await r.json() : null; }, rec.sid).catch(() => null);const turnsList = Array.isArray(ts) ? ts : (ts && Array.isArray(ts.turns) ? ts.turns : []);rec.connections = [...new Set(turnsList.map((t) => t && t.connection).filter(Boolean).map(String))];+ // the model each turn record says the CLI actually ran (gemini-cli reports it; it rewrites some+ // requested ids): a served model other than the pair's id is a substitution, a finding of its own+ rec.served = [...new Set(turnsList.map((t) => t && t.served_model).filter(Boolean).map(String))];+ rec.substituted = rec.served.filter((sm) => sm.split(',').some((x) => x && x !== m));if (process.env.EXPECT_CONNECTION) rec.foreign = rec.connections.filter((c) => c !== process.env.EXPECT_CONNECTION);rec.deleted = await page.evaluate(async (sid) => { const r = await fetch(`/api/harness/v1/sessions/${sid}`, { method: 'DELETE' }); return r.status; }, rec.sid).catch(() => 0);}- const all = load(); all[k] = rec; save(all); log(`PAIR_DONE ${k} connection=${rec.connection || '?'} turns=${(rec.connections || []).join('+') || '?'}${(rec.foreign || []).length ? ' FOREIGN=' + rec.foreign.join('+') : ''} deleted=${rec.deleted || '?'}`);+ const all = load(); all[k] = rec; save(all); log(`PAIR_DONE ${k} connection=${rec.connection || '?'} turns=${(rec.connections || []).join('+') || '?'}${(rec.foreign || []).length ? ' FOREIGN=' + rec.foreign.join('+') : ''}${(rec.served || []).length ? ' served=' + rec.served.join('+') : ''}${(rec.substituted || []).length ? ' SUBSTITUTED=' + rec.substituted.join('+') : ''} deleted=${rec.deleted || '?'}`);}}} catch (e) { log(`FATAL ${String(e).slice(0, 300)}`); }