opencastle 1.4.3 → 1.6.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/dist/cli/adapters/claude-code.d.ts.map +1 -1
- package/dist/cli/adapters/claude-code.js +1 -0
- package/dist/cli/adapters/claude-code.js.map +1 -1
- package/dist/cli/adapters/single-file-base.d.ts +8 -0
- package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
- package/dist/cli/adapters/single-file-base.js +48 -22
- package/dist/cli/adapters/single-file-base.js.map +1 -1
- package/dist/cli/bootstrap-on-init.test.js +16 -5
- package/dist/cli/bootstrap-on-init.test.js.map +1 -1
- package/dist/cli/bootstrap.d.ts +17 -0
- package/dist/cli/bootstrap.d.ts.map +1 -1
- package/dist/cli/bootstrap.js +284 -312
- package/dist/cli/bootstrap.js.map +1 -1
- package/dist/cli/bootstrap.test.js +22 -16
- package/dist/cli/bootstrap.test.js.map +1 -1
- package/dist/cli/command-namespace.test.js +17 -0
- package/dist/cli/command-namespace.test.js.map +1 -1
- package/dist/cli/convoy/engine.d.ts +12 -0
- package/dist/cli/convoy/engine.d.ts.map +1 -1
- package/dist/cli/convoy/engine.git.test.js +55 -0
- package/dist/cli/convoy/engine.git.test.js.map +1 -1
- package/dist/cli/convoy/engine.js +47 -3
- package/dist/cli/convoy/engine.js.map +1 -1
- package/dist/cli/convoy/findings.d.ts +35 -0
- package/dist/cli/convoy/findings.d.ts.map +1 -0
- package/dist/cli/convoy/findings.js +100 -0
- package/dist/cli/convoy/findings.js.map +1 -0
- package/dist/cli/convoy/findings.test.d.ts +2 -0
- package/dist/cli/convoy/findings.test.d.ts.map +1 -0
- package/dist/cli/convoy/findings.test.js +75 -0
- package/dist/cli/convoy/findings.test.js.map +1 -0
- package/dist/cli/convoy/isolation.d.ts.map +1 -1
- package/dist/cli/convoy/isolation.js +2 -1
- package/dist/cli/convoy/isolation.js.map +1 -1
- package/dist/cli/convoy/worktree.d.ts +5 -0
- package/dist/cli/convoy/worktree.d.ts.map +1 -1
- package/dist/cli/convoy/worktree.js +12 -0
- package/dist/cli/convoy/worktree.js.map +1 -1
- package/dist/cli/detect.d.ts +4 -0
- package/dist/cli/detect.d.ts.map +1 -1
- package/dist/cli/detect.js +1 -1
- package/dist/cli/detect.js.map +1 -1
- package/dist/cli/docs-accuracy.test.js +34 -0
- package/dist/cli/docs-accuracy.test.js.map +1 -1
- package/dist/cli/doctor.d.ts +11 -0
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +74 -10
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/doctor.test.js +82 -1
- package/dist/cli/doctor.test.js.map +1 -1
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +58 -53
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/init.test.js +32 -28
- package/dist/cli/init.test.js.map +1 -1
- package/dist/cli/layers.d.ts +20 -0
- package/dist/cli/layers.d.ts.map +1 -1
- package/dist/cli/layers.js +53 -1
- package/dist/cli/layers.js.map +1 -1
- package/dist/cli/layers.test.js +67 -1
- package/dist/cli/layers.test.js.map +1 -1
- package/dist/cli/lessons.d.ts +10 -0
- package/dist/cli/lessons.d.ts.map +1 -1
- package/dist/cli/lessons.js +26 -1
- package/dist/cli/lessons.js.map +1 -1
- package/dist/cli/lessons.test.js +38 -1
- package/dist/cli/lessons.test.js.map +1 -1
- package/dist/cli/log.d.ts +2 -2
- package/dist/cli/log.d.ts.map +1 -1
- package/dist/cli/log.js +1 -1
- package/dist/cli/log.js.map +1 -1
- package/dist/cli/log.test.js +1 -1
- package/dist/cli/log.test.js.map +1 -1
- package/dist/cli/managed-paths.d.ts +1 -1
- package/dist/cli/managed-paths.d.ts.map +1 -1
- package/dist/cli/managed-paths.js +0 -1
- package/dist/cli/managed-paths.js.map +1 -1
- package/dist/cli/plan.test.js +10 -8
- package/dist/cli/plan.test.js.map +1 -1
- package/dist/cli/project-facts.d.ts +103 -0
- package/dist/cli/project-facts.d.ts.map +1 -0
- package/dist/cli/project-facts.js +577 -0
- package/dist/cli/project-facts.js.map +1 -0
- package/dist/cli/project-facts.test.d.ts +2 -0
- package/dist/cli/project-facts.test.d.ts.map +1 -0
- package/dist/cli/project-facts.test.js +209 -0
- package/dist/cli/project-facts.test.js.map +1 -0
- package/dist/cli/stack-config.js +1 -1
- package/dist/cli/stack-config.js.map +1 -1
- package/dist/cli/sync-check.test.js +14 -2
- package/dist/cli/sync-check.test.js.map +1 -1
- package/dist/orchestrator/plugins/notion/config.d.ts.map +1 -1
- package/dist/orchestrator/plugins/notion/config.js +21 -17
- package/dist/orchestrator/plugins/notion/config.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/adapters/claude-code.ts +1 -0
- package/src/cli/adapters/single-file-base.ts +63 -31
- package/src/cli/bootstrap-on-init.test.ts +17 -5
- package/src/cli/bootstrap.test.ts +22 -16
- package/src/cli/bootstrap.ts +361 -373
- package/src/cli/command-namespace.test.ts +17 -0
- package/src/cli/convoy/engine.git.test.ts +59 -0
- package/src/cli/convoy/engine.ts +53 -2
- package/src/cli/convoy/findings.test.ts +86 -0
- package/src/cli/convoy/findings.ts +129 -0
- package/src/cli/convoy/isolation.ts +2 -1
- package/src/cli/convoy/worktree.ts +12 -0
- package/src/cli/detect.ts +1 -1
- package/src/cli/docs-accuracy.test.ts +42 -0
- package/src/cli/doctor.test.ts +101 -1
- package/src/cli/doctor.ts +77 -11
- package/src/cli/init.test.ts +31 -27
- package/src/cli/init.ts +62 -57
- package/src/cli/layers.test.ts +72 -1
- package/src/cli/layers.ts +52 -1
- package/src/cli/lessons.test.ts +48 -0
- package/src/cli/lessons.ts +27 -1
- package/src/cli/log.test.ts +1 -1
- package/src/cli/log.ts +2 -2
- package/src/cli/managed-paths.ts +0 -1
- package/src/cli/plan.test.ts +10 -8
- package/src/cli/project-facts.test.ts +228 -0
- package/src/cli/project-facts.ts +647 -0
- package/src/cli/stack-config.ts +1 -1
- package/src/cli/sync-check.test.ts +16 -2
- package/src/orchestrator/agent-workflows/data-pipeline.md +2 -2
- package/src/orchestrator/agent-workflows/feature-implementation.md +2 -2
- package/src/orchestrator/agent-workflows/schema-changes.md +1 -1
- package/src/orchestrator/agents/team-lead.agent.md +6 -6
- package/src/orchestrator/agents/testing-expert.agent.md +2 -2
- package/src/orchestrator/customizations/LESSONS-LEARNED.md +1 -1
- package/src/orchestrator/customizations/README.md +27 -84
- package/src/orchestrator/instructions/ai-optimization.instructions.md +6 -23
- package/src/orchestrator/instructions/general.instructions.md +22 -95
- package/src/orchestrator/plugins/astro/skills/astro-framework/SKILL.md +1 -3
- package/src/orchestrator/plugins/chrome-devtools/skills/browser-testing/SKILL.md +3 -5
- package/src/orchestrator/plugins/cloudflare/skills/cloudflare-platform/SKILL.md +2 -2
- package/src/orchestrator/plugins/contentful/skills/contentful-cms/SKILL.md +1 -1
- package/src/orchestrator/plugins/convex/skills/convex-database/SKILL.md +1 -3
- package/src/orchestrator/plugins/coolify/skills/coolify-deployment/SKILL.md +1 -1
- package/src/orchestrator/plugins/cypress/skills/cypress-testing/SKILL.md +1 -1
- package/src/orchestrator/plugins/drizzle/skills/drizzle-orm/SKILL.md +1 -1
- package/src/orchestrator/plugins/expo/skills/expo-development/SKILL.md +2 -2
- package/src/orchestrator/plugins/figma/skills/figma-design/SKILL.md +1 -3
- package/src/orchestrator/plugins/hetzner/skills/hetzner-cloud/SKILL.md +1 -1
- package/src/orchestrator/plugins/jira/skills/jira-management/SKILL.md +1 -3
- package/src/orchestrator/plugins/linear/skills/linear-task-management/SKILL.md +1 -3
- package/src/orchestrator/plugins/netlify/skills/netlify-deployment/SKILL.md +2 -2
- package/src/orchestrator/plugins/nextjs/skills/nextjs-framework/SKILL.md +13 -6
- package/src/orchestrator/plugins/notion/config.ts +21 -17
- package/src/orchestrator/plugins/notion/skills/notion-knowledge-management/SKILL.md +8 -16
- package/src/orchestrator/plugins/nx/skills/nx-workspace/SKILL.md +2 -4
- package/src/orchestrator/plugins/playwright/skills/playwright-testing/SKILL.md +1 -3
- package/src/orchestrator/plugins/prisma/skills/prisma-database/SKILL.md +1 -3
- package/src/orchestrator/plugins/resend/skills/resend-email/SKILL.md +2 -2
- package/src/orchestrator/plugins/sanity/skills/sanity-cms/SKILL.md +1 -3
- package/src/orchestrator/plugins/sentry/skills/sentry-monitoring/SKILL.md +1 -1
- package/src/orchestrator/plugins/slack/skills/slack-notifications/SKILL.md +1 -3
- package/src/orchestrator/plugins/strapi/skills/strapi-cms/SKILL.md +1 -3
- package/src/orchestrator/plugins/stripe/skills/stripe-payments/SKILL.md +4 -4
- package/src/orchestrator/plugins/supabase/skills/supabase-database/SKILL.md +3 -5
- package/src/orchestrator/plugins/teams/skills/teams-notifications/SKILL.md +1 -3
- package/src/orchestrator/plugins/trello/skills/trello-task-management/SKILL.md +1 -1
- package/src/orchestrator/plugins/turborepo/skills/turborepo-monorepo/SKILL.md +15 -88
- package/src/orchestrator/plugins/vercel/skills/vercel-deployment/SKILL.md +2 -2
- package/src/orchestrator/plugins/vitest/skills/vitest-testing/SKILL.md +17 -150
- package/src/orchestrator/prompts/assess-complexity.prompt.md +1 -0
- package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +38 -238
- package/src/orchestrator/prompts/brainstorm.prompt.md +1 -1
- package/src/orchestrator/prompts/create-skill.prompt.md +13 -67
- package/src/orchestrator/prompts/fix-convoy.prompt.md +1 -0
- package/src/orchestrator/prompts/fix-prd.prompt.md +1 -0
- package/src/orchestrator/prompts/generate-prd.prompt.md +1 -0
- package/src/orchestrator/prompts/implement-feature.prompt.md +6 -6
- package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +2 -2
- package/src/orchestrator/prompts/validate-convoy.prompt.md +1 -0
- package/src/orchestrator/prompts/validate-prd.prompt.md +1 -0
- package/src/orchestrator/skills/accessibility-standards/REFERENCE.md +17 -12
- package/src/orchestrator/skills/accessibility-standards/SKILL.md +1 -1
- package/src/orchestrator/skills/agent-hooks/HOOKS-REFERENCE.md +3 -5
- package/src/orchestrator/skills/agent-hooks/SKILL.md +8 -6
- package/src/orchestrator/skills/agent-memory/KNOWLEDGE-GRAPH.md +1 -1
- package/src/orchestrator/skills/agent-memory/SKILL.md +7 -16
- package/src/orchestrator/skills/api-patterns/SKILL.md +1 -1
- package/src/orchestrator/skills/code-commenting/SKILL.md +1 -1
- package/src/orchestrator/skills/context-map/REFERENCE.md +0 -2
- package/src/orchestrator/skills/context-map/SKILL.md +2 -2
- package/src/orchestrator/skills/data-engineering/REFERENCE.md +3 -9
- package/src/orchestrator/skills/data-engineering/SKILL.md +9 -16
- package/src/orchestrator/skills/decomposition/SKILL.md +1 -1
- package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +4 -4
- package/src/orchestrator/skills/documentation-standards/SKILL.md +5 -3
- package/src/orchestrator/skills/fast-review/REFERENCE.md +0 -2
- package/src/orchestrator/skills/fast-review/SKILL.md +5 -5
- package/src/orchestrator/skills/frontend-design/REFERENCE.md +6 -28
- package/src/orchestrator/skills/frontend-design/SKILL.md +19 -9
- package/src/orchestrator/skills/git-workflow/SKILL.md +1 -1
- package/src/orchestrator/skills/memory-merger/SKILL.md +13 -15
- package/src/orchestrator/skills/observability-logging/SKILL.md +2 -2
- package/src/orchestrator/skills/orchestration-protocols/REFERENCE.md +5 -9
- package/src/orchestrator/skills/orchestration-protocols/SKILL.md +6 -6
- package/src/orchestrator/skills/panel-majority-vote/REFERENCE.md +1 -5
- package/src/orchestrator/skills/panel-majority-vote/SKILL.md +1 -1
- package/src/orchestrator/skills/panel-majority-vote/panel-report.template.md +0 -2
- package/src/orchestrator/skills/performance-optimization/SKILL.md +2 -2
- package/src/orchestrator/skills/project-consistency/SKILL.md +2 -2
- package/src/orchestrator/skills/project-consistency/TEMPLATES.md +0 -4
- package/src/orchestrator/skills/react-development/SKILL.md +3 -3
- package/src/orchestrator/skills/security-hardening/SKILL.md +5 -5
- package/src/orchestrator/skills/self-improvement/LESSON-CATEGORIES.md +0 -2
- package/src/orchestrator/skills/self-improvement/SKILL.md +1 -1
- package/src/orchestrator/skills/seo-patterns/SKILL.md +1 -1
- package/src/orchestrator/skills/session-checkpoints/CHECKPOINT-TEMPLATE.md +0 -2
- package/src/orchestrator/skills/session-checkpoints/SKILL.md +1 -1
- package/src/orchestrator/skills/team-lead-reference/SKILL.md +3 -3
- package/src/orchestrator/skills/technical-writing/SKILL.md +8 -13
- package/src/orchestrator/skills/testing-workflow/SKILL.md +6 -6
- package/src/orchestrator/skills/typescript-best-practices/SKILL.md +1 -1
- package/src/orchestrator/skills/unslop/SKILL.md +1 -1
- package/src/orchestrator/skills/validation-gates/REFERENCE.md +6 -31
- package/src/orchestrator/skills/validation-gates/SKILL.md +12 -26
- package/src/orchestrator/skills/writing-for-agents/SKILL.md +2 -2
- package/src/orchestrator/customizations/AGENT-EXPERTISE.md +0 -325
- package/src/orchestrator/customizations/AGENT-FAILURES.md +0 -69
- package/src/orchestrator/customizations/AGENT-PERFORMANCE.md +0 -55
- package/src/orchestrator/customizations/DISPUTES.md +0 -162
- package/src/orchestrator/customizations/KNOWLEDGE-GRAPH.md +0 -10
- package/src/orchestrator/customizations/agents/skill-matrix.md +0 -111
- package/src/orchestrator/customizations/logs/events.ndjson +0 -0
- package/src/orchestrator/customizations/project/decisions.md +0 -31
- package/src/orchestrator/customizations/project/docs-structure.md +0 -34
- package/src/orchestrator/customizations/project/roadmap.md +0 -24
- package/src/orchestrator/skills/documentation-standards/WRITING-GUIDE.md +0 -39
- package/src/orchestrator/skills/frontend-design/COMPONENTS.md +0 -113
- /package/src/orchestrator/{customizations/logs/README.md → skills/observability-logging/LOG-SCHEMA.md} +0 -0
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
````markdown
|
|
2
|
-
# Dispute Records
|
|
3
|
-
|
|
4
|
-
Structured escalation records created when agents exhaust all automated resolution paths. Unlike the Dead Letter Queue (simple failure log), disputes are **formal action items for humans** — they package conflicting perspectives, prior attempts, and resolution options so a human can make an informed decision.
|
|
5
|
-
|
|
6
|
-
> **Review this file at the start of each session.** Pending disputes may block downstream work and need human input before proceeding.
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## When to Create a Dispute
|
|
11
|
-
|
|
12
|
-
Create a dispute record when **any** of these occur:
|
|
13
|
-
|
|
14
|
-
| Trigger | Typical Path |
|
|
15
|
-
|---------|-------------|
|
|
16
|
-
| Panel review BLOCKs 3 times | Fast review 3x FAIL → Panel → Panel 3x BLOCK → **Dispute** |
|
|
17
|
-
| Agent and reviewer fundamentally disagree on approach | Agent retries with reviewer feedback but keeps failing because the feedback conflicts with other constraints → **Dispute** |
|
|
18
|
-
| Conflicting acceptance criteria | Reviewer flags an issue, but fixing it would violate another acceptance criterion → **Dispute** |
|
|
19
|
-
| Architectural ambiguity | Multiple valid approaches exist, automated agents can't converge → **Dispute** |
|
|
20
|
-
| External dependency blocks resolution | Fix requires upstream library change, API access, or infrastructure action → **Dispute** |
|
|
21
|
-
|
|
22
|
-
**Do NOT create a dispute for:**
|
|
23
|
-
- Simple tool errors (MCP server down, build timeout) → use the DLQ
|
|
24
|
-
- Scope creep → use the DLQ with a redirect
|
|
25
|
-
- First or second failure → retry automatically
|
|
26
|
-
|
|
27
|
-
## Dispute Record Format
|
|
28
|
-
|
|
29
|
-
```markdown
|
|
30
|
-
### DSP-XXX: Short description of the disagreement
|
|
31
|
-
|
|
32
|
-
| Field | Value |
|
|
33
|
-
|-------|-------|
|
|
34
|
-
| **Date** | YYYY-MM-DD |
|
|
35
|
-
| **Priority** | `critical` / `high` / `medium` / `low` |
|
|
36
|
-
| **Tracker Issue** | PRJ-XX |
|
|
37
|
-
| **Trigger** | `panel-3x-block` / `approach-conflict` / `criteria-conflict` / `architectural-ambiguity` / `external-dependency` |
|
|
38
|
-
| **Implementing Agent** | Agent name |
|
|
39
|
-
| **Reviewing Agent(s)** | Agent name(s) |
|
|
40
|
-
| **Attempts** | Total attempts (fast review + panel) |
|
|
41
|
-
| **Est. Tokens Spent** | ~XXK across all attempts |
|
|
42
|
-
| **Status** | `pending` / `resolved` / `deferred` |
|
|
43
|
-
|
|
44
|
-
#### Context
|
|
45
|
-
|
|
46
|
-
Brief description of the task and what was being implemented.
|
|
47
|
-
|
|
48
|
-
#### Agent's Position
|
|
49
|
-
|
|
50
|
-
What the implementing agent produced and why it believes the approach is correct.
|
|
51
|
-
Include specific file paths and code references.
|
|
52
|
-
|
|
53
|
-
#### Reviewer's Position
|
|
54
|
-
|
|
55
|
-
What the reviewer(s) flagged and why they believe changes are needed.
|
|
56
|
-
Include the specific MUST-FIX items from the last review attempt.
|
|
57
|
-
|
|
58
|
-
#### Attempt History
|
|
59
|
-
|
|
60
|
-
| # | Type | Verdict | Key Feedback |
|
|
61
|
-
|---|------|---------|-------------|
|
|
62
|
-
| 1 | Fast review | FAIL | [one-line summary] |
|
|
63
|
-
| 2 | Fast review | FAIL | [one-line summary] |
|
|
64
|
-
| 3 | Fast review | FAIL → escalate | [one-line summary] |
|
|
65
|
-
| 4 | Panel (attempt 1) | BLOCK (1/3 PASS) | [one-line summary] |
|
|
66
|
-
| 5 | Panel (attempt 2) | BLOCK (0/3 PASS) | [one-line summary] |
|
|
67
|
-
| 6 | Panel (attempt 3) | BLOCK (1/3 PASS) | [one-line summary] |
|
|
68
|
-
|
|
69
|
-
#### Resolution Options
|
|
70
|
-
|
|
71
|
-
Present 2-3 concrete options for the human decision-maker:
|
|
72
|
-
|
|
73
|
-
1. **Option A: [Accept agent's approach]** — Rationale: ... Risk: ...
|
|
74
|
-
2. **Option B: [Accept reviewer's feedback]** — Rationale: ... Risk: ...
|
|
75
|
-
3. **Option C: [Alternative approach]** — Rationale: ... Risk: ...
|
|
76
|
-
|
|
77
|
-
#### Recommended Action
|
|
78
|
-
|
|
79
|
-
Which option the Team Lead recommends and why. Include specific next steps:
|
|
80
|
-
- [ ] Human decides on option A/B/C
|
|
81
|
-
- [ ] If A: merge as-is, create follow-up ticket for reviewer concerns
|
|
82
|
-
- [ ] If B: re-delegate with explicit instruction to [specific change]
|
|
83
|
-
- [ ] If C: [describe the alternative path]
|
|
84
|
-
|
|
85
|
-
#### Artifacts
|
|
86
|
-
|
|
87
|
-
Links to evidence for human review:
|
|
88
|
-
- Panel report: `.opencastle/logs/panel/[panel-key].md`
|
|
89
|
-
- Review log entries: `.opencastle/logs/events.ndjson` (filter by `type: "review"` and issue)
|
|
90
|
-
- Changed files: [list of files in the last attempt]
|
|
91
|
-
- DLQ entry (if any): `DLQ-XXX`
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## Priority Guidelines
|
|
95
|
-
|
|
96
|
-
| Priority | Criteria | Expected Human Response Time |
|
|
97
|
-
|----------|----------|------------------------------|
|
|
98
|
-
| `critical` | Blocks other in-progress work; overnight run stopped | Same day |
|
|
99
|
-
| `high` | Blocks the current feature; no workaround | Within 2 days |
|
|
100
|
-
| `medium` | Feature can proceed without this subtask | Within 1 week |
|
|
101
|
-
| `low` | Nice-to-have; deferrable | Next planning session |
|
|
102
|
-
|
|
103
|
-
## Lifecycle
|
|
104
|
-
|
|
105
|
-
```
|
|
106
|
-
┌──────────────────────────────────────┐
|
|
107
|
-
│ Automated resolution exhausted │
|
|
108
|
-
│ (3x panel BLOCK or approach conflict)│
|
|
109
|
-
└──────────────┬───────────────────────┘
|
|
110
|
-
│
|
|
111
|
-
▼
|
|
112
|
-
┌──────────────────────────────────────┐
|
|
113
|
-
│ Team Lead creates dispute record │
|
|
114
|
-
│ Status: pending │
|
|
115
|
-
│ Logs to events.ndjson │
|
|
116
|
-
│ Links to tracker issue │
|
|
117
|
-
└──────────────┬───────────────────────┘
|
|
118
|
-
│
|
|
119
|
-
▼
|
|
120
|
-
┌──────────────────────────────────────┐
|
|
121
|
-
│ Human reviews dispute │
|
|
122
|
-
│ Picks resolution option │
|
|
123
|
-
│ Updates Status → resolved/deferred │
|
|
124
|
-
└──────────────┬───────────────────────┘
|
|
125
|
-
│
|
|
126
|
-
┌─────────┴──────────┐
|
|
127
|
-
▼ ▼
|
|
128
|
-
resolved deferred
|
|
129
|
-
(re-delegate (create follow-up
|
|
130
|
-
with human's ticket, continue
|
|
131
|
-
decision) with other work)
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
## Integration with DLQ
|
|
135
|
-
|
|
136
|
-
Disputes and DLQ entries serve different purposes:
|
|
137
|
-
|
|
138
|
-
| | Dead Letter Queue | Dispute Record |
|
|
139
|
-
|--|-------------------|----------------|
|
|
140
|
-
| **Purpose** | Diagnostic failure log | Actionable human decision |
|
|
141
|
-
| **When** | Tool errors, timeouts, simple failures | Unresolvable agent/reviewer conflicts |
|
|
142
|
-
| **Action** | Retry or investigate root cause | Human picks a resolution option |
|
|
143
|
-
| **Urgency** | Can wait for pattern analysis | Needs human input to unblock |
|
|
144
|
-
| **File** | `AGENT-FAILURES.md` | `DISPUTES.md` (this file) |
|
|
145
|
-
|
|
146
|
-
A dispute MAY reference a DLQ entry if the dispute escalated from a logged failure. Use the `DLQ-XXX` ID in the Artifacts section.
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
## Disputes
|
|
151
|
-
|
|
152
|
-
<!-- Disputes are appended here by the Team Lead during sessions.
|
|
153
|
-
Start numbering from DSP-001. -->
|
|
154
|
-
|
|
155
|
-
---
|
|
156
|
-
|
|
157
|
-
## Index
|
|
158
|
-
|
|
159
|
-
| ID | Date | Priority | Trigger | Tracker Issue | Status |
|
|
160
|
-
|----|------|----------|---------|-------------|--------|
|
|
161
|
-
|
|
162
|
-
````
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Knowledge Graph
|
|
2
|
-
|
|
3
|
-
<!-- Append-only relationship log capturing structured connections between files, agents, patterns, decisions, bugs, and lessons.
|
|
4
|
-
Used by the Team Lead to discover file dependencies, match agents to tasks, and surface relevant context during delegation.
|
|
5
|
-
See the agent-memory skill for the full protocol, entity types, and relationship types. -->
|
|
6
|
-
|
|
7
|
-
## Relationships
|
|
8
|
-
|
|
9
|
-
| Source | Relationship | Target | Added | Context |
|
|
10
|
-
|--------|-------------|--------|-------|---------|
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
# Skill Matrix
|
|
2
|
-
|
|
3
|
-
Maps abstract technology capabilities to concrete skill implementations. The matrix distinguishes two types of skills:
|
|
4
|
-
|
|
5
|
-
- **Binding slots** — Plugin-driven, technology-specific skills resolved at runtime (e.g., `database` → `supabase-database`). These change when the tech stack changes.
|
|
6
|
-
- **Core skills** — Hardcoded, stack-agnostic skills referenced directly in agent files (e.g., `validation-gates`, `security-hardening`, `performance-optimization`). These are always available regardless of plugins.
|
|
7
|
-
|
|
8
|
-
## Data File
|
|
9
|
-
|
|
10
|
-
The machine-readable bindings are in [`skill-matrix.json`](skill-matrix.json). The CLI (`opencastle init` and `opencastle sync`) reads and writes this file directly. Agents should read the JSON to resolve capability slots.
|
|
11
|
-
|
|
12
|
-
## How It Works
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
Agent file skill-matrix.json Skill file
|
|
16
|
-
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
17
|
-
│ Developer │ │ "framework": │ │ nextjs- │
|
|
18
|
-
│ needs: │──lookup──▶│ entries: [ │──load────▶│ framework │
|
|
19
|
-
│ framework │ │ {name, │ │ │
|
|
20
|
-
│ │ │ skill} │ │ │
|
|
21
|
-
│ │ │ ] │ │ │
|
|
22
|
-
└──────────────┘ └──────────────┘ └──────────────┘
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
1. **Agents** declare which capability slots they need (e.g., `framework`, `database`)
|
|
26
|
-
2. **`skill-matrix.json`** maps each slot to one or more technologies and their skill files
|
|
27
|
-
3. **When delegating**, resolve slots through the JSON to load the correct skill(s)
|
|
28
|
-
4. **To switch tech**, update only the binding entries — no agent files change
|
|
29
|
-
|
|
30
|
-
## Multiple Technologies Per Slot
|
|
31
|
-
|
|
32
|
-
A slot can have multiple entries. For example, a project using both Supabase and Prisma:
|
|
33
|
-
|
|
34
|
-
```json
|
|
35
|
-
"database": {
|
|
36
|
-
"entries": [
|
|
37
|
-
{ "name": "Supabase", "skill": "supabase-database" },
|
|
38
|
-
{ "name": "Prisma", "skill": "prisma-database" }
|
|
39
|
-
],
|
|
40
|
-
"description": "Schema, migrations, auth flow, roles"
|
|
41
|
-
}
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
When resolving, load **all** skills listed in the slot's entries.
|
|
45
|
-
|
|
46
|
-
## Switching Technologies
|
|
47
|
-
|
|
48
|
-
### Example: Migrate to a new plugin (Supabase → Azure)
|
|
49
|
-
|
|
50
|
-
1. Create (or install) the Azure plugin: `plugins/azure/SKILL.md` + `plugins/azure/config.ts`
|
|
51
|
-
2. Update `skill-matrix.json`: replace the database entries
|
|
52
|
-
3. Update `project.instructions.md` to reflect the new tech stack
|
|
53
|
-
4. **No agent files change** — Data Engineer, Security Expert still reference the `database` slot
|
|
54
|
-
|
|
55
|
-
### Example: Migrate to an existing plugin (Linear → Jira)
|
|
56
|
-
|
|
57
|
-
1. Plugin already exists: `plugins/jira/SKILL.md`
|
|
58
|
-
2. Update `skill-matrix.json`: replace the `task-management` entries
|
|
59
|
-
3. **No agent files change** — Team Lead still references the `task-management` slot
|
|
60
|
-
|
|
61
|
-
### Example: Switch knowledge-management tool (Notion → Confluence)
|
|
62
|
-
|
|
63
|
-
1. Create (or install) the Confluence plugin: `plugins/confluence/SKILL.md` + `plugins/confluence/config.ts`
|
|
64
|
-
2. Update `skill-matrix.json`: replace the `knowledge-management` entries
|
|
65
|
-
3. **No agent files change** — Team Lead, Researcher, Writer, and Architect still reference the `knowledge-management` slot
|
|
66
|
-
|
|
67
|
-
## Capability Slots Reference
|
|
68
|
-
|
|
69
|
-
| Slot | Description | Agents That Use It |
|
|
70
|
-
|------|-------------|-------------------|
|
|
71
|
-
| `framework` | SSR/SSG, routing, layouts | Developer, Writer |
|
|
72
|
-
| `database` | Schema, migrations, auth flow | Data Engineer, Security Expert |
|
|
73
|
-
| `cms` | Document types, queries | Content Engineer, Writer |
|
|
74
|
-
| `deployment` | Hosting, cron, env vars | DevOps & Release |
|
|
75
|
-
| `codebase-tool` | Task running, linting, testing | Architect, DevOps & Release |
|
|
76
|
-
| `testing` | Unit testing frameworks | Testing Expert |
|
|
77
|
-
| `e2e-testing` | Browser automation | UI/UX Expert, Testing Expert |
|
|
78
|
-
| `task-management` | Issue tracking, workflow states | Team Lead |
|
|
79
|
-
| `knowledge-management` | Knowledge base, research, ADRs, specs | Team Lead, Researcher, Writer, Architect |
|
|
80
|
-
| `design` | Design tokens, component inspection, asset export | UI/UX Expert |
|
|
81
|
-
| `email` | Transactional email, templates, delivery | Developer |
|
|
82
|
-
| `payments` | Payment processing, subscriptions, webhooks | Developer |
|
|
83
|
-
| `observability` | Error tracking, performance monitoring, tracing | DevOps & Release, Performance Expert |
|
|
84
|
-
| `notifications` | Team messaging, alerts, bot integrations | Developer |
|
|
85
|
-
|
|
86
|
-
### Example: Add a second plugin
|
|
87
|
-
|
|
88
|
-
1. Update `skill-matrix.json`: add another entry to the `framework` slot
|
|
89
|
-
2. Both framework skills will be loaded when agents resolve the `framework` slot
|
|
90
|
-
|
|
91
|
-
## Missing Plugin or Empty Slot
|
|
92
|
-
|
|
93
|
-
When resolving a capability slot, two failure cases can occur:
|
|
94
|
-
|
|
95
|
-
1. **Empty slot** — The slot's `entries` array is empty (no plugin installed for that technology). Example: an agent needs `database` but no database plugin was selected during `opencastle init`.
|
|
96
|
-
2. **Missing plugin** — The slot references a skill name (e.g., `"skill": "convex-database"`) but no matching plugin `SKILL.md` file exists on disk.
|
|
97
|
-
|
|
98
|
-
In both cases, **tell the user** that the capability is unavailable and why:
|
|
99
|
-
|
|
100
|
-
- *"The `database` slot has no entries in `skill-matrix.json`. Install a database plugin (e.g., `supabase`, `prisma`) via `opencastle add <plugin>`, or add entries manually."*
|
|
101
|
-
- *"The `database` slot references skill `convex-database`, but no matching plugin was found. Install the Convex plugin or run `opencastle sync` to fix the binding."*
|
|
102
|
-
|
|
103
|
-
**Do NOT silently skip the slot or proceed without the skill.** The agent should surface the gap clearly so the user can resolve it.
|
|
104
|
-
|
|
105
|
-
## Design Principles
|
|
106
|
-
|
|
107
|
-
1. **Single source of truth** — All skill assignments (slots and direct) live in `skill-matrix.json`, not in agent files
|
|
108
|
-
2. **Agents are stack-agnostic** — They describe *what* they need, not *which* tool they use
|
|
109
|
-
3. **Swap without rewriting** — Changing entries updates every agent that uses that slot
|
|
110
|
-
4. **Process skills are stable** — Methodology doesn't change with technology; direct skill references in the matrix are fine
|
|
111
|
-
5. **Capability slots are composable** — Agents can combine slots and direct skills freely (e.g., Security Expert uses the `database` slot + `security-hardening` direct skill)
|
|
File without changes
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<!-- Populated by agents. Add ADRs here when architectural decisions are made. -->
|
|
2
|
-
|
|
3
|
-
# Architecture Decision Records
|
|
4
|
-
|
|
5
|
-
Log of architectural decisions made during the project. Each ADR captures the context, decision, and consequences so future sessions understand why things are the way they are.
|
|
6
|
-
|
|
7
|
-
## How to Use
|
|
8
|
-
|
|
9
|
-
- **Before making an architectural decision:** Check existing ADRs for prior decisions in the same area
|
|
10
|
-
- **After making a decision:** Add a new ADR with the next available ID
|
|
11
|
-
- **When revisiting a decision:** Update the status to `Superseded` and reference the new ADR
|
|
12
|
-
|
|
13
|
-
## Decisions
|
|
14
|
-
|
|
15
|
-
### ADR-001: _Template — Short Decision Title_
|
|
16
|
-
|
|
17
|
-
| Field | Value |
|
|
18
|
-
|-------|-------|
|
|
19
|
-
| **ID** | ADR-001 |
|
|
20
|
-
| **Date** | YYYY-MM-DD |
|
|
21
|
-
| **Status** | Proposed / Accepted / Deprecated / Superseded |
|
|
22
|
-
|
|
23
|
-
**Context:** _What is the issue that we're seeing that motivates this decision?_
|
|
24
|
-
|
|
25
|
-
**Decision:** _What is the change that we're proposing and/or doing?_
|
|
26
|
-
|
|
27
|
-
**Consequences:** _What becomes easier or more difficult to do because of this change?_
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
_Add new ADRs above this line, incrementing the ID._
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# Documentation Structure
|
|
2
|
-
|
|
3
|
-
<!-- Populated by `opencastle init` based on project structure. -->
|
|
4
|
-
|
|
5
|
-
Project-specific documentation layout referenced by the `documentation-standards` skill.
|
|
6
|
-
|
|
7
|
-
Documentation files live in the `.opencastle/` directory alongside other project-specific configuration. Key documentation files:
|
|
8
|
-
|
|
9
|
-
- `.opencastle/KNOWN-ISSUES.md` — Tracked issues, limitations, and accepted risks
|
|
10
|
-
- `.opencastle/project/roadmap.md` — Project roadmap and feature status
|
|
11
|
-
- `.opencastle/project/decisions.md` — Architecture Decision Records
|
|
12
|
-
- `.opencastle/LESSONS-LEARNED.md` — Agent knowledge base of retries and workarounds
|
|
13
|
-
|
|
14
|
-
## Directory Tree
|
|
15
|
-
|
|
16
|
-
<!-- Map your project's documentation directory here if one exists -->
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
.opencastle/
|
|
20
|
-
├── KNOWN-ISSUES.md — Tracked issues and limitations
|
|
21
|
-
├── LESSONS-LEARNED.md — Agent knowledge base
|
|
22
|
-
└── project/
|
|
23
|
-
├── roadmap.md — Feature roadmap
|
|
24
|
-
├── decisions.md — Architecture Decision Records
|
|
25
|
-
└── docs-structure.md — This file
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Practices
|
|
29
|
-
|
|
30
|
-
- **Check Known Issues** before starting any task
|
|
31
|
-
- **Review Architecture** decisions for context
|
|
32
|
-
- **Update roadmap** after completing features
|
|
33
|
-
- **Add new issues** with: Issue ID, Status, Severity, Evidence, Root Cause, Solution Options
|
|
34
|
-
- **Archive** outdated docs rather than deleting
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- Populated by `opencastle init` or manually. -->
|
|
2
|
-
|
|
3
|
-
# Project Roadmap
|
|
4
|
-
|
|
5
|
-
High-level roadmap of planned features and improvements. Updated by agents as tasks are completed.
|
|
6
|
-
|
|
7
|
-
## How to Use
|
|
8
|
-
|
|
9
|
-
- **Before implementing a feature:** Check the roadmap for scope, status, and acceptance criteria
|
|
10
|
-
- **After completing a feature:** Mark the item with ✅, add the completion date and tracker issue IDs
|
|
11
|
-
- **When planning:** Add new items with priority and description
|
|
12
|
-
|
|
13
|
-
## Roadmap Items
|
|
14
|
-
|
|
15
|
-
| Status | Priority | Description | Tracker Issues |
|
|
16
|
-
|--------|----------|-------------|----------------|
|
|
17
|
-
| Planned | High | _Example: Short description of the feature_ | — |
|
|
18
|
-
|
|
19
|
-
### Status Values
|
|
20
|
-
|
|
21
|
-
- **Planned** — Scoped but not yet started
|
|
22
|
-
- **In Progress** — Actively being worked on
|
|
23
|
-
- **Done** — Completed and verified
|
|
24
|
-
- **Cancelled** — Removed from scope with documented reason
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
> Parent: [SKILL.md](./SKILL.md)
|
|
2
|
-
|
|
3
|
-
# Writing & Formatting Guide
|
|
4
|
-
|
|
5
|
-
## Voice & Tone
|
|
6
|
-
|
|
7
|
-
- **Imperative mood** for instructions: "Add the header" not "You should add the header"
|
|
8
|
-
- **Active voice**: "The function returns X" not "X is returned by the function"
|
|
9
|
-
- **Concise**: one idea per sentence; trim filler words (just, simply, basically, very)
|
|
10
|
-
|
|
11
|
-
## Formatting Rules
|
|
12
|
-
|
|
13
|
-
| Element | Convention |
|
|
14
|
-
|---------|-----------|
|
|
15
|
-
| Headings | Sentence case (`## Core principles`, not `## Core Principles`). Exception: proper nouns and acronyms. |
|
|
16
|
-
| Lists | Parallel structure — all items start with same part of speech |
|
|
17
|
-
| Code | Inline backticks for symbols/commands; fenced blocks for multi-line |
|
|
18
|
-
| Links | Descriptive text: `[migration guide](./migrate.md)` not `[click here](./migrate.md)` |
|
|
19
|
-
| Tables | Use for structured comparisons; keep columns ≤5 |
|
|
20
|
-
| Line length | Wrap prose at ~120 characters for diff readability |
|
|
21
|
-
|
|
22
|
-
## Markdown Standards
|
|
23
|
-
|
|
24
|
-
- One blank line before, after headings, code blocks, tables
|
|
25
|
-
- No trailing whitespace
|
|
26
|
-
- Files end with a single newline
|
|
27
|
-
- Use `---` for horizontal rules (sparingly)
|
|
28
|
-
- Prefer `-` for unordered lists
|
|
29
|
-
|
|
30
|
-
## Anti-Patterns
|
|
31
|
-
|
|
32
|
-
| Anti-pattern | Fix |
|
|
33
|
-
|-------------|-----|
|
|
34
|
-
| Walls of prose without structure | Break into headings, bullets, or tables |
|
|
35
|
-
| Duplicate content across docs | Link to canonical source |
|
|
36
|
-
| Stale "Last Updated" dates | Remove or automate; manual dates drift |
|
|
37
|
-
| TODO/FIXME placeholders in published docs | Resolve before merging |
|
|
38
|
-
| Screenshots without alt text | Add descriptive alt text for accessibility |
|
|
39
|
-
| Overly nested headings (h4+) | Flatten; if you need h4, consider splitting the doc |
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
> Parent: [SKILL.md](./SKILL.md)
|
|
2
|
-
|
|
3
|
-
# Frontend Design Components
|
|
4
|
-
|
|
5
|
-
Extended component patterns, card variants, hero animations for **frontend-design** skill.
|
|
6
|
-
|
|
7
|
-
## Design Tokens (starter)
|
|
8
|
-
|
|
9
|
-
```css
|
|
10
|
-
:root {
|
|
11
|
-
--color-bg: #0f1724;
|
|
12
|
-
--color-ink: #e6eef8;
|
|
13
|
-
--color-accent: #ff7a59;
|
|
14
|
-
--space-1: 4px;
|
|
15
|
-
--space-2: 8px;
|
|
16
|
-
--space-3: 16px;
|
|
17
|
-
--radius-1: 6px;
|
|
18
|
-
}
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Entrance Animation (starter)
|
|
22
|
-
|
|
23
|
-
```css
|
|
24
|
-
@keyframes fadeUp {
|
|
25
|
-
from { opacity: 0; transform: translateY(8px); }
|
|
26
|
-
to { opacity: 1; transform: translateY(0); }
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
30
|
-
.fade-in-up { animation: fadeUp 420ms cubic-bezier(.2,.9,.2,1) both; }
|
|
31
|
-
}
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Card Patterns
|
|
35
|
-
|
|
36
|
-
### Glass Card
|
|
37
|
-
|
|
38
|
-
```css
|
|
39
|
-
.card-glass {
|
|
40
|
-
background: rgba(255, 255, 255, 0.05);
|
|
41
|
-
backdrop-filter: blur(12px);
|
|
42
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
43
|
-
border-radius: var(--radius-1);
|
|
44
|
-
padding: var(--space-3);
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Elevated Card
|
|
49
|
-
|
|
50
|
-
```css
|
|
51
|
-
.card-elevated {
|
|
52
|
-
background: var(--color-bg);
|
|
53
|
-
border-radius: var(--radius-1);
|
|
54
|
-
padding: var(--space-3);
|
|
55
|
-
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
|
|
56
|
-
transition: transform 200ms ease, box-shadow 200ms ease;
|
|
57
|
-
}
|
|
58
|
-
.card-elevated:hover {
|
|
59
|
-
transform: translateY(-2px);
|
|
60
|
-
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
|
|
61
|
-
}
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Hero Animations
|
|
65
|
-
|
|
66
|
-
### Staggered Fade-In
|
|
67
|
-
|
|
68
|
-
```css
|
|
69
|
-
.hero-stagger > * {
|
|
70
|
-
opacity: 0;
|
|
71
|
-
transform: translateY(12px);
|
|
72
|
-
animation: fadeUp 500ms cubic-bezier(.2,.9,.2,1) forwards;
|
|
73
|
-
}
|
|
74
|
-
.hero-stagger > *:nth-child(1) { animation-delay: 0ms; }
|
|
75
|
-
.hero-stagger > *:nth-child(2) { animation-delay: 80ms; }
|
|
76
|
-
.hero-stagger > *:nth-child(3) { animation-delay: 160ms; }
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### Gradient Shift
|
|
80
|
-
|
|
81
|
-
```css
|
|
82
|
-
.hero-gradient {
|
|
83
|
-
background: linear-gradient(135deg, var(--color-accent), var(--color-bg));
|
|
84
|
-
background-size: 200% 200%;
|
|
85
|
-
animation: gradientShift 6s ease infinite;
|
|
86
|
-
}
|
|
87
|
-
@keyframes gradientShift {
|
|
88
|
-
0%, 100% { background-position: 0% 50%; }
|
|
89
|
-
50% { background-position: 100% 50%; }
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
## Button Variants
|
|
94
|
-
|
|
95
|
-
```css
|
|
96
|
-
.btn-primary {
|
|
97
|
-
background: var(--color-accent);
|
|
98
|
-
color: #fff;
|
|
99
|
-
padding: var(--space-2) var(--space-3);
|
|
100
|
-
border-radius: var(--radius-1);
|
|
101
|
-
font-weight: 600;
|
|
102
|
-
transition: opacity 150ms ease;
|
|
103
|
-
}
|
|
104
|
-
.btn-primary:hover { opacity: 0.9; }
|
|
105
|
-
|
|
106
|
-
.btn-ghost {
|
|
107
|
-
background: transparent;
|
|
108
|
-
color: var(--color-ink);
|
|
109
|
-
border: 1px solid currentColor;
|
|
110
|
-
padding: var(--space-2) var(--space-3);
|
|
111
|
-
border-radius: var(--radius-1);
|
|
112
|
-
}
|
|
113
|
-
```
|
|
File without changes
|