Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(ci): label incomplete performance artifacts [N40,C7]
Corey Olsonedd5fe17c4bf
diff --git a/bin/check-perf-budgets.js b/bin/check-perf-budgets.jsindex 0f11bfa2..3e0965ac 100644--- a/bin/check-perf-budgets.js+++ b/bin/check-perf-budgets.js@@ -24,7 +24,9 @@ function main(args) {mkdirSync(directory, { recursive: true });writeFileSync(join(directory, 'performance.json'), JSON.stringify(report, null, 2) + '\n');writeFileSync(join(directory, 'budgets.json'), JSON.stringify(result, null, 2) + '\n');- writeFileSync(join(directory, 'performance.md'), (typeof report.table === 'string' ? report.table + '\n\n' : '') + perfBudgetTable(result) + '\n');+ const context = 'Measured board: ' + JSON.stringify(report.size) + ' items; ' + JSON.stringify(report.projects) + ' projects; ' + JSON.stringify(report.runs) + ' run(s).';+ writeFileSync(join(directory, 'performance.md'), context + '\n\n' + perfBudgetTable(result) + '\n\n'+ + (typeof report.table === 'string' ? report.table + '\n' : ''));for (const warning of result.warnings) {// Names come only from the fixed action registry, so harness content cannot inject annotations.console.log('::warning::' + warning.name + ': median ' + warning.medianMs + ' ms (budget 100 ms), worst 'diff --git a/src/perf-budgets.js b/src/perf-budgets.jsindex 749d3b24..93b35acc 100644--- a/src/perf-budgets.js+++ b/src/perf-budgets.js@@ -96,6 +96,9 @@ export function evaluatePerfBudgets(report, budgets = PERF_BUDGETS) {/** Render budgets separately from the unbudgeted idle window and its raw observed render offsets. */export function perfBudgetTable(result) {const lines = [+ result.errors.length ? 'Report validation: invalid.' : 'Report validation: complete.',+ ...result.errors.map(error => 'Error: ' + error),+ '','| action | median ms | worst ms | median budget ms | worst budget ms | result |','|---|---:|---:|---:|---:|---|',...result.interactions.map(row => '| ' + row.name + ' | ' + row.medianMs + ' | ' + row.worstMsdiff --git a/test/perf-budgets.test.js b/test/perf-budgets.test.jsindex 0cc26d6e..68f23bc9 100644--- a/test/perf-budgets.test.js+++ b/test/perf-budgets.test.js@@ -81,6 +81,8 @@ test('perf budgets warn by name and fail on a missing action [N40,C7]', async tconst noMeasurement = run(missing);assert.equal(noMeasurement.child.status, 1);assert.match(noMeasurement.child.stderr, /budget entry switchProject has no measured action/u);+ assert.ok(readFileSync(join(noMeasurement.outputDirectory, 'performance.md'), 'utf8').includes('Report validation: invalid.'));+ assert.ok(readFileSync(join(noMeasurement.outputDirectory, 'performance.md'), 'utf8').includes('budget entry switchProject has no measured action'));for (const mutate of [value => { value.actions.push({ ...value.actions[0] }); },