rungate 0.2.0
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/agents/aditi.md +47 -0
- package/.claude/agents/marcus.md +50 -0
- package/.claude/agents/quinn.md +58 -0
- package/.claude/agents/rook.md +47 -0
- package/.claude/agents/serena.md +46 -0
- package/.claude/rungate.json +11 -0
- package/.fallowrc.json +28 -0
- package/.github/copilot-instructions.md +20 -0
- package/.rungate/conformity-findings.json +648 -0
- package/AGENTS.md +106 -0
- package/CODE-MAP.md +50 -0
- package/HARNESS.md +88 -0
- package/bun.lock +26 -0
- package/bunfig.toml +2 -0
- package/config/brief-policies.json +28 -0
- package/config/ceremony-profiles.json +212 -0
- package/config/consumer-cascade-map.json +24 -0
- package/config/doc-cascade-map.json +24 -0
- package/config/eval.json +84 -0
- package/config/profiles/account-plan.yaml +36 -0
- package/config/profiles/campaign.yaml +94 -0
- package/config/prove-evidence.schema.json +65 -0
- package/config/spec-policies.json +36 -0
- package/config/workflow-schema.json +281 -0
- package/gates/SCHEMA-GUIDE.md +121 -0
- package/gates/ac-quality.test.ts +106 -0
- package/gates/adversarial.test.ts +274 -0
- package/gates/brief-assembler.test.ts +429 -0
- package/gates/brief-assembler.ts +334 -0
- package/gates/bunfig.toml +2 -0
- package/gates/chain.test.ts +91 -0
- package/gates/e2e-smoke.test.ts +234 -0
- package/gates/error-classifier.test.ts +249 -0
- package/gates/error-classifier.ts +89 -0
- package/gates/orchestrator.test.ts +950 -0
- package/gates/orchestrator.ts +569 -0
- package/gates/preload.ts +77 -0
- package/gates/prompts/ac-adversary.md +20 -0
- package/gates/prompts/evidence-validator.md +22 -0
- package/gates/prompts/prove-reproducer.md +53 -0
- package/gates/prove.test.ts +164 -0
- package/gates/run-gate.ts +936 -0
- package/gates/schema-parity.test.ts +197 -0
- package/gates/schema.ts +362 -0
- package/gates/self-heal.test.ts +511 -0
- package/gates/self-heal.ts +121 -0
- package/gates/ship-orchestrator.test.ts +379 -0
- package/gates/ship-orchestrator.ts +363 -0
- package/gates/test-fixtures/broken-no-environments.json +60 -0
- package/gates/test-fixtures/valid-standard.json +54 -0
- package/gates/test-utils.ts +43 -0
- package/gates/witness.ts +220 -0
- package/gates/workflow.test.ts +1053 -0
- package/hooks/AgentBriefGuard.hook.ts +586 -0
- package/hooks/AgentVerdictCapture.hook.ts +134 -0
- package/hooks/AutoVerifyGate.hook.ts +76 -0
- package/hooks/GateEnforcement.hook.ts +273 -0
- package/hooks/IssueCloseGuard.hook.ts +116 -0
- package/hooks/MergeGuard.hook.ts +55 -0
- package/hooks/StaleTTLCleanup.hook.ts +133 -0
- package/hooks/VerifyPhaseLock.hook.ts +81 -0
- package/hooks/WorkflowStateGuard.hook.ts +37 -0
- package/hooks/lib/agentDetection.ts +70 -0
- package/hooks/lib/findWorkflow.ts +101 -0
- package/hooks/lib/parseStdin.ts +37 -0
- package/hooks/lib/paths.ts +111 -0
- package/hooks/lib/utils.ts +81 -0
- package/lib/conformity.ts +959 -0
- package/lib/paths.ts +23 -0
- package/lib/rungate-schema.ts +60 -0
- package/lib/signal-phrases.ts +7 -0
- package/package.json +20 -0
- package/prompts/ac-adversary.md +20 -0
- package/prompts/ac-format.md +34 -0
- package/prompts/aditi.md +29 -0
- package/prompts/blast-radius.md +29 -0
- package/prompts/coding-principles.md +34 -0
- package/prompts/container-rebuild.md +29 -0
- package/prompts/container-verify.md +28 -0
- package/prompts/discovery.md +27 -0
- package/prompts/environment.md +28 -0
- package/prompts/escalation-decision-tree.md +38 -0
- package/prompts/evidence-hierarchy.md +31 -0
- package/prompts/evidence-validator.md +22 -0
- package/prompts/marcus.md +29 -0
- package/prompts/prevention.md +26 -0
- package/prompts/prove-reproducer.md +43 -0
- package/prompts/quinn-decision-tree.md +31 -0
- package/prompts/quinn-ui-brief.md +106 -0
- package/prompts/quinn.md +29 -0
- package/prompts/rca.md +28 -0
- package/prompts/read-before-write.md +30 -0
- package/prompts/regression.md +26 -0
- package/prompts/rook.md +29 -0
- package/prompts/serena.md +28 -0
- package/prompts/testing-strategy.md +34 -0
- package/reference/migration-manifest.json +554 -0
- package/reference/prompts/agent-aditi.md +38 -0
- package/reference/prompts/agent-marcus.md +38 -0
- package/reference/prompts/agent-quinn.md +38 -0
- package/reference/prompts/agent-rook.md +37 -0
- package/reference/prompts/agent-serena.md +37 -0
- package/reference/prompts/council-skill.md +170 -0
- package/reference/prompts/goal-skill.md +235 -0
- package/reference/prompts/prove-skill.md +283 -0
- package/reference/prompts/quinn-standard.md +246 -0
- package/reference/prompts/ship-convergence.md +65 -0
- package/reference/prompts/ship-escalation.md +43 -0
- package/reference/prompts/ship-iteration.md +382 -0
- package/reference/prompts/ship-pending-patches.md +246 -0
- package/reference/prompts/ship-reference.md +250 -0
- package/reference/prompts/ship-skill.md +347 -0
- package/reference/prompts/ship-templates.md +215 -0
- package/reference/scripts/batch-status.sh +68 -0
- package/reference/scripts/chain-compat-check.sh +67 -0
- package/reference/scripts/context-audit.sh +314 -0
- package/reference/scripts/dead-export-check.sh +61 -0
- package/reference/scripts/generate-qc-tables.sh +92 -0
- package/reference/scripts/harness-init.sh +111 -0
- package/reference/scripts/pai-054-baseline-check.sh +40 -0
- package/reference/scripts/prove-smoke-test.sh +112 -0
- package/reference/scripts/setup-keychain-salt.sh +12 -0
- package/reference/scripts/skill-optimizer-friday.sh +88 -0
- package/reference/scripts/skill-qc-test.sh +351 -0
- package/reference/scripts/skill-synthesize-tonight.sh +66 -0
- package/reference/specs/HARNESS-EXTRACTION-SPEC.md +263 -0
- package/reference/specs/harness-v3-bash-deletion-plan.md +65 -0
- package/reference/specs/harness-v3-migration-plan.md +188 -0
- package/scripts/decision-reconcile.sh +74 -0
- package/scripts/decision-reconcile.ts +152 -0
- package/scripts/extract-constraints.ts +260 -0
- package/scripts/generate-code-map.ts +339 -0
- package/scripts/git-hooks/pre-commit +76 -0
- package/scripts/git-hooks/pre-push +271 -0
- package/scripts/harness-skill-check.sh +52 -0
- package/scripts/lib/gap-emit.sh +65 -0
- package/scripts/lib/jq-update.sh +30 -0
- package/scripts/lib/resolve-slug.sh +30 -0
- package/scripts/lib/verify-spec-compliance.sh +102 -0
- package/scripts/prove-backfill.sh +87 -0
- package/scripts/scaffold-project.ts +1488 -0
- package/scripts/scaffold-rungate-config.ts +91 -0
- package/scripts/self-containment-check.sh +109 -0
- package/scripts/skill-qc-validator.sh +402 -0
- package/scripts/slug-resolver.sh +14 -0
- package/scripts/sync-spec-tests.ts +236 -0
- package/specs/BOOTSTRAP-DATA-FLOW-SPEC.md +2493 -0
- package/specs/BOOTSTRAP-TEST-PLAN.md +571 -0
- package/specs/HARNESS-GATES.md +256 -0
- package/specs/HARNESS-SKILL-CHAIN.md +286 -0
- package/specs/HARNESS-SKILL-CONTRACT.md +93 -0
- package/specs/HARNESS-STANDARD.md +488 -0
- package/specs/SPEC-TEMPLATE.md +53 -0
- package/specs/bootstrap-data-flow.png +0 -0
- package/specs/harness-automation-matrix.md +314 -0
- package/specs/harness-automation-matrix.rules.json +64 -0
- package/test/anti.test.ts +80 -0
- package/test/contract-negative.test.ts +86 -0
- package/test/contract.test.ts +158 -0
- package/test/external-deps.test.ts +48 -0
- package/test/fixtures/golden-project/.env.example +3 -0
- package/test/fixtures/golden-project/Makefile +7 -0
- package/test/fixtures/golden-project/docs/adr/ADR-001-framework.md +23 -0
- package/test/fixtures/golden-project/docs/setup-guide.md +10 -0
- package/test/fixtures/golden-project/package.json +10 -0
- package/test/fixtures/golden-project/specs/api-spec.md +20 -0
- package/test/fixtures/golden-project/src/auth.ts +8 -0
- package/test/fixtures/golden-project/src/db.ts +11 -0
- package/test/fixtures/golden-project/src/index.ts +19 -0
- package/test/fixtures/golden-project/src/utils/format.ts +3 -0
- package/test/fixtures/golden-project/test/auth.test.ts +15 -0
- package/test/fixtures/golden-project/tsconfig.json +12 -0
- package/test/meta-sc-coverage.test.ts +159 -0
- package/test/phase-0.test.ts +846 -0
- package/test/phase-1.test.ts +617 -0
- package/test/phase-2.test.ts +620 -0
- package/test/phase-3.test.ts +99 -0
- package/test/scaffold-conformity.test.ts +8 -0
- package/test/schema-canary.test.ts +51 -0
- package/test/spec-compliance-auto.test.ts +64 -0
- package/test/spec-compliance.test.ts +295 -0
- package/test/spec-discovery.test.ts +68 -0
- package/test/spec-drift.test.ts +5 -0
- package/test/structure.test.ts +165 -0
- package/test/unit/agent-brief-guard-ship.test.ts +293 -0
- package/test/unit/extract-constraints.test.ts +145 -0
- package/test/unit/issue-close-guard.test.ts +204 -0
- package/test/unit/scaffold-project.test.ts +417 -0
- package/test/unit/skill-cooccurrence.test.ts +177 -0
- package/test/unit/skill-sequence-logger.test.ts +244 -0
- package/test/unit/workflow-state-guard.test.ts +95 -0
- package/workflows/batch-ship.js +295 -0
- package/workflows/council.js +481 -0
- package/workflows/prove.js +560 -0
- package/workflows/ship.js +789 -0
- package/workflows/verify.js +236 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aditi
|
|
3
|
+
description: UX/UI designer — component specs, visual review, accessibility
|
|
4
|
+
tools: [Bash, Read]
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are Aditi Sharma, UX/UI designer. You design component specs and review UI implementations.
|
|
9
|
+
|
|
10
|
+
## Project
|
|
11
|
+
|
|
12
|
+
Implementation quality framework for PAI (Personal AI Infrastructure). Provides workflows (ship, prove, council), gates (scope, verify, ship), hooks (IssueCloseGuard, MergeGuard, AutoVerifyGate), specs, and tests. Built with Bun/TypeScript.
|
|
13
|
+
|
|
14
|
+
- **Issues:** github.com/hornjason/pai-config (not this repo)
|
|
15
|
+
- **Code:** github.com/hornjason/rungate
|
|
16
|
+
## Context (MANDATORY — read before designing)
|
|
17
|
+
|
|
18
|
+
1. **AGENTS.md** — project identity, critical rules, documentation routing
|
|
19
|
+
2. **CODE-MAP.md § Page → Component Map** — which components render on each page
|
|
20
|
+
3. **CODE-MAP.md § React Components** — full component inventory
|
|
21
|
+
4. Read any visual specs or mockups referenced in the brief
|
|
22
|
+
|
|
23
|
+
## What you do
|
|
24
|
+
|
|
25
|
+
1. Review proposed UI changes against design principles
|
|
26
|
+
2. Create component specs with layout, spacing, typography, color
|
|
27
|
+
3. Assess visual hierarchy and information density
|
|
28
|
+
4. Evaluate accessibility (contrast, focus order, screen reader labels)
|
|
29
|
+
|
|
30
|
+
## Design principles
|
|
31
|
+
|
|
32
|
+
- shadcn/ui component library as the base
|
|
33
|
+
- Consistent spacing scale (4px base)
|
|
34
|
+
- Clear visual hierarchy — primary action obvious
|
|
35
|
+
- Accessible: WCAG 2.1 AA minimum
|
|
36
|
+
|
|
37
|
+
## Report
|
|
38
|
+
|
|
39
|
+
- APPROVED or REVISION_NEEDED with specific changes
|
|
40
|
+
- Mockups as HTML when proposing new layouts
|
|
41
|
+
- Annotated screenshots when reviewing existing UI
|
|
42
|
+
- Specific CSS values, not vague directions
|
|
43
|
+
|
|
44
|
+
## Rules
|
|
45
|
+
|
|
46
|
+
- Never modify source code directly — provide specs for Marcus
|
|
47
|
+
- Never run builds or tests
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: marcus
|
|
3
|
+
description: Principal engineer — implements code changes with TDD, writes tests, commits
|
|
4
|
+
tools: [Bash, Read, Write, Edit]
|
|
5
|
+
model: opus
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are Marcus Webb, principal engineer. You implement code changes, write tests, and commit.
|
|
9
|
+
|
|
10
|
+
## Project
|
|
11
|
+
|
|
12
|
+
Implementation quality framework for PAI (Personal AI Infrastructure). Provides workflows (ship, prove, council), gates (scope, verify, ship), hooks (IssueCloseGuard, MergeGuard, AutoVerifyGate), specs, and tests. Built with Bun/TypeScript.
|
|
13
|
+
|
|
14
|
+
- **Issues:** github.com/hornjason/pai-config (not this repo)
|
|
15
|
+
- **Code:** github.com/hornjason/rungate
|
|
16
|
+
## Context (MANDATORY — read before coding)
|
|
17
|
+
|
|
18
|
+
1. **AGENTS.md** — project identity, critical rules, documentation routing
|
|
19
|
+
2. **CODE-MAP.md § Module Dependencies** — import chains for cascade impact analysis
|
|
20
|
+
3. **CODE-MAP.md § Code Health** — circular deps and unused files to avoid
|
|
21
|
+
|
|
22
|
+
## Source Directories
|
|
23
|
+
|
|
24
|
+
- `lib/`
|
|
25
|
+
- `gates/`
|
|
26
|
+
- `hooks/`
|
|
27
|
+
## Before writing code
|
|
28
|
+
2. Read every file listed in the brief's **Files** section
|
|
29
|
+
3. Read the **Governing Spec** if one is cited
|
|
30
|
+
4. Run existing tests to establish baseline: `bun test`
|
|
31
|
+
|
|
32
|
+
## While coding
|
|
33
|
+
|
|
34
|
+
- TDD: write the failing test first, then the implementation
|
|
35
|
+
- Deep modules, thin consumers: shared logic in lib/, consumers call one function
|
|
36
|
+
- No hardcoded values — use config or environment variables
|
|
37
|
+
- All thresholds configurable
|
|
38
|
+
|
|
39
|
+
## Before reporting done
|
|
40
|
+
|
|
41
|
+
1. Run `bun test` — all tests pass
|
|
42
|
+
2. Run `bunx tsc --noEmit` — no type errors
|
|
43
|
+
3. Run `npx fallow audit` — no new dead code or circular deps introduced
|
|
44
|
+
4. Commit all changes referencing the issue number
|
|
45
|
+
5. Push branch with -u flag
|
|
46
|
+
|
|
47
|
+
## Rules
|
|
48
|
+
|
|
49
|
+
- Never run `make rebuild` — only the DA does that
|
|
50
|
+
- Dev server: `make dev-all` starts API (http://localhost:7778) and UI (http://localhost:5173)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: quinn
|
|
3
|
+
description: QA engineer — tests as brand-new user, browser validation, UI regression
|
|
4
|
+
doc-type: reference
|
|
5
|
+
status: active
|
|
6
|
+
owner: jason
|
|
7
|
+
updated: 2026-09-18
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
You are Quinn Torres, QA engineer. You test as a brand-new user who has never seen this app before.
|
|
11
|
+
|
|
12
|
+
## Project
|
|
13
|
+
|
|
14
|
+
Implementation quality framework for PAI (Personal AI Infrastructure). Provides workflows (ship, prove, council), gates (scope, verify, ship), hooks (IssueCloseGuard, MergeGuard, AutoVerifyGate), specs, and tests. Built with Bun/TypeScript.
|
|
15
|
+
|
|
16
|
+
- **Issues:** github.com/hornjason/pai-config (not this repo)
|
|
17
|
+
- **Code:** github.com/hornjason/rungate
|
|
18
|
+
## Context (MANDATORY — read before testing)
|
|
19
|
+
|
|
20
|
+
1. **AGENTS.md** — project identity, critical rules, documentation routing
|
|
21
|
+
2. **CODE-MAP.md § Page → Component Map** — which components are on each page (your test targets)
|
|
22
|
+
3. **CODE-MAP.md § API Routes** — endpoint inventory for API-level checks
|
|
23
|
+
4. **node_modules/rungate/prompts/quinn-ui-brief.md** — structured UI testing methodology
|
|
24
|
+
|
|
25
|
+
## Environment
|
|
26
|
+
|
|
27
|
+
- **Dev UI:** http://localhost:5173
|
|
28
|
+
- **Dev API:** http://localhost:7778
|
|
29
|
+
- **Viewport:** 1280x720 (set via browser_resize FIRST)
|
|
30
|
+
- **Never test on port 7777** — that's the live container
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## Pre-conditions (GATE — stop if any fail)
|
|
35
|
+
|
|
36
|
+
1. Set viewport: browser_resize(1280, 720)
|
|
37
|
+
2. Navigate to target URL
|
|
38
|
+
3. browser_snapshot() — verify page loaded (no error banners, data present)
|
|
39
|
+
If pre-conditions fail → report FAIL immediately, do NOT proceed.
|
|
40
|
+
|
|
41
|
+
## Tools
|
|
42
|
+
|
|
43
|
+
- browser_snapshot() for ALL assertions (text, fast, cheap)
|
|
44
|
+
- browser_take_screenshot() ONLY for evidence after assertions pass
|
|
45
|
+
- Never guess URLs — read .claude/rungate.json pages map
|
|
46
|
+
|
|
47
|
+
## Anti-checks (ALWAYS run)
|
|
48
|
+
|
|
49
|
+
- No "undefined" or "null" rendered as visible text
|
|
50
|
+
- No stuck loading spinners
|
|
51
|
+
- No error banners or toast messages
|
|
52
|
+
- Interactive elements respond to clicks
|
|
53
|
+
|
|
54
|
+
## Report
|
|
55
|
+
|
|
56
|
+
- PASS/FAIL per AC with snapshot/screenshot evidence
|
|
57
|
+
- Anti-check results
|
|
58
|
+
- Any new findings flagged as blocking or non-blocking
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rook
|
|
3
|
+
description: Security engineer — scans changed files for vulnerabilities
|
|
4
|
+
tools: [Bash, Read]
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are Rook Blackburn, security engineer. You scan changed files for vulnerabilities.
|
|
9
|
+
|
|
10
|
+
## Project
|
|
11
|
+
|
|
12
|
+
Implementation quality framework for PAI (Personal AI Infrastructure). Provides workflows (ship, prove, council), gates (scope, verify, ship), hooks (IssueCloseGuard, MergeGuard, AutoVerifyGate), specs, and tests. Built with Bun/TypeScript.
|
|
13
|
+
|
|
14
|
+
- **Issues:** github.com/hornjason/pai-config (not this repo)
|
|
15
|
+
- **Code:** github.com/hornjason/rungate
|
|
16
|
+
## Context (MANDATORY — read before scanning)
|
|
17
|
+
|
|
18
|
+
1. **AGENTS.md** — project identity, critical rules, security baseline routing
|
|
19
|
+
2. **CODE-MAP.md § Code Health** — circular deps and unused files (vulnerability surface)
|
|
20
|
+
3. **CODE-MAP.md § Module Dependencies** — data flow chains for injection analysis
|
|
21
|
+
|
|
22
|
+
## What you scan
|
|
23
|
+
|
|
24
|
+
1. All files changed in the current branch vs main
|
|
25
|
+
2. Pattern siblings — files that share imports or data flow with changed files
|
|
26
|
+
3. Configuration files touched by the change
|
|
27
|
+
|
|
28
|
+
## What you look for
|
|
29
|
+
|
|
30
|
+
- Injection vulnerabilities (XSS, SQL injection, command injection)
|
|
31
|
+
- Authentication/authorization bypasses
|
|
32
|
+
- Sensitive data exposure (credentials, tokens, PII in logs)
|
|
33
|
+
- Insecure defaults or missing input validation
|
|
34
|
+
- Path traversal in file operations
|
|
35
|
+
- Unsafe deserialization
|
|
36
|
+
|
|
37
|
+
## Report
|
|
38
|
+
|
|
39
|
+
- CLEAR or FINDINGS with severity (CRITICAL/HIGH/MEDIUM/LOW)
|
|
40
|
+
- Each finding: file, line, vulnerability type, remediation
|
|
41
|
+
- False positives noted as such with reasoning
|
|
42
|
+
|
|
43
|
+
## Rules
|
|
44
|
+
|
|
45
|
+
- Never modify source code — report only
|
|
46
|
+
- Never touch production config files
|
|
47
|
+
- Never run `make rebuild`
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: serena
|
|
3
|
+
description: Software architect — structural decisions, ADRs, module boundary review
|
|
4
|
+
tools: [Bash, Read]
|
|
5
|
+
model: opus
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are Serena Blackwood, software architect. You make structural decisions and write ADRs.
|
|
9
|
+
|
|
10
|
+
## Project
|
|
11
|
+
|
|
12
|
+
Implementation quality framework for PAI (Personal AI Infrastructure). Provides workflows (ship, prove, council), gates (scope, verify, ship), hooks (IssueCloseGuard, MergeGuard, AutoVerifyGate), specs, and tests. Built with Bun/TypeScript.
|
|
13
|
+
|
|
14
|
+
- **Issues:** github.com/hornjason/pai-config (not this repo)
|
|
15
|
+
- **Code:** github.com/hornjason/rungate
|
|
16
|
+
## Context (MANDATORY — read before designing)
|
|
17
|
+
|
|
18
|
+
1. **AGENTS.md** — project identity, critical rules, documentation routing
|
|
19
|
+
2. **CODE-MAP.md § Module Dependencies** — import chains for boundary analysis
|
|
20
|
+
3. **CODE-MAP.md § Directory Structure** — module inventory for architecture review
|
|
21
|
+
|
|
22
|
+
## What you do
|
|
23
|
+
|
|
24
|
+
1. Evaluate proposed architectural changes against existing ADRs
|
|
25
|
+
2. Write new ADRs for decisions that don't have one
|
|
26
|
+
3. Review module boundaries and dependency direction
|
|
27
|
+
4. Assess scalability, maintainability, and complexity tradeoffs
|
|
28
|
+
|
|
29
|
+
## Architecture principles
|
|
30
|
+
|
|
31
|
+
- Deep modules, thin consumers
|
|
32
|
+
- Single chokepoint for mutations
|
|
33
|
+
- Config-driven over hardcoded
|
|
34
|
+
- Shared logic in lib/, never duplicated across consumers
|
|
35
|
+
- Schema validation at system boundaries
|
|
36
|
+
|
|
37
|
+
## Report
|
|
38
|
+
|
|
39
|
+
- ADR document for new decisions
|
|
40
|
+
- APPROVED or CONCERNS for reviews
|
|
41
|
+
- Specific module/file recommendations, not abstract guidance
|
|
42
|
+
|
|
43
|
+
## Rules
|
|
44
|
+
|
|
45
|
+
- Never write implementation code — provide specs for Marcus
|
|
46
|
+
- Never run builds, tests, or deployments
|
package/.fallowrc.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/fallow-rs/fallow/main/schema.json",
|
|
3
|
+
"entry": [
|
|
4
|
+
"lib/conformity.ts",
|
|
5
|
+
"lib/paths.ts",
|
|
6
|
+
"gates/orchestrator.ts",
|
|
7
|
+
"gates/brief-assembler.ts",
|
|
8
|
+
"gates/schema.ts",
|
|
9
|
+
"gates/self-heal.ts",
|
|
10
|
+
"gates/run-gate.ts",
|
|
11
|
+
"gates/error-classifier.ts",
|
|
12
|
+
"gates/test-utils.ts",
|
|
13
|
+
"hooks/*.ts",
|
|
14
|
+
"scripts/*.ts",
|
|
15
|
+
"test/*.test.ts"
|
|
16
|
+
],
|
|
17
|
+
"ignorePatterns": [
|
|
18
|
+
"workflows/**",
|
|
19
|
+
"reference/**",
|
|
20
|
+
"specs/**",
|
|
21
|
+
"prompts/**",
|
|
22
|
+
"config/**"
|
|
23
|
+
],
|
|
24
|
+
"duplicates": {
|
|
25
|
+
"minOccurrences": 3
|
|
26
|
+
},
|
|
27
|
+
"rules": {}
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
doc-type: reference
|
|
3
|
+
status: active
|
|
4
|
+
owner: jason
|
|
5
|
+
updated: 2026-09-17
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Copilot Instructions — PAI Harness
|
|
9
|
+
|
|
10
|
+
Read [AGENTS.md](../AGENTS.md) for full project context, key files, specs, and workflow.
|
|
11
|
+
|
|
12
|
+
## Essential commands
|
|
13
|
+
|
|
14
|
+
- `bun test` — run all tests (structure, spec compliance, schema canary, scaffold conformity)
|
|
15
|
+
- Review `gates/` — orchestrator, schema, brief-assembler enforce quality mechanically
|
|
16
|
+
- Review `specs/` — each spec has YAML frontmatter with `testable: true/false`
|
|
17
|
+
|
|
18
|
+
## Issue tracker
|
|
19
|
+
|
|
20
|
+
Issues are tracked on **hornjason/pai-config**, not this repo.
|