Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7883928
142: add PR diff guard for newly added Python scripts and ADR exceptions
rebuildup Nov 23, 2026
b5d6780
97: add deterministic gate honesty checker and false-green controls
rebuildup Nov 23, 2026
a6c52c1
141: add release scope and authority reconciliation controls
rebuildup Nov 23, 2026
0e093a9
54: standardize release scope admission gate and discovery separation
rebuildup Nov 23, 2026
abf76d1
122: extend delivery-status with release evidence snapshots and deltas
rebuildup Nov 23, 2026
3a45bcf
123: add durable review-finding ledger for retry deduplication and re…
rebuildup Nov 23, 2026
75093c0
129: register released design-discipline as watch candidate under vis…
rebuildup Nov 23, 2026
94a5cfd
132: unwrap Herdr 0.9.5 nested snapshot and pane process-info payloads
rebuildup Nov 23, 2026
b43f679
142: harden new-python PR diff guard against bypasses and tree mismatch
rebuildup Nov 23, 2026
8f1ad09
122: fix delivery-status snapshot wiring, PR scoping, delta semantics…
rebuildup Nov 23, 2026
fd83a03
129: reconcile design-discipline watch metadata, visual-design owners…
rebuildup Nov 23, 2026
19eaf03
141: harden scope-authority validation, provenance, and bulk-close/re…
rebuildup Nov 23, 2026
7b988a2
97: fix cold-review defects in gate honesty checker and wire real exe…
rebuildup Nov 23, 2026
23fce2f
123: add atomic persistence, CLI, composite keys, dedup and recurrenc…
rebuildup Nov 23, 2026
f6aace1
54: de-confound admission fixtures, fix non-bug criteria, and harden …
rebuildup Nov 23, 2026
7a1b0ab
142: diff against merge-tree HEAD in PR workflow to stay compatible w…
rebuildup Nov 23, 2026
4bf0029
123: strictly validate --existing records and matched URLs in planRetry
rebuildup Nov 23, 2026
9afd023
142: anchor ADR path pattern to root and add fetch-depth to downstrea…
rebuildup Nov 23, 2026
fd7886b
142: update invalid exception count assertion for root-anchored ADR t…
rebuildup Nov 23, 2026
0f42b29
132: fix Windows agent.cmd check, symlinked CLI entrypoint, and fresh…
rebuildup Nov 23, 2026
561c6f5
Merge pull request #200 from rebuildup/129
rebuildup Nov 23, 2026
70e2fd2
Merge pull request #201 from rebuildup/132
rebuildup Nov 23, 2026
e6f3a2b
Merge pull request #197 from rebuildup/54
rebuildup Nov 23, 2026
e73f9b1
Merge pull request #198 from rebuildup/122
rebuildup Nov 23, 2026
21318a8
Merge pull request #196 from rebuildup/141
rebuildup Nov 23, 2026
664d391
Merge pull request #195 from rebuildup/97
rebuildup Nov 23, 2026
b7b8e64
Merge remote-tracking branch 'origin/release-0-13-0' into 142
rebuildup Nov 23, 2026
830a5ca
Merge pull request #194 from rebuildup/142
rebuildup Nov 23, 2026
3e0f87c
Merge pull request #199 from rebuildup/123
rebuildup Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/eval-controls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '22'
Expand All @@ -22,6 +24,13 @@ jobs:
run: shellcheck --version
- name: Check whole-repository analysis and references
run: bun run quality:structure
- name: Reject newly added Python scripts on PR diff
if: github.event_name == 'pull_request'
run: node scripts/quality/check-new-python.mts --base "${{ github.event.pull_request.base.sha }}" --head HEAD
- name: Check workflow gate honesty
run: bun run quality:workflow-honesty
- name: Test gate honesty and verify real execution count
run: bun run test:gate-honesty
- name: Test quality checks and challenge executor
run: bun run test:system-quality
- name: Challenge actual repository checks
Expand All @@ -32,6 +41,8 @@ jobs:
run: bun run test:eval-regressions
- name: Test TypeScript release batching controls
run: bun run test:release-batching
- name: Test release scope and authority reconciliation controls
run: bun run test:scope-authority
- name: Test TypeScript interaction and Linear controls
run: |
bun run test:interaction
Expand All @@ -40,6 +51,8 @@ jobs:
run: node --test evals/policy-evaluation/requirement-handoff.test.mts
- name: Test delivery-status classification and CLI safety
run: bun run test:delivery-status
- name: Test review finding persistence and recurrence ledger
run: bun run test:review-findings
- name: Test TypeScript comparative controls
run: bun evals/policy-evaluation/comparative-controls.mts
- name: Test delegated agent routing
Expand All @@ -57,14 +70,15 @@ jobs:
- name: Run deterministic controls
shell: bash
run: |
set +e
failed=0
bun evals/policy-evaluation/controls.mts || failed=1
if ! bun evals/policy-evaluation/controls.mts; then
failed=1
fi
for suite in \
skills-cli-materialization; do
echo "::group::evals/$suite"
bash "evals/$suite/controls.sh"
rc=$?
rc=0
bash "evals/$suite/controls.sh" || rc=$?
echo "::endgroup::"
if [ "$rc" -ne 0 ]; then
echo "::error title=Eval failure::$suite returned exit $rc"
Expand Down
3 changes: 2 additions & 1 deletion catalog/candidates.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ linear-release-control rebuildup/project-init skills/linear-release-control/SKIL
natural-japanese rebuildup/writing-skills skills/natural-japanese/SKILL.md prose-japanese default auto MIT skimmed 7ba09d1 2026-10-17 writing-disciplineの上に重ねる日本語の自然さ。lintはuvでPythonを実行する。比較評価は未実施
writing-discipline rebuildup/writing-skills skills/writing-discipline/SKILL.md prose-artifact default auto MIT read a11bb3b 2026-10-17 writing-skillsが正本。どのprojectでも必要になる
skill-authoring rebuildup/writing-skills skills/skill-authoring/SKILL.md skill-authoring default auto MIT skimmed 7ba09d1 2026-10-17 Skillをprose artifactとして書くための指針
design-intent rebuildup/design-skills skills/design-intent/SKILL.md visual-design default auto MIT read 342d709 2026-10-17 visual directionを実装前に固めるbrief。design-skills内で最も単独で機能する
design-discipline rebuildup/design-skills skills/design-discipline/SKILL.md visual-design-foundation watch auto MIT read v0.6.0 (10b0d4a9) 2026-11-23 2D視覚成果物の上流設計基盤(Purpose/Select/Structure/Explore by making)。design-skills v0.6.0(10b0d4a9)で公開済みであり、design-intent §7 および design-discipline 上では視覚方向/brief・design-refinement・idea-discoveryとの概念上の責務分離が明記されている。一方 policy-evaluation による実証的な trigger 衝突検証と design-skills #170 の paired rendered-artifact trial・blind review は未完了のため watch に留め、効果実証と衝突検証の後に default 昇格と PROMPT 早期 routing を判断する
design-intent rebuildup/design-skills skills/design-intent/SKILL.md visual-design default auto MIT read v0.6.0 (10b0d4a9) 2026-11-23 visual direction・brief の固定と視覚制作の方向づけを担う。design-skills v0.6.0(10b0d4a9)§7 で上流基盤(design-discipline / visual-design-foundation)との責務分離を明記しつつ、visual-design の default として維持する
composition-review rebuildup/design-skills skills/composition-review/SKILL.md visual-composition-audit default auto MIT read v0.6.0 2026-11-22 完成構図の原則監査(Gestalt/CRAP/hierarchy/balance/whitespace/media art direction/responsive)。design-skills v0.6.0 でリリース済み。my-web-2026 #1137 で vendoring し、#1135/#1136 の L-C 実画面レビュー(docs/verification/design/1135-lc-review/)で使用済み。visual-design(作る)と対になる監査側の担当として default 昇格
visual-review rebuildup/design-skills skills/visual-review/SKILL.md visual-review watch auto MIT read 8868a64 2026-11-23 screenshot 駆動の visual review 手順(regression/coherence/first encounter、証拠ベースの finding、bounded rerender)。design-skills #200 で agent review ハーネス連携を追加中・未 release のため watch。my-web-2026 の L-C 実画面レビューで使用実績あり。release と実 project trial の確認後に default 昇格を検討
functional-aesthetics-review rebuildup/design-skills skills/functional-aesthetics-review/SKILL.md functional-ui-review watch auto MIT read 118efc77f 2026-11-23 主要taskを中心に実画面のaction発見・情報選択・不要な摩擦・一貫性・feedback/recoveryを監査する。設計正本はdesign-skills #197(未release、trial-pending)。上流releaseと代表実画面trialの双方を確認してからdefault昇格する。composition-review・visual-reviewとは別能力
Expand Down
3 changes: 2 additions & 1 deletion catalog/capabilities.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ prose-japanese single 日本語の文章を書く 日本語として自然で読
interaction-style single always userとのやりとり、質問の絞り方、blockerの見せ方
policy-evaluation single Skillやpolicyを変更する policyの評価、context budget
skill-authoring single repositoryでSkillを書く Skillの書き方
visual-design single UIや視覚的な成果物を作る 実例を観察し、構造を抽出し、翻訳して作り、出来上がりで確かめる
visual-design-foundation single 2Dの視覚成果物・UI・グラフィック・スライド・映像を新規設計または大きく再構成する 配置や装飾の前に目的・対象体験・情報選別・構造・実物による探索判断を組み立てる上流の設計基盤
visual-design single UIや視覚的な成果物の視覚方向・briefを固めて制作する 視覚方向・brief・トーンを定義し、実例観察と翻訳を通じてUIや視覚成果物を具体的に作り上げる(配置前の目的・情報選別・体験構造探索は visual-design-foundation が担う)
visual-composition-audit single 完成した画面・ページ全体の構図を監査する 完成した画面を一般的なデザイン原則(Gestalt 群化・CRAP・階層・グリッドと非対称・字面と scale・色と面・余白のリズム・メディアのアートディレクション・均衡・反復と統一・レスポンシブ再構成・IA と視覚表現の対応・認知負荷)と照らして監査し、欠陥を観察可能な特徴として記録する
visual-review single UI変更の rendered screenshot を回帰・coherence・first-encounter の観点でレビューする rendered 画面の screenshot を baseline・仕様・観察可能な特徴と照らしてレビューし、defect / spec-mismatch / suggestion を区別する
functional-ui-review single Web / application UIの実際のタスク導線を評価・改善する必要がある 視覚的な操作発見・情報の優先順位・摩擦・一貫性・feedback / recovery を利用者のtaskから監査する
Expand Down
1 change: 1 addition & 0 deletions evals/policy-evaluation/controls.mts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const contracts: ReadonlyArray<readonly [label: string, command: 'bun' | 'bash',
['placement routing contract', 'bun', 'text-contracts.mts', ['execution-placement-contract']],
['Herdr orchestration contract', 'bun', 'text-contracts.mts', ['herdr-orchestration-contract']],
['constitutional refinement controls', 'bun', 'constitutional-refinement-controls.mts', []],
['gate honesty controls', 'bun', 'gate-honesty-controls.mts', []],
];
for (const [label, interpreter, path, args] of contracts) {
const cmd = interpreter === 'bun' ? process.execPath : 'bash';
Expand Down
95 changes: 95 additions & 0 deletions evals/policy-evaluation/gate-honesty-controls.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
#!/usr/bin/env -S bun
import assert from "node:assert/strict";
import { spawnSync } from "node:child_process";
import { join, resolve } from "node:path";
import {
checkTestExecution,
checkWorkflowsDirectory,
verifyCssMirror,
verifySchemaIndexes,
verifyTapOutput,
} from "../../scripts/gate-honesty/index.mts";

const root = resolve(import.meta.dirname, "../..");

// 1. All repository GitHub Actions workflows pass workflow honesty checks
const workflows = checkWorkflowsDirectory(join(root, ".github/workflows"));
assert.ok(workflows.filesChecked.length >= 3, "expected >= 3 workflow files");
assert.deepEqual(
workflows.findings,
[],
`workflow honesty findings: ${JSON.stringify(workflows.findings)}`,
);

// 2. Real node --test TAP execution count >= 1 verification
const tapRun = spawnSync(
"node",
["--test", "--test-reporter=tap", join(root, "scripts/gate-honesty/gate-honesty.test.mts")],
{ encoding: "utf8", cwd: root },
);
assert.equal(tapRun.status, 0, tapRun.stderr || tapRun.stdout);
const tapCheck = verifyTapOutput(tapRun.stdout ?? "", {
partition: "gate-honesty",
exitCode: tapRun.status ?? 1,
minPassedRequired: 1,
});
assert.equal(tapCheck.verdict, "VERIFIED", JSON.stringify(tapCheck.findings));

// 3. Negative controls must fail closed
assert.equal(
checkTestExecution({
partition: "silent-pass",
exitCode: 0,
reportedSuccess: true,
numCollectedFiles: 1,
numTotalTests: 10,
numPassedTests: 0,
numFailedTests: 0,
numSkippedTests: 0,
}).verdict,
"SILENT_PASS_DEFECT",
);
assert.equal(
checkTestExecution({
partition: "failed-zero-exit",
exitCode: 0,
reportedSuccess: false,
numCollectedFiles: 1,
numTotalTests: 5,
numPassedTests: 4,
numFailedTests: 1,
numSkippedTests: 0,
}).verdict,
"FAIL",
);
assert.ok(
verifyCssMirror({
subject: "readmark-76-negative",
cssText: ".rm-reader-scroll { padding: 20px 0 60vh; }",
expectations: [
{
constantName: "FIT_WIDTH_PADDING_PX",
selectors: [".rm-reader-scroll"],
expectedProperty: "padding",
expectedValue: "48px",
},
],
}).some((f) => f.code === "UNVERIFIED_PROSE_MIRROR"),
);
assert.ok(
verifySchemaIndexes({
subject: "readmark-72-negative",
dexieSchema: { bookmarks: "++id, [documentId+pageIndex]" },
claims: [
{
queryName: "listBookmarks",
table: "bookmarks",
columns: ["documentId", "sourceFingerprint"],
},
],
}).some((f) => f.code === "FALLBACK_CONTRADICTS_CLAIM"),
);

console.log(
`gate-honesty controls OK (${workflows.filesChecked.length} workflows verified, real TAP execution verified)`,
);
172 changes: 150 additions & 22 deletions evals/release-batching/controls.mts
Original file line number Diff line number Diff line change
@@ -1,39 +1,159 @@
#!/usr/bin/env -S bun
import { spawnSync } from 'node:child_process';
import { readFileSync } from 'node:fs';
import { dirname, join, resolve } from 'node:path';
import { join, resolve } from 'node:path';

interface BatchingControlCase {
readonly label: string;
readonly expected: 'PASS' | 'FAIL';
readonly expectedViolations?: readonly string[];
}

const root = resolve(import.meta.dirname, '../..');
const fixtureDir = join(root, 'evals/release-batching/fixtures');
const grader = join(import.meta.dirname, 'grade.mts');
let failed = false;

const cases: ReadonlyArray<readonly [string, 'PASS' | 'FAIL']> = [
['positive-weekly-hold', 'PASS'],
['positive-frozen-candidate', 'PASS'],
['positive-authorized-release', 'PASS'],
['positive-blocked-unknown', 'PASS'],
['negative-weekly-auto-merge', 'FAIL'],
['negative-counts-only', 'FAIL'],
['negative-mutable-ref', 'FAIL'],
['negative-stale-validation', 'FAIL'],
['negative-freeze-ticket-landing', 'FAIL'],
['negative-unadmitted-candidate', 'FAIL'],
['negative-unapproved-release', 'FAIL'],
const cases: readonly BatchingControlCase[] = [
{ label: 'positive-weekly-hold', expected: 'PASS' },
{ label: 'positive-frozen-candidate', expected: 'PASS' },
{ label: 'positive-authorized-release', expected: 'PASS' },
{ label: 'positive-blocked-unknown', expected: 'PASS' },
{ label: 'positive-discovery-separated', expected: 'PASS' },
{
label: 'negative-weekly-auto-merge',
expected: 'FAIL',
expectedViolations: [
'VIOL release merge requires a verified candidate',
'VIOL release merge requires explicit authorization for current candidate SHA',
],
},
{
label: 'negative-counts-only',
expected: 'FAIL',
expectedViolations: ['VIOL candidate requires substantive non-count evidence'],
},
{
label: 'negative-mutable-ref',
expected: 'FAIL',
expectedViolations: ['VIOL freeze requires an immutable candidate SHA'],
},
{
label: 'negative-stale-validation',
expected: 'FAIL',
expectedViolations: ['VIOL verified requires a passed gate for current candidate SHA'],
},
{
label: 'negative-freeze-ticket-landing',
expected: 'FAIL',
expectedViolations: ['VIOL candidate freeze forbids unrelated ticket landing'],
},
{
label: 'negative-unadmitted-candidate',
expected: 'FAIL',
expectedViolations: [
'VIOL candidate requires admitted scope',
'VIOL candidate scope must be selected',
],
},
{
label: 'negative-unconfirmed-requirement',
expected: 'FAIL',
expectedViolations: [
'VIOL critical-path item #203 failed admission criterion: requirement_confirmed',
],
},
{
label: 'negative-unreproduced-bug',
expected: 'FAIL',
expectedViolations: [
'VIOL critical-path item #204 failed admission criterion: bug_reproduced_or_pinpointed',
],
},
{
label: 'negative-bug-not-applicable-evasion',
expected: 'FAIL',
expectedViolations: [
'VIOL critical-path bug item #207 cannot use not-applicable for bug_reproduced_or_pinpointed',
],
},
{
label: 'negative-calendar-only-promotion',
expected: 'FAIL',
expectedViolations: [
'VIOL calendar target alone cannot admit critical-path item #208',
],
},
{
label: 'negative-zero-critical-path-items',
expected: 'FAIL',
expectedViolations: [
'VIOL candidate with admission_items requires at least one critical-path item',
],
},
{
label: 'negative-invalid-admission-schema',
expected: 'FAIL',
expectedViolations: [
'VIOL promoted_by_calendar_only must be a boolean',
'VIOL admission_items[0] requires a non-empty id',
'VIOL admission item #0 promoted_by_calendar_only must be a boolean',
],
},
{
label: 'negative-unapproved-release',
expected: 'FAIL',
expectedViolations: [
'VIOL release merge requires explicit authorization for current candidate SHA',
],
},
];

for (const [label, expected] of cases) {
const result = spawnSync(process.execPath, [grader, join(fixtureDir, label + '.json')], { encoding: 'utf8' });
for (const testCase of cases) {
const result = spawnSync(
process.execPath,
[grader, join(fixtureDir, testCase.label + '.json')],
{ encoding: 'utf8' },
);
const output = (result.stdout || '') + (result.stderr || '');
const verdict = output.trimEnd().split('\n').at(-1) ?? '';
const valid = expected === 'PASS'
? result.status === 0 && verdict === 'EVAL PASS'
: result.status !== 0 && verdict === 'EVAL FAIL' && /^VIOL /m.test(output);
const lines = output.trimEnd().split('\n');
const verdict = lines.at(-1) ?? '';
const violLines = lines.filter((line) => line.startsWith('VIOL '));

let valid = false;
let mismatchDetail = '';
if (testCase.expected === 'PASS') {
valid = result.status === 0 && verdict === 'EVAL PASS' && violLines.length === 0;
} else {
const expectedViolations = testCase.expectedViolations ?? [];
const exactMatch =
violLines.length === expectedViolations.length &&
expectedViolations.every((expectedLine) => violLines.includes(expectedLine));
valid = result.status !== 0 && verdict === 'EVAL FAIL' && exactMatch;
if (!exactMatch) {
mismatchDetail =
'expected VIOLs: ' +
JSON.stringify(expectedViolations) +
'; actual VIOLs: ' +
JSON.stringify(violLines);
}
}

if (valid) {
console.log(' ok ' + label.padEnd(34) + ' -> ' + verdict);
console.log(' ok ' + testCase.label.padEnd(36) + ' -> ' + verdict);
} else {
console.error(' FAIL ' + label.padEnd(34) + ' -> ' + verdict +
' (exit ' + String(result.status) + '; expected ' + expected + ')');
console.error(
' FAIL ' +
testCase.label.padEnd(36) +
' -> ' +
verdict +
' (exit ' +
String(result.status) +
'; expected ' +
testCase.expected +
')',
);
if (mismatchDetail) console.error(' ' + mismatchDetail);
console.error(output);
failed = true;
}
Expand All @@ -45,6 +165,14 @@ const required: ReadonlyArray<readonly [string, string]> = [
['skills/github-delivery/SKILL.md', '## Weekly planning / adaptive release batching'],
['skills/github-delivery/SKILL.md', 'references/adaptive-release-batching.md'],
['skills/github-delivery/references/adaptive-release-batching.md', 'hold | candidate | blocked'],
['skills/github-delivery/references/adaptive-release-batching.md', '## 1.5 Release scope admission gate'],
['skills/github-delivery/references/adaptive-release-batching.md', '`critical-path` / `research-discovery` / `backlog`'],
['skills/github-delivery/references/adaptive-release-batching.md', '`requirement_confirmed`'],
['skills/github-delivery/references/adaptive-release-batching.md', '`bug_reproduced_or_pinpointed`'],
['skills/agent-delivery-estimation/SKILL.md', 'release scope admission gate'],
['skills/agent-delivery-estimation/SKILL.md', '`critical-path`'],
['skills/agent-delivery-estimation/SKILL.md', '`research-discovery`'],
['skills/agent-delivery-estimation/SKILL.md', '`backlog`'],
['skills/linear-release-control/SKILL.md', 'release cadenceは可変'],
['docs/adr/ADR-0032.md', 'user authorization'],
];
Expand Down
Loading
Loading