cc-codeconductor 0.4.2 → 0.4.3

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 (47) hide show
  1. package/README.md +74 -3
  2. package/dist/index.js +80 -28
  3. package/package.json +1 -1
  4. package/presets/agy/workflows/cc-pipeline.md +69 -0
  5. package/presets/laravel-tall/agents/architect.md +8 -0
  6. package/presets/laravel-tall/agents/implementer.md +12 -0
  7. package/presets/laravel-tall/laravel-tall.yml +38 -0
  8. package/presets/opencode/agents/architect.md +154 -61
  9. package/presets/opencode/agents/docs.md +126 -40
  10. package/presets/opencode/agents/implementer.md +100 -38
  11. package/presets/opencode/agents/orchestrator.md +41 -60
  12. package/presets/opencode/agents/repo-explorer.md +1 -1
  13. package/presets/opencode/agents/reviewer.md +142 -74
  14. package/presets/opencode/agents/task-coach.md +111 -59
  15. package/presets/opencode/prompts/v0.4.0/architect.md +221 -0
  16. package/presets/opencode/prompts/v0.4.0/complexity-auditor.md +89 -0
  17. package/presets/opencode/prompts/v0.4.0/docs.md +189 -0
  18. package/presets/opencode/prompts/v0.4.0/implementer.md +162 -0
  19. package/presets/opencode/prompts/v0.4.0/orchestrator.md +348 -0
  20. package/presets/opencode/prompts/v0.4.0/repo-explorer.md +110 -0
  21. package/presets/opencode/prompts/v0.4.0/reviewer.md +225 -0
  22. package/presets/opencode/prompts/v0.4.0/task-coach.md +155 -0
  23. package/presets/opencode/prompts/v0.4.0/tester.md +251 -0
  24. package/presets/opencode/skills/auth-token-inspector/SKILL.md +31 -0
  25. package/presets/opencode/skills/drizzle-schema-architect/SKILL.md +51 -0
  26. package/presets/opencode/skills/fastapi-pydantic-strict/SKILL.md +44 -0
  27. package/presets/opencode/skills/jpa-nplusone-detector/SKILL.md +46 -0
  28. package/presets/opencode/skills/livewire-alpine-bridge/SKILL.md +36 -0
  29. package/presets/opencode/skills/seo-analytics-injector/SKILL.md +44 -0
  30. package/presets/opencode/skills/spring-auth-auditor/SKILL.md +30 -0
  31. package/presets/opencode/skills/tailwind-responsive-auditor/SKILL.md +30 -0
  32. package/presets/opencode/skills/tdd-mutation-tester/SKILL.md +28 -0
  33. package/presets/python-data-api/agents/architect.md +8 -0
  34. package/presets/python-data-api/agents/implementer.md +9 -0
  35. package/presets/python-data-api/python-data-api.yml +37 -0
  36. package/presets/spring-kotlin-jpa/agents/architect.md +8 -0
  37. package/presets/spring-kotlin-jpa/agents/implementer.md +9 -0
  38. package/presets/spring-kotlin-jpa/spring-kotlin-jpa.yml +38 -0
  39. package/presets/ts-next-drizzle/agents/architect.md +8 -0
  40. package/presets/ts-next-drizzle/agents/implementer.md +10 -0
  41. package/presets/ts-next-drizzle/ts-next-drizzle.yml +41 -0
  42. package/src/presets/manifests/agy.yml +2 -2
  43. package/src/presets/manifests/claude.yml +2 -2
  44. package/src/presets/manifests/codex.yml +2 -2
  45. package/src/presets/manifests/cursor.yml +2 -2
  46. package/src/presets/manifests/gemini.yml +2 -2
  47. package/src/presets/manifests/opencode.yml +2 -2
package/README.md CHANGED
@@ -52,12 +52,41 @@ contracts, task cards, and risk-based routing.
52
52
  > installs the full preset (agents, prompts, skills, commands, settings) for the
53
53
  > chosen runner; use `--locale=es` to inject Spanish-aware instructions into
54
54
  > agent files, or rely on the locale saved during `init`
55
+ > - **Stack-specific presets (v0.4.0)**: `ts-next-drizzle`, `spring-kotlin-jpa`,
56
+ > `laravel-tall`, `python-data-api` — bundle `architect` + `implementer`
57
+ > contracts tuned to a single framework so `install preset` drops in the right
58
+ > defaults for that stack.
59
+ > - **9 specialized skills (v0.4.0)**: `drizzle-schema-architect`,
60
+ > `tailwind-responsive-auditor`, `seo-analytics-injector`,
61
+ > `jpa-nplusone-detector`, `spring-auth-auditor`, `livewire-alpine-bridge`,
62
+ > `fastapi-pydantic-strict`, `tdd-mutation-tester`, `auth-token-inspector` —
63
+ > loaded automatically by the matching preset.
64
+ > - **Workflow Loop Core (v0.4.0)** — 8-phase pipeline
65
+ > (`intake → structure → design → test → implement → validate → council →
66
+ > compact`) with operational guardrails (wall-clock timeout, max files
67
+ > modified, max lines changed) and human-in-the-loop STOP gates after Design
68
+ > and Council Verdict.
69
+ > - **Council consensus v0.4.0** — agent confidence thresholds
70
+ > (`< 0.6` per-agent or `< 0.7` average escalates) and a `complianceVeto`
71
+ > channel that overrides majority the same way `securityVeto` does.
72
+ > - **Goal orchestration (v0.4.0)** — `goal` planner writes
73
+ > `.codeconductor/current-goal.yml`; the orchestrator delegates tasks in
74
+ > dependency order and blocks dependents when a prerequisite is `blocked`.
75
+ > - **Memory compression + escalation emitter (v0.4.0)** — Phase 5 memory index
76
+ > + token budget hook keeps inter-agent context below the configured budget;
77
+ > the loop controller emits escalation reports when guardrails fire.
78
+ > - **Parallel subagents (v0.4.0)** — risk-based routing policy v0.4.0 enables
79
+ > parallel execution for eligible agent sequences (architect + implementer
80
+ > pattern, council verdict fan-out).
55
81
  > - Manual presets for OpenCode, Claude Code, and Codex
56
82
  > - Versioned Agent Contracts
57
83
  > - Routing Policy documentation
58
84
  > - Task Card, Scorecard, and workflow templates
59
85
  > - Spring Boot/Kotlin and Python/Django workflow guidance
60
86
  >
87
+ > See [docs/v0.4.0-release-notes.md](docs/v0.4.0-release-notes.md) for the
88
+ > full v0.4.0 feature breakdown.
89
+ >
61
90
  > What does not exist yet:
62
91
  >
63
92
  > - Runtime sandbox enforcement
@@ -131,14 +160,19 @@ Task Card → Risk Classification → Routing Policy → Conductor Agent → Del
131
160
  - Spring Boot / Kotlin workflow
132
161
  - Python / Django workflow guidance
133
162
  - 12 core Conductor Agents
134
- - Routing Policy v0.3.0
163
+ - Routing Policy v0.4.0
135
164
  - Task Card template
136
165
  - Scorecard template
137
166
  - End-to-end example
138
167
  - YAML-driven model configuration
139
168
  - Provider-agnostic `AgentContract` abstraction with target renderers for Claude, OpenCode, Codex, and Agy
140
- - Council consensus engine (`councilConsensus()`) for multi-agent governance with majority/unanimous algorithms and security veto
169
+ - Council consensus engine (`councilConsensus()`) for multi-agent governance with majority/unanimous algorithms, security veto, **compliance veto**, and **agent confidence thresholds** (v0.4.0)
141
170
  - Phase 5 runtime modules — scoped context injection, TDD history compaction, concise inter-agent messaging, and token budget enforcement in the compile-fix loop
171
+ - **Workflow Loop Core (v0.4.0)** — 8-phase pipeline (`runWorkflowPipeline`) with wall-clock / files-modified / lines-changed guardrails and STOP gates at Design and Council Verdict
172
+ - **Stack-specific presets (v0.4.0)** — `ts-next-drizzle`, `spring-kotlin-jpa`, `laravel-tall`, `python-data-api`
173
+ - **9 specialized skills (v0.4.0)** — drizzle-schema-architect, tailwind-responsive-auditor, seo-analytics-injector, jpa-nplusone-detector, spring-auth-auditor, livewire-alpine-bridge, fastapi-pydantic-strict, tdd-mutation-tester, auth-token-inspector
174
+ - **Goal orchestration (v0.4.0)** — `goal` planner + `goal-state` writer feed the orchestrator's dependency-order delegation loop
175
+ - **Memory compression + escalation emitter (v0.4.0)** — keeps inter-agent context within token budget and surfaces guardrail breaches as escalation reports
142
176
 
143
177
  ---
144
178
 
@@ -226,6 +260,43 @@ Files installed per target:
226
260
 
227
261
  With `--global`, files are written under `~/` instead of `./`.
228
262
 
263
+ #### Stack-specific presets (v0.4.0)
264
+
265
+ Four stack-specific presets now ship in `presets/` and are registered in
266
+ `src/core/presets/preset-registry.ts`. Each one bundles a tuned
267
+ `architect.md` and `implementer.md` for a single stack, plus the matching
268
+ specialized skills (see below).
269
+
270
+ | Preset | Stack | Contracts included |
271
+ | ------------------- | ---------------------------------------------------------- | ------------------------- |
272
+ | `ts-next-drizzle` | Next.js / Astro, Tailwind, Drizzle ORM, Bun, Postgres | `architect`, `implementer`|
273
+ | `spring-kotlin-jpa` | Spring Boot, Kotlin/Java, Gradle, JPA, Hibernate | `architect`, `implementer`|
274
+ | `laravel-tall` | Laravel, Blade, Livewire, Alpine.js | `architect`, `implementer`|
275
+ | `python-data-api` | Python, FastAPI, Django, uv | `architect`, `implementer`|
276
+
277
+ ```ts
278
+ // Programmatic access via the registry
279
+ import { listPresets, getPreset } from 'cc-codeconductor/core/presets/preset-registry';
280
+
281
+ listPresets();
282
+ // [
283
+ // { name: 'council', version: '0.1.0', ... },
284
+ // { name: 'seo-hotel', version: '0.3.0', ... },
285
+ // { name: 'ts-next-drizzle', version: '0.4.0', ... },
286
+ // { name: 'spring-kotlin-jpa', version: '0.4.0', ... },
287
+ // { name: 'laravel-tall', version: '0.4.0', ... },
288
+ // { name: 'python-data-api', version: '0.4.0', ... },
289
+ // ]
290
+
291
+ const next = getPreset('ts-next-drizzle');
292
+ ```
293
+
294
+ `init` / `detect` identifies the stack from the project and wires the
295
+ matching specialized skills automatically when you run `install preset`.
296
+ The full set of assets for a stack-specific preset is in
297
+ `presets/<preset-name>/agents/` — copy them manually if you need to apply a
298
+ preset by name.
299
+
229
300
  #### `install council` — install council spec
230
301
 
231
302
  ```bash
@@ -464,7 +535,7 @@ codeconductor/
464
535
  | ---------- | ----------------------------------------------------------- |
465
536
  | **v0.2.0** | **CLI: init, detect, install, doctor, update — shipped** ✅ |
466
537
  | v0.3.0 | Next.js, FastAPI, generic presets, monorepo support |
467
- | v0.4.0 | Provider compatibility matrix and target sync workflows |
538
+ | **v0.4.0** | **Workflow Loop Core, stack-specific presets, 9 specialized skills, confidence thresholds + compliance veto in council consensus, goal orchestration, memory compression — shipped** ✅ |
468
539
  | v0.5.0 | Scorecard CLI, task outcome tracking, prompt regression |
469
540
  | v1.0.0 | Stable contracts, stable routing, documented evaluation |
470
541
 
package/dist/index.js CHANGED
@@ -11126,7 +11126,7 @@ function validateCouncilSpec(data) {
11126
11126
  function validateConfig(data) {
11127
11127
  return CodeConductorConfigSchema.parse(data);
11128
11128
  }
11129
- var CouncilAgentSpecSchema, CouncilSpecSchema, ProjectProfileSchema, CompileCheckConfigSchema, LoopConfigSchema, CodeConductorConfigSchema, RunnerTargetSchema, InstallStrategySchema, ManifestEntrySchema, InstallManifestSchema, ToolProviderNamesSchema, PermissionProviderNamesSchema, ModelConfigSchema, ContractTargetSchema, ContractFormatSchema, AgentContractSchema, CouncilFindingSchema, CouncilVerdictInputSchema, ConsensusConfigSchema, CouncilVerdictSchema, ClaudeAgentFileSchema, OpenCodeAgentFileSchema, SentryStackFrameSchema, SentryWebhookSchema, GoalTaskSchema, GoalGraphSchema;
11129
+ var CouncilAgentSpecSchema, CouncilSpecSchema, ProjectProfileSchema, CompileCheckConfigSchema, LoopConfigSchema, CodeConductorConfigSchema, RunnerTargetSchema, InstallStrategySchema, ManifestEntrySchema, InstallManifestSchema, ToolProviderNamesSchema, PermissionProviderNamesSchema, ModelConfigSchema, ContractTargetSchema, ContractFormatSchema, AgentContractSchema, CouncilFindingSchema, CouncilVerdictInputSchema, ConsensusConfigSchema, CouncilVerdictSchema, ClaudeAgentFileSchema, OpenCodeAgentFileSchema, SentryStackFrameSchema, SentryWebhookSchema, MemoryPointerSchema, MemoryIndexSchema, GoalTaskSchema, GoalGraphSchema;
11130
11130
  var init_schemas = __esm(() => {
11131
11131
  init_zod();
11132
11132
  CouncilAgentSpecSchema = exports_external.object({
@@ -11313,6 +11313,18 @@ var init_schemas = __esm(() => {
11313
11313
  environment: exports_external.string().optional(),
11314
11314
  release: exports_external.string().optional()
11315
11315
  });
11316
+ MemoryPointerSchema = exports_external.object({
11317
+ topic_key: exports_external.string().min(1).max(128),
11318
+ id: exports_external.number().int().positive(),
11319
+ file: exports_external.string().min(1),
11320
+ summary: exports_external.string().min(1).max(200),
11321
+ timestamp: exports_external.string().datetime(),
11322
+ tags: exports_external.array(exports_external.string().max(64)).max(10).optional().default([])
11323
+ });
11324
+ MemoryIndexSchema = exports_external.object({
11325
+ version: exports_external.literal(1),
11326
+ pointers: exports_external.array(MemoryPointerSchema)
11327
+ });
11316
11328
  GoalTaskSchema = exports_external.object({
11317
11329
  id: exports_external.string(),
11318
11330
  title: exports_external.string(),
@@ -12154,7 +12166,7 @@ init_errors();
12154
12166
  // package.json
12155
12167
  var package_default = {
12156
12168
  name: "cc-codeconductor",
12157
- version: "0.4.2",
12169
+ version: "0.4.3",
12158
12170
  description: "A multi-agent orchestration framework for AI-assisted software engineering workflows.",
12159
12171
  keywords: [
12160
12172
  "ai",
@@ -13920,7 +13932,7 @@ async function writeConfig(projectRoot, config = {}, force = false) {
13920
13932
  init_package_paths();
13921
13933
 
13922
13934
  // src/core/presets/preset-resolver.ts
13923
- var CURRENT_PRESET_VERSION = "v0.3.0";
13935
+ var CURRENT_PRESET_VERSION = "v0.4.0";
13924
13936
  function resolvePreset(target, profile) {
13925
13937
  const stack = resolveStack(profile);
13926
13938
  const isMonorepo = profile.signals.some((s) => [
@@ -13983,17 +13995,17 @@ function resolveStack(profile) {
13983
13995
  function resolveAssets(target) {
13984
13996
  switch (target) {
13985
13997
  case "opencode":
13986
- return ["opencode.jsonc", "agents", "commands", "prompts/v0.3.0", "skills"];
13998
+ return ["opencode.jsonc", "agents", "commands", "prompts/v0.4.0", "skills"];
13987
13999
  case "claude":
13988
- return ["CLAUDE.md", "settings.json", "commands", "skills", "agents", "prompts/v0.3.0"];
14000
+ return ["CLAUDE.md", "settings.json", "commands", "skills", "agents", "prompts/v0.4.0"];
13989
14001
  case "codex":
13990
- return ["AGENTS.md", "skills", "prompts/v0.3.0"];
14002
+ return ["AGENTS.md", "skills", "prompts/v0.4.0"];
13991
14003
  case "gemini":
13992
- return ["agents", "prompts/v0.3.0"];
14004
+ return ["agents", "prompts/v0.4.0"];
13993
14005
  case "cursor":
13994
- return ["agents", "prompts/v0.3.0"];
14006
+ return ["agents", "prompts/v0.4.0"];
13995
14007
  case "agy":
13996
- return ["AGENTS.md", "rules", "workflows", "skills", "prompts/v0.3.0"];
14008
+ return ["AGENTS.md", "rules", "workflows", "skills", "prompts/v0.4.0"];
13997
14009
  }
13998
14010
  }
13999
14011
 
@@ -15708,6 +15720,14 @@ function renderHuman(inventory, defaultTarget) {
15708
15720
  lines.push(` - ${wf}`);
15709
15721
  }
15710
15722
  }
15723
+ lines.push("");
15724
+ lines.push("Stack-specific presets (v0.4.0):");
15725
+ lines.push(" ts-next-drizzle Next.js / Astro, Tailwind, Drizzle ORM, Bun, Postgres");
15726
+ lines.push(" spring-kotlin-jpa Spring Boot, Kotlin/Java, Gradle, JPA, Hibernate");
15727
+ lines.push(" laravel-tall Laravel, Blade, Livewire, Alpine.js");
15728
+ lines.push(" python-data-api Python, FastAPI, Django, uv");
15729
+ lines.push(" Browse: presets/<preset-name>/agents/ — copy into the target runner.");
15730
+ lines.push(" Registry: src/core/presets/preset-registry.ts (listPresets / getPreset).");
15711
15731
  return lines.join(`
15712
15732
  `);
15713
15733
  }
@@ -17537,27 +17557,47 @@ Usage: npx cc-codeconductor <command> [options]
17537
17557
 
17538
17558
  Commands:
17539
17559
  init Initialize CodeConductor in a project
17540
- detect Detect project stack and recommended presets
17541
- install council Install generated council spec files to runner targets
17542
- install preset Install full preset (agents, prompts, skills, commands)
17543
- install lsp Install and configure LSP servers for AI coding tools
17544
- seo audit Run SEO audit on a URL or sitemap
17545
- seo llms Generate llms.txt from a URL or sitemap
17546
- doctor Validate configuration and generated files
17547
- update Update installed presets
17548
- help / cc-help Show preset inventory (skills, subagents, commands)
17549
- debt-harvest / harvest Scan source files for deferred debt items
17550
- goal / cc-goal Plan goal into task graph with dependencies
17560
+ detect Detect project stack and recommended presets
17561
+ install council Install generated council spec files to runner targets
17562
+ install preset Install full preset (agents, prompts, skills, commands)
17563
+ install lsp Install and configure LSP servers for AI coding tools
17564
+ seo audit Run SEO audit on a URL or sitemap
17565
+ seo llms Generate llms.txt from a URL or sitemap
17566
+ doctor Validate configuration and generated files
17567
+ update Update installed presets
17568
+ help / cc-help Show preset inventory (skills, subagents, commands)
17569
+ debt-harvest / harvest Scan source files for deferred debt items
17570
+ goal / cc-goal Plan goal into task graph with dependencies
17551
17571
 
17552
17572
  Options:
17553
- --help, -h Show this help message
17554
- --version, -v Show package version
17555
- --dry-run Show what would happen without writing files
17556
- --force Allow overwriting existing files
17557
- --global Install to home directory (~/.claude, ~/.opencode, etc.)
17558
- --output, -o Output mode: human or json
17559
- --lang Comma-separated list of languages (e.g., typescript,php,python)
17560
- --locale Instruction language for agent files: en (default) | es
17573
+ --help, -h Show this help message
17574
+ --version, -v Show package version
17575
+ --dry-run Show what would happen without writing files
17576
+ --force Allow overwriting existing files
17577
+ --global Install to home directory (~/.claude, ~/.opencode, etc.)
17578
+ --output, -o Output mode: human or json
17579
+ --lang Comma-separated list of languages (e.g., typescript,php,python)
17580
+ --locale Instruction language for agent files: en (default) | es
17581
+ --target Runner target: opencode, claude, codex, gemini, cursor, agy, all
17582
+
17583
+ Stack-specific presets (v0.4.0, registered in preset-registry):
17584
+ ts-next-drizzle Next.js / Astro, Tailwind, Drizzle ORM, Bun, Postgres
17585
+ spring-kotlin-jpa Spring Boot, Kotlin/Java, Gradle, JPA, Hibernate
17586
+ laravel-tall Laravel, Blade, Livewire, Alpine.js
17587
+ python-data-api Python, FastAPI, Django, uv
17588
+ Listed programmatically via listPresets() in src/core/presets/preset-registry.ts.
17589
+ Stack detection wires matching specialized skills automatically when
17590
+ init/detect identifies the stack.
17591
+
17592
+ Workflow Loop Core (v0.4.0):
17593
+ runWorkflowPipeline() in src/core/pipeline/workflow-loop.ts runs the
17594
+ 8-phase loop (intake -> structure -> design -> test -> implement ->
17595
+ validate -> council -> compact) with wall-clock, files-modified and
17596
+ lines-changed guardrails and STOP gates after Design and Council.
17597
+
17598
+ Council consensus v0.4.0:
17599
+ Per-agent confidence thresholds (< 0.6 or average < 0.7 escalate)
17600
+ and a complianceVeto channel that overrides majority like securityVeto.
17561
17601
 
17562
17602
  Examples:
17563
17603
  npx cc-codeconductor init
@@ -17586,6 +17626,16 @@ Examples:
17586
17626
  npx cc-codeconductor seo audit --sitemap https://example.com/sitemap.xml --format markdown
17587
17627
  npx cc-codeconductor seo llms --sitemap https://example.com/sitemap.xml
17588
17628
  npx cc-codeconductor seo llms --url https://example.com --output llms.txt
17629
+ npx cc-codeconductor goal "Add user authentication"
17630
+ npx cc-codeconductor cc-goal "Implement CRUD for invoices"
17631
+ npx cc-codeconductor help --target opencode
17632
+ npx cc-codeconductor help --target claude --output json
17633
+
17634
+ Docs: https://github.com/lgzarturo/codeconductor/tree/main/docs
17635
+ docs/v0.4.0-release-notes.md v0.4.0 feature breakdown
17636
+ docs/routing-policy.md Risk-based routing (v0.4.0)
17637
+ docs/prompt-versioning.md Agent contract versions
17638
+ docs/usage-cli.md Detailed CLI reference
17589
17639
  `;
17590
17640
  }
17591
17641
  async function routeCommand(args, projectRoot) {
@@ -17744,6 +17794,8 @@ async function runCli(args) {
17744
17794
  const data = result.data;
17745
17795
  if ("help" in data) {
17746
17796
  console.log(data.help);
17797
+ } else if ("message" in data && typeof data.message === "string") {
17798
+ console.log(data.message);
17747
17799
  } else {
17748
17800
  if ("errors" in data && Array.isArray(data.errors) && data.errors.length > 0) {
17749
17801
  data.errors.forEach((e) => console.error(e));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-codeconductor",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "A multi-agent orchestration framework for AI-assisted software engineering workflows.",
5
5
  "keywords": [
6
6
  "ai",
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: cc-pipeline
3
+ description: Run the full 8-phase multi-agent workflow loop (Intake, Structure, Design, Test, Implement, Validate, Council, Compact).
4
+ ---
5
+
6
+ # Multi-Agent Workflow Pipeline Loop
7
+
8
+ Scope: $ARGUMENTS
9
+
10
+ This workflow orchestrates the complete 8-phase development loop, combining Ponytail minimalism, DDD→SDD→TDD pipeline, and autonomous governance.
11
+
12
+ ---
13
+
14
+ ## Phase 1 — Intake (task-coach)
15
+
16
+ The `task-coach` agent collects the raw request, refines it with the user, and validates that all fields of the Task Card are filled out (title, type, risk, scope, context, acceptance criteria, constraints).
17
+
18
+ ---
19
+
20
+ ## Phase 2 — Structure (prompt-structurer)
21
+
22
+ Prunes the Task Card of redundant context, wraps parameters in XML tags (`<context>`, `<constraints>`, `<task>`, `<scope>`), and retrieves lightweight AST signatures instead of complete files to minimize token footprints.
23
+
24
+ ---
25
+
26
+ ## Phase 3 — Design (architect)
27
+
28
+ The `architect` reads AST signatures, creates the Technical Plan, and defines the Edge Case Matrix detailing potential failure modes and boundary conditions.
29
+
30
+ > [!IMPORTANT]
31
+ > **STOP GATE (SDD SPECIFICATION GATE):** Pauses execution and requests manual operator approval before writing any code or tests.
32
+
33
+ ---
34
+
35
+ ## Phase 4 — Test (adversarial-tester)
36
+
37
+ The `adversarial-tester` writes the TDD RED tests verifying happy paths, edge cases, and parameters. The test suite must be run to confirm it fails for the correct reasons.
38
+
39
+ ---
40
+
41
+ ## Phase 5 — Implement (implementer)
42
+
43
+ The `implementer` writes the minimal code to satisfy the tests. The implementer must edit only files within the approved plan scope. If tests fail, run implement-test loop iterations (max 3) before escalating.
44
+
45
+ ---
46
+
47
+ ## Phase 6 — Validate (tester)
48
+
49
+ Runs validation checks:
50
+ 1. **Mutation Testing:** Automatically mutates operators and bounds to verify test assertions are strict (minimum score: 80%).
51
+ 2. **Diff Scope Audit:** Scans modified files to prevent out-of-scope code additions or speculative implementations.
52
+
53
+ ---
54
+
55
+ ## Phase 7 — Council Verdict (council)
56
+
57
+ Reviewer agents audit the diff on 6 axes: Architecture, Security, Product, Delivery, Compliance, and Devil.
58
+
59
+ - **Veto check:** Security and Compliance reviewers can apply overriding vetoes (`securityVeto` / `complianceVeto`) to block a change.
60
+ - **Confidence check:** Escalates to human operator if individual confidence < 0.6 or average confidence < 0.7.
61
+
62
+ > [!IMPORTANT]
63
+ > **STOP GATE (VERDICT/MERGE GATE):** Pauses execution after Council consensus to request final manual confirmation before compaction and delivery.
64
+
65
+ ---
66
+
67
+ ## Phase 8 — Compact (compaction-hook)
68
+
69
+ Prunes RED/GREEN iteration files and writes a persistent summary pointer to `.codeconductor/memory.md` to update the repository memory without exceeding the 40KB file boundary.
@@ -0,0 +1,8 @@
1
+ # Agent Contract: Laravel/Livewire Architect (v1.2.0)
2
+
3
+ ## Misión
4
+ Eres el agente arquitecto especializado en el stack TALL. Diseñas las soluciones y los DTOs, e invocas la skill `livewire-alpine-bridge` para estructurar la separación limpia entre PHP y JS.
5
+
6
+ ## Reglas
7
+ 1. **Estricto**: Diseña los componentes de Blade pensando en reutilización y modularidad.
8
+ 2. **Estricto**: No inventes dependencias externas; prefiere la librería estándar o las oficiales de Laravel (como Jetstream, Livewire).
@@ -0,0 +1,12 @@
1
+ # Agent Contract: Laravel/Livewire Implementer (v1.2.0)
2
+
3
+ ## Misión
4
+ Eres el agente implementador especializado en el stack TALL.
5
+ Tu única tarea es escribir el código que satisfaga el diseño (SDD) proveído por el Architect.
6
+ No debes proponer nuevas arquitecturas ni instalar dependencias sin escalar la petición.
7
+
8
+ ## Reglas y Restricciones (Hard Constraints)
9
+ 1. **Estricto:** Todo el estado reactivo del frontend DEBE manejarse mediante Alpine.js. Solo usa Livewire para mutaciones que requieran interacción con el backend o la base de datos de Postgres.
10
+ 2. **Estricto:** Las vistas de Blade deben usar el sistema de componentes anónimos y utilidades estandarizadas de Tailwind. Invocación obligatoria de la skill `tailwind-responsive-auditor` antes de terminar.
11
+ 3. **Boundary:** NO modifiques los archivos `.env` o la configuración de `Auth0` bajo ninguna circunstancia. Si necesitas variables de entorno, repórtalo en el Scorecard de salida.
12
+ 4. **TDD Obligatorio:** Si la Task Card tiene el tipo `feature`, debes asegurarte de compilar tu código junto a la suite de tests Pest de PHP.
@@ -0,0 +1,38 @@
1
+ name: laravel-tall
2
+ version: 0.4.0
3
+ description: Laravel TALL stack preset (Laravel, Blade, Livewire, Alpine.js)
4
+ outputContract: v1
5
+
6
+ agents:
7
+ - id: architect
8
+ role: Laravel/Livewire Architect
9
+ context: repo-readonly
10
+ modelHint: strong-reasoning
11
+ focus:
12
+ - laravel-tall
13
+ - livewire-alpine-bridge
14
+
15
+ - id: implementer
16
+ role: Laravel/Livewire Implementer
17
+ context: repo-write
18
+ modelHint: practical-coding
19
+ focus:
20
+ - laravel-tall
21
+ - livewire-alpine-bridge
22
+ - tailwind-responsive-auditor
23
+
24
+ - id: tester
25
+ role: Laravel Tester
26
+ context: repo-write
27
+ modelHint: practical-coding
28
+ focus:
29
+ - laravel-tall
30
+ - tdd-mutation-tester
31
+
32
+ - id: reviewer
33
+ role: Laravel Reviewer
34
+ context: repo-readonly
35
+ modelHint: analytical
36
+ focus:
37
+ - tailwind-responsive-auditor
38
+ - auth-token-inspector