harness-everything 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +8 -0
- package/behavioral-evals/ledger-pairs/README.md +53 -0
- package/behavioral-evals/ledger-pairs/arm.js +359 -0
- package/behavioral-evals/ledger-pairs/fixture.js +138 -0
- package/behavioral-evals/ledger-pairs/preflight.js +96 -0
- package/behavioral-evals/ledger-pairs/score.js +155 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/README.md +108 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-baseline/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-treatment/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-baseline/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-treatment/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-baseline/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-treatment/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-4-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-4-baseline/arm-result.json +28 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-4-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-4-treatment/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-1-baseline/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-1-baseline/arm-result.json +56 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-1-treatment/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-1-treatment/arm-result.json +56 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-2-baseline/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-2-baseline/arm-result.json +56 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-2-treatment/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-2-treatment/arm-result.json +56 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-3-baseline/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-3-baseline/arm-result.json +49 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-3-treatment/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-3-treatment/arm-result.json +49 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-4-baseline/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-4-baseline/arm-result.json +49 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-4-treatment/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-4-treatment/arm-result.json +56 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-baseline/arm-result.json +44 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-baseline/receipt.jsonl +17 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-treatment/arm-result.json +41 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-treatment/receipt.jsonl +58 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-baseline/arm-result.json +50 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-baseline/receipt.jsonl +101 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-treatment/arm-result.json +44 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-treatment/receipt.jsonl +29 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-baseline/arm-result.json +44 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-baseline/receipt.jsonl +23 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-treatment/arm-result.json +34 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-treatment/receipt.jsonl +24 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-baseline/arm-result.json +47 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-baseline/receipt.jsonl +69 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-treatment/arm-result.json +44 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-treatment/receipt.jsonl +65 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/run-order.sh +18 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/score.json +1032 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/README.md +50 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/collect-rerun.txt +3 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/export-report.json +22 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/host-version.txt +1 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/import-report-1.json +18 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/import-report-2.json +18 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/labels-observed-excerpt.jsonl +2 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/observations-index-excerpt.json +26 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/plugin-load-lines.txt +1 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/README.md +46 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/observations-index-excerpt.json +16 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/plugin-load-lines.txt +2 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/run-marks.txt +6 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/steering-probe.js +16 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/steering-trace.jsonl +167 -0
- package/ci/mechanism-332-fable-directive.test.js +180 -0
- package/ci/mechanism-552-ledger-pairs.test.js +159 -0
- package/ci/router-workflow-plan.test.js +61 -21
- package/docs/platform-capabilities.md +28 -11
- package/docs/platform-compatibility.json +5 -5
- package/harness-everything/SKILL.md +1 -1
- package/harness-everything/scripts/routing-keywords.json +0 -2
- package/harness-everything/scripts/tier-router.js +105 -11
- package/opencode-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/plugins/harness-everything/.antigravity-plugin/plugin.json +1 -1
- package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
- package/plugins/harness-everything/plugin.json +1 -1
- package/plugins/harness-everything/rules/AGENTS.md +1 -1
- package/plugins/harness-everything/skills/harness-everything/SKILL.md +1 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/routing-keywords.json +0 -2
- package/plugins/harness-everything/skills/harness-everything/scripts/tier-router.js +105 -11
- package/sbom.cdx.json +7 -7
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const fs = require('node:fs');
|
|
4
|
+
const os = require('node:os');
|
|
5
|
+
const path = require('node:path');
|
|
6
|
+
const { spawnSync } = require('node:child_process');
|
|
7
|
+
const { buildFixture } = require('./fixture');
|
|
8
|
+
const REPO = path.resolve(__dirname, '../..');
|
|
9
|
+
|
|
10
|
+
function parseArgs(argv) {
|
|
11
|
+
const result = { noModel: false };
|
|
12
|
+
for (let i = 0; i < argv.length; i += 1) {
|
|
13
|
+
if (argv[i] === '--no-model') result.noModel = true;
|
|
14
|
+
else if (argv[i] === '--out') result.out = argv[++i];
|
|
15
|
+
else throw new Error(`unknown argument: ${argv[i]}`);
|
|
16
|
+
}
|
|
17
|
+
if (!result.out) throw new Error('--out is required');
|
|
18
|
+
if (!result.noModel) throw new Error('live preflight is coordinator-only; pass --no-model here to keep model quota untouched');
|
|
19
|
+
return result;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function checkCommit(repo, subject, env) {
|
|
23
|
+
const result = spawnSync('git', ['-C', repo, 'commit', '--allow-empty', '-m', subject], { encoding: 'utf8', env });
|
|
24
|
+
return { accepted: result.status === 0, status: result.status, output: `${result.stdout || ''}${result.stderr || ''}` };
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
async function runPreflight({ out }) {
|
|
28
|
+
const target = path.resolve(out);
|
|
29
|
+
const baseline = await buildFixture({ out: path.join(target, 'fixture-baseline'), arm: 'baseline' });
|
|
30
|
+
const fixture = await buildFixture({ out: path.join(target, 'fixture-treatment'), arm: 'treatment' });
|
|
31
|
+
const env = {
|
|
32
|
+
...process.env,
|
|
33
|
+
HOME: path.join(target, 'home'),
|
|
34
|
+
CODEX_HOME: path.join(target, 'codex-home'),
|
|
35
|
+
TMPDIR: path.join(target, 'tmp'),
|
|
36
|
+
};
|
|
37
|
+
for (const key of ['HOME', 'CODEX_HOME', 'TMPDIR']) fs.mkdirSync(env[key], { recursive: true });
|
|
38
|
+
const negative = checkCommit(fixture.repo, 'fix: Uppercase subject control', env);
|
|
39
|
+
const positive = checkCommit(fixture.repo, 'fix: lowercase subject control', env);
|
|
40
|
+
const hookPayload = (repo, sessionId) => JSON.stringify({
|
|
41
|
+
hook_event_name: 'PreToolUse', tool_name: 'Bash',
|
|
42
|
+
tool_input: { command: 'git commit -m "fix: uppercase subject control"' },
|
|
43
|
+
cwd: repo, session_id: sessionId,
|
|
44
|
+
});
|
|
45
|
+
const runCarrier = (repo, sessionId) => spawnSync(process.execPath, [path.join(REPO, 'hooks/scripts/codex-ledger-lesson.js')], {
|
|
46
|
+
input: hookPayload(repo, sessionId), encoding: 'utf8', cwd: repo, env,
|
|
47
|
+
});
|
|
48
|
+
const baselineCarrier = runCarrier(baseline.repo, 'ledger-pairs-preflight-baseline');
|
|
49
|
+
const treatmentCarrier = runCarrier(fixture.repo, 'ledger-pairs-preflight-treatment');
|
|
50
|
+
const matcher = require(path.join(REPO, 'hooks/scripts/lib/ledger-match.js'));
|
|
51
|
+
const trigger = {
|
|
52
|
+
phase: 'action', tool: 'shell', command: 'git commit -m "fix: uppercase subject control"', outcome: { failed: 'unknown' },
|
|
53
|
+
};
|
|
54
|
+
const baselineMatcherReceipt = matcher.peekRepoMatches({ workspaceRoot: baseline.repo, event: trigger });
|
|
55
|
+
const treatmentMatcherReceipt = matcher.peekRepoMatches({ workspaceRoot: fixture.repo, event: trigger });
|
|
56
|
+
const matcherReceipt = { baseline: baselineMatcherReceipt, treatment: treatmentMatcherReceipt };
|
|
57
|
+
const codexCarrierOutputHasE3 = baselineCarrier.status === 0 && treatmentCarrier.status === 0
|
|
58
|
+
&& baselineMatcherReceipt.includes('E-0003') && treatmentMatcherReceipt.includes('E-0003')
|
|
59
|
+
&& baselineCarrier.stdout.includes('Check the subject line against both rules')
|
|
60
|
+
&& treatmentCarrier.stdout.includes('Check the subject line against both rules');
|
|
61
|
+
const report = {
|
|
62
|
+
schemaVersion: 1,
|
|
63
|
+
mode: 'no-model',
|
|
64
|
+
fixture: { initialSha: fixture.initialSha, baselineInitialSha: baseline.initialSha, recordsByteIdentical: baseline.record === fixture.record, repo: 'fixture-treatment/repo', commitlintResolution: fixture.commitlintResolution },
|
|
65
|
+
positiveControls: {
|
|
66
|
+
uppercaseSubjectRejected: !negative.accepted && /subject-case/.test(negative.output),
|
|
67
|
+
lowercaseSubjectAccepted: positive.accepted,
|
|
68
|
+
raw: { negative: negative.output.trim(), positive: positive.output.trim() },
|
|
69
|
+
},
|
|
70
|
+
carrierChecks: {
|
|
71
|
+
codex: codexCarrierOutputHasE3 ? 'PASS: actual hook script emitted E-0003 for a git commit action; model-request receipt remains a live-host check' : 'FAIL: hook did not emit E-0003 for the fixture git commit action',
|
|
72
|
+
codexCarrierOutput: { baseline: baselineCarrier.stdout.trim(), treatment: treatmentCarrier.stdout.trim() },
|
|
73
|
+
matcherReceipt,
|
|
74
|
+
opencode: 'V2 matcher path is mechanism-tested; real carrier delivery requires execute.before/after then the next context request',
|
|
75
|
+
nextModelRequest: 'UNCHECKED: --no-model deliberately sends no request',
|
|
76
|
+
},
|
|
77
|
+
evidenceToRetain: {
|
|
78
|
+
codex: 'hook stdin/action, hookSpecificOutput.additionalContext with E-0003 receipt, and the following codex exec --json request input (or retained host capture that associates it before the next commit decision)',
|
|
79
|
+
opencode: 'server plugin-load lines for this checkout, execute.before/after events, next V2 context hook input/output, and the associated next model request; OpenCode delivers after the triggering action',
|
|
80
|
+
},
|
|
81
|
+
liveEvidence: 'UNCHECKED',
|
|
82
|
+
};
|
|
83
|
+
report.passed = report.positiveControls.uppercaseSubjectRejected && report.positiveControls.lowercaseSubjectAccepted && codexCarrierOutputHasE3;
|
|
84
|
+
fs.writeFileSync(path.join(target, 'preflight.json'), `${JSON.stringify(report, null, 2)}\n`, { mode: 0o600 });
|
|
85
|
+
return report;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
async function main(argv) {
|
|
89
|
+
const report = await runPreflight(parseArgs(argv));
|
|
90
|
+
process.stdout.write(`${JSON.stringify(report, null, 2)}\n`);
|
|
91
|
+
if (!report.passed) process.exitCode = 1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (require.main === module) main(process.argv.slice(2)).catch(error => { console.error(error.message); process.exitCode = 2; });
|
|
95
|
+
|
|
96
|
+
module.exports = { checkCommit, main, parseArgs, runPreflight };
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const fs = require('node:fs');
|
|
4
|
+
|
|
5
|
+
const DIAGNOSTICS = ['subject-case', 'header-max-length'];
|
|
6
|
+
|
|
7
|
+
// The prepared-commit protocol leaves .commit-msg.txt by design; it is not an agent change.
|
|
8
|
+
function treeCleanIgnoringProtocol(input) {
|
|
9
|
+
if (typeof input.workingTree !== 'string') return input.treeClean !== false;
|
|
10
|
+
return input.workingTree.split(/\r?\n/).filter(line => line.trim() && line.trim() !== '?? .commit-msg.txt').length === 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function normalizeEvents(input) {
|
|
14
|
+
if (Array.isArray(input.events)) return input.events;
|
|
15
|
+
const text = typeof input.log === 'string' ? input.log : '';
|
|
16
|
+
const events = [];
|
|
17
|
+
for (const line of text.split(/\r?\n/)) {
|
|
18
|
+
try {
|
|
19
|
+
const value = JSON.parse(line);
|
|
20
|
+
if (value && typeof value === 'object' && typeof value.kind === 'string') events.push(value);
|
|
21
|
+
else if (value?.event && typeof value.event.kind === 'string') events.push(value.event);
|
|
22
|
+
} catch {}
|
|
23
|
+
const match = line.match(/commitlint.*(subject-case|header-max-length)/i);
|
|
24
|
+
if (match) events.push({ kind: 'commit', accepted: false, diagnostics: [match[1].toLowerCase()] });
|
|
25
|
+
if (/--no-verify|HUSKY\s*=\s*0/i.test(line)) events.push({ kind: 'bypass', value: line });
|
|
26
|
+
}
|
|
27
|
+
return events;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function receiptStatus(events) {
|
|
31
|
+
for (const receipt of events.filter(event => event.kind === 'receipt' && event.correlated === true && event.requestId)) {
|
|
32
|
+
const decisionIndex = events.findIndex(event => ['decision', 'commit', 'prepared-commit'].includes(event.kind) && event.requestId === receipt.requestId);
|
|
33
|
+
if (decisionIndex < 0) continue;
|
|
34
|
+
const receiptIndex = events.indexOf(receipt);
|
|
35
|
+
if (receiptIndex < decisionIndex && receipt.status === 'delivered-before-decision') return 'delivered-before-decision';
|
|
36
|
+
if (receiptIndex > decisionIndex || receipt.status === 'delivered-after-decision') return 'after';
|
|
37
|
+
}
|
|
38
|
+
return 'unknown';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function scoreArm(input) {
|
|
42
|
+
const events = normalizeEvents(input);
|
|
43
|
+
const commits = events.filter(event => event.kind === 'commit');
|
|
44
|
+
const firstCommit = commits[0];
|
|
45
|
+
const rejections = commits.filter(event => event.accepted === false);
|
|
46
|
+
const accepted = commits.find(event => event.accepted === true);
|
|
47
|
+
const sameClassRejections = { 'subject-case': 0, 'header-max-length': 0 };
|
|
48
|
+
for (const rejection of rejections) {
|
|
49
|
+
for (const diagnostic of rejection.diagnostics || []) {
|
|
50
|
+
if (DIAGNOSTICS.includes(diagnostic)) sameClassRejections[diagnostic] += 1;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const bypass = events.some(event => event.kind === 'bypass' || event.bypass || event.noVerify || event.huskyDisabled)
|
|
54
|
+
|| events.some(event => event.kind === 'commit' && /--no-verify|HUSKY\s*=\s*0/i.test(event.command || ''));
|
|
55
|
+
const filesDiffer = JSON.stringify(input.initialFiles || {}) !== JSON.stringify(input.finalFiles || {});
|
|
56
|
+
const testPassed = events.some(event => event.kind === 'test' && event.passed === true);
|
|
57
|
+
const correctDiffAndTest = filesDiffer && testPassed && input.correctDiff !== false && input.testPassed !== false && treeCleanIgnoringProtocol(input);
|
|
58
|
+
const firstCommitAccepted = firstCommit?.accepted === true;
|
|
59
|
+
const hookBypass = Boolean(bypass);
|
|
60
|
+
const qualityPass = Boolean(accepted && correctDiffAndTest && !hookBypass);
|
|
61
|
+
const usage = input.usage && typeof input.usage === 'object' ? input.usage : {};
|
|
62
|
+
const explicitTotal = Number(usage.totalTokens ?? usage.tokens);
|
|
63
|
+
const tokenCount = Number.isFinite(explicitTotal) && explicitTotal > 0 ? explicitTotal : ['inputTokens', 'outputTokens', 'reasoningTokens', 'cachedTokens'].reduce((sum, key) => {
|
|
64
|
+
const value = Number(usage[key]);
|
|
65
|
+
return Number.isFinite(value) && value > 0 ? sum + value : sum;
|
|
66
|
+
}, 0);
|
|
67
|
+
const start = Date.parse(input.startedAt || '');
|
|
68
|
+
const end = Date.parse(input.endedAt || '');
|
|
69
|
+
const elapsedMs = Number.isFinite(start) && Number.isFinite(end) && end >= start ? end - start : Number(input.elapsedMs) || null;
|
|
70
|
+
// The arm launcher owns the 200k decision (uncached input + output + reasoning); fall back only for legacy results.
|
|
71
|
+
const overCap = typeof input.overCap === 'boolean' ? input.overCap : tokenCount > 200000;
|
|
72
|
+
return {
|
|
73
|
+
runner: input.runner || 'unknown',
|
|
74
|
+
arm: input.arm || 'unknown',
|
|
75
|
+
pair: Number.isInteger(input.pair) ? input.pair : null,
|
|
76
|
+
firstCommitAccepted,
|
|
77
|
+
sameClassRejections,
|
|
78
|
+
retries: new Set(rejections.map((event, index) => event.attemptId || `rejection-${index}`)).size,
|
|
79
|
+
manualIntervention: Number(input.manualIntervention) || 0,
|
|
80
|
+
correctDiffAndTest,
|
|
81
|
+
hookBypass,
|
|
82
|
+
tokens: tokenCount || null,
|
|
83
|
+
overCap,
|
|
84
|
+
valid: !overCap,
|
|
85
|
+
invalidReasons: overCap ? ['over-200000-token-cap'] : [],
|
|
86
|
+
action: input.action || (input.runner === 'codex' ? 'prepared-commit' : 'commit'),
|
|
87
|
+
fileReads: Number(input.fileReads) || 0,
|
|
88
|
+
tokenCap: { limit: 200000, enforcement: input.tokenCapEnforcement || 'post-hoc measurement' },
|
|
89
|
+
elapsedMs,
|
|
90
|
+
receiptStatus: receiptStatus(events),
|
|
91
|
+
receiptOutcomes: events.filter(event => event.kind === 'receipt').map(({ status, correlated, requestId }) => ({ status: status || 'unknown', correlated: correlated === true, requestId: requestId || null })),
|
|
92
|
+
qualityPass,
|
|
93
|
+
failures: Array.isArray(input.failures) ? input.failures : [],
|
|
94
|
+
unknowns: Array.isArray(input.unknowns) ? input.unknowns : [],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function scoreRunner(armResults) {
|
|
99
|
+
const scores = armResults.map(scoreArm);
|
|
100
|
+
const byPair = new Map();
|
|
101
|
+
for (const score of scores) {
|
|
102
|
+
if (score.pair === null) continue;
|
|
103
|
+
const pair = byPair.get(score.pair) || {};
|
|
104
|
+
pair[score.arm] = score;
|
|
105
|
+
byPair.set(score.pair, pair);
|
|
106
|
+
}
|
|
107
|
+
const transitions = { bothPass: 0, treatmentOnly: 0, baselineOnly: 0, neitherPass: 0, invalid: 0 };
|
|
108
|
+
for (const pair of byPair.values()) {
|
|
109
|
+
if (!pair.baseline || !pair.treatment || !pair.baseline.valid || !pair.treatment.valid) { transitions.invalid += 1; continue; }
|
|
110
|
+
if (pair.baseline.qualityPass && pair.treatment.qualityPass) transitions.bothPass += 1;
|
|
111
|
+
else if (pair.treatment.qualityPass) transitions.treatmentOnly += 1;
|
|
112
|
+
else if (pair.baseline.qualityPass) transitions.baselineOnly += 1;
|
|
113
|
+
else transitions.neitherPass += 1;
|
|
114
|
+
}
|
|
115
|
+
const validPairs = [...byPair.values()].filter(pair => pair.baseline?.valid && pair.treatment?.valid).length;
|
|
116
|
+
return {
|
|
117
|
+
runner: scores[0]?.runner || 'unknown',
|
|
118
|
+
armCount: scores.length,
|
|
119
|
+
assignedArms: scores.map(({ arm, pair, valid, invalidReasons }) => ({ arm, pair, valid, invalidReasons })),
|
|
120
|
+
validPairs,
|
|
121
|
+
pairReasons: [...byPair].flatMap(([pair, arms]) => {
|
|
122
|
+
const reasons = [];
|
|
123
|
+
if (!arms.baseline) reasons.push('missing-baseline');
|
|
124
|
+
if (!arms.treatment) reasons.push('missing-treatment');
|
|
125
|
+
for (const [arm, score] of Object.entries(arms)) if (!score.valid) reasons.push(`${arm}:${score.invalidReasons.join(',')}`);
|
|
126
|
+
return reasons.length ? [{ pair, reasons }] : [];
|
|
127
|
+
}),
|
|
128
|
+
pairedTransitions: transitions,
|
|
129
|
+
verdict: 'descriptive, inconclusive',
|
|
130
|
+
scores,
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function readArmFiles(files) {
|
|
135
|
+
return files.map(file => JSON.parse(fs.readFileSync(file, 'utf8')));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function main(args) {
|
|
139
|
+
const files = args.filter(arg => !arg.startsWith('--'));
|
|
140
|
+
if (!files.length) throw new Error('usage: node score.js <arm-result.json> [...]');
|
|
141
|
+
const groups = new Map();
|
|
142
|
+
for (const result of readArmFiles(files)) {
|
|
143
|
+
const runner = result.runner || 'unknown';
|
|
144
|
+
groups.set(runner, [...(groups.get(runner) || []), result]);
|
|
145
|
+
}
|
|
146
|
+
const report = { generatedAt: new Date().toISOString(), claim: 'descriptive, inconclusive', runners: [...groups.values()].map(scoreRunner) };
|
|
147
|
+
process.stdout.write(`${JSON.stringify(report, null, 2)}\n`);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (require.main === module) {
|
|
151
|
+
try { main(process.argv.slice(2)); }
|
|
152
|
+
catch (error) { console.error(error.message); process.exitCode = 2; }
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
module.exports = { main, normalizeEvents, receiptStatus, scoreArm, scoreRunner };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Paired E-0003 ledger-lesson live-host run (2026-11-28, #552 F)
|
|
2
|
+
|
|
3
|
+
**Observed:** 2026-11-28, macOS, coordinator-run paired evaluation (`behavioral-evals/ledger-pairs/`) across three runners, 4 baseline/treatment pairs per runner (12 pairs, 24 arms total), seed `552202611` (balanced: 2 baseline-first, 2 treatment-first per runner). Verdict: **descriptive, inconclusive** — no behavioural evidence for or against the E-0003 ledger lesson.
|
|
4
|
+
|
|
5
|
+
- **Codex (`gpt-6-luna`, effort `high`, action `prepared-commit`):** 8/8 arms exited 0; carrier never fired (model writes `.commit-msg.txt`; driver commits outside the sandbox through the same Husky hook).
|
|
6
|
+
- **OpenCode `v2.4.1` (`opencode/hy4-flash-free`, long-lived server):** 8/8 arms exited 0; E-0003 Cue/Lesson reached the next `context` hook after a matched `git commit` in 6/8 arms (baseline: stripped by probe; treatment: delivered), always **after** the scored commit.
|
|
7
|
+
- **Antigravity / AGY (`gemini-4-hydrogen-high`, `agy-injection`):** 8/8 arms exited 0; separate intervention (initial-prompt injection, no native repo-ledger carrier).
|
|
8
|
+
|
|
9
|
+
**Fixture & candidate:** Initial fixture SHA `bdf3b6b3774849c45426b138081ba67b39b41541` identical in all 24 arms; harness commits `661b061c`, `60046ca0`, `f4df4d66`, `07b55c44` on branch `chore/552-close-out`.
|
|
10
|
+
|
|
11
|
+
## Design
|
|
12
|
+
|
|
13
|
+
Owner-approved protocol (2026-11-28): 4 pairs per runner; per-arm cap of 200,000 tokens measured post-hoc as `uncached input + output + reasoning` (cache reads retained separately; AGY usage unavailable → `n/a`); shared exposure (both arms start from byte-identical worktree files, so the ledger lesson is self-discoverable in both); Codex uses a `prepared-commit` protocol. No manual intervention occurred inside any arm.
|
|
14
|
+
|
|
15
|
+
Runners are reported separately and never pooled. AGY tests initial-prompt injection (`agy-injection`), which is a different intervention from host-carrier delivery and does not fill Codex or OpenCode carrier receipt gaps.
|
|
16
|
+
|
|
17
|
+
```mermaid
|
|
18
|
+
flowchart LR
|
|
19
|
+
F["Fixture SHA bdf3b6b3<br/>(byte-identical files in both arms)"] --> O["Balanced order<br/>(seed 552202611: 2 B-first, 2 T-first)"]
|
|
20
|
+
O --> C["Codex gpt-6-luna high<br/>(4 pairs, prepared-commit)<br/>carrier not triggered"]
|
|
21
|
+
O --> OC["OpenCode 2.4.1 hy4-flash-free<br/>(4 pairs, V2 carrier)<br/>baseline strips E-0003 in context;<br/>treatment passes through"]
|
|
22
|
+
O --> A["AGY gemini-4-hydrogen-high<br/>(4 pairs, agy-injection)<br/>treatment injects E-0003<br/>in initial prompt"]
|
|
23
|
+
C --> S["Post-hoc scorer (score.json)<br/>descriptive, inconclusive"]
|
|
24
|
+
OC --> S
|
|
25
|
+
A --> S
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Results by runner
|
|
29
|
+
|
|
30
|
+
### Codex (`gpt-6-luna` high, `prepared-commit`)
|
|
31
|
+
|
|
32
|
+
- **First prepared commit accepted:** baseline `2/4`, treatment `1/4`. All five rejections were `type-empty` / `subject-empty` (missing conventional commit type), not the E-0003 failure classes (`subject-case`, `header-max-length`).
|
|
33
|
+
- **Carrier receipt:** `0/8` arms (expected: under `prepared-commit`, the model writes `.commit-msg.txt` and never executes `git commit` itself).
|
|
34
|
+
- **Paired transitions (quality):** `bothPass: 1`, `treatmentOnly: 0`, `baselineOnly: 1`, `neitherPass: 2`, `invalid: 0` (4 valid pairs).
|
|
35
|
+
- **Verdict:** descriptive, inconclusive.
|
|
36
|
+
|
|
37
|
+
| Pair | Arm | First commit accepted | Commitlint rejections | E-0003 in `context` | Uncached tokens | Cache read | Elapsed | Quality pass |
|
|
38
|
+
|---|---|---|---|---|---:|---:|---:|---|
|
|
39
|
+
| 1 | baseline | `false` | `type-empty`, `subject-empty` | 0 | 6,523 | 118,400 | 30 s | `false` |
|
|
40
|
+
| 1 | treatment | `false` | `type-empty`, `subject-empty` | 0 | 7,383 | 103,424 | 40 s | `false` |
|
|
41
|
+
| 2 | baseline | `false` | `type-empty`, `subject-empty` | 0 | 6,553 | 87,680 | 33 s | `false` |
|
|
42
|
+
| 2 | treatment | `false` | `type-empty`, `subject-empty` | 0 | 6,637 | 87,424 | 35 s | `false` |
|
|
43
|
+
| 3 | baseline | `true` | none | 0 | 6,594 | 87,168 | 34 s | `true` |
|
|
44
|
+
| 3 | treatment | `true` | none | 0 | 9,598 | 93,568 | 36 s | `true` |
|
|
45
|
+
| 4 | baseline | `true` | none | 0 | 10,601 | 83,840 | 26 s | `true` |
|
|
46
|
+
| 4 | treatment | `false` | `type-empty`, `subject-empty` | 0 | 11,437 | 114,688 | 35 s | `false` |
|
|
47
|
+
|
|
48
|
+
### OpenCode `v2.4.1` (`opencode/hy4-flash-free`, long-lived server)
|
|
49
|
+
|
|
50
|
+
- **First commit accepted:** `7/8` (`4/4` baseline, `3/4` treatment; `pair-3-treatment` never committed). Zero `subject-case` or `header-max-length` rejections in any arm.
|
|
51
|
+
- **Carrier receipt:** E-0003 Cue/Lesson reached the next `context` hook after a matched `git commit` in **6/8 arms** (`4/4` baseline where the probe stripped the exact fragment; `2/4` treatment where it was delivered). In every matched arm, delivery occurred **after** the scored commit because the OpenCode V2 carrier delivers on the next `context` hook after `tool.execute.before/after`. Most commits used compound shell commands and still matched the current matcher (`#502` / `#518`).
|
|
52
|
+
- **Paired transitions (quality):** `bothPass: 1`, `treatmentOnly: 2`, `baselineOnly: 1`, `neitherPass: 0`, `invalid: 0` (4 valid pairs). Differences come from diff/test/hook-bypass quality (`pair-2-baseline` and `pair-4-baseline` flagged `hookBypass: true`; `pair-3-treatment` did not commit), not from commitlint rejections.
|
|
53
|
+
- **Verdict:** descriptive, inconclusive.
|
|
54
|
+
|
|
55
|
+
| Pair | Arm | First commit accepted | Commitlint rejections | E-0003 in `context` | Commit shell shape | Uncached tokens | Cache read | Elapsed | Quality pass |
|
|
56
|
+
|---|---|---|---|---|---|---:|---:|---:|---|
|
|
57
|
+
| 1 | baseline | `true` | none | 1 (stripped, post-commit) | `compound: 1` | 36,352 | 99,840 | 42 s | `true` |
|
|
58
|
+
| 1 | treatment | `true` | none | 0 | `compound: 2` | 41,377 | 449,536 | 103 s | `true` |
|
|
59
|
+
| 2 | baseline | `true` | none | 1 (stripped, post-commit) | `direct: 1` | 89,121 | 796,160 | 157 s | `false` (`hookBypass`) |
|
|
60
|
+
| 2 | treatment | `true` | none | 1 (delivered, post-commit) | `compound: 1` | 19,491 | 67,328 | 28 s | `true` |
|
|
61
|
+
| 3 | baseline | `true` | none | 1 (stripped, post-commit) | `compound: 1` | 39,462 | 121,344 | 41 s | `true` |
|
|
62
|
+
| 3 | treatment | none | none | 0 | none | 16,746 | 51,712 | 19 s | `false` |
|
|
63
|
+
| 4 | baseline | `true` | none | 1 (stripped, post-commit) | `direct: 1`, `other: 1` | 103,977 | 1,138,176 | 153 s | `false` (`hookBypass`) |
|
|
64
|
+
| 4 | treatment | `true` | none | 1 (delivered, post-commit) | `compound: 1`, `other: 1` | 71,101 | 599,040 | 97 s | `true` |
|
|
65
|
+
|
|
66
|
+
### Antigravity / AGY (`gemini-4-hydrogen-high`, `agy-injection`)
|
|
67
|
+
|
|
68
|
+
- **Intervention boundary:** Initial-prompt packet-context injection (`agy-injection`), not a native repo-ledger hook carrier (AGY has no native repo-ledger carrier).
|
|
69
|
+
- **First commit accepted:** `7/8` (`3/4` baseline, `4/4` treatment; `pair-4-baseline` never committed). Zero commitlint rejections in any arm; treatment subjects occasionally added a scope (`feat(sample): …`).
|
|
70
|
+
- **Paired transitions (quality):** `bothPass: 3`, `treatmentOnly: 1`, `baselineOnly: 0`, `neitherPass: 0`, `invalid: 0` (4 valid pairs).
|
|
71
|
+
- **Token usage:** unavailable from the AGY CLI (`n/a`).
|
|
72
|
+
- **Verdict:** descriptive, inconclusive.
|
|
73
|
+
|
|
74
|
+
| Pair | Arm | First commit accepted | Commitlint rejections | Uncached tokens | Cache read | Elapsed | Quality pass |
|
|
75
|
+
|---|---|---|---|---|---:|---:|---|
|
|
76
|
+
| 1 | baseline | `true` | none | `n/a` | `n/a` | 74 s | `true` |
|
|
77
|
+
| 1 | treatment | `true` | none | `n/a` | `n/a` | 89 s | `true` |
|
|
78
|
+
| 2 | baseline | `true` | none | `n/a` | `n/a` | 112 s | `true` |
|
|
79
|
+
| 2 | treatment | `true` | none | `n/a` | `n/a` | 86 s | `true` |
|
|
80
|
+
| 3 | baseline | `true` | none | `n/a` | `n/a` | 92 s | `true` |
|
|
81
|
+
| 3 | treatment | `true` | none | `n/a` | `n/a` | 77 s | `true` |
|
|
82
|
+
| 4 | baseline | none | none | `n/a` | `n/a` | 79 s | `false` |
|
|
83
|
+
| 4 | treatment | `true` | none | `n/a` | `n/a` | 103 s | `true` |
|
|
84
|
+
|
|
85
|
+
## What the files show
|
|
86
|
+
|
|
87
|
+
| Path | Contents |
|
|
88
|
+
|---|---|
|
|
89
|
+
| [score.json](score.json) | Post-hoc scorer output across all three runners (`claim: "descriptive, inconclusive"`), per-arm quality/cap/receipt fields and paired transition tables. |
|
|
90
|
+
| [run-order.sh](run-order.sh) | Sanitised coordinator stream launcher showing the seed-`552202611` balanced arm order. |
|
|
91
|
+
| `codex/pair-{1..4}-{baseline,treatment}/` | Per-arm `arm-plan.json` and `arm-result.json` for Codex (`prepared-commit`). |
|
|
92
|
+
| `opencode/pair-{1..4}-{baseline,treatment}/` | Per-arm `arm-plan.json`, `arm-result.json`, and `receipt.jsonl` (sanitised hook/context trace without host session or message IDs). |
|
|
93
|
+
| `agy/pair-{1..4}-{baseline,treatment}/` | Per-arm `arm-plan.json` and `arm-result.json` for AGY (`agy-injection`). |
|
|
94
|
+
|
|
95
|
+
## Harness notes
|
|
96
|
+
|
|
97
|
+
Not part of the behavioural result: the live preflight surfaced 9+4 launcher and scorer defects that the dry-run self-test did not exercise (fixed in `f4df4d66` and `07b55c44`; E-0008 class):
|
|
98
|
+
|
|
99
|
+
- OpenCode V2 auto-discovery loads plugins only under `.js` (not `.mjs`).
|
|
100
|
+
- OpenCode nested token-usage fields and uncached 200k cap accounting (`uncached input + output + reasoning`, cache reads separate) plus unifying the 200k over-cap decision in the scorer.
|
|
101
|
+
- Codex compatibility-hook install failing from a linked Git worktree.
|
|
102
|
+
- Counting all commitlint diagnostic codes (not only E-0003 classes) and protocol-aware working-tree checks for `prepared-commit`.
|
|
103
|
+
|
|
104
|
+
## Boundary
|
|
105
|
+
|
|
106
|
+
- **Ceiling effect:** all three models already produced compliant lower-case conventional subjects without the lesson, and the E-0003 failure classes (`subject-case`, `header-max-length`) occurred in `0/24` arms. Combined with post-action delivery (OpenCode) or absent carrier firing (Codex `prepared-commit`, AGY `agy-injection`), this run gives **no behavioural evidence for or against** the ledger lesson.
|
|
107
|
+
- **Live receipt boundary:** establishes for OpenCode 2.4.1 (macOS, long-lived server) that the E-0003 Cue/Lesson reached the next `context` hook after a matched `git commit` in 6/8 arms (after the action). Does **not** establish pre-commit delivery, model-request visibility before a subsequent commit decision, or Codex live receipt on a real `git commit` (remains `UNCHECKED`).
|
|
108
|
+
- **Scope & hygiene:** four pairs per runner are descriptive only (`inconclusive`); runners are not pooled; shared worktree exposure is retained as a design condition; all retained files are sanitised of local user paths and host session/message identifiers.
|
package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-baseline/arm-plan.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runner": "agy",
|
|
3
|
+
"arm": "baseline",
|
|
4
|
+
"pair": 1,
|
|
5
|
+
"intervention": "agy-injection",
|
|
6
|
+
"initialSha": "bdf3b6b3774849c45426b138081ba67b39b41541",
|
|
7
|
+
"carrier": "none; packet-context injection, reported as agy-injection only",
|
|
8
|
+
"tokenLimit": {
|
|
9
|
+
"max": 200000,
|
|
10
|
+
"enforcement": "post-hoc measurement"
|
|
11
|
+
},
|
|
12
|
+
"timeoutMs": 2700000,
|
|
13
|
+
"isolation": "real HOME (agy login lives in ~/.gemini); TMPDIR isolated; global agy plugins load equally in both arms"
|
|
14
|
+
}
|
package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-baseline/arm-result.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runner": "agy",
|
|
3
|
+
"arm": "baseline",
|
|
4
|
+
"pair": 1,
|
|
5
|
+
"action": "commit",
|
|
6
|
+
"startedAt": "2026-11-28T05:38:22.148Z",
|
|
7
|
+
"elapsedMs": 74498,
|
|
8
|
+
"usage": null,
|
|
9
|
+
"overCap": false,
|
|
10
|
+
"tokenCapEnforcement": "post-hoc measurement",
|
|
11
|
+
"events": [
|
|
12
|
+
{
|
|
13
|
+
"kind": "commit",
|
|
14
|
+
"accepted": true,
|
|
15
|
+
"subject": "feat: return hello greeting from sample"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"kind": "test",
|
|
19
|
+
"passed": true
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"preparedCommit": null,
|
|
23
|
+
"hookRejections": [],
|
|
24
|
+
"correctDiff": true,
|
|
25
|
+
"testPassed": true,
|
|
26
|
+
"fileReads": 0,
|
|
27
|
+
"failures": [],
|
|
28
|
+
"changedFiles": [
|
|
29
|
+
"src/sample.js"
|
|
30
|
+
],
|
|
31
|
+
"transcriptSha256": "63dc49a7aca2c471bd157b66e6fb43b75db0664cd08a965ad0f89b4576109b6d",
|
|
32
|
+
"workingTree": "",
|
|
33
|
+
"treeClean": true,
|
|
34
|
+
"manualIntervention": 0
|
|
35
|
+
}
|
package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-treatment/arm-plan.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runner": "agy",
|
|
3
|
+
"arm": "treatment",
|
|
4
|
+
"pair": 1,
|
|
5
|
+
"intervention": "agy-injection",
|
|
6
|
+
"initialSha": "bdf3b6b3774849c45426b138081ba67b39b41541",
|
|
7
|
+
"carrier": "none; packet-context injection, reported as agy-injection only",
|
|
8
|
+
"tokenLimit": {
|
|
9
|
+
"max": 200000,
|
|
10
|
+
"enforcement": "post-hoc measurement"
|
|
11
|
+
},
|
|
12
|
+
"timeoutMs": 2700000,
|
|
13
|
+
"isolation": "real HOME (agy login lives in ~/.gemini); TMPDIR isolated; global agy plugins load equally in both arms"
|
|
14
|
+
}
|
package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-treatment/arm-result.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runner": "agy",
|
|
3
|
+
"arm": "treatment",
|
|
4
|
+
"pair": 1,
|
|
5
|
+
"action": "commit",
|
|
6
|
+
"startedAt": "2026-11-28T05:36:53.392Z",
|
|
7
|
+
"elapsedMs": 88602,
|
|
8
|
+
"usage": null,
|
|
9
|
+
"overCap": false,
|
|
10
|
+
"tokenCapEnforcement": "post-hoc measurement",
|
|
11
|
+
"events": [
|
|
12
|
+
{
|
|
13
|
+
"kind": "commit",
|
|
14
|
+
"accepted": true,
|
|
15
|
+
"subject": "feat(sample): return hello greeting"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"kind": "test",
|
|
19
|
+
"passed": true
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"preparedCommit": null,
|
|
23
|
+
"hookRejections": [],
|
|
24
|
+
"correctDiff": true,
|
|
25
|
+
"testPassed": true,
|
|
26
|
+
"fileReads": 0,
|
|
27
|
+
"failures": [],
|
|
28
|
+
"changedFiles": [
|
|
29
|
+
"src/sample.js"
|
|
30
|
+
],
|
|
31
|
+
"transcriptSha256": "51f826b4b67a0143899aa9faa0cf9b510b77cbf7439846c91085d93dfeebbb42",
|
|
32
|
+
"workingTree": "",
|
|
33
|
+
"treeClean": true,
|
|
34
|
+
"manualIntervention": 0
|
|
35
|
+
}
|
package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-baseline/arm-plan.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runner": "agy",
|
|
3
|
+
"arm": "baseline",
|
|
4
|
+
"pair": 2,
|
|
5
|
+
"intervention": "agy-injection",
|
|
6
|
+
"initialSha": "bdf3b6b3774849c45426b138081ba67b39b41541",
|
|
7
|
+
"carrier": "none; packet-context injection, reported as agy-injection only",
|
|
8
|
+
"tokenLimit": {
|
|
9
|
+
"max": 200000,
|
|
10
|
+
"enforcement": "post-hoc measurement"
|
|
11
|
+
},
|
|
12
|
+
"timeoutMs": 2700000,
|
|
13
|
+
"isolation": "real HOME (agy login lives in ~/.gemini); TMPDIR isolated; global agy plugins load equally in both arms"
|
|
14
|
+
}
|
package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-baseline/arm-result.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runner": "agy",
|
|
3
|
+
"arm": "baseline",
|
|
4
|
+
"pair": 2,
|
|
5
|
+
"action": "commit",
|
|
6
|
+
"startedAt": "2026-11-28T05:27:43.256Z",
|
|
7
|
+
"elapsedMs": 112207,
|
|
8
|
+
"usage": null,
|
|
9
|
+
"overCap": false,
|
|
10
|
+
"tokenCapEnforcement": "post-hoc measurement",
|
|
11
|
+
"events": [
|
|
12
|
+
{
|
|
13
|
+
"kind": "commit",
|
|
14
|
+
"accepted": true,
|
|
15
|
+
"subject": "feat: add hello greeting in sample"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"kind": "test",
|
|
19
|
+
"passed": true
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"preparedCommit": null,
|
|
23
|
+
"hookRejections": [],
|
|
24
|
+
"correctDiff": true,
|
|
25
|
+
"testPassed": true,
|
|
26
|
+
"fileReads": 0,
|
|
27
|
+
"failures": [],
|
|
28
|
+
"changedFiles": [
|
|
29
|
+
"src/sample.js"
|
|
30
|
+
],
|
|
31
|
+
"transcriptSha256": "f051349d63a59e4ffff6890328ff3a744857ca22b71a95e73e294893fc553cc9",
|
|
32
|
+
"workingTree": "",
|
|
33
|
+
"treeClean": true,
|
|
34
|
+
"manualIntervention": 0
|
|
35
|
+
}
|
package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-treatment/arm-plan.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runner": "agy",
|
|
3
|
+
"arm": "treatment",
|
|
4
|
+
"pair": 2,
|
|
5
|
+
"intervention": "agy-injection",
|
|
6
|
+
"initialSha": "bdf3b6b3774849c45426b138081ba67b39b41541",
|
|
7
|
+
"carrier": "none; packet-context injection, reported as agy-injection only",
|
|
8
|
+
"tokenLimit": {
|
|
9
|
+
"max": 200000,
|
|
10
|
+
"enforcement": "post-hoc measurement"
|
|
11
|
+
},
|
|
12
|
+
"timeoutMs": 2700000,
|
|
13
|
+
"isolation": "real HOME (agy login lives in ~/.gemini); TMPDIR isolated; global agy plugins load equally in both arms"
|
|
14
|
+
}
|
package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-treatment/arm-result.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runner": "agy",
|
|
3
|
+
"arm": "treatment",
|
|
4
|
+
"pair": 2,
|
|
5
|
+
"action": "commit",
|
|
6
|
+
"startedAt": "2026-11-28T05:29:35.653Z",
|
|
7
|
+
"elapsedMs": 85833,
|
|
8
|
+
"usage": null,
|
|
9
|
+
"overCap": false,
|
|
10
|
+
"tokenCapEnforcement": "post-hoc measurement",
|
|
11
|
+
"events": [
|
|
12
|
+
{
|
|
13
|
+
"kind": "commit",
|
|
14
|
+
"accepted": true,
|
|
15
|
+
"subject": "feat(sample): return hello greeting"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"kind": "test",
|
|
19
|
+
"passed": true
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"preparedCommit": null,
|
|
23
|
+
"hookRejections": [],
|
|
24
|
+
"correctDiff": true,
|
|
25
|
+
"testPassed": true,
|
|
26
|
+
"fileReads": 0,
|
|
27
|
+
"failures": [],
|
|
28
|
+
"changedFiles": [
|
|
29
|
+
"src/sample.js"
|
|
30
|
+
],
|
|
31
|
+
"transcriptSha256": "00975ff659ce62ec1e396e98c16e7d5e1b71dd5cb0462d6dea963b0da981e188",
|
|
32
|
+
"workingTree": "",
|
|
33
|
+
"treeClean": true,
|
|
34
|
+
"manualIntervention": 0
|
|
35
|
+
}
|
package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-baseline/arm-plan.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runner": "agy",
|
|
3
|
+
"arm": "baseline",
|
|
4
|
+
"pair": 3,
|
|
5
|
+
"intervention": "agy-injection",
|
|
6
|
+
"initialSha": "bdf3b6b3774849c45426b138081ba67b39b41541",
|
|
7
|
+
"carrier": "none; packet-context injection, reported as agy-injection only",
|
|
8
|
+
"tokenLimit": {
|
|
9
|
+
"max": 200000,
|
|
10
|
+
"enforcement": "post-hoc measurement"
|
|
11
|
+
},
|
|
12
|
+
"timeoutMs": 2700000,
|
|
13
|
+
"isolation": "real HOME (agy login lives in ~/.gemini); TMPDIR isolated; global agy plugins load equally in both arms"
|
|
14
|
+
}
|
package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-baseline/arm-result.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runner": "agy",
|
|
3
|
+
"arm": "baseline",
|
|
4
|
+
"pair": 3,
|
|
5
|
+
"action": "commit",
|
|
6
|
+
"startedAt": "2026-11-28T05:35:21.657Z",
|
|
7
|
+
"elapsedMs": 91575,
|
|
8
|
+
"usage": null,
|
|
9
|
+
"overCap": false,
|
|
10
|
+
"tokenCapEnforcement": "post-hoc measurement",
|
|
11
|
+
"events": [
|
|
12
|
+
{
|
|
13
|
+
"kind": "commit",
|
|
14
|
+
"accepted": true,
|
|
15
|
+
"subject": "feat: return hello greeting from sample"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"kind": "test",
|
|
19
|
+
"passed": true
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"preparedCommit": null,
|
|
23
|
+
"hookRejections": [],
|
|
24
|
+
"correctDiff": true,
|
|
25
|
+
"testPassed": true,
|
|
26
|
+
"fileReads": 0,
|
|
27
|
+
"failures": [],
|
|
28
|
+
"changedFiles": [
|
|
29
|
+
"src/sample.js"
|
|
30
|
+
],
|
|
31
|
+
"transcriptSha256": "fb1a9d90f5acb73f60c07f05ef901c01f1ad27c442f9e8eea2d7b5d1ed9cbed3",
|
|
32
|
+
"workingTree": "",
|
|
33
|
+
"treeClean": true,
|
|
34
|
+
"manualIntervention": 0
|
|
35
|
+
}
|
package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-treatment/arm-plan.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runner": "agy",
|
|
3
|
+
"arm": "treatment",
|
|
4
|
+
"pair": 3,
|
|
5
|
+
"intervention": "agy-injection",
|
|
6
|
+
"initialSha": "bdf3b6b3774849c45426b138081ba67b39b41541",
|
|
7
|
+
"carrier": "none; packet-context injection, reported as agy-injection only",
|
|
8
|
+
"tokenLimit": {
|
|
9
|
+
"max": 200000,
|
|
10
|
+
"enforcement": "post-hoc measurement"
|
|
11
|
+
},
|
|
12
|
+
"timeoutMs": 2700000,
|
|
13
|
+
"isolation": "real HOME (agy login lives in ~/.gemini); TMPDIR isolated; global agy plugins load equally in both arms"
|
|
14
|
+
}
|