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(badge): count only independent verdicts [V1,B3]
Corey Olsonef897b6d0461
diff --git a/src/badge.js b/src/badge.jsindex 46bad51a..8d9207bc 100644--- a/src/badge.js+++ b/src/badge.js@@ -6,14 +6,15 @@ import { writeFileSync } from 'node:fs';import { dirname } from 'node:path';import { join } from 'node:path';-/** Count finished records and their current non-self acceptance; absent legacy builder evidence proves nothing. */+/** Count finished records and only their current independent, non-self acceptance; unknown lineage proves nothing. */export function badgeCounts(board) {const row = board.db.prepare(`SELECT COUNT(*) AS items,COALESCE(SUM(CASE WHEN i.item_built_by IS NOT NULL AND i.item_built_by != ''- AND v.verdict_by != i.item_built_by THEN 1 ELSE 0 END), 0) AS checked+ AND v.verdict_by != i.item_built_by AND assurance.meta_value='independent' THEN 1 ELSE 0 END), 0) AS checkedFROM item i LEFT JOIN verdict v ON v.verdict_id = (SELECT MAX(a.verdict_id) FROM verdict a WHERE a.item_id=i.item_idAND a.verdict_decision='ACCEPT' AND a.verdict_commit=i.item_commit)+ LEFT JOIN board_meta assurance ON assurance.meta_key='verdict_assurance:' || v.verdict_idWHERE i.item_status='verified'`).get();return { items: row.items, checked: row.checked, percent: row.items ? Math.floor(row.checked * 100 / row.items) : null };}