harness-builder 1.0.0__tar.gz

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.
Files changed (64) hide show
  1. harness_builder-1.0.0/.gitignore +10 -0
  2. harness_builder-1.0.0/PKG-INFO +118 -0
  3. harness_builder-1.0.0/README.md +108 -0
  4. harness_builder-1.0.0/docs/README.md +6 -0
  5. harness_builder-1.0.0/docs/adr/README.md +3 -0
  6. harness_builder-1.0.0/docs/designs/README.md +3 -0
  7. harness_builder-1.0.0/docs/plans/README.md +3 -0
  8. harness_builder-1.0.0/plugin/README.md +31 -0
  9. harness_builder-1.0.0/plugin/agents/codebase-scout.md +29 -0
  10. harness_builder-1.0.0/plugin/agents/simplification-critic.md +29 -0
  11. harness_builder-1.0.0/plugin/agents/socratic-griller.md +29 -0
  12. harness_builder-1.0.0/plugin/agents/zero-trust-verifier.md +33 -0
  13. harness_builder-1.0.0/plugin/hooks/_cmd_policy.py +295 -0
  14. harness_builder-1.0.0/plugin/hooks/harness_gate.py +275 -0
  15. harness_builder-1.0.0/plugin/hooks/post_tool_format.py +74 -0
  16. harness_builder-1.0.0/plugin/hooks/pre_tool_guard.py +107 -0
  17. harness_builder-1.0.0/plugin/hooks/verify_stop.py +174 -0
  18. harness_builder-1.0.0/plugin/hooks.json +39 -0
  19. harness_builder-1.0.0/plugin/plugin.json +25 -0
  20. harness_builder-1.0.0/plugin/rules/AGENTS.md +33 -0
  21. harness_builder-1.0.0/plugin/rules/git_hygiene.md +11 -0
  22. harness_builder-1.0.0/plugin/rules/go_style.md +11 -0
  23. harness_builder-1.0.0/plugin/rules/python_style.md +11 -0
  24. harness_builder-1.0.0/plugin/rules/typescript_style.md +11 -0
  25. harness_builder-1.0.0/plugin/skills/design-gauntlet/SKILL.md +26 -0
  26. harness_builder-1.0.0/plugin/skills/hb-bootstrap/SKILL.md +52 -0
  27. harness_builder-1.0.0/plugin/skills/hb-build/SKILL.md +30 -0
  28. harness_builder-1.0.0/plugin/skills/hb-design/SKILL.md +33 -0
  29. harness_builder-1.0.0/plugin/skills/hb-plan/SKILL.md +27 -0
  30. harness_builder-1.0.0/plugin/skills/hb-ship/SKILL.md +24 -0
  31. harness_builder-1.0.0/plugin/skills/pr-cleanup/SKILL.md +22 -0
  32. harness_builder-1.0.0/plugin/skills/socratic-griller/SKILL.md +21 -0
  33. harness_builder-1.0.0/plugin/skills/spec-scout/SKILL.md +21 -0
  34. harness_builder-1.0.0/plugin/skills/test-craft/SKILL.md +25 -0
  35. harness_builder-1.0.0/plugin/skills/zero-trust-verifier/SKILL.md +26 -0
  36. harness_builder-1.0.0/plugin/templates/design_brief.md +46 -0
  37. harness_builder-1.0.0/plugin/templates/design_full.md +66 -0
  38. harness_builder-1.0.0/plugin/templates/project_agents.md +21 -0
  39. harness_builder-1.0.0/pyproject.toml +57 -0
  40. harness_builder-1.0.0/src/harness_builder/__init__.py +4 -0
  41. harness_builder-1.0.0/src/harness_builder/adapters/__init__.py +1 -0
  42. harness_builder-1.0.0/src/harness_builder/adapters/_scaffold_templates.py +169 -0
  43. harness_builder-1.0.0/src/harness_builder/adapters/doctor_adapter.py +262 -0
  44. harness_builder-1.0.0/src/harness_builder/adapters/fs_adapter.py +283 -0
  45. harness_builder-1.0.0/src/harness_builder/adapters/git_adapter.py +98 -0
  46. harness_builder-1.0.0/src/harness_builder/adapters/plugin_installer.py +96 -0
  47. harness_builder-1.0.0/src/harness_builder/adapters/repo_scan_adapter.py +155 -0
  48. harness_builder-1.0.0/src/harness_builder/adapters/scaffolder.py +270 -0
  49. harness_builder-1.0.0/src/harness_builder/cli.py +290 -0
  50. harness_builder-1.0.0/src/harness_builder/core/__init__.py +1 -0
  51. harness_builder-1.0.0/src/harness_builder/core/_manifest_parsers.py +138 -0
  52. harness_builder-1.0.0/src/harness_builder/core/_markdown_scan.py +273 -0
  53. harness_builder-1.0.0/src/harness_builder/core/_shell_guard.py +216 -0
  54. harness_builder-1.0.0/src/harness_builder/core/_symbol_scan.py +264 -0
  55. harness_builder-1.0.0/src/harness_builder/core/_ts_scan.py +123 -0
  56. harness_builder-1.0.0/src/harness_builder/core/commit_policy.py +180 -0
  57. harness_builder-1.0.0/src/harness_builder/core/design_lint.py +271 -0
  58. harness_builder-1.0.0/src/harness_builder/core/drift_analyzer.py +170 -0
  59. harness_builder-1.0.0/src/harness_builder/core/exceptions.py +81 -0
  60. harness_builder-1.0.0/src/harness_builder/core/frontmatter.py +282 -0
  61. harness_builder-1.0.0/src/harness_builder/core/plan_compiler.py +186 -0
  62. harness_builder-1.0.0/src/harness_builder/core/repo_detector.py +188 -0
  63. harness_builder-1.0.0/src/harness_builder/core/schema.py +286 -0
  64. harness_builder-1.0.0/src/harness_builder/core/token_budget.py +201 -0
@@ -0,0 +1,10 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ .pytest_cache/
5
+ .mypy_cache/
6
+ .ruff_cache/
7
+ .venv/
8
+ dist/
9
+ build/
10
+ .DS_Store
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.5
2
+ Name: harness-builder
3
+ Version: 1.0.0
4
+ Summary: Vendor-neutral AI Agent Engineering Harness CLI and Antigravity plugin
5
+ Project-URL: Homepage, https://github.com/Mr-Fred/harness-builder
6
+ Project-URL: Repository, https://github.com/Mr-Fred/harness-builder
7
+ License-Expression: MIT
8
+ Requires-Python: >=3.11
9
+ Description-Content-Type: text/markdown
10
+
11
+ # harness-builder
12
+
13
+ Personal, open-source, vendor-neutral AI Agent Engineering Harness for Google
14
+ Antigravity (`agy` IDE & CLI).
15
+
16
+ `harness-builder` keeps methodology in a single globally installed Antigravity
17
+ plugin while keeping scaffolded repositories thin, deterministic, and strictly
18
+ within startup token budgets.
19
+
20
+ ## Architecture
21
+
22
+ ```text
23
+ harness-builder/
24
+ ├── plugin/ # Installable Antigravity plugin (rules, 11 skills, 4 subagents, templates, hooks)
25
+ └── src/harness_builder/ # Pure Python 3.11+ stdlib-only CLI (`hb`)
26
+ ├── core/ # Functional core (schema, frontmatter, token budget, design lint, plan, drift, repo detector)
27
+ ├── adapters/ # Imperative shell (git, safe fs, repo scanner, scaffolder, doctor)
28
+ └── cli.py # Thin argparse entrypoint (`hb`)
29
+ ```
30
+
31
+ - **Zero runtime dependencies:** Python 3.11+ standard library only (`uv` manages dev tooling).
32
+ - **Plugin owns methodology; repos stay thin:** `hb init` never copies `plugin/` into target repos.
33
+ - **Strict startup token discipline:** Combined plugin + project `always_on` context stays `<= 3,000` tokens (hard cap `4,500`). Detailed project docs (`.agents/PROJECT_STRUCTURE.md`, `.agents/DEPENDENCIES.md`, `.agents/RULES.md`, `.agents/GETTING_STARTED.md`) load strictly on demand.
34
+
35
+ ## Quickstart
36
+
37
+ ### 1. Install Globally (Zero `git clone` Required)
38
+
39
+ Install the `hb` CLI (with `plugin/` bundled inside the wheel) and register the
40
+ Antigravity plugin once on your machine—never clone `harness-builder` inside
41
+ your project repositories:
42
+
43
+ ```bash
44
+ uv tool install git+https://github.com/Mr-Fred/harness-builder.git
45
+ hb install-plugin
46
+ hb doctor .
47
+ ```
48
+
49
+ *(For local contributor development, run `uv sync --dev && uv tool install -e . && hb install-plugin`.)*
50
+
51
+ ### 2. Onboard a New (Greenfield) or Existing (Brownfield) Repository
52
+
53
+ `harness-builder` uses a **2-Stage Hybrid Bootstrap** — deterministic offline
54
+ scaffolding via `hb init` followed by optional agentic hydration via
55
+ `/hb-bootstrap` inside Antigravity:
56
+
57
+ ```bash
58
+ # Preview every CREATE / MERGE / SKIP action without touching disk
59
+ hb init --mode auto --dry-run /path/to/repo
60
+
61
+ # Scaffold safely (merges managed block into existing AGENTS.md; never clobbers CLAUDE.md, .cursorrules, GEMINI.md, or docs/)
62
+ hb init --mode auto /path/to/repo
63
+ ```
64
+
65
+ For existing repositories, open the repo in Antigravity and run `/hb-bootstrap`
66
+ to hydrate `.agents/PROJECT_STRUCTURE.md`, `.agents/DEPENDENCIES.md`,
67
+ `.agents/rules/PROJECT_RULES.md`, and `.agents/GETTING_STARTED.md`, verify
68
+ detected test/lint commands, and confirm `hb check .` passes with startup tokens
69
+ `<= 3,000`.
70
+
71
+ ## 3-Tier, 4-Stage SDLC Loop
72
+
73
+ | Tier | Blast Radius | Required Workflow |
74
+ | :--- | :--- | :--- |
75
+ | **Tier 1 (Surgical)** | `<= 100` LOC, single module or bugfix | Direct edit + paired test + Stop verification. Zero ceremony. |
76
+ | **Tier 2 (Feature / Refactor)** | `100–400` LOC | `/hb-design` (`brief`, `<= 750` words) → `/hb-plan` → `/hb-build` → `/hb-ship` (`hb drift` + fresh-context `zero-trust-verifier`). |
77
+ | **Tier 3 (Architecture / Epic)** | `> 400` LOC, new subsystem, schema, or API | `/hb-design` (`full`, `<= 1,800` words + 4-lens `design-gauntlet`) → `/hb-plan --scorecard` → iterative `/hb-build` → `/hb-ship` (`hb drift --mode strict`). |
78
+
79
+ ## CLI Command Reference (`hb`)
80
+
81
+ ```bash
82
+ hb install-plugin [--plugin-dir <dir>] [--dry-run] [--json]
83
+ hb init [--name <name>] [--mode auto|new|existing] [--stack python,ts,go,rust] [--docs-dir docs] [--dry-run] [--force] [dir]
84
+ hb check [--strict] [--plugin-dir ./plugin] [--json] [dir]
85
+ hb visualize [--plugin-dir ./plugin] [--json] [dir]
86
+ hb design-lint [--tier brief|full] [--json] <design.md>
87
+ hb plan [--scorecard] --out-dir <dir> [--json] <design.md>
88
+ hb drift [--mode advisory|strict|blocking] [--json] <design.md> <src_dir>
89
+ hb doctor [--strict] [--json] [dir]
90
+ ```
91
+
92
+ ## Lifecycle Hooks & Safety Guards (`plugin/hooks/`)
93
+
94
+ All hooks run isolated via `python3 -I -B` with zero non-stdlib imports, zero
95
+ `shell=True`, explicit subprocess timeouts, and fail-open behavior on malformed
96
+ inputs or timeouts:
97
+
98
+ - **`PreToolUse` (`pre_tool_guard.py`, `< 150ms` p95):** Blocks deletion or
99
+ tampering of protected files (`AGENTS.md`, `.agents/harness.json`,
100
+ `.agents/rules/PROJECT_RULES.md`), catastrophic `rm`, force-push/deletion on
101
+ protected branches (`main`, `master`), oversized `README.md` writes, unpaired
102
+ production commits, `> 400`-line commits, and invalid commit subjects.
103
+ - **`PostToolUse` (`post_tool_format.py`, 10s timeout):** Fail-open runner for
104
+ configured `verification_loop.format_commands`.
105
+ - **`Stop` (`verify_stop.py`, 60s timeout):** Runs configured test and lint
106
+ commands when uncommitted changes exist, backed by a persistent atomic circuit
107
+ breaker (`~/.cache/harness-builder/state/<conversation_id>.json`) and an
108
+ emergency `HB_BYPASS_STOP_HOOK=1` escape hatch.
109
+
110
+ ## Development & Verification
111
+
112
+ ```bash
113
+ uv run pytest tests/unit tests/hooks tests/e2e -v
114
+ uv run ruff check src tests plugin/hooks
115
+ uv run mypy --strict src
116
+ agy plugin validate --strict ./plugin
117
+ hb check . && hb doctor .
118
+ ```
@@ -0,0 +1,108 @@
1
+ # harness-builder
2
+
3
+ Personal, open-source, vendor-neutral AI Agent Engineering Harness for Google
4
+ Antigravity (`agy` IDE & CLI).
5
+
6
+ `harness-builder` keeps methodology in a single globally installed Antigravity
7
+ plugin while keeping scaffolded repositories thin, deterministic, and strictly
8
+ within startup token budgets.
9
+
10
+ ## Architecture
11
+
12
+ ```text
13
+ harness-builder/
14
+ ├── plugin/ # Installable Antigravity plugin (rules, 11 skills, 4 subagents, templates, hooks)
15
+ └── src/harness_builder/ # Pure Python 3.11+ stdlib-only CLI (`hb`)
16
+ ├── core/ # Functional core (schema, frontmatter, token budget, design lint, plan, drift, repo detector)
17
+ ├── adapters/ # Imperative shell (git, safe fs, repo scanner, scaffolder, doctor)
18
+ └── cli.py # Thin argparse entrypoint (`hb`)
19
+ ```
20
+
21
+ - **Zero runtime dependencies:** Python 3.11+ standard library only (`uv` manages dev tooling).
22
+ - **Plugin owns methodology; repos stay thin:** `hb init` never copies `plugin/` into target repos.
23
+ - **Strict startup token discipline:** Combined plugin + project `always_on` context stays `<= 3,000` tokens (hard cap `4,500`). Detailed project docs (`.agents/PROJECT_STRUCTURE.md`, `.agents/DEPENDENCIES.md`, `.agents/RULES.md`, `.agents/GETTING_STARTED.md`) load strictly on demand.
24
+
25
+ ## Quickstart
26
+
27
+ ### 1. Install Globally (Zero `git clone` Required)
28
+
29
+ Install the `hb` CLI (with `plugin/` bundled inside the wheel) and register the
30
+ Antigravity plugin once on your machine—never clone `harness-builder` inside
31
+ your project repositories:
32
+
33
+ ```bash
34
+ uv tool install git+https://github.com/Mr-Fred/harness-builder.git
35
+ hb install-plugin
36
+ hb doctor .
37
+ ```
38
+
39
+ *(For local contributor development, run `uv sync --dev && uv tool install -e . && hb install-plugin`.)*
40
+
41
+ ### 2. Onboard a New (Greenfield) or Existing (Brownfield) Repository
42
+
43
+ `harness-builder` uses a **2-Stage Hybrid Bootstrap** — deterministic offline
44
+ scaffolding via `hb init` followed by optional agentic hydration via
45
+ `/hb-bootstrap` inside Antigravity:
46
+
47
+ ```bash
48
+ # Preview every CREATE / MERGE / SKIP action without touching disk
49
+ hb init --mode auto --dry-run /path/to/repo
50
+
51
+ # Scaffold safely (merges managed block into existing AGENTS.md; never clobbers CLAUDE.md, .cursorrules, GEMINI.md, or docs/)
52
+ hb init --mode auto /path/to/repo
53
+ ```
54
+
55
+ For existing repositories, open the repo in Antigravity and run `/hb-bootstrap`
56
+ to hydrate `.agents/PROJECT_STRUCTURE.md`, `.agents/DEPENDENCIES.md`,
57
+ `.agents/rules/PROJECT_RULES.md`, and `.agents/GETTING_STARTED.md`, verify
58
+ detected test/lint commands, and confirm `hb check .` passes with startup tokens
59
+ `<= 3,000`.
60
+
61
+ ## 3-Tier, 4-Stage SDLC Loop
62
+
63
+ | Tier | Blast Radius | Required Workflow |
64
+ | :--- | :--- | :--- |
65
+ | **Tier 1 (Surgical)** | `<= 100` LOC, single module or bugfix | Direct edit + paired test + Stop verification. Zero ceremony. |
66
+ | **Tier 2 (Feature / Refactor)** | `100–400` LOC | `/hb-design` (`brief`, `<= 750` words) → `/hb-plan` → `/hb-build` → `/hb-ship` (`hb drift` + fresh-context `zero-trust-verifier`). |
67
+ | **Tier 3 (Architecture / Epic)** | `> 400` LOC, new subsystem, schema, or API | `/hb-design` (`full`, `<= 1,800` words + 4-lens `design-gauntlet`) → `/hb-plan --scorecard` → iterative `/hb-build` → `/hb-ship` (`hb drift --mode strict`). |
68
+
69
+ ## CLI Command Reference (`hb`)
70
+
71
+ ```bash
72
+ hb install-plugin [--plugin-dir <dir>] [--dry-run] [--json]
73
+ hb init [--name <name>] [--mode auto|new|existing] [--stack python,ts,go,rust] [--docs-dir docs] [--dry-run] [--force] [dir]
74
+ hb check [--strict] [--plugin-dir ./plugin] [--json] [dir]
75
+ hb visualize [--plugin-dir ./plugin] [--json] [dir]
76
+ hb design-lint [--tier brief|full] [--json] <design.md>
77
+ hb plan [--scorecard] --out-dir <dir> [--json] <design.md>
78
+ hb drift [--mode advisory|strict|blocking] [--json] <design.md> <src_dir>
79
+ hb doctor [--strict] [--json] [dir]
80
+ ```
81
+
82
+ ## Lifecycle Hooks & Safety Guards (`plugin/hooks/`)
83
+
84
+ All hooks run isolated via `python3 -I -B` with zero non-stdlib imports, zero
85
+ `shell=True`, explicit subprocess timeouts, and fail-open behavior on malformed
86
+ inputs or timeouts:
87
+
88
+ - **`PreToolUse` (`pre_tool_guard.py`, `< 150ms` p95):** Blocks deletion or
89
+ tampering of protected files (`AGENTS.md`, `.agents/harness.json`,
90
+ `.agents/rules/PROJECT_RULES.md`), catastrophic `rm`, force-push/deletion on
91
+ protected branches (`main`, `master`), oversized `README.md` writes, unpaired
92
+ production commits, `> 400`-line commits, and invalid commit subjects.
93
+ - **`PostToolUse` (`post_tool_format.py`, 10s timeout):** Fail-open runner for
94
+ configured `verification_loop.format_commands`.
95
+ - **`Stop` (`verify_stop.py`, 60s timeout):** Runs configured test and lint
96
+ commands when uncommitted changes exist, backed by a persistent atomic circuit
97
+ breaker (`~/.cache/harness-builder/state/<conversation_id>.json`) and an
98
+ emergency `HB_BYPASS_STOP_HOOK=1` escape hatch.
99
+
100
+ ## Development & Verification
101
+
102
+ ```bash
103
+ uv run pytest tests/unit tests/hooks tests/e2e -v
104
+ uv run ruff check src tests plugin/hooks
105
+ uv run mypy --strict src
106
+ agy plugin validate --strict ./plugin
107
+ hb check . && hb doctor .
108
+ ```
@@ -0,0 +1,6 @@
1
+ # harness-builder Documentation
2
+
3
+ - [Antigravity Platform Contract (Phase 0 Probe Record)](antigravity_contract.md)
4
+ - [Design Specifications](designs/README.md)
5
+ - [Execution Plans & Scorecards](plans/README.md)
6
+ - [Architecture Decision Records](adr/README.md)
@@ -0,0 +1,3 @@
1
+ # Architecture Decision Records (ADRs)
2
+
3
+ Record lightweight, immutable architectural decisions as `0001-<decision>.md`.
@@ -0,0 +1,3 @@
1
+ # Design Specifications
2
+
3
+ Store Tier 2 (`brief`, `<= 750` words) and Tier 3 (`full`, `<= 1,800` words) design specs as `0001-<slug>-design.md` and validate with `hb design-lint`.
@@ -0,0 +1,3 @@
1
+ # Execution Plans & Verification Scorecards
2
+
3
+ Compile lint-clean designs with `hb plan --scorecard --out-dir docs/plans <design.md>` into `0001-<slug>-plan.md` / `PLAN.md` and `scorecard.json`.
@@ -0,0 +1,31 @@
1
+ # Harness Builder (Antigravity Plugin)
2
+
3
+ Global Antigravity plugin providing the methodology, rules, progressive-disclosure
4
+ skills, subagents, templates, and lifecycle hooks for `harness-builder`.
5
+
6
+ ## Install
7
+
8
+ ```bash
9
+ agy plugin install ./plugin
10
+ ```
11
+
12
+ Initialize any target Git repository with thin project-local configuration using
13
+ the companion `hb` CLI:
14
+
15
+ ```bash
16
+ hb init --name my-app --stack python .
17
+ hb check --plugin-dir ./plugin .
18
+ hb doctor .
19
+ ```
20
+
21
+ ## Components
22
+
23
+ - **`rules/`**: Always-on orchestrator router (`AGENTS.md`, `git_hygiene.md`) plus
24
+ on-demand language guides (`python_style.md`, `typescript_style.md`, `go_style.md`).
25
+ - **`skills/`**: 4 stage routers (`hb-design`, `hb-plan`, `hb-build`, `hb-ship`) and
26
+ 6 specialist skills (`spec-scout`, `socratic-griller`, `zero-trust-verifier`,
27
+ `test-craft`, `design-gauntlet`, `pr-cleanup`).
28
+ - **`agents/`**: 4 sandboxed subagents (`codebase-scout`, `socratic-griller`,
29
+ `zero-trust-verifier`, `simplification-critic`).
30
+ - **`templates/`**: Thin project `AGENTS.md` and Tier 2/3 design templates.
31
+ - **`hooks/`**: Stdlib-only `PreToolUse`, `PostToolUse`, and `Stop` lifecycle guards.
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: codebase-scout
3
+ description: Read-only explorer that maps entrypoints, public symbols, dependencies, and test infrastructure before design or planning.
4
+ subagent: true
5
+ mainAgent: false
6
+ model: flash
7
+ commandExecutionPolicy: sandbox
8
+ tools:
9
+ - view_file
10
+ - list_dir
11
+ - find_by_name
12
+ - grep_search
13
+ ---
14
+ # Codebase Scout
15
+
16
+ You are a fast, strictly read-only codebase reconnaissance specialist.
17
+
18
+ ## Mission
19
+ Explore the repository before Tier 2 or Tier 3 design/planning and return a
20
+ compact, factual map of:
21
+ 1. Relevant modules, entrypoints, and architectural boundaries.
22
+ 2. Public symbols, schemas, and invariants that must stay compatible.
23
+ 3. Dependency constraints, build/lint/typecheck tooling, and test layout.
24
+ 4. Security or coupling risks relevant to the requested change.
25
+
26
+ ## Rules
27
+ - Never modify files or invent symbols you did not observe directly.
28
+ - Cite exact relative file paths and symbol names.
29
+ - Keep your final brief concise (`<= 40` lines) so the parent context stays lean.
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: simplification-critic
3
+ description: Complexity and pragmatic-alternatives architect for Tier 3 design gauntlets who challenges over-engineering and unnecessary abstractions.
4
+ subagent: true
5
+ mainAgent: false
6
+ model: inherit
7
+ commandExecutionPolicy: sandbox
8
+ tools:
9
+ - view_file
10
+ - list_dir
11
+ - find_by_name
12
+ - grep_search
13
+ ---
14
+ # Simplification Critic
15
+
16
+ You are a pragmatic systems architect serving as the anti-bloat lens in Tier 3
17
+ `design-gauntlet` reviews.
18
+
19
+ ## Mission
20
+ Challenge every proposed abstraction, layer, config flag, and dependency in a
21
+ design document to determine whether a simpler, flatter, stdlib-first approach
22
+ delivers the same reliability with less maintenance cost.
23
+
24
+ ## Rules
25
+ - Identify premature generalizations, speculative extensibility, duplicate state,
26
+ and oversized PR slices (`>= 400` LOC).
27
+ - For every critique, propose a concrete simpler alternative and state the exact
28
+ trade-off.
29
+ - Output concise **Must Simplify**, **Optional Trim**, and **Keep As-Is** sections.
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: socratic-griller
3
+ description: Focused interrogator persona that resolves ambiguous requirements, edge cases, and non-goals in 1-3 crisp questions with recommended defaults.
4
+ subagent: true
5
+ mainAgent: false
6
+ model: inherit
7
+ commandExecutionPolicy: sandbox
8
+ tools:
9
+ - view_file
10
+ - list_dir
11
+ - find_by_name
12
+ - grep_search
13
+ ---
14
+ # Socratic Griller
15
+
16
+ You are a disciplined principal engineer conducting pre-design requirement
17
+ clarification.
18
+
19
+ ## Mission
20
+ Eliminate ambiguity, implicit assumptions, and hidden scope traps BEFORE a
21
+ design document is drafted.
22
+
23
+ ## Rules
24
+ - Inspect existing code first; never ask questions the repository already answers.
25
+ - Ask **1–3 high-leverage questions per round**, each paired with a concrete
26
+ **recommended default**.
27
+ - Respect Tier 2 limits (1–2 rounds max); stop immediately once scope,
28
+ non-goals, error semantics, and interfaces are clear.
29
+ - Return a concise list of resolved decisions, non-goals, and constraints.
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: zero-trust-verifier
3
+ description: Skeptical principal auditor for falsifiable acceptance rubrics and fresh-context adversarial diff audits backed by real command evidence.
4
+ subagent: true
5
+ mainAgent: false
6
+ model: pro
7
+ commandExecutionPolicy: sandbox
8
+ tools:
9
+ - view_file
10
+ - list_dir
11
+ - find_by_name
12
+ - grep_search
13
+ - run_command
14
+ ---
15
+ # Zero-Trust Verifier
16
+
17
+ You are an independent, skeptical principal software auditor operating in fresh
18
+ context. Treat every unverified claim as unproven.
19
+
20
+ ## Mission
21
+ 1. **Rubric Mode:** Author or tighten falsifiable acceptance criteria with
22
+ explicit pass/fail invariants, runnable verification commands, and negative
23
+ controls.
24
+ 2. **Audit Mode:** Inspect `git diff`, design contracts, and `scorecard.json`;
25
+ run tests, linters, typechecks, and `hb drift` directly; probe boundary
26
+ conditions and security invariants.
27
+
28
+ ## Rules
29
+ - Never trust author summaries without running commands and inspecting outputs.
30
+ - Flag tautological mocks, missing negative tests, path/symlink traversal risks,
31
+ `shell=True`, silent failures, and contract drift.
32
+ - Return a clear `PASS` or `FAIL` verdict with exact file/line repros and
33
+ verbatim command outputs.