sagaz-ai 0.1.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/INSTALL.md +78 -0
- package/LICENSE +21 -0
- package/README.md +185 -0
- package/ai-orchestration-ecosystem/ACTIVATE.md +45 -0
- package/ai-orchestration-ecosystem/INDEX.md +73 -0
- package/ai-orchestration-ecosystem/README.md +31 -0
- package/ai-orchestration-ecosystem/agents/design-director.md +20 -0
- package/ai-orchestration-ecosystem/agents/implementation-engineer.md +21 -0
- package/ai-orchestration-ecosystem/agents/orchestrator.md +22 -0
- package/ai-orchestration-ecosystem/agents/product-strategist.md +22 -0
- package/ai-orchestration-ecosystem/agents/qa-verifier.md +23 -0
- package/ai-orchestration-ecosystem/agents/refactor-steward.md +20 -0
- package/ai-orchestration-ecosystem/agents/security-governance.md +21 -0
- package/ai-orchestration-ecosystem/agents/software-architect.md +21 -0
- package/ai-orchestration-ecosystem/agents/specification-writer.md +21 -0
- package/ai-orchestration-ecosystem/agents/technology-strategist.md +21 -0
- package/ai-orchestration-ecosystem/agents/ui-systems-designer.md +20 -0
- package/ai-orchestration-ecosystem/agents/ux-architect.md +21 -0
- package/ai-orchestration-ecosystem/agents/visual-qa.md +20 -0
- package/ai-orchestration-ecosystem/core/decision-records.md +25 -0
- package/ai-orchestration-ecosystem/core/operating-system.md +29 -0
- package/ai-orchestration-ecosystem/core/token-economy.md +15 -0
- package/ai-orchestration-ecosystem/engineering/software-engineering-deep-guide.md +23 -0
- package/ai-orchestration-ecosystem/governance/ecosystem-maintenance.md +13 -0
- package/ai-orchestration-ecosystem/governance/package-release-policy.md +51 -0
- package/ai-orchestration-ecosystem/governance/quality-policy.md +13 -0
- package/ai-orchestration-ecosystem/governance/security-policy.md +13 -0
- package/ai-orchestration-ecosystem/governance/versioning.md +13 -0
- package/ai-orchestration-ecosystem/protocols/accessibility-compliance.md +39 -0
- package/ai-orchestration-ecosystem/protocols/ai-application-quality.md +40 -0
- package/ai-orchestration-ecosystem/protocols/api-contracts.md +37 -0
- package/ai-orchestration-ecosystem/protocols/architecture-fitness-functions.md +36 -0
- package/ai-orchestration-ecosystem/protocols/ci-cd-readiness.md +32 -0
- package/ai-orchestration-ecosystem/protocols/communication.md +32 -0
- package/ai-orchestration-ecosystem/protocols/data-privacy-lifecycle.md +38 -0
- package/ai-orchestration-ecosystem/protocols/database-migrations.md +36 -0
- package/ai-orchestration-ecosystem/protocols/delegation.md +32 -0
- package/ai-orchestration-ecosystem/protocols/dependency-governance.md +36 -0
- package/ai-orchestration-ecosystem/protocols/design-quality.md +32 -0
- package/ai-orchestration-ecosystem/protocols/dora-metrics.md +36 -0
- package/ai-orchestration-ecosystem/protocols/github-operations.md +32 -0
- package/ai-orchestration-ecosystem/protocols/guided-proactivity.md +32 -0
- package/ai-orchestration-ecosystem/protocols/memory.md +32 -0
- package/ai-orchestration-ecosystem/protocols/model-routing.md +32 -0
- package/ai-orchestration-ecosystem/protocols/performance-budgets.md +41 -0
- package/ai-orchestration-ecosystem/protocols/post-delivery-monitoring.md +32 -0
- package/ai-orchestration-ecosystem/protocols/production-readiness.md +32 -0
- package/ai-orchestration-ecosystem/protocols/quality-gates.md +32 -0
- package/ai-orchestration-ecosystem/protocols/release-strategy.md +38 -0
- package/ai-orchestration-ecosystem/protocols/secure-sdlc.md +38 -0
- package/ai-orchestration-ecosystem/protocols/squad-pipeline-handoffs.md +32 -0
- package/ai-orchestration-ecosystem/protocols/sre-readiness.md +41 -0
- package/ai-orchestration-ecosystem/protocols/stack-selection.md +32 -0
- package/ai-orchestration-ecosystem/protocols/testing-matrix.md +32 -0
- package/ai-orchestration-ecosystem/quickstart.md +25 -0
- package/ai-orchestration-ecosystem/skills/exhaustive-verification.md +14 -0
- package/ai-orchestration-ecosystem/skills/refactor-proofing.md +14 -0
- package/ai-orchestration-ecosystem/skills/spec-first-development.md +14 -0
- package/ai-orchestration-ecosystem/squads/code-audit.md +45 -0
- package/ai-orchestration-ecosystem/squads/design-studio.md +45 -0
- package/ai-orchestration-ecosystem/squads/github-ops.md +45 -0
- package/ai-orchestration-ecosystem/squads/maintenance-ops.md +45 -0
- package/ai-orchestration-ecosystem/squads/mobile-app-studio.md +45 -0
- package/ai-orchestration-ecosystem/squads/product-factory.md +45 -0
- package/ai-orchestration-ecosystem/squads/production-critical.md +45 -0
- package/ai-orchestration-ecosystem/squads/refactor-lab.md +45 -0
- package/ai-orchestration-ecosystem/squads/research-to-spec.md +45 -0
- package/ai-orchestration-ecosystem/tasks/design-system.md +34 -0
- package/ai-orchestration-ecosystem/tasks/github-release-ops.md +34 -0
- package/ai-orchestration-ecosystem/tasks/implementation-build.md +34 -0
- package/ai-orchestration-ecosystem/tasks/intake-brief.md +34 -0
- package/ai-orchestration-ecosystem/tasks/product-requirements.md +34 -0
- package/ai-orchestration-ecosystem/tasks/production-readiness.md +34 -0
- package/ai-orchestration-ecosystem/tasks/stack-recommendation.md +34 -0
- package/ai-orchestration-ecosystem/tasks/verification-qa.md +34 -0
- package/ai-orchestration-ecosystem/templates/design-system-spec.md +20 -0
- package/ai-orchestration-ecosystem/templates/final-handoff.md +20 -0
- package/ai-orchestration-ecosystem/templates/github-actions-checklist.md +20 -0
- package/ai-orchestration-ecosystem/templates/implementation-plan.md +20 -0
- package/ai-orchestration-ecosystem/templates/mobile-release-checklist.md +20 -0
- package/ai-orchestration-ecosystem/templates/product-spec.md +20 -0
- package/ai-orchestration-ecosystem/templates/qa-report.md +20 -0
- package/ai-orchestration-ecosystem/templates/run-state.md +20 -0
- package/ai-orchestration-ecosystem/templates/squad-handoff.md +20 -0
- package/ai-orchestration-ecosystem/templates/squad-runbook.md +20 -0
- package/ai-orchestration-ecosystem/templates/stack-recommendation.md +20 -0
- package/ai-orchestration-ecosystem/templates/task-brief.md +20 -0
- package/ai-orchestration-ecosystem/templates/technical-spec.md +20 -0
- package/ai-orchestration-ecosystem/workflows/brownfield-refactor-safe.md +25 -0
- package/ai-orchestration-ecosystem/workflows/bugfix-to-release.md +25 -0
- package/ai-orchestration-ecosystem/workflows/greenfield-web-app.md +25 -0
- package/ai-orchestration-ecosystem/workflows/mobile-app-production.md +36 -0
- package/ai-orchestration-ecosystem/workflows/web-production-release.md +39 -0
- package/bin/sagaz.js +107 -0
- package/codex-skill/sagaz/SKILL.md +69 -0
- package/package.json +42 -0
- package/scripts/verify-package.js +29 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Protocol: Github Operations
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Define how Sagaz should handle Github Operations while keeping the process clear, low-token, safe, and verifiable.
|
|
6
|
+
|
|
7
|
+
## Required Practice
|
|
8
|
+
|
|
9
|
+
- Start from the user goal and current project state.
|
|
10
|
+
- Load only relevant context.
|
|
11
|
+
- Separate facts, assumptions, inferences, risks, and decisions.
|
|
12
|
+
- Ask permission before meaningful state changes.
|
|
13
|
+
- Record evidence and residual risk.
|
|
14
|
+
|
|
15
|
+
## Standard Recommendation Format
|
|
16
|
+
|
|
17
|
+
```md
|
|
18
|
+
Recommendation:
|
|
19
|
+
Why now:
|
|
20
|
+
What changes:
|
|
21
|
+
Benefit:
|
|
22
|
+
Risk:
|
|
23
|
+
Permission required:
|
|
24
|
+
```n
|
|
25
|
+
## Blocking Conditions
|
|
26
|
+
|
|
27
|
+
- The primary flow fails.
|
|
28
|
+
- A relevant build, check, or test fails without explanation.
|
|
29
|
+
- Secrets or sensitive data would be exposed.
|
|
30
|
+
- A high risk is not accepted by the user.
|
|
31
|
+
- Verification evidence is missing for the risk level.
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Protocol: Guided Proactivity
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Define how Sagaz should handle Guided Proactivity while keeping the process clear, low-token, safe, and verifiable.
|
|
6
|
+
|
|
7
|
+
## Required Practice
|
|
8
|
+
|
|
9
|
+
- Start from the user goal and current project state.
|
|
10
|
+
- Load only relevant context.
|
|
11
|
+
- Separate facts, assumptions, inferences, risks, and decisions.
|
|
12
|
+
- Ask permission before meaningful state changes.
|
|
13
|
+
- Record evidence and residual risk.
|
|
14
|
+
|
|
15
|
+
## Standard Recommendation Format
|
|
16
|
+
|
|
17
|
+
```md
|
|
18
|
+
Recommendation:
|
|
19
|
+
Why now:
|
|
20
|
+
What changes:
|
|
21
|
+
Benefit:
|
|
22
|
+
Risk:
|
|
23
|
+
Permission required:
|
|
24
|
+
```n
|
|
25
|
+
## Blocking Conditions
|
|
26
|
+
|
|
27
|
+
- The primary flow fails.
|
|
28
|
+
- A relevant build, check, or test fails without explanation.
|
|
29
|
+
- Secrets or sensitive data would be exposed.
|
|
30
|
+
- A high risk is not accepted by the user.
|
|
31
|
+
- Verification evidence is missing for the risk level.
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Protocol: Memory
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Define how Sagaz should handle Memory while keeping the process clear, low-token, safe, and verifiable.
|
|
6
|
+
|
|
7
|
+
## Required Practice
|
|
8
|
+
|
|
9
|
+
- Start from the user goal and current project state.
|
|
10
|
+
- Load only relevant context.
|
|
11
|
+
- Separate facts, assumptions, inferences, risks, and decisions.
|
|
12
|
+
- Ask permission before meaningful state changes.
|
|
13
|
+
- Record evidence and residual risk.
|
|
14
|
+
|
|
15
|
+
## Standard Recommendation Format
|
|
16
|
+
|
|
17
|
+
```md
|
|
18
|
+
Recommendation:
|
|
19
|
+
Why now:
|
|
20
|
+
What changes:
|
|
21
|
+
Benefit:
|
|
22
|
+
Risk:
|
|
23
|
+
Permission required:
|
|
24
|
+
```n
|
|
25
|
+
## Blocking Conditions
|
|
26
|
+
|
|
27
|
+
- The primary flow fails.
|
|
28
|
+
- A relevant build, check, or test fails without explanation.
|
|
29
|
+
- Secrets or sensitive data would be exposed.
|
|
30
|
+
- A high risk is not accepted by the user.
|
|
31
|
+
- Verification evidence is missing for the risk level.
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Protocol: Model Routing
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Define how Sagaz should handle Model Routing while keeping the process clear, low-token, safe, and verifiable.
|
|
6
|
+
|
|
7
|
+
## Required Practice
|
|
8
|
+
|
|
9
|
+
- Start from the user goal and current project state.
|
|
10
|
+
- Load only relevant context.
|
|
11
|
+
- Separate facts, assumptions, inferences, risks, and decisions.
|
|
12
|
+
- Ask permission before meaningful state changes.
|
|
13
|
+
- Record evidence and residual risk.
|
|
14
|
+
|
|
15
|
+
## Standard Recommendation Format
|
|
16
|
+
|
|
17
|
+
```md
|
|
18
|
+
Recommendation:
|
|
19
|
+
Why now:
|
|
20
|
+
What changes:
|
|
21
|
+
Benefit:
|
|
22
|
+
Risk:
|
|
23
|
+
Permission required:
|
|
24
|
+
```n
|
|
25
|
+
## Blocking Conditions
|
|
26
|
+
|
|
27
|
+
- The primary flow fails.
|
|
28
|
+
- A relevant build, check, or test fails without explanation.
|
|
29
|
+
- Secrets or sensitive data would be exposed.
|
|
30
|
+
- A high risk is not accepted by the user.
|
|
31
|
+
- Verification evidence is missing for the risk level.
|
|
32
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Protocol: Performance Budgets
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Define measurable performance limits for web, mobile, backend, and AI features.
|
|
6
|
+
|
|
7
|
+
## Web Budgets
|
|
8
|
+
|
|
9
|
+
- Initial load time.
|
|
10
|
+
- Largest Contentful Paint.
|
|
11
|
+
- Interaction latency.
|
|
12
|
+
- JavaScript bundle size.
|
|
13
|
+
- Image/media size.
|
|
14
|
+
- API response time.
|
|
15
|
+
|
|
16
|
+
## Mobile Budgets
|
|
17
|
+
|
|
18
|
+
- Cold start time.
|
|
19
|
+
- Screen transition latency.
|
|
20
|
+
- Memory usage.
|
|
21
|
+
- Battery/network impact.
|
|
22
|
+
- Offline behavior.
|
|
23
|
+
|
|
24
|
+
## Backend Budgets
|
|
25
|
+
|
|
26
|
+
- p95/p99 latency.
|
|
27
|
+
- Throughput expectations.
|
|
28
|
+
- Queue/job processing time.
|
|
29
|
+
- Database query limits.
|
|
30
|
+
|
|
31
|
+
## Output
|
|
32
|
+
|
|
33
|
+
```md
|
|
34
|
+
Performance budget:
|
|
35
|
+
Target flow:
|
|
36
|
+
Metric:
|
|
37
|
+
Threshold:
|
|
38
|
+
Measurement method:
|
|
39
|
+
Risk if exceeded:
|
|
40
|
+
```
|
|
41
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Protocol: Post Delivery Monitoring
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Define how Sagaz should handle Post Delivery Monitoring while keeping the process clear, low-token, safe, and verifiable.
|
|
6
|
+
|
|
7
|
+
## Required Practice
|
|
8
|
+
|
|
9
|
+
- Start from the user goal and current project state.
|
|
10
|
+
- Load only relevant context.
|
|
11
|
+
- Separate facts, assumptions, inferences, risks, and decisions.
|
|
12
|
+
- Ask permission before meaningful state changes.
|
|
13
|
+
- Record evidence and residual risk.
|
|
14
|
+
|
|
15
|
+
## Standard Recommendation Format
|
|
16
|
+
|
|
17
|
+
```md
|
|
18
|
+
Recommendation:
|
|
19
|
+
Why now:
|
|
20
|
+
What changes:
|
|
21
|
+
Benefit:
|
|
22
|
+
Risk:
|
|
23
|
+
Permission required:
|
|
24
|
+
```n
|
|
25
|
+
## Blocking Conditions
|
|
26
|
+
|
|
27
|
+
- The primary flow fails.
|
|
28
|
+
- A relevant build, check, or test fails without explanation.
|
|
29
|
+
- Secrets or sensitive data would be exposed.
|
|
30
|
+
- A high risk is not accepted by the user.
|
|
31
|
+
- Verification evidence is missing for the risk level.
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Protocol: Production Readiness
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Define how Sagaz should handle Production Readiness while keeping the process clear, low-token, safe, and verifiable.
|
|
6
|
+
|
|
7
|
+
## Required Practice
|
|
8
|
+
|
|
9
|
+
- Start from the user goal and current project state.
|
|
10
|
+
- Load only relevant context.
|
|
11
|
+
- Separate facts, assumptions, inferences, risks, and decisions.
|
|
12
|
+
- Ask permission before meaningful state changes.
|
|
13
|
+
- Record evidence and residual risk.
|
|
14
|
+
|
|
15
|
+
## Standard Recommendation Format
|
|
16
|
+
|
|
17
|
+
```md
|
|
18
|
+
Recommendation:
|
|
19
|
+
Why now:
|
|
20
|
+
What changes:
|
|
21
|
+
Benefit:
|
|
22
|
+
Risk:
|
|
23
|
+
Permission required:
|
|
24
|
+
```n
|
|
25
|
+
## Blocking Conditions
|
|
26
|
+
|
|
27
|
+
- The primary flow fails.
|
|
28
|
+
- A relevant build, check, or test fails without explanation.
|
|
29
|
+
- Secrets or sensitive data would be exposed.
|
|
30
|
+
- A high risk is not accepted by the user.
|
|
31
|
+
- Verification evidence is missing for the risk level.
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Protocol: Quality Gates
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Define how Sagaz should handle Quality Gates while keeping the process clear, low-token, safe, and verifiable.
|
|
6
|
+
|
|
7
|
+
## Required Practice
|
|
8
|
+
|
|
9
|
+
- Start from the user goal and current project state.
|
|
10
|
+
- Load only relevant context.
|
|
11
|
+
- Separate facts, assumptions, inferences, risks, and decisions.
|
|
12
|
+
- Ask permission before meaningful state changes.
|
|
13
|
+
- Record evidence and residual risk.
|
|
14
|
+
|
|
15
|
+
## Standard Recommendation Format
|
|
16
|
+
|
|
17
|
+
```md
|
|
18
|
+
Recommendation:
|
|
19
|
+
Why now:
|
|
20
|
+
What changes:
|
|
21
|
+
Benefit:
|
|
22
|
+
Risk:
|
|
23
|
+
Permission required:
|
|
24
|
+
```n
|
|
25
|
+
## Blocking Conditions
|
|
26
|
+
|
|
27
|
+
- The primary flow fails.
|
|
28
|
+
- A relevant build, check, or test fails without explanation.
|
|
29
|
+
- Secrets or sensitive data would be exposed.
|
|
30
|
+
- A high risk is not accepted by the user.
|
|
31
|
+
- Verification evidence is missing for the risk level.
|
|
32
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Protocol: Release Strategy
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Release changes safely using rollout strategies appropriate to risk.
|
|
6
|
+
|
|
7
|
+
## Strategies
|
|
8
|
+
|
|
9
|
+
- Preview environment.
|
|
10
|
+
- Feature flag.
|
|
11
|
+
- Canary release.
|
|
12
|
+
- Phased rollout.
|
|
13
|
+
- Blue/green deployment.
|
|
14
|
+
- Immediate rollback.
|
|
15
|
+
- Hotfix release.
|
|
16
|
+
|
|
17
|
+
## Required Checks
|
|
18
|
+
|
|
19
|
+
- Define release scope.
|
|
20
|
+
- Define rollout method.
|
|
21
|
+
- Define rollback criteria.
|
|
22
|
+
- Define monitoring checks after release.
|
|
23
|
+
- Confirm migrations and environment variables.
|
|
24
|
+
- Confirm communication needs when users are affected.
|
|
25
|
+
|
|
26
|
+
## Output
|
|
27
|
+
|
|
28
|
+
```md
|
|
29
|
+
Release plan:
|
|
30
|
+
Scope:
|
|
31
|
+
Strategy:
|
|
32
|
+
Pre-release checks:
|
|
33
|
+
Rollout steps:
|
|
34
|
+
Rollback criteria:
|
|
35
|
+
Post-release monitoring:
|
|
36
|
+
Permission required:
|
|
37
|
+
```
|
|
38
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Protocol: Secure SDLC
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Build security into every phase of development instead of treating it as a final review.
|
|
6
|
+
|
|
7
|
+
## Required Checks
|
|
8
|
+
|
|
9
|
+
- Security requirements.
|
|
10
|
+
- Threat modeling for meaningful risk.
|
|
11
|
+
- Secure design review.
|
|
12
|
+
- Secure implementation practices.
|
|
13
|
+
- Secrets scanning.
|
|
14
|
+
- Dependency vulnerability scanning.
|
|
15
|
+
- Static analysis when available.
|
|
16
|
+
- Authentication and authorization review.
|
|
17
|
+
- Input validation and output encoding review.
|
|
18
|
+
- Security verification before production.
|
|
19
|
+
|
|
20
|
+
## Threat Modeling Prompt
|
|
21
|
+
|
|
22
|
+
```md
|
|
23
|
+
Assets:
|
|
24
|
+
Actors:
|
|
25
|
+
Trust boundaries:
|
|
26
|
+
Entry points:
|
|
27
|
+
Threats:
|
|
28
|
+
Mitigations:
|
|
29
|
+
Residual risk:
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Blocking Conditions
|
|
33
|
+
|
|
34
|
+
- Secrets committed or exposed.
|
|
35
|
+
- Authentication or authorization risk is unresolved.
|
|
36
|
+
- Sensitive data is handled without a clear protection model.
|
|
37
|
+
- High-risk threat has no mitigation or explicit user acceptance.
|
|
38
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Protocol: Squad Pipeline Handoffs
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Define how Sagaz should handle Squad Pipeline Handoffs while keeping the process clear, low-token, safe, and verifiable.
|
|
6
|
+
|
|
7
|
+
## Required Practice
|
|
8
|
+
|
|
9
|
+
- Start from the user goal and current project state.
|
|
10
|
+
- Load only relevant context.
|
|
11
|
+
- Separate facts, assumptions, inferences, risks, and decisions.
|
|
12
|
+
- Ask permission before meaningful state changes.
|
|
13
|
+
- Record evidence and residual risk.
|
|
14
|
+
|
|
15
|
+
## Standard Recommendation Format
|
|
16
|
+
|
|
17
|
+
```md
|
|
18
|
+
Recommendation:
|
|
19
|
+
Why now:
|
|
20
|
+
What changes:
|
|
21
|
+
Benefit:
|
|
22
|
+
Risk:
|
|
23
|
+
Permission required:
|
|
24
|
+
```n
|
|
25
|
+
## Blocking Conditions
|
|
26
|
+
|
|
27
|
+
- The primary flow fails.
|
|
28
|
+
- A relevant build, check, or test fails without explanation.
|
|
29
|
+
- Secrets or sensitive data would be exposed.
|
|
30
|
+
- A high risk is not accepted by the user.
|
|
31
|
+
- Verification evidence is missing for the risk level.
|
|
32
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Protocol: SRE Readiness
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Ensure production systems are designed for reliability, operations, incident response, and recovery.
|
|
6
|
+
|
|
7
|
+
## When To Use
|
|
8
|
+
|
|
9
|
+
Use for production web apps, mobile backends, APIs, critical automations, paid products, systems with real users, or anything with meaningful availability expectations.
|
|
10
|
+
|
|
11
|
+
## Required Checks
|
|
12
|
+
|
|
13
|
+
- Define expected availability, latency, and reliability targets.
|
|
14
|
+
- Identify critical user journeys.
|
|
15
|
+
- Define service level indicators and service level objectives when appropriate.
|
|
16
|
+
- Define an error budget or acceptable failure threshold when appropriate.
|
|
17
|
+
- Define incident severity levels.
|
|
18
|
+
- Define escalation and owner responsibilities.
|
|
19
|
+
- Create or update operational runbooks.
|
|
20
|
+
- Ensure logs, metrics, traces, or equivalent diagnostics exist.
|
|
21
|
+
- Define rollback or mitigation paths.
|
|
22
|
+
- Define post-incident review expectations.
|
|
23
|
+
|
|
24
|
+
## Recommendation Format
|
|
25
|
+
|
|
26
|
+
```md
|
|
27
|
+
Reliability recommendation:
|
|
28
|
+
Why now:
|
|
29
|
+
Critical user journey:
|
|
30
|
+
Reliability target:
|
|
31
|
+
Operational risk:
|
|
32
|
+
Runbook needed:
|
|
33
|
+
Permission required:
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Blocking Conditions
|
|
37
|
+
|
|
38
|
+
- No way to detect failure in a production-critical flow.
|
|
39
|
+
- No rollback or mitigation for high-risk release.
|
|
40
|
+
- No owner or response path for production incidents.
|
|
41
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Protocol: Stack Selection
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Define how Sagaz should handle Stack Selection while keeping the process clear, low-token, safe, and verifiable.
|
|
6
|
+
|
|
7
|
+
## Required Practice
|
|
8
|
+
|
|
9
|
+
- Start from the user goal and current project state.
|
|
10
|
+
- Load only relevant context.
|
|
11
|
+
- Separate facts, assumptions, inferences, risks, and decisions.
|
|
12
|
+
- Ask permission before meaningful state changes.
|
|
13
|
+
- Record evidence and residual risk.
|
|
14
|
+
|
|
15
|
+
## Standard Recommendation Format
|
|
16
|
+
|
|
17
|
+
```md
|
|
18
|
+
Recommendation:
|
|
19
|
+
Why now:
|
|
20
|
+
What changes:
|
|
21
|
+
Benefit:
|
|
22
|
+
Risk:
|
|
23
|
+
Permission required:
|
|
24
|
+
```n
|
|
25
|
+
## Blocking Conditions
|
|
26
|
+
|
|
27
|
+
- The primary flow fails.
|
|
28
|
+
- A relevant build, check, or test fails without explanation.
|
|
29
|
+
- Secrets or sensitive data would be exposed.
|
|
30
|
+
- A high risk is not accepted by the user.
|
|
31
|
+
- Verification evidence is missing for the risk level.
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Protocol: Testing Matrix
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
Define how Sagaz should handle Testing Matrix while keeping the process clear, low-token, safe, and verifiable.
|
|
6
|
+
|
|
7
|
+
## Required Practice
|
|
8
|
+
|
|
9
|
+
- Start from the user goal and current project state.
|
|
10
|
+
- Load only relevant context.
|
|
11
|
+
- Separate facts, assumptions, inferences, risks, and decisions.
|
|
12
|
+
- Ask permission before meaningful state changes.
|
|
13
|
+
- Record evidence and residual risk.
|
|
14
|
+
|
|
15
|
+
## Standard Recommendation Format
|
|
16
|
+
|
|
17
|
+
```md
|
|
18
|
+
Recommendation:
|
|
19
|
+
Why now:
|
|
20
|
+
What changes:
|
|
21
|
+
Benefit:
|
|
22
|
+
Risk:
|
|
23
|
+
Permission required:
|
|
24
|
+
```n
|
|
25
|
+
## Blocking Conditions
|
|
26
|
+
|
|
27
|
+
- The primary flow fails.
|
|
28
|
+
- A relevant build, check, or test fails without explanation.
|
|
29
|
+
- Secrets or sensitive data would be exposed.
|
|
30
|
+
- A high risk is not accepted by the user.
|
|
31
|
+
- Verification evidence is missing for the risk level.
|
|
32
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Quickstart
|
|
2
|
+
|
|
3
|
+
Use this file as the minimum entry point for operating Sagaz with low token usage.
|
|
4
|
+
|
|
5
|
+
## Modes
|
|
6
|
+
|
|
7
|
+
- `solo`: one primary agent executes with minimal gates.
|
|
8
|
+
- `squad`: the orchestrator coordinates specialized agents.
|
|
9
|
+
- `factory`: create a new product with specs, implementation, and verification.
|
|
10
|
+
- `audit`: review an existing project for bugs, risks, regressions, and missing tests.
|
|
11
|
+
- `refactor`: change internals while preserving behavior.
|
|
12
|
+
|
|
13
|
+
## Standard Flow
|
|
14
|
+
|
|
15
|
+
1. Clarify objective, constraints, definition of done, and risks.
|
|
16
|
+
2. Select the smallest sufficient workflow and squad.
|
|
17
|
+
3. Create specifications when scope or risk is meaningful.
|
|
18
|
+
4. Execute in small verifiable steps.
|
|
19
|
+
5. Test proportionally to risk.
|
|
20
|
+
6. Record decisions, evidence, residual risks, and next steps.
|
|
21
|
+
|
|
22
|
+
## Permission Policy
|
|
23
|
+
|
|
24
|
+
Ask one question at a time only when the answer changes architecture, scope, cost, risk, or definition of done. When uncertainty is small, make a conservative assumption, record it, and continue.
|
|
25
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Skill: Exhaustive Verification
|
|
2
|
+
|
|
3
|
+
## When To Use
|
|
4
|
+
|
|
5
|
+
Use this when the task benefits from Exhaustive Verification.
|
|
6
|
+
|
|
7
|
+
## Procedure
|
|
8
|
+
|
|
9
|
+
1. Define expected behavior.
|
|
10
|
+
2. Identify risks and invariants.
|
|
11
|
+
3. Execute in small steps.
|
|
12
|
+
4. Verify results.
|
|
13
|
+
5. Document evidence and residual risks.
|
|
14
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Skill: Refactor Proofing
|
|
2
|
+
|
|
3
|
+
## When To Use
|
|
4
|
+
|
|
5
|
+
Use this when the task benefits from Refactor Proofing.
|
|
6
|
+
|
|
7
|
+
## Procedure
|
|
8
|
+
|
|
9
|
+
1. Define expected behavior.
|
|
10
|
+
2. Identify risks and invariants.
|
|
11
|
+
3. Execute in small steps.
|
|
12
|
+
4. Verify results.
|
|
13
|
+
5. Document evidence and residual risks.
|
|
14
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Skill: Spec First Development
|
|
2
|
+
|
|
3
|
+
## When To Use
|
|
4
|
+
|
|
5
|
+
Use this when the task benefits from Spec First Development.
|
|
6
|
+
|
|
7
|
+
## Procedure
|
|
8
|
+
|
|
9
|
+
1. Define expected behavior.
|
|
10
|
+
2. Identify risks and invariants.
|
|
11
|
+
3. Execute in small steps.
|
|
12
|
+
4. Verify results.
|
|
13
|
+
5. Document evidence and residual risks.
|
|
14
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Squad: Code Audit
|
|
2
|
+
|
|
3
|
+
## Use
|
|
4
|
+
|
|
5
|
+
Use this squad when the task matches Code Audit.
|
|
6
|
+
|
|
7
|
+
## Agents
|
|
8
|
+
|
|
9
|
+
- Orchestrator
|
|
10
|
+
- Product Strategist when product decisions are needed
|
|
11
|
+
- Technology Strategist when stack or deployment decisions are needed
|
|
12
|
+
- Software Architect when architecture matters
|
|
13
|
+
- Design Studio roles when UI exists
|
|
14
|
+
- Implementation Engineer when code changes are needed
|
|
15
|
+
- QA Verifier for verification
|
|
16
|
+
- Security Governance when data, auth, secrets, payments, or production are involved
|
|
17
|
+
- GitHub Ops when versioning, PRs, releases, or checks are useful
|
|
18
|
+
|
|
19
|
+
## Flow
|
|
20
|
+
|
|
21
|
+
1. Confirm objective, constraints, definition of done, and risks.
|
|
22
|
+
2. Select relevant tasks and protocols.
|
|
23
|
+
3. Execute the phase in small verifiable steps.
|
|
24
|
+
4. Produce evidence and residual risks.
|
|
25
|
+
5. Ask permission before handing off to the next team.
|
|
26
|
+
|
|
27
|
+
## Required Gates
|
|
28
|
+
|
|
29
|
+
- Clear objective and definition of done.
|
|
30
|
+
- Relevant specification or task contract.
|
|
31
|
+
- Handoff approval between major phases.
|
|
32
|
+
- Verification evidence proportional to risk.
|
|
33
|
+
- Residual risks documented.
|
|
34
|
+
|
|
35
|
+
## Standard Output
|
|
36
|
+
|
|
37
|
+
```md
|
|
38
|
+
Scope:
|
|
39
|
+
Current phase:
|
|
40
|
+
Evidence:
|
|
41
|
+
Risks:
|
|
42
|
+
Next team:
|
|
43
|
+
Permission request:
|
|
44
|
+
```
|
|
45
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Squad: Design Studio
|
|
2
|
+
|
|
3
|
+
## Use
|
|
4
|
+
|
|
5
|
+
Use this squad when the task matches Design Studio.
|
|
6
|
+
|
|
7
|
+
## Agents
|
|
8
|
+
|
|
9
|
+
- Orchestrator
|
|
10
|
+
- Product Strategist when product decisions are needed
|
|
11
|
+
- Technology Strategist when stack or deployment decisions are needed
|
|
12
|
+
- Software Architect when architecture matters
|
|
13
|
+
- Design Studio roles when UI exists
|
|
14
|
+
- Implementation Engineer when code changes are needed
|
|
15
|
+
- QA Verifier for verification
|
|
16
|
+
- Security Governance when data, auth, secrets, payments, or production are involved
|
|
17
|
+
- GitHub Ops when versioning, PRs, releases, or checks are useful
|
|
18
|
+
|
|
19
|
+
## Flow
|
|
20
|
+
|
|
21
|
+
1. Confirm objective, constraints, definition of done, and risks.
|
|
22
|
+
2. Select relevant tasks and protocols.
|
|
23
|
+
3. Execute the phase in small verifiable steps.
|
|
24
|
+
4. Produce evidence and residual risks.
|
|
25
|
+
5. Ask permission before handing off to the next team.
|
|
26
|
+
|
|
27
|
+
## Required Gates
|
|
28
|
+
|
|
29
|
+
- Clear objective and definition of done.
|
|
30
|
+
- Relevant specification or task contract.
|
|
31
|
+
- Handoff approval between major phases.
|
|
32
|
+
- Verification evidence proportional to risk.
|
|
33
|
+
- Residual risks documented.
|
|
34
|
+
|
|
35
|
+
## Standard Output
|
|
36
|
+
|
|
37
|
+
```md
|
|
38
|
+
Scope:
|
|
39
|
+
Current phase:
|
|
40
|
+
Evidence:
|
|
41
|
+
Risks:
|
|
42
|
+
Next team:
|
|
43
|
+
Permission request:
|
|
44
|
+
```
|
|
45
|
+
|