chore: enforce delivery timebox (#1069)

This commit is contained in:
Brad Groux 2026-07-25 16:46:49 -05:00 committed by GitHub
parent 461c1fbbbf
commit 9cf0ccb96c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 0 deletions

View file

@ -115,6 +115,9 @@ Do not run `npm install`, `yarn`, or `bun install`. If lockfile conflicts arise,
a linked issue instead of expanding the active pull request.
- Re-scope before continuing when an issue no longer fits one coherent review, an unexpected
subsystem becomes necessary, or verification work is larger than the behavior being changed.
- At the 45-minute delivery checkpoint, if the issue is not pull-request ready, stop adding scope
and report the concrete cause. Split independent remaining work into linked issues, or continue
only when the next step is required to preserve correctness of the current behavior.
- During implementation, run the narrowest useful loop: type-check touched packages, lint changed
files, and run focused tests for changed behavior and high-risk edges.
- Run focused Vitest slices with

View file

@ -17,6 +17,10 @@ export const CADENCE_CONTRACTS = {
description: 'narrowest useful implementation loop',
pattern: /run the narrowest useful loop/i,
},
{
description: '45-minute split or escalate delivery checkpoint',
pattern: /45-minute delivery checkpoint/i,
},
{
description: 'direct Vitest exact-file invocation',
pattern: /exec vitest run/i,

View file

@ -34,6 +34,22 @@ test('reports a missing canonical cadence rule with its file', () => {
]);
});
test('requires the 45-minute delivery checkpoint in canonical guidance', () => {
const files = validContractFiles();
files['AGENTS.md'] = files['AGENTS.md'].replace(
'45-minute delivery checkpoint',
'unbounded delivery loop'
);
assert.deepEqual(findMissingCadenceContracts(files), [
{
file: 'AGENTS.md',
message:
'required cadence contract is missing: 45-minute split or escalate delivery checkpoint',
},
]);
});
test('rejects unconditional workspace-wide pnpm test commands', () => {
assert.deepEqual(
findUnsafePromptStatements({