sinapse-ai 9.3.0 → 9.4.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/CLAUDE.md +56 -343
- package/.claude/rules/agent-authority.md +6 -0
- package/.claude/rules/agent-handoff.md +5 -0
- package/.claude/rules/cross-squad-routing.md +5 -0
- package/.claude/rules/hook-governance.md +6 -0
- package/.claude/rules/mcp-usage.md +3 -1
- package/.claude/rules/safe-collaboration.md +10 -0
- package/.claude/rules/security-data-protection.md +9 -0
- package/.claude/rules/squad-awareness.md +3 -1
- package/.claude/rules/tool-examples.md +6 -0
- package/.claude/rules/workflow-execution.md +7 -0
- package/.codex/agents/analyst.md +253 -72
- package/.codex/agents/architect.md +455 -68
- package/.codex/agents/data-engineer.md +492 -106
- package/.codex/agents/developer.md +560 -0
- package/.codex/agents/devops.md +518 -69
- package/.codex/agents/product-lead.md +335 -0
- package/.codex/agents/project-lead.md +377 -0
- package/.codex/agents/quality-gate.md +449 -0
- package/.codex/agents/sinapse-orqx.md +9 -7
- package/.codex/agents/sprint-lead.md +287 -0
- package/.codex/agents/squad-creator.md +344 -0
- package/.codex/agents/ux-design-expert.md +495 -0
- package/.codex/delegation-matrix.json +756 -44
- package/.codex/handoff-packet.schema.json +30 -6
- package/.sinapse-ai/data/entity-registry.yaml +175 -363
- package/.sinapse-ai/data/registry-update-log.jsonl +16 -0
- package/.sinapse-ai/development/agents/analyst.md +90 -0
- package/.sinapse-ai/development/agents/architect.md +73 -0
- package/.sinapse-ai/development/agents/developer.md +69 -0
- package/.sinapse-ai/development/agents/devops.md +117 -0
- package/.sinapse-ai/development/agents/quality-gate.md +85 -0
- package/.sinapse-ai/development/checklists/agent-quality-gate.md +27 -0
- package/.sinapse-ai/development/checklists/brownfield-compatibility-checklist.md +20 -0
- package/.sinapse-ai/development/checklists/code-review-checklist.md +106 -0
- package/.sinapse-ai/development/checklists/issue-triage-checklist.md +9 -0
- package/.sinapse-ai/development/checklists/memory-audit-checklist.md +16 -0
- package/.sinapse-ai/development/checklists/pr-quality-checklist.md +72 -0
- package/.sinapse-ai/development/checklists/security-deployment-checklist.md +54 -0
- package/.sinapse-ai/development/checklists/self-critique-checklist.md +19 -1
- package/.sinapse-ai/development/skills/debug.md +57 -0
- package/.sinapse-ai/development/skills/fast-review.md +69 -0
- package/.sinapse-ai/development/skills/research-synthesis.md +77 -0
- package/.sinapse-ai/development/skills/security-scan.md +73 -0
- package/.sinapse-ai/development/skills/verify.md +53 -0
- package/.sinapse-ai/development/templates/squad/agent-template.md +17 -4
- package/.sinapse-ai/development/templates/squad/checklist-template.md +13 -5
- package/.sinapse-ai/development/templates/squad/task-template.md +7 -0
- package/.sinapse-ai/development/templates/squad/workflow-template.yaml +7 -0
- package/.sinapse-ai/development/workflows/fast-track.yaml +87 -0
- package/.sinapse-ai/infrastructure/scripts/validate-codex-delegation.js +3 -1
- package/.sinapse-ai/install-manifest.yaml +71 -35
- package/docs/codex-integration-process.md +22 -0
- package/docs/codex-parity-program.md +27 -0
- package/docs/ide-integration.md +36 -0
- package/package.json +1 -1
- package/squads/claude-code-mastery/knowledge-base/claude-code-internals-reference.md +927 -0
- package/squads/squad-brand/knowledge-base/archetype-brand-mapping.md +12 -1
- package/squads/squad-brand/knowledge-base/brand-activism-cultural-branding.md +216 -0
- package/squads/squad-brand/knowledge-base/brand-audit-criteria.md +58 -0
- package/squads/squad-brand/knowledge-base/brand-digital-strategy.md +188 -0
- package/squads/squad-brand/knowledge-base/brand-legal-ip.md +222 -0
- package/squads/squad-brand/knowledge-base/brand-naming-framework.md +163 -0
- package/squads/squad-brand/knowledge-base/branding-master-reference.md +1001 -0
- package/squads/squad-brand/knowledge-base/color-psychology.md +25 -12
- package/squads/squad-brand/knowledge-base/employer-personal-branding.md +206 -0
- package/squads/squad-brand/knowledge-base/routing-catalog.md +34 -0
- package/squads/squad-brand/knowledge-base/sonic-branding-principles.md +6 -1
- package/squads/squad-brand/knowledge-base/typography-personality.md +34 -0
- package/squads/squad-claude/knowledge-base/context-window-optimization.md +334 -0
- package/squads/squad-claude/knowledge-base/knowledge-architecture-reference.md +403 -0
- package/squads/squad-claude/knowledge-base/memory-systems-reference.md +412 -0
- package/squads/squad-claude/knowledge-base/obsidian-claude-integration.md +423 -0
- package/squads/squad-claude/knowledge-base/retrieval-augmented-generation.md +320 -0
- package/squads/squad-claude/knowledge-base/skill-creation-patterns.md +380 -0
- package/squads/squad-claude/knowledge-base/swarm-orchestration-patterns.md +411 -0
- package/squads/squad-cloning/knowledge-base/clone-quality-assurance.md +211 -0
- package/squads/squad-cloning/knowledge-base/confidence-scoring.md +51 -0
- package/squads/squad-cloning/knowledge-base/cross-squad-deployment.md +47 -0
- package/squads/squad-cloning/knowledge-base/ethical-guidelines.md +237 -0
- package/squads/squad-cloning/knowledge-base/knowledge-graph-for-clones.md +295 -0
- package/squads/squad-cloning/knowledge-base/memory-architecture-for-clones.md +229 -0
- package/squads/squad-cloning/knowledge-base/multi-agent-deployment-patterns.md +320 -0
- package/squads/squad-cloning/knowledge-base/skill-standard-for-clones.md +262 -0
- package/squads/squad-cloning/knowledge-base/sop-extraction-guide.md +243 -0
- package/squads/squad-commercial/knowledge-base/account-based-selling.md +206 -0
- package/squads/squad-commercial/knowledge-base/ai-as-competitive-infrastructure.md +14 -0
- package/squads/squad-commercial/knowledge-base/ai-in-sales.md +199 -0
- package/squads/squad-commercial/knowledge-base/brazilian-sales-context.md +195 -0
- package/squads/squad-commercial/knowledge-base/customer-success-operations.md +83 -2
- package/squads/squad-commercial/knowledge-base/prospecting-pipeline-generation.md +69 -0
- package/squads/squad-commercial/knowledge-base/sales-enablement-playbook.md +260 -0
- package/squads/squad-commercial/knowledge-base/sales-methodology-comparison.md +185 -0
- package/squads/squad-commercial/knowledge-base/sales-revenue-master-reference.md +1123 -0
- package/squads/squad-content/knowledge-base/brazilian-content-context.md +176 -0
- package/squads/squad-content/knowledge-base/competitor-analysis-methods.md +40 -1
- package/squads/squad-content/knowledge-base/content-architecture-taxonomy.md +206 -0
- package/squads/squad-content/knowledge-base/content-formats-encyclopedia.md +58 -1
- package/squads/squad-content/knowledge-base/content-references-bibliography.md +130 -0
- package/squads/squad-content/knowledge-base/content-strategy-master-reference.md +1097 -0
- package/squads/squad-content/knowledge-base/content-tech-stack.md +150 -0
- package/squads/squad-content/knowledge-base/copywriting-formulas-library.md +188 -0
- package/squads/squad-content/knowledge-base/email-newsletter-strategy.md +161 -0
- package/squads/squad-content/knowledge-base/platform-algorithm-intelligence.md +86 -1
- package/squads/squad-content/knowledge-base/social-algorithms-master-reference.md +1007 -0
- package/squads/squad-content/knowledge-base/video-audio-content-playbook.md +218 -0
- package/squads/squad-copy/knowledge-base/ai-copy-production.md +254 -0
- package/squads/squad-copy/knowledge-base/brazilian-copywriting-context.md +242 -0
- package/squads/squad-copy/knowledge-base/email-copywriting-system.md +299 -0
- package/squads/squad-copy/knowledge-base/landing-page-copy-architecture.md +267 -0
- package/squads/squad-copy/knowledge-base/power-words-catalog.md +205 -0
- package/squads/squad-copy/knowledge-base/seo-copywriting.md +255 -0
- package/squads/squad-copy/knowledge-base/video-script-copywriting.md +239 -0
- package/squads/squad-council/knowledge-base/brand-strategy-models.md +193 -0
- package/squads/squad-council/knowledge-base/growth-strategy-models.md +267 -0
- package/squads/squad-council/knowledge-base/innovation-disruption-frameworks.md +193 -0
- package/squads/squad-council/knowledge-base/market-analysis-frameworks.md +240 -0
- package/squads/squad-council/knowledge-base/organizational-leadership-models.md +212 -0
- package/squads/squad-council/knowledge-base/sales-strategy-models.md +215 -0
- package/squads/squad-courses/knowledge-base/course-launch-strategy.md +251 -0
- package/squads/squad-courses/knowledge-base/domain-advocacia-curriculum.md +385 -0
- package/squads/squad-courses/knowledge-base/domain-contabilidade-curriculum.md +266 -0
- package/squads/squad-courses/knowledge-base/platform-comparison.md +68 -0
- package/squads/squad-courses/knowledge-base/video-production-guide.md +70 -0
- package/squads/squad-cybersecurity/knowledge-base/cloud-security-reference.md +363 -0
- package/squads/squad-cybersecurity/knowledge-base/compliance-frameworks.md +273 -0
- package/squads/squad-cybersecurity/knowledge-base/database-security.md +438 -0
- package/squads/squad-cybersecurity/knowledge-base/incident-response-playbook.md +420 -0
- package/squads/squad-cybersecurity/knowledge-base/network-security-reference.md +477 -0
- package/squads/squad-cybersecurity/knowledge-base/penetration-testing-methodology.md +350 -0
- package/squads/squad-cybersecurity/knowledge-base/vulnerability-management.md +349 -0
- package/squads/squad-design/knowledge-base/brazilian-design-context.md +223 -0
- package/squads/squad-design/knowledge-base/component-api-patterns.md +208 -4
- package/squads/squad-design/knowledge-base/design-system-master-reference.md +1302 -0
- package/squads/squad-design/knowledge-base/design-systems-frameworks.md +91 -1
- package/squads/squad-design/knowledge-base/responsive-modern-css.md +96 -4
- package/squads/squad-design/knowledge-base/wcag-aria-reference.md +117 -5
- package/squads/squad-design/knowledge-base/web-performance-reference.md +127 -4
- package/squads/squad-finance/knowledge-base/brazilian-taxation.md +263 -0
- package/squads/squad-finance/knowledge-base/contabilidade-master-reference.md +998 -0
- package/squads/squad-finance/knowledge-base/finance-master-reference.md +946 -0
- package/squads/squad-finance/knowledge-base/financial-reporting-analysis.md +316 -0
- package/squads/squad-finance/knowledge-base/fintech-brazilian-context.md +242 -0
- package/squads/squad-finance/knowledge-base/fpa-planning-frameworks.md +286 -0
- package/squads/squad-finance/knowledge-base/ma-and-transactions.md +285 -0
- package/squads/squad-finance/knowledge-base/risk-management.md +233 -0
- package/squads/squad-finance/knowledge-base/startups-venture-capital.md +337 -0
- package/squads/squad-growth/knowledge-base/ai-growth-playbook.md +216 -0
- package/squads/squad-growth/knowledge-base/attribution-models.md +78 -0
- package/squads/squad-growth/knowledge-base/brazilian-growth-context.md +208 -0
- package/squads/squad-growth/knowledge-base/community-led-growth.md +175 -0
- package/squads/squad-growth/knowledge-base/content-marketing-flywheel.md +190 -0
- package/squads/squad-growth/knowledge-base/email-lifecycle-framework.md +192 -0
- package/squads/squad-growth/knowledge-base/growth-frameworks-catalog.md +82 -0
- package/squads/squad-growth/knowledge-base/growth-master-reference.md +1168 -0
- package/squads/squad-growth/knowledge-base/routing-catalog.md +53 -11
- package/squads/squad-paidmedia/knowledge-base/audiences-segmentation-deep.md +285 -0
- package/squads/squad-paidmedia/knowledge-base/creative-strategy-deep.md +294 -0
- package/squads/squad-paidmedia/knowledge-base/google-ads-account-architecture.md +87 -0
- package/squads/squad-paidmedia/knowledge-base/meta-ads-campaign-architecture.md +76 -0
- package/squads/squad-paidmedia/knowledge-base/paid-media-metrics-reference.md +117 -0
- package/squads/squad-paidmedia/knowledge-base/paid-traffic-master-reference.md +1308 -0
- package/squads/squad-paidmedia/knowledge-base/routing-catalog.md +95 -18
- package/squads/squad-paidmedia/knowledge-base/traffic-masters-frameworks.md +71 -0
- package/squads/squad-product/knowledge-base/brazilian-product-context.md +284 -0
- package/squads/squad-product/knowledge-base/discovery-methodology-playbook.md +141 -0
- package/squads/squad-product/knowledge-base/pm-frameworks-reference.md +125 -9
- package/squads/squad-product/knowledge-base/product-analytics-formulas.md +72 -0
- package/squads/squad-product/knowledge-base/product-led-growth-reference.md +155 -13
- package/squads/squad-product/knowledge-base/product-market-fit-framework.md +222 -0
- package/squads/squad-product/knowledge-base/routing-catalog.md +32 -0
- package/squads/squad-research/knowledge-base/agentic-second-brain-reference.md +591 -0
- package/squads/squad-research/knowledge-base/ai-augmented-research.md +212 -0
- package/squads/squad-research/knowledge-base/brazilian-market-research-sources.md +197 -0
- package/squads/squad-research/knowledge-base/community-platforms-reference.md +786 -0
- package/squads/squad-research/knowledge-base/community-research-methods.md +194 -0
- package/squads/squad-research/knowledge-base/mixed-methods-research-design.md +168 -0
- package/squads/squad-research/knowledge-base/network-effects-analysis.md +192 -0
- package/squads/squad-research/knowledge-base/qualitative-research-deep-methods.md +202 -0
- package/squads/squad-research/knowledge-base/quantitative-research-methods.md +208 -0
- package/squads/squad-research/knowledge-base/research-frameworks-encyclopedia.md +40 -0
- package/squads/squad-research/knowledge-base/research-synthesis-frameworks.md +223 -0
- package/squads/squad-storytelling/knowledge-base/brand-mythology-framework.md +236 -0
- package/squads/squad-storytelling/knowledge-base/brazilian-storytelling-context.md +237 -0
- package/squads/squad-storytelling/knowledge-base/data-storytelling.md +232 -0
- package/squads/squad-storytelling/knowledge-base/improv-storytelling.md +226 -0
- package/squads/squad-storytelling/knowledge-base/persuasion-narrative-techniques.md +269 -0
- package/squads/squad-storytelling/knowledge-base/social-movement-narratives.md +191 -0
- package/squads/squad-storytelling/knowledge-base/video-storytelling.md +252 -0
- package/squads/claude-code-mastery/data/swarm-orchestration-patterns.yaml +0 -378
- package/squads/squad-animations/knowledge-base/framer-motion-complete-reference.md +0 -710
- package/squads/squad-animations/knowledge-base/web-animations-api-view-transitions.md +0 -478
|
@@ -25,6 +25,15 @@ For each issue being triaged, verify:
|
|
|
25
25
|
- [ ] Related issues cross-referenced if applicable
|
|
26
26
|
- [ ] No sensitive information in issue (API keys, credentials)
|
|
27
27
|
|
|
28
|
+
### Security Assessment
|
|
29
|
+
- [ ] Checked if issue involves security vulnerability (if yes, mark `security`)
|
|
30
|
+
- [ ] Security issues assigned P1 by default unless triaged otherwise
|
|
31
|
+
- [ ] Verified no PII or credentials included in issue body or screenshots
|
|
32
|
+
|
|
33
|
+
### Sizing & Estimation
|
|
34
|
+
- [ ] Estimated PR size (< 400 lines preferred, flag if likely > 600)
|
|
35
|
+
- [ ] Identified if issue requires story (feature/enhancement) or fast-track (bug fix)
|
|
36
|
+
|
|
28
37
|
## Session Checklist
|
|
29
38
|
|
|
30
39
|
After completing a triage session:
|
|
@@ -52,3 +52,19 @@ Common patterns that typically appear in multiple agents:
|
|
|
52
52
|
| Conventional commits format | dev, qa, devops, analyst, sm, data-engineer, ux | Already in CLAUDE.md |
|
|
53
53
|
| kebab-case for files | dev, analyst, sm, data-engineer, ux | Already in CLAUDE.md |
|
|
54
54
|
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Step 7: Memory Health Checks (Research-Enriched)
|
|
58
|
+
|
|
59
|
+
- [ ] Verify no MEMORY.md exceeds 200 lines / 25KB (size limit)
|
|
60
|
+
- [ ] Check for contradictions between MEMORY.md files across agents
|
|
61
|
+
- [ ] Validate entries marked as "hints" not treated as ground truth
|
|
62
|
+
- [ ] Ensure stale patterns (> 90 days without validation) are flagged
|
|
63
|
+
- [ ] Confirm promotion candidates have been reviewed within 7 days of flagging
|
|
64
|
+
|
|
65
|
+
## Step 8: Memory-as-Hints Verification
|
|
66
|
+
|
|
67
|
+
- [ ] Each MEMORY.md has disclaimer: entries are hints, verify against codebase
|
|
68
|
+
- [ ] No memory entries reference deleted files or deprecated APIs
|
|
69
|
+
- [ ] Active patterns align with current codebase architecture decisions
|
|
70
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Checklist: PR Quality Gate
|
|
2
|
+
|
|
3
|
+
> Purpose: Validate pull requests meet size, convention, and review standards
|
|
4
|
+
> Used by: @devops (Pipeline), @quality-gate (Litmus)
|
|
5
|
+
> When: Before merging any PR to main
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## PR Size & Structure
|
|
10
|
+
|
|
11
|
+
- [ ] PR is under 400 lines changed (optimal: 50-200 lines)
|
|
12
|
+
- [ ] If > 400 lines, justified in PR description (or split into stacked PRs)
|
|
13
|
+
- [ ] PR addresses a single logical change (not multiple unrelated changes)
|
|
14
|
+
- [ ] PR title follows format: `type(scope): description` (< 70 chars)
|
|
15
|
+
- [ ] PR description includes Summary, Story Reference, and Test Plan
|
|
16
|
+
|
|
17
|
+
## Commit Conventions
|
|
18
|
+
|
|
19
|
+
- [ ] All commits follow Conventional Commits (`feat:`, `fix:`, `docs:`, etc.)
|
|
20
|
+
- [ ] Commit messages have imperative mood description (< 72 chars)
|
|
21
|
+
- [ ] No WIP or fixup commits in final PR (squash before merge)
|
|
22
|
+
- [ ] Breaking changes use `!` suffix or `BREAKING CHANGE:` footer
|
|
23
|
+
- [ ] Story ID referenced in commit or PR body
|
|
24
|
+
|
|
25
|
+
## DORA Metrics Alignment
|
|
26
|
+
|
|
27
|
+
- [ ] PR open-to-merge time target: < 24 hours
|
|
28
|
+
- [ ] Time to first review target: < 4 hours
|
|
29
|
+
- [ ] Review cycles: <= 2 rounds before approval
|
|
30
|
+
- [ ] No PR blocked for > 48 hours without escalation
|
|
31
|
+
|
|
32
|
+
## Code Review
|
|
33
|
+
|
|
34
|
+
- [ ] At least 1 human reviewer approved
|
|
35
|
+
- [ ] CODEOWNERS review satisfied (if configured)
|
|
36
|
+
- [ ] Review comments use standard prefixes (`nit:`, `issue:`, `blocker:`)
|
|
37
|
+
- [ ] All `blocker:` and `issue:` comments resolved before merge
|
|
38
|
+
- [ ] Self-review completed by author before requesting review
|
|
39
|
+
|
|
40
|
+
## CI/CD Checks
|
|
41
|
+
|
|
42
|
+
- [ ] All required status checks pass (lint, typecheck, test, build)
|
|
43
|
+
- [ ] No new lint warnings introduced
|
|
44
|
+
- [ ] Test coverage not decreased
|
|
45
|
+
- [ ] No `npm audit` critical/high vulnerabilities introduced
|
|
46
|
+
- [ ] Branch is up-to-date with main (no stale merges)
|
|
47
|
+
|
|
48
|
+
## AI-Specific Checks
|
|
49
|
+
|
|
50
|
+
- [ ] AI-generated commits include `Co-Authored-By:` trailer
|
|
51
|
+
- [ ] Agent identity clear in PR (which agent created the changes)
|
|
52
|
+
- [ ] AI-generated code reviewed for hallucinated imports or APIs
|
|
53
|
+
- [ ] No placeholder or template text left in generated code
|
|
54
|
+
|
|
55
|
+
## Merge Strategy
|
|
56
|
+
|
|
57
|
+
- [ ] Squash-and-merge used as default (clean history)
|
|
58
|
+
- [ ] Merge commit used only for major features (preserves branch history)
|
|
59
|
+
- [ ] Feature branch deleted after merge
|
|
60
|
+
|
|
61
|
+
## Verdict
|
|
62
|
+
|
|
63
|
+
| All sections pass | Decision |
|
|
64
|
+
|-------------------|----------|
|
|
65
|
+
| Yes | MERGE |
|
|
66
|
+
| CI fails | BLOCKED — fix CI first |
|
|
67
|
+
| Review pending | BLOCKED — wait for approval |
|
|
68
|
+
| Size > 600 lines | BLOCKED — split PR |
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
*PR Quality Checklist v1.0 — Sources: Google eng-practices, DORA 2024, Graphite research*
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Checklist: Security Deployment Gate
|
|
2
|
+
|
|
3
|
+
> Purpose: Block production deployments that violate security requirements
|
|
4
|
+
> Used by: @devops (Pipeline), @quality-gate (Litmus)
|
|
5
|
+
> When: Before every production deployment or `npm publish`
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Tier 1: Absolute Blockers (deploy = impossible)
|
|
10
|
+
|
|
11
|
+
- [ ] RLS enabled on ALL tables with user data (`SELECT tablename FROM pg_tables WHERE NOT rowsecurity`)
|
|
12
|
+
- [ ] No API keys hardcoded in source code (secret scanning hook passes)
|
|
13
|
+
- [ ] `service_role` key NOT present in frontend code (`src/`, `app/`, `pages/`)
|
|
14
|
+
- [ ] MFA enabled on all admin/cloud/production accounts
|
|
15
|
+
- [ ] All public APIs require authentication middleware
|
|
16
|
+
- [ ] No SQL string concatenation (parameterized queries only)
|
|
17
|
+
- [ ] Zero critical/high vulnerabilities in dependencies (`npm audit --audit-level=high`)
|
|
18
|
+
- [ ] No secrets detected in codebase (`gitleaks detect` or equivalent)
|
|
19
|
+
- [ ] No default credentials in production (no admin/admin, test/test)
|
|
20
|
+
- [ ] TLS/HTTPS enforced for all data in transit
|
|
21
|
+
|
|
22
|
+
## Tier 2: Compliance Blockers (deploy = illegal in Brazil)
|
|
23
|
+
|
|
24
|
+
- [ ] DPO/Encarregado designated (LGPD Art. 41)
|
|
25
|
+
- [ ] Breach notification capability within 3 days (LGPD Resolucao 15)
|
|
26
|
+
- [ ] Consent collection mechanism implemented (LGPD Art. 7-8)
|
|
27
|
+
- [ ] Data subject rights portal exists (access, correct, delete) (LGPD Art. 18)
|
|
28
|
+
- [ ] International data transfer with SCCs if applicable (LGPD Art. 33)
|
|
29
|
+
- [ ] Children's data requires parental consent if applicable (LGPD Art. 14)
|
|
30
|
+
- [ ] Privacy policy published and accessible (LGPD Art. 9)
|
|
31
|
+
|
|
32
|
+
## Tier 3: Operational Blockers (deploy = irresponsible)
|
|
33
|
+
|
|
34
|
+
- [ ] Asset inventory documented (CIS C1-2)
|
|
35
|
+
- [ ] Centralized logging configured (CIS C8)
|
|
36
|
+
- [ ] Incident response plan exists (CIS C17)
|
|
37
|
+
- [ ] Backup verification within last 90 days (CIS C11)
|
|
38
|
+
- [ ] Vulnerability scanning process in place (CIS C7)
|
|
39
|
+
- [ ] Network segmentation applied (Zero Trust)
|
|
40
|
+
- [ ] Vendor security assessment completed (CIS C15)
|
|
41
|
+
- [ ] SSL enforcement on database connections
|
|
42
|
+
|
|
43
|
+
## Verdict
|
|
44
|
+
|
|
45
|
+
| Tier 1 | Tier 2 | Tier 3 | Decision |
|
|
46
|
+
|--------|--------|--------|----------|
|
|
47
|
+
| All pass | All pass | All pass | DEPLOY |
|
|
48
|
+
| All pass | All pass | Gaps | DEPLOY with documented risk |
|
|
49
|
+
| All pass | Gaps | Any | BLOCKED (compliance) |
|
|
50
|
+
| Gaps | Any | Any | BLOCKED (absolute) |
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
*Security Deployment Checklist v1.0 — Sources: OWASP Top 10, NIST CSF 2.0, CIS Controls v8, LGPD/ANPD*
|
|
@@ -97,10 +97,20 @@ Be honest. Finding bugs NOW saves debugging time LATER.]]
|
|
|
97
97
|
### 5.5.4 Security Review
|
|
98
98
|
|
|
99
99
|
- [ ] No hardcoded secrets, API keys, or credentials
|
|
100
|
-
- [ ] User input is validated and sanitized
|
|
100
|
+
- [ ] User input is validated and sanitized (Zod/schema preferred)
|
|
101
101
|
- [ ] No SQL injection or XSS vulnerabilities introduced
|
|
102
102
|
- [ ] Sensitive data is not logged or exposed in errors
|
|
103
103
|
- [ ] Authentication/authorization checks are in place where needed
|
|
104
|
+
- [ ] RLS policies reviewed if database tables affected
|
|
105
|
+
- [ ] CORS not set to wildcard `*` in production code
|
|
106
|
+
- [ ] Rate limiting considered for public-facing endpoints
|
|
107
|
+
|
|
108
|
+
### 5.5.5 Architecture Review
|
|
109
|
+
|
|
110
|
+
- [ ] Code follows SOLID principles (no god classes, proper abstractions)
|
|
111
|
+
- [ ] Dependency direction correct (inner layers do not import outer)
|
|
112
|
+
- [ ] No circular dependencies introduced
|
|
113
|
+
- [ ] New abstractions justified (REUSE > ADAPT > CREATE)
|
|
104
114
|
|
|
105
115
|
---
|
|
106
116
|
|
|
@@ -172,6 +182,14 @@ DOCUMENTATION:
|
|
|
172
182
|
- [ ] No debugging artifacts (debugger statements, test data)
|
|
173
183
|
- [ ] No unused imports or variables
|
|
174
184
|
|
|
185
|
+
### 6.5.6 Performance Review
|
|
186
|
+
|
|
187
|
+
- [ ] No N+1 query patterns introduced
|
|
188
|
+
- [ ] Database queries use appropriate indexes
|
|
189
|
+
- [ ] No synchronous blocking operations on main thread
|
|
190
|
+
- [ ] Bundle size impact considered for frontend changes
|
|
191
|
+
- [ ] Animations use GPU-accelerated properties (transform, opacity)
|
|
192
|
+
|
|
175
193
|
---
|
|
176
194
|
|
|
177
195
|
## Verdict Determination
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debug
|
|
3
|
+
description: Structured debugging assistance when agent is stuck
|
|
4
|
+
trigger: On repeated failure or explicit invocation
|
|
5
|
+
agents: [developer, quality-gate]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Debug Skill
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
Invoke with `*debug` or `/debug` when stuck on an error after 2+ failed attempts.
|
|
13
|
+
|
|
14
|
+
## Protocol
|
|
15
|
+
|
|
16
|
+
### 1. Capture Context
|
|
17
|
+
- Current error message (full stack trace)
|
|
18
|
+
- What was attempted (last 2-3 actions)
|
|
19
|
+
- Expected vs actual behavior
|
|
20
|
+
- Relevant file paths and line numbers
|
|
21
|
+
|
|
22
|
+
### 2. Classify Error
|
|
23
|
+
| Category | Examples | First Action |
|
|
24
|
+
|----------|----------|-------------|
|
|
25
|
+
| Syntax | SyntaxError, unexpected token | Check recent edits for typos |
|
|
26
|
+
| Type | TypeError, undefined is not | Trace variable origin, check types |
|
|
27
|
+
| Runtime | ENOENT, ECONNREFUSED | Verify paths, ports, services |
|
|
28
|
+
| Logic | Wrong output, infinite loop | Add logging, isolate with minimal repro |
|
|
29
|
+
| Config | Module not found, env missing | Check package.json, .env, tsconfig |
|
|
30
|
+
| Test | Assertion failed, timeout | Compare expected vs actual values |
|
|
31
|
+
|
|
32
|
+
### 3. Investigate (max 5 minutes)
|
|
33
|
+
1. Read the error source file at the failing line
|
|
34
|
+
2. Check recent git diff for unintended changes
|
|
35
|
+
3. Search codebase for similar patterns that work
|
|
36
|
+
4. Check if dependency versions match (package.json vs lock)
|
|
37
|
+
5. Verify environment (Node version, env vars)
|
|
38
|
+
|
|
39
|
+
### 4. Fix or Escalate
|
|
40
|
+
- If root cause found — apply fix, verify, continue
|
|
41
|
+
- If unclear after 5 min — document findings, escalate to user
|
|
42
|
+
- Never loop on the same approach more than twice
|
|
43
|
+
|
|
44
|
+
## Anti-Patterns
|
|
45
|
+
- Guessing without reading the actual error
|
|
46
|
+
- Changing multiple things at once (isolate changes)
|
|
47
|
+
- Ignoring stack traces (read bottom-up for root cause)
|
|
48
|
+
- Retrying the exact same command expecting different results
|
|
49
|
+
|
|
50
|
+
## Output
|
|
51
|
+
```
|
|
52
|
+
## Debug Report
|
|
53
|
+
- Error: {error_type}: {message}
|
|
54
|
+
- Root Cause: {explanation}
|
|
55
|
+
- Fix Applied: {description of change}
|
|
56
|
+
- Verified: {how it was confirmed working}
|
|
57
|
+
```
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fast-review
|
|
3
|
+
description: Quick code review focused on common issues
|
|
4
|
+
trigger: Before commit or on demand
|
|
5
|
+
agents: [developer, quality-gate]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Fast Review Skill
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
Invoke with `*fast-review` or `/fast-review` before committing changes.
|
|
13
|
+
|
|
14
|
+
## What It Checks
|
|
15
|
+
|
|
16
|
+
### 1. Code Quality (auto)
|
|
17
|
+
- Unused imports or variables
|
|
18
|
+
- Console.log / debugger statements left in code
|
|
19
|
+
- TODO/FIXME/HACK comments without ticket reference
|
|
20
|
+
- Functions exceeding 50 lines
|
|
21
|
+
- Files exceeding 300 lines
|
|
22
|
+
|
|
23
|
+
### 2. TypeScript (auto)
|
|
24
|
+
```bash
|
|
25
|
+
npx tsc --noEmit 2>&1 | head -20
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### 3. Lint (auto)
|
|
29
|
+
```bash
|
|
30
|
+
npx eslint --quiet {changed_files} 2>&1 | head -30
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### 4. Pattern Checks (read-only)
|
|
34
|
+
- Relative imports (should be absolute per Constitution Art. VI)
|
|
35
|
+
- `any` type usage (should use proper types)
|
|
36
|
+
- Missing error handling in async functions
|
|
37
|
+
- API calls without try/catch
|
|
38
|
+
|
|
39
|
+
### 5. Test Coverage (if tests exist)
|
|
40
|
+
- New functions should have corresponding tests
|
|
41
|
+
- Modified functions — existing tests still pass
|
|
42
|
+
|
|
43
|
+
## Execution
|
|
44
|
+
|
|
45
|
+
1. Get changed files: `git diff --name-only --cached` (staged) or `git diff --name-only` (unstaged)
|
|
46
|
+
2. Run checks 1-4 on changed files only
|
|
47
|
+
3. Summarize findings
|
|
48
|
+
|
|
49
|
+
## Output Format
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
## Fast Review — {n} files checked
|
|
53
|
+
|
|
54
|
+
| Category | Issues | Severity |
|
|
55
|
+
|----------|--------|----------|
|
|
56
|
+
| Quality | 2 console.logs | LOW |
|
|
57
|
+
| TypeScript | 0 errors | - |
|
|
58
|
+
| Lint | 1 warning | LOW |
|
|
59
|
+
| Patterns | 1 relative import | MEDIUM |
|
|
60
|
+
|
|
61
|
+
Verdict: CLEAN | MINOR_ISSUES | NEEDS_FIX
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Rules
|
|
65
|
+
- CLEAN = no issues found, safe to commit
|
|
66
|
+
- MINOR_ISSUES = proceed but consider fixing (LOW severity only)
|
|
67
|
+
- NEEDS_FIX = MEDIUM+ issues must be resolved before commit
|
|
68
|
+
- This is lighter than full CodeRabbit — use for quick iterations
|
|
69
|
+
- For PR-level review, use CodeRabbit instead
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: research-synthesis
|
|
3
|
+
description: Synthesize findings from multiple sources into actionable summary
|
|
4
|
+
trigger: After research phase or on demand
|
|
5
|
+
agents: [analyst, architect, project-lead]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Research Synthesis Skill
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
Invoke with `*research-synthesis` or `/research-synthesis` after gathering research data.
|
|
13
|
+
|
|
14
|
+
## Input
|
|
15
|
+
|
|
16
|
+
Accepts any combination of:
|
|
17
|
+
- Web search results (from EXA or manual search)
|
|
18
|
+
- Documentation excerpts
|
|
19
|
+
- Code analysis findings
|
|
20
|
+
- Competitor analysis data
|
|
21
|
+
- File paths containing raw research
|
|
22
|
+
|
|
23
|
+
## Protocol
|
|
24
|
+
|
|
25
|
+
### 1. Collect
|
|
26
|
+
- Gather all source materials (files, search results, notes)
|
|
27
|
+
- Tag each source with origin and confidence level
|
|
28
|
+
|
|
29
|
+
### 2. Deduplicate
|
|
30
|
+
- Remove redundant findings across sources
|
|
31
|
+
- Keep the most authoritative version of each fact
|
|
32
|
+
|
|
33
|
+
### 3. Categorize
|
|
34
|
+
| Category | Description |
|
|
35
|
+
|----------|-------------|
|
|
36
|
+
| Facts | Verified, multiple sources agree |
|
|
37
|
+
| Insights | Patterns or conclusions derived from facts |
|
|
38
|
+
| Risks | Potential problems or concerns identified |
|
|
39
|
+
| Opportunities | Actionable improvements or options |
|
|
40
|
+
| Unknowns | Questions that remain unanswered |
|
|
41
|
+
|
|
42
|
+
### 4. Synthesize
|
|
43
|
+
- Cross-reference findings for consistency
|
|
44
|
+
- Identify contradictions between sources
|
|
45
|
+
- Rank by relevance to the current objective
|
|
46
|
+
|
|
47
|
+
### 5. Output
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
## Research Synthesis — {topic}
|
|
51
|
+
|
|
52
|
+
### Key Findings
|
|
53
|
+
1. {finding with source reference}
|
|
54
|
+
2. {finding with source reference}
|
|
55
|
+
|
|
56
|
+
### Recommendations
|
|
57
|
+
- {actionable recommendation}
|
|
58
|
+
|
|
59
|
+
### Risks
|
|
60
|
+
- {risk with mitigation suggestion}
|
|
61
|
+
|
|
62
|
+
### Open Questions
|
|
63
|
+
- {question needing further investigation}
|
|
64
|
+
|
|
65
|
+
### Sources
|
|
66
|
+
| # | Source | Confidence |
|
|
67
|
+
|---|--------|------------|
|
|
68
|
+
| 1 | {url or file} | HIGH |
|
|
69
|
+
| 2 | {url or file} | MEDIUM |
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Rules
|
|
73
|
+
- Every finding must reference its source
|
|
74
|
+
- Confidence levels: HIGH (multiple sources), MEDIUM (single reliable), LOW (unverified)
|
|
75
|
+
- Contradictions must be explicitly called out, not silently resolved
|
|
76
|
+
- Keep synthesis under 500 words — link to raw data for details
|
|
77
|
+
- Save output to `docs/research/` if part of a formal research task
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-scan
|
|
3
|
+
description: Run security checks from the 25 deployment blockers
|
|
4
|
+
trigger: Before deploy, on demand, or during QA gate
|
|
5
|
+
agents: [developer, quality-gate, devops]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Security Scan Skill
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
Invoke with `*security-scan` or `/security-scan` before any deployment.
|
|
13
|
+
|
|
14
|
+
## Automated Checks (Tier 1 — Absolute Blockers)
|
|
15
|
+
|
|
16
|
+
Run these checks in order. Any failure = BLOCKED.
|
|
17
|
+
|
|
18
|
+
### 1. Secrets in Code
|
|
19
|
+
```bash
|
|
20
|
+
# Check for hardcoded keys, tokens, passwords
|
|
21
|
+
grep -rn "sk-\|sk_live\|password\s*=\s*['\"]" src/ app/ pages/ --include="*.ts" --include="*.js" --include="*.tsx"
|
|
22
|
+
# Check for service_role in frontend
|
|
23
|
+
grep -rn "service_role" src/ app/ pages/ --include="*.ts" --include="*.js"
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### 2. Dependencies
|
|
27
|
+
```bash
|
|
28
|
+
npm audit --audit-level=high
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### 3. Environment Files
|
|
32
|
+
```bash
|
|
33
|
+
# Verify .env is gitignored
|
|
34
|
+
git check-ignore .env
|
|
35
|
+
# Verify .env.example exists (if .env exists)
|
|
36
|
+
test -f .env.example
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 4. SQL Safety
|
|
40
|
+
- Scan for string concatenation in SQL queries
|
|
41
|
+
- Verify parameterized queries or ORM usage
|
|
42
|
+
|
|
43
|
+
### 5. RLS Check (if Supabase project)
|
|
44
|
+
- Verify all user-data tables have RLS enabled
|
|
45
|
+
- Check for policies on each RLS-enabled table
|
|
46
|
+
|
|
47
|
+
## Quick Scan vs Full Scan
|
|
48
|
+
|
|
49
|
+
| Mode | Checks | When |
|
|
50
|
+
|------|--------|------|
|
|
51
|
+
| Quick (`*security-scan quick`) | 1-3 only | Before every commit |
|
|
52
|
+
| Full (`*security-scan full`) | All 1-5 + CORS + headers | Before deploy |
|
|
53
|
+
|
|
54
|
+
## Output Format
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
## Security Scan — {timestamp}
|
|
58
|
+
|
|
59
|
+
| Check | Status | Details |
|
|
60
|
+
|-------|--------|---------|
|
|
61
|
+
| Secrets | PASS | No hardcoded secrets found |
|
|
62
|
+
| Deps | WARN | 2 moderate vulnerabilities |
|
|
63
|
+
| Env | PASS | .env gitignored, .env.example present |
|
|
64
|
+
| SQL | PASS | All queries parameterized |
|
|
65
|
+
| RLS | N/A | No Supabase detected |
|
|
66
|
+
|
|
67
|
+
Verdict: PASS | WARN | BLOCKED
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Rules
|
|
71
|
+
- BLOCKED verdict prevents deploy — no override without user confirmation
|
|
72
|
+
- WARN allows deploy but must be documented as tech debt
|
|
73
|
+
- Reference: Constitution Article X, `.claude/rules/security-data-protection.md`
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify
|
|
3
|
+
description: Verify implementation matches story acceptance criteria
|
|
4
|
+
trigger: After implementation, before QA gate
|
|
5
|
+
agents: [developer, quality-gate]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Verify Skill
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
Invoke with `*verify` or `/verify` after completing implementation.
|
|
13
|
+
|
|
14
|
+
## Steps
|
|
15
|
+
|
|
16
|
+
1. Read the active story file
|
|
17
|
+
2. Extract all acceptance criteria (Given/When/Then)
|
|
18
|
+
3. For each criterion:
|
|
19
|
+
- Check if implementation exists (grep for relevant code)
|
|
20
|
+
- Run relevant test if available (`npm test -- --grep "AC description"`)
|
|
21
|
+
- Mark as PASS / FAIL / PARTIAL
|
|
22
|
+
4. Generate verification report
|
|
23
|
+
5. If all PASS — recommend proceeding to QA gate
|
|
24
|
+
6. If any FAIL — list specific gaps with file paths and line numbers
|
|
25
|
+
|
|
26
|
+
## Output Format
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
## Verification Report — Story {story_id}
|
|
30
|
+
|
|
31
|
+
| AC | Status | Evidence |
|
|
32
|
+
|------|---------|---------------------------------------|
|
|
33
|
+
| AC-1 | PASS | test-auth.test.js line 42 |
|
|
34
|
+
| AC-2 | FAIL | No implementation found for edge case |
|
|
35
|
+
| AC-3 | PARTIAL | Logic exists but no test coverage |
|
|
36
|
+
|
|
37
|
+
### Summary
|
|
38
|
+
- Total: {n} | Pass: {p} | Fail: {f} | Partial: {pt}
|
|
39
|
+
- Recommendation: {PROCEED_TO_QA | FIX_REQUIRED}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Rules
|
|
43
|
+
|
|
44
|
+
- Never mark PASS without evidence (test result or code reference)
|
|
45
|
+
- PARTIAL means logic exists but lacks test or handles only happy path
|
|
46
|
+
- If no story is active, prompt user for story path
|
|
47
|
+
- Do not modify any code — this skill is read-only verification
|
|
48
|
+
|
|
49
|
+
## Integration
|
|
50
|
+
|
|
51
|
+
- Called automatically at end of `dev-develop-story` task
|
|
52
|
+
- Can be called standalone by any agent for spot-checks
|
|
53
|
+
- Output can feed into QA gate as pre-verification artifact
|
|
@@ -21,10 +21,23 @@ agent:
|
|
|
21
21
|
whenToUse: "Use this agent when {{USECASE}}"
|
|
22
22
|
|
|
23
23
|
persona:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
# 4-Layer Persona Design (research-backed)
|
|
25
|
+
layer_1_identity:
|
|
26
|
+
role: "Primary role and responsibilities"
|
|
27
|
+
archetype: "Domain archetype (e.g., The Strategist, The Builder)"
|
|
28
|
+
voice: "Tone and communication style"
|
|
29
|
+
layer_2_expertise:
|
|
30
|
+
domain: "Core domain expertise"
|
|
31
|
+
frameworks: "Key frameworks this agent uses"
|
|
32
|
+
tools: "Preferred tools and methods"
|
|
33
|
+
layer_3_behavior:
|
|
34
|
+
decision_style: "How this agent makes decisions"
|
|
35
|
+
collaboration: "How it works with other agents"
|
|
36
|
+
quality_bar: "What quality standard it enforces"
|
|
37
|
+
layer_4_boundaries:
|
|
38
|
+
can_do: "Operations this agent CAN perform"
|
|
39
|
+
cannot_do: "Operations delegated to other agents"
|
|
40
|
+
escalation: "When and to whom to escalate"
|
|
28
41
|
|
|
29
42
|
core_principles:
|
|
30
43
|
- "Principle 1: Define the first guiding principle"
|
|
@@ -57,13 +57,21 @@ After completion, verify:
|
|
|
57
57
|
|
|
58
58
|
---
|
|
59
59
|
|
|
60
|
+
## Scoring (research-backed)
|
|
61
|
+
|
|
62
|
+
| Metric | Value |
|
|
63
|
+
|--------|-------|
|
|
64
|
+
| Total items | {{TOTAL}} |
|
|
65
|
+
| Passed | {{PASSED}} |
|
|
66
|
+
| Score | {{PASSED}}/{{TOTAL}} ({{PERCENTAGE}}%) |
|
|
67
|
+
| Gate | PASS (>=80%) / CONCERNS (60-79%) / FAIL (<60%) |
|
|
68
|
+
|
|
60
69
|
## Sign-off
|
|
61
70
|
|
|
62
|
-
| Role | Name | Date |
|
|
63
|
-
|
|
64
|
-
|
|
|
65
|
-
| Reviewer | | | |
|
|
66
|
-
| Approver | | | |
|
|
71
|
+
| Role | Name | Date | Verdict |
|
|
72
|
+
|------|------|------|---------|
|
|
73
|
+
| Executor | | | |
|
|
74
|
+
| Reviewer | | | PASS / CONCERNS / FAIL |
|
|
67
75
|
|
|
68
76
|
---
|
|
69
77
|
|
|
@@ -22,6 +22,13 @@ Checklist:
|
|
|
22
22
|
- "[ ] Step 1: Describe first step"
|
|
23
23
|
- "[ ] Step 2: Describe second step"
|
|
24
24
|
- "[ ] Step 3: Describe third step"
|
|
25
|
+
|
|
26
|
+
# Execution mode (research-backed, gap 4.1)
|
|
27
|
+
# fast-track: trivial fixes < 50 lines, auto-validated story
|
|
28
|
+
# standard: normal features, full SDC workflow
|
|
29
|
+
# heavy: complex initiatives, spec pipeline first
|
|
30
|
+
execution_mode: standard
|
|
31
|
+
complexity_estimate: S|M|L|XL
|
|
25
32
|
---
|
|
26
33
|
|
|
27
34
|
# {{COMPONENTNAME}}
|
|
@@ -114,6 +114,12 @@ workflow:
|
|
|
114
114
|
notify: true
|
|
115
115
|
rollback: true
|
|
116
116
|
|
|
117
|
+
# Complexity-adaptive execution (research gap 4.1)
|
|
118
|
+
complexity:
|
|
119
|
+
class: STANDARD # SIMPLE (3 phases) | STANDARD (all) | COMPLEX (+ revision)
|
|
120
|
+
estimated_tokens: null # Filled at runtime
|
|
121
|
+
fast_track_eligible: false # true for trivial fixes
|
|
122
|
+
|
|
117
123
|
validation:
|
|
118
124
|
pre_run:
|
|
119
125
|
- "Check all required inputs are provided"
|
|
@@ -121,4 +127,5 @@ workflow:
|
|
|
121
127
|
post_run:
|
|
122
128
|
- "Verify output is valid"
|
|
123
129
|
- "Log completion metrics"
|
|
130
|
+
- "Report DORA metrics (lead time, failure rate)"
|
|
124
131
|
|