@jaguilar87/gaia-ops 4.4.0 → 4.7.2
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-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +12 -3
- package/ARCHITECTURE.md +9 -8
- package/CHANGELOG.md +34 -0
- package/README.md +43 -11
- package/agents/terraform-architect.md +1 -1
- package/bin/README.md +2 -2
- package/bin/gaia-doctor.js +18 -5
- package/bin/gaia-history.js +0 -1
- package/bin/gaia-metrics.js +2 -2
- package/bin/gaia-scan.py +23 -1
- package/bin/gaia-update.js +346 -54
- package/bin/pre-publish-validate.js +33 -10
- package/commands/gaia.md +37 -0
- package/config/README.md +3 -9
- package/config/context-contracts.json +47 -15
- package/config/surface-routing.json +9 -1
- package/dist/gaia-ops/.claude-plugin/plugin.json +22 -0
- package/dist/gaia-ops/agents/cloud-troubleshooter.md +73 -0
- package/dist/gaia-ops/agents/devops-developer.md +57 -0
- package/dist/gaia-ops/agents/gaia-system.md +58 -0
- package/dist/gaia-ops/agents/gitops-operator.md +60 -0
- package/dist/gaia-ops/agents/speckit-planner.md +71 -0
- package/dist/gaia-ops/agents/terraform-architect.md +60 -0
- package/dist/gaia-ops/commands/gaia.md +37 -0
- package/dist/gaia-ops/config/README.md +58 -0
- package/dist/gaia-ops/config/cloud/aws.json +140 -0
- package/dist/gaia-ops/config/cloud/gcp.json +145 -0
- package/dist/gaia-ops/config/context-contracts.json +131 -0
- package/dist/gaia-ops/config/git_standards.json +72 -0
- package/dist/gaia-ops/config/surface-routing.json +197 -0
- package/dist/gaia-ops/config/universal-rules.json +10 -0
- package/dist/gaia-ops/hooks/adapters/__init__.py +52 -0
- package/dist/gaia-ops/hooks/adapters/base.py +219 -0
- package/dist/gaia-ops/hooks/adapters/channel.py +17 -0
- package/dist/gaia-ops/hooks/adapters/claude_code.py +1477 -0
- package/dist/gaia-ops/hooks/adapters/types.py +194 -0
- package/dist/gaia-ops/hooks/adapters/utils.py +25 -0
- package/dist/gaia-ops/hooks/hooks.json +126 -0
- package/dist/gaia-ops/hooks/modules/__init__.py +15 -0
- package/dist/gaia-ops/hooks/modules/agents/__init__.py +29 -0
- package/dist/gaia-ops/hooks/modules/agents/contract_validator.py +647 -0
- package/dist/gaia-ops/hooks/modules/agents/response_contract.py +496 -0
- package/dist/gaia-ops/hooks/modules/agents/skill_injection_verifier.py +124 -0
- package/dist/gaia-ops/hooks/modules/agents/task_info_builder.py +74 -0
- package/dist/gaia-ops/hooks/modules/agents/transcript_analyzer.py +458 -0
- package/dist/gaia-ops/hooks/modules/agents/transcript_reader.py +152 -0
- package/dist/gaia-ops/hooks/modules/audit/__init__.py +28 -0
- package/dist/gaia-ops/hooks/modules/audit/event_detector.py +168 -0
- package/dist/gaia-ops/hooks/modules/audit/logger.py +131 -0
- package/dist/gaia-ops/hooks/modules/audit/metrics.py +134 -0
- package/dist/gaia-ops/hooks/modules/audit/workflow_auditor.py +576 -0
- package/dist/gaia-ops/hooks/modules/audit/workflow_recorder.py +296 -0
- package/dist/gaia-ops/hooks/modules/context/__init__.py +11 -0
- package/dist/gaia-ops/hooks/modules/context/anchor_tracker.py +317 -0
- package/dist/gaia-ops/hooks/modules/context/compact_context_builder.py +215 -0
- package/dist/gaia-ops/hooks/modules/context/context_cache.py +129 -0
- package/dist/gaia-ops/hooks/modules/context/context_freshness.py +145 -0
- package/dist/gaia-ops/hooks/modules/context/context_injector.py +427 -0
- package/dist/gaia-ops/hooks/modules/context/context_writer.py +518 -0
- package/dist/gaia-ops/hooks/modules/context/contracts_loader.py +161 -0
- package/dist/gaia-ops/hooks/modules/core/__init__.py +40 -0
- package/dist/gaia-ops/hooks/modules/core/hook_entry.py +78 -0
- package/dist/gaia-ops/hooks/modules/core/paths.py +160 -0
- package/dist/gaia-ops/hooks/modules/core/plugin_mode.py +149 -0
- package/dist/gaia-ops/hooks/modules/core/plugin_setup.py +558 -0
- package/dist/gaia-ops/hooks/modules/core/state.py +179 -0
- package/dist/gaia-ops/hooks/modules/core/stdin.py +24 -0
- package/dist/gaia-ops/hooks/modules/events/__init__.py +1 -0
- package/dist/gaia-ops/hooks/modules/events/event_writer.py +210 -0
- package/dist/gaia-ops/hooks/modules/identity/__init__.py +0 -0
- package/dist/gaia-ops/hooks/modules/identity/identity_provider.py +21 -0
- package/dist/gaia-ops/hooks/modules/identity/ops_identity.py +34 -0
- package/dist/gaia-ops/hooks/modules/identity/security_identity.py +10 -0
- package/dist/gaia-ops/hooks/modules/memory/__init__.py +8 -0
- package/dist/gaia-ops/hooks/modules/memory/episode_writer.py +227 -0
- package/dist/gaia-ops/hooks/modules/orchestrator/__init__.py +1 -0
- package/dist/gaia-ops/hooks/modules/orchestrator/delegate_mode.py +128 -0
- package/dist/gaia-ops/hooks/modules/scanning/__init__.py +8 -0
- package/dist/gaia-ops/hooks/modules/scanning/scan_trigger.py +84 -0
- package/dist/gaia-ops/hooks/modules/security/__init__.py +89 -0
- package/dist/gaia-ops/hooks/modules/security/approval_cleanup.py +87 -0
- package/dist/gaia-ops/hooks/modules/security/approval_constants.py +23 -0
- package/dist/gaia-ops/hooks/modules/security/approval_grants.py +912 -0
- package/dist/gaia-ops/hooks/modules/security/approval_messages.py +71 -0
- package/dist/gaia-ops/hooks/modules/security/approval_scopes.py +153 -0
- package/dist/gaia-ops/hooks/modules/security/blocked_commands.py +584 -0
- package/dist/gaia-ops/hooks/modules/security/blocked_message_formatter.py +86 -0
- package/dist/gaia-ops/hooks/modules/security/command_semantics.py +130 -0
- package/dist/gaia-ops/hooks/modules/security/gitops_validator.py +179 -0
- package/dist/gaia-ops/hooks/modules/security/mutative_verbs.py +850 -0
- package/dist/gaia-ops/hooks/modules/security/prompt_validator.py +40 -0
- package/dist/gaia-ops/hooks/modules/security/tiers.py +196 -0
- package/dist/gaia-ops/hooks/modules/session/__init__.py +10 -0
- package/dist/gaia-ops/hooks/modules/session/session_context_writer.py +100 -0
- package/dist/gaia-ops/hooks/modules/session/session_event_injector.py +158 -0
- package/dist/gaia-ops/hooks/modules/session/session_manager.py +31 -0
- package/dist/gaia-ops/hooks/modules/tools/__init__.py +25 -0
- package/dist/gaia-ops/hooks/modules/tools/bash_validator.py +708 -0
- package/dist/gaia-ops/hooks/modules/tools/cloud_pipe_validator.py +181 -0
- package/dist/gaia-ops/hooks/modules/tools/hook_response.py +55 -0
- package/dist/gaia-ops/hooks/modules/tools/shell_parser.py +227 -0
- package/dist/gaia-ops/hooks/modules/tools/task_validator.py +283 -0
- package/dist/gaia-ops/hooks/modules/validation/__init__.py +23 -0
- package/dist/gaia-ops/hooks/modules/validation/commit_validator.py +380 -0
- package/dist/gaia-ops/hooks/post_compact.py +43 -0
- package/dist/gaia-ops/hooks/post_tool_use.py +54 -0
- package/dist/gaia-ops/hooks/pre_tool_use.py +383 -0
- package/dist/gaia-ops/hooks/session_start.py +69 -0
- package/dist/gaia-ops/hooks/stop_hook.py +69 -0
- package/dist/gaia-ops/hooks/subagent_start.py +71 -0
- package/dist/gaia-ops/hooks/subagent_stop.py +288 -0
- package/dist/gaia-ops/hooks/task_completed.py +70 -0
- package/dist/gaia-ops/hooks/user_prompt_submit.py +177 -0
- package/dist/gaia-ops/settings.json +72 -0
- package/dist/gaia-ops/skills/README.md +109 -0
- package/dist/gaia-ops/skills/agent-protocol/SKILL.md +105 -0
- package/dist/gaia-ops/skills/agent-protocol/examples.md +170 -0
- package/dist/gaia-ops/skills/agent-response/SKILL.md +53 -0
- package/dist/gaia-ops/skills/approval/SKILL.md +85 -0
- package/dist/gaia-ops/skills/approval/examples.md +140 -0
- package/dist/gaia-ops/skills/approval/reference.md +57 -0
- package/dist/gaia-ops/skills/command-execution/SKILL.md +64 -0
- package/dist/gaia-ops/skills/command-execution/reference.md +83 -0
- package/dist/gaia-ops/skills/context-updater/SKILL.md +76 -0
- package/dist/gaia-ops/skills/context-updater/examples.md +71 -0
- package/dist/gaia-ops/skills/developer-patterns/SKILL.md +93 -0
- package/dist/gaia-ops/skills/developer-patterns/reference.md +112 -0
- package/dist/gaia-ops/skills/execution/SKILL.md +66 -0
- package/dist/gaia-ops/skills/fast-queries/SKILL.md +47 -0
- package/dist/gaia-ops/skills/gaia-patterns/SKILL.md +92 -0
- package/dist/gaia-ops/skills/gaia-patterns/reference.md +22 -0
- package/dist/gaia-ops/skills/git-conventions/SKILL.md +48 -0
- package/dist/gaia-ops/skills/gitops-patterns/SKILL.md +73 -0
- package/dist/gaia-ops/skills/gitops-patterns/reference.md +183 -0
- package/dist/gaia-ops/skills/investigation/SKILL.md +77 -0
- package/dist/gaia-ops/skills/orchestrator-approval/SKILL.md +64 -0
- package/dist/gaia-ops/skills/reference.md +134 -0
- package/dist/gaia-ops/skills/security-tiers/SKILL.md +61 -0
- package/dist/gaia-ops/skills/security-tiers/destructive-commands-reference.md +623 -0
- package/dist/gaia-ops/skills/security-tiers/reference.md +39 -0
- package/dist/gaia-ops/skills/skill-creation/SKILL.md +119 -0
- package/dist/gaia-ops/skills/specification/SKILL.md +186 -0
- package/dist/gaia-ops/skills/speckit-workflow/SKILL.md +165 -0
- package/dist/gaia-ops/skills/speckit-workflow/reference.md +117 -0
- package/dist/gaia-ops/skills/terraform-patterns/SKILL.md +63 -0
- package/dist/gaia-ops/skills/terraform-patterns/reference.md +93 -0
- package/dist/gaia-ops/speckit/README.md +516 -0
- package/dist/gaia-ops/speckit/scripts/.gitkeep +0 -0
- package/dist/gaia-ops/speckit/templates/adr-template.md +118 -0
- package/dist/gaia-ops/speckit/templates/agent-file-template.md +23 -0
- package/dist/gaia-ops/speckit/templates/plan-template.md +227 -0
- package/dist/gaia-ops/speckit/templates/spec-template.md +140 -0
- package/dist/gaia-ops/speckit/templates/tasks-template.md +257 -0
- package/dist/gaia-ops/tools/context/README.md +132 -0
- package/dist/gaia-ops/tools/context/__init__.py +42 -0
- package/dist/gaia-ops/tools/context/_paths.py +20 -0
- package/dist/gaia-ops/tools/context/context_provider.py +476 -0
- package/dist/gaia-ops/tools/context/context_section_reader.py +330 -0
- package/dist/gaia-ops/tools/context/deep_merge.py +159 -0
- package/dist/gaia-ops/tools/context/pending_updates.py +760 -0
- package/dist/gaia-ops/tools/context/surface_router.py +278 -0
- package/dist/gaia-ops/tools/fast-queries/README.md +65 -0
- package/dist/gaia-ops/tools/fast-queries/__init__.py +30 -0
- package/dist/gaia-ops/tools/fast-queries/appservices/quicktriage_devops_developer.sh +75 -0
- package/dist/gaia-ops/tools/fast-queries/cloud/aws/quicktriage_aws_troubleshooter.sh +32 -0
- package/dist/gaia-ops/tools/fast-queries/cloud/gcp/quicktriage_gcp_troubleshooter.sh +88 -0
- package/dist/gaia-ops/tools/fast-queries/gitops/quicktriage_gitops_operator.sh +48 -0
- package/dist/gaia-ops/tools/fast-queries/run_triage.sh +59 -0
- package/dist/gaia-ops/tools/fast-queries/terraform/quicktriage_terraform_architect.sh +80 -0
- package/dist/gaia-ops/tools/gaia_simulator/__init__.py +33 -0
- package/dist/gaia-ops/tools/gaia_simulator/cli.py +354 -0
- package/dist/gaia-ops/tools/gaia_simulator/extractor.py +457 -0
- package/dist/gaia-ops/tools/gaia_simulator/reporter.py +258 -0
- package/dist/gaia-ops/tools/gaia_simulator/routing_simulator.py +334 -0
- package/dist/gaia-ops/tools/gaia_simulator/runner.py +539 -0
- package/dist/gaia-ops/tools/gaia_simulator/skills_mapper.py +262 -0
- package/dist/gaia-ops/tools/memory/README.md +0 -0
- package/dist/gaia-ops/tools/memory/__init__.py +20 -0
- package/dist/gaia-ops/tools/memory/episodic.py +1196 -0
- package/dist/gaia-ops/tools/persist_transcript_analysis.py +85 -0
- package/dist/gaia-ops/tools/review/__init__.py +1 -0
- package/dist/gaia-ops/tools/review/review_engine.py +157 -0
- package/dist/gaia-ops/tools/scan/__init__.py +35 -0
- package/dist/gaia-ops/tools/scan/config.py +247 -0
- package/dist/gaia-ops/tools/scan/merge.py +212 -0
- package/dist/gaia-ops/tools/scan/orchestrator.py +549 -0
- package/dist/gaia-ops/tools/scan/registry.py +127 -0
- package/dist/gaia-ops/tools/scan/scanners/__init__.py +18 -0
- package/dist/gaia-ops/tools/scan/scanners/base.py +137 -0
- package/dist/gaia-ops/tools/scan/scanners/environment.py +324 -0
- package/dist/gaia-ops/tools/scan/scanners/git.py +570 -0
- package/dist/gaia-ops/tools/scan/scanners/infrastructure.py +875 -0
- package/dist/gaia-ops/tools/scan/scanners/orchestration.py +600 -0
- package/dist/gaia-ops/tools/scan/scanners/stack.py +1085 -0
- package/dist/gaia-ops/tools/scan/scanners/tools.py +260 -0
- package/dist/gaia-ops/tools/scan/setup.py +753 -0
- package/dist/gaia-ops/tools/scan/tests/__init__.py +1 -0
- package/dist/gaia-ops/tools/scan/tests/conftest.py +796 -0
- package/dist/gaia-ops/tools/scan/tests/test_environment.py +323 -0
- package/dist/gaia-ops/tools/scan/tests/test_git.py +419 -0
- package/dist/gaia-ops/tools/scan/tests/test_infrastructure.py +382 -0
- package/dist/gaia-ops/tools/scan/tests/test_integration.py +920 -0
- package/dist/gaia-ops/tools/scan/tests/test_merge.py +269 -0
- package/dist/gaia-ops/tools/scan/tests/test_orchestration.py +304 -0
- package/dist/gaia-ops/tools/scan/tests/test_stack.py +604 -0
- package/dist/gaia-ops/tools/scan/tests/test_tools.py +349 -0
- package/dist/gaia-ops/tools/scan/ui.py +624 -0
- package/dist/gaia-ops/tools/scan/verify.py +266 -0
- package/dist/gaia-ops/tools/scan/walk.py +118 -0
- package/dist/gaia-ops/tools/scan/workspace.py +85 -0
- package/dist/gaia-ops/tools/validation/README.md +244 -0
- package/dist/gaia-ops/tools/validation/__init__.py +17 -0
- package/dist/gaia-ops/tools/validation/approval_gate.py +321 -0
- package/dist/gaia-ops/tools/validation/validate_skills.py +189 -0
- package/dist/gaia-security/.claude-plugin/plugin.json +22 -0
- package/dist/gaia-security/config/universal-rules.json +10 -0
- package/dist/gaia-security/hooks/adapters/__init__.py +52 -0
- package/dist/gaia-security/hooks/adapters/base.py +219 -0
- package/dist/gaia-security/hooks/adapters/channel.py +17 -0
- package/dist/gaia-security/hooks/adapters/claude_code.py +1477 -0
- package/dist/gaia-security/hooks/adapters/types.py +194 -0
- package/dist/gaia-security/hooks/adapters/utils.py +25 -0
- package/dist/gaia-security/hooks/hooks.json +57 -0
- package/dist/gaia-security/hooks/modules/__init__.py +15 -0
- package/dist/gaia-security/hooks/modules/agents/__init__.py +29 -0
- package/dist/gaia-security/hooks/modules/agents/contract_validator.py +647 -0
- package/dist/gaia-security/hooks/modules/agents/response_contract.py +496 -0
- package/dist/gaia-security/hooks/modules/agents/skill_injection_verifier.py +124 -0
- package/dist/gaia-security/hooks/modules/agents/task_info_builder.py +74 -0
- package/dist/gaia-security/hooks/modules/agents/transcript_analyzer.py +458 -0
- package/dist/gaia-security/hooks/modules/agents/transcript_reader.py +152 -0
- package/dist/gaia-security/hooks/modules/audit/__init__.py +28 -0
- package/dist/gaia-security/hooks/modules/audit/event_detector.py +168 -0
- package/dist/gaia-security/hooks/modules/audit/logger.py +131 -0
- package/dist/gaia-security/hooks/modules/audit/metrics.py +134 -0
- package/dist/gaia-security/hooks/modules/audit/workflow_auditor.py +576 -0
- package/dist/gaia-security/hooks/modules/audit/workflow_recorder.py +296 -0
- package/dist/gaia-security/hooks/modules/context/__init__.py +11 -0
- package/dist/gaia-security/hooks/modules/context/anchor_tracker.py +317 -0
- package/dist/gaia-security/hooks/modules/context/compact_context_builder.py +215 -0
- package/dist/gaia-security/hooks/modules/context/context_cache.py +129 -0
- package/dist/gaia-security/hooks/modules/context/context_freshness.py +145 -0
- package/dist/gaia-security/hooks/modules/context/context_injector.py +427 -0
- package/dist/gaia-security/hooks/modules/context/context_writer.py +518 -0
- package/dist/gaia-security/hooks/modules/context/contracts_loader.py +161 -0
- package/dist/gaia-security/hooks/modules/core/__init__.py +40 -0
- package/dist/gaia-security/hooks/modules/core/hook_entry.py +78 -0
- package/dist/gaia-security/hooks/modules/core/paths.py +160 -0
- package/dist/gaia-security/hooks/modules/core/plugin_mode.py +149 -0
- package/dist/gaia-security/hooks/modules/core/plugin_setup.py +558 -0
- package/dist/gaia-security/hooks/modules/core/state.py +179 -0
- package/dist/gaia-security/hooks/modules/core/stdin.py +24 -0
- package/dist/gaia-security/hooks/modules/events/__init__.py +1 -0
- package/dist/gaia-security/hooks/modules/events/event_writer.py +210 -0
- package/dist/gaia-security/hooks/modules/identity/__init__.py +0 -0
- package/dist/gaia-security/hooks/modules/identity/identity_provider.py +21 -0
- package/dist/gaia-security/hooks/modules/identity/ops_identity.py +34 -0
- package/dist/gaia-security/hooks/modules/identity/security_identity.py +10 -0
- package/dist/gaia-security/hooks/modules/memory/__init__.py +8 -0
- package/dist/gaia-security/hooks/modules/memory/episode_writer.py +227 -0
- package/dist/gaia-security/hooks/modules/orchestrator/__init__.py +1 -0
- package/dist/gaia-security/hooks/modules/orchestrator/delegate_mode.py +128 -0
- package/dist/gaia-security/hooks/modules/scanning/__init__.py +8 -0
- package/dist/gaia-security/hooks/modules/scanning/scan_trigger.py +84 -0
- package/dist/gaia-security/hooks/modules/security/__init__.py +89 -0
- package/dist/gaia-security/hooks/modules/security/approval_cleanup.py +87 -0
- package/dist/gaia-security/hooks/modules/security/approval_constants.py +23 -0
- package/dist/gaia-security/hooks/modules/security/approval_grants.py +912 -0
- package/dist/gaia-security/hooks/modules/security/approval_messages.py +71 -0
- package/dist/gaia-security/hooks/modules/security/approval_scopes.py +153 -0
- package/dist/gaia-security/hooks/modules/security/blocked_commands.py +584 -0
- package/dist/gaia-security/hooks/modules/security/blocked_message_formatter.py +86 -0
- package/dist/gaia-security/hooks/modules/security/command_semantics.py +130 -0
- package/dist/gaia-security/hooks/modules/security/gitops_validator.py +179 -0
- package/dist/gaia-security/hooks/modules/security/mutative_verbs.py +850 -0
- package/dist/gaia-security/hooks/modules/security/prompt_validator.py +40 -0
- package/dist/gaia-security/hooks/modules/security/tiers.py +196 -0
- package/dist/gaia-security/hooks/modules/session/__init__.py +10 -0
- package/dist/gaia-security/hooks/modules/session/session_context_writer.py +100 -0
- package/dist/gaia-security/hooks/modules/session/session_event_injector.py +158 -0
- package/dist/gaia-security/hooks/modules/session/session_manager.py +31 -0
- package/dist/gaia-security/hooks/modules/tools/__init__.py +25 -0
- package/dist/gaia-security/hooks/modules/tools/bash_validator.py +708 -0
- package/dist/gaia-security/hooks/modules/tools/cloud_pipe_validator.py +181 -0
- package/dist/gaia-security/hooks/modules/tools/hook_response.py +55 -0
- package/dist/gaia-security/hooks/modules/tools/shell_parser.py +227 -0
- package/dist/gaia-security/hooks/modules/tools/task_validator.py +283 -0
- package/dist/gaia-security/hooks/modules/validation/__init__.py +23 -0
- package/dist/gaia-security/hooks/modules/validation/commit_validator.py +380 -0
- package/dist/gaia-security/hooks/post_tool_use.py +54 -0
- package/dist/gaia-security/hooks/pre_tool_use.py +383 -0
- package/dist/gaia-security/hooks/session_start.py +69 -0
- package/dist/gaia-security/hooks/stop_hook.py +69 -0
- package/dist/gaia-security/hooks/user_prompt_submit.py +177 -0
- package/dist/gaia-security/settings.json +58 -0
- package/git-hooks/commit-msg +41 -0
- package/hooks/README.md +8 -6
- package/hooks/adapters/channel.py +0 -25
- package/hooks/adapters/claude_code.py +364 -125
- package/hooks/elicitation_result.py +132 -0
- package/hooks/hooks.json +10 -1
- package/hooks/modules/README.md +3 -2
- package/hooks/modules/agents/contract_validator.py +3 -51
- package/hooks/modules/agents/response_contract.py +4 -8
- package/hooks/modules/agents/transcript_reader.py +4 -5
- package/hooks/modules/audit/__init__.py +4 -6
- package/hooks/modules/audit/event_detector.py +0 -2
- package/hooks/modules/audit/metrics.py +108 -187
- package/hooks/modules/audit/workflow_auditor.py +0 -4
- package/hooks/modules/audit/workflow_recorder.py +0 -5
- package/hooks/modules/context/compact_context_builder.py +1 -0
- package/hooks/modules/context/context_cache.py +129 -0
- package/hooks/modules/context/context_injector.py +18 -40
- package/hooks/modules/context/context_writer.py +1 -25
- package/hooks/modules/context/contracts_loader.py +7 -10
- package/hooks/modules/core/hook_entry.py +1 -0
- package/hooks/modules/core/paths.py +12 -13
- package/hooks/modules/core/plugin_mode.py +74 -4
- package/hooks/modules/core/plugin_setup.py +395 -23
- package/hooks/modules/events/__init__.py +1 -0
- package/hooks/modules/events/event_writer.py +210 -0
- package/hooks/modules/identity/ops_identity.py +18 -27
- package/hooks/modules/memory/episode_writer.py +1 -6
- package/hooks/modules/orchestrator/__init__.py +1 -0
- package/hooks/modules/orchestrator/delegate_mode.py +128 -0
- package/hooks/modules/security/__init__.py +2 -4
- package/hooks/modules/security/approval_constants.py +5 -1
- package/hooks/modules/security/approval_grants.py +189 -6
- package/hooks/modules/security/approval_messages.py +9 -21
- package/hooks/modules/security/blocked_commands.py +98 -34
- package/hooks/modules/security/command_semantics.py +0 -4
- package/hooks/modules/security/gitops_validator.py +1 -11
- package/hooks/modules/security/mutative_verbs.py +179 -38
- package/hooks/modules/security/tiers.py +1 -19
- package/hooks/modules/session/session_event_injector.py +1 -25
- package/hooks/modules/tools/bash_validator.py +310 -94
- package/hooks/modules/tools/shell_parser.py +0 -1
- package/hooks/modules/tools/task_validator.py +9 -29
- package/hooks/post_tool_use.py +0 -72
- package/hooks/pre_tool_use.py +42 -102
- package/hooks/session_start.py +4 -2
- package/hooks/subagent_start.py +6 -2
- package/hooks/subagent_stop.py +1 -13
- package/hooks/user_prompt_submit.py +119 -37
- package/index.js +1 -1
- package/package.json +5 -3
- package/skills/README.md +3 -5
- package/skills/agent-protocol/SKILL.md +17 -16
- package/skills/agent-protocol/examples.md +6 -6
- package/skills/agent-response/SKILL.md +11 -14
- package/skills/approval/SKILL.md +28 -13
- package/skills/approval/reference.md +2 -2
- package/skills/execution/SKILL.md +1 -1
- package/skills/gaia-patterns/SKILL.md +2 -3
- package/skills/orchestrator-approval/SKILL.md +22 -50
- package/skills/security-tiers/SKILL.md +1 -1
- package/templates/README.md +9 -9
- package/templates/managed-settings.template.json +43 -0
- package/tools/gaia_simulator/runner.py +34 -1
- package/tools/scan/orchestrator.py +13 -0
- package/tools/scan/scanners/base.py +8 -0
- package/tools/scan/scanners/git.py +78 -0
- package/tools/scan/scanners/infrastructure.py +65 -0
- package/tools/scan/scanners/stack.py +110 -0
- package/tools/scan/setup.py +120 -13
- package/tools/scan/workspace.py +85 -0
- package/config/context-contracts.aws.json +0 -42
- package/config/context-contracts.gcp.json +0 -39
- package/skills/project-dispatch/SKILL.md +0 -34
- package/templates/settings.template.json +0 -226
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0",
|
|
3
|
+
"provider": "aws",
|
|
4
|
+
"description": "AWS-specific context extensions. Merged on top of context-contracts.json at runtime by context_provider.py.",
|
|
5
|
+
"agents": {
|
|
6
|
+
"cloud-troubleshooter": {
|
|
7
|
+
"read": [
|
|
8
|
+
"vpc_mapping",
|
|
9
|
+
"load_balancers",
|
|
10
|
+
"api_gateway",
|
|
11
|
+
"irsa_bindings",
|
|
12
|
+
"aws_accounts"
|
|
13
|
+
],
|
|
14
|
+
"write": [
|
|
15
|
+
"vpc_mapping",
|
|
16
|
+
"load_balancers",
|
|
17
|
+
"irsa_bindings"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"terraform-architect": {
|
|
21
|
+
"read": [
|
|
22
|
+
"vpc_mapping",
|
|
23
|
+
"load_balancers",
|
|
24
|
+
"api_gateway",
|
|
25
|
+
"irsa_bindings",
|
|
26
|
+
"aws_accounts"
|
|
27
|
+
],
|
|
28
|
+
"write": [
|
|
29
|
+
"vpc_mapping",
|
|
30
|
+
"load_balancers",
|
|
31
|
+
"api_gateway",
|
|
32
|
+
"irsa_bindings"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"gitops-operator": {
|
|
36
|
+
"read": [
|
|
37
|
+
"irsa_bindings"
|
|
38
|
+
],
|
|
39
|
+
"write": []
|
|
40
|
+
},
|
|
41
|
+
"devops-developer": {
|
|
42
|
+
"read": [
|
|
43
|
+
"aws_accounts",
|
|
44
|
+
"load_balancers"
|
|
45
|
+
],
|
|
46
|
+
"write": []
|
|
47
|
+
},
|
|
48
|
+
"speckit-planner": {
|
|
49
|
+
"read": [
|
|
50
|
+
"aws_accounts"
|
|
51
|
+
],
|
|
52
|
+
"write": []
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"section_schemas": {
|
|
56
|
+
"aws_accounts": {
|
|
57
|
+
"_description": "AWS account IDs by environment. AWS projects often use multiple accounts (prod, dev, shared services).",
|
|
58
|
+
"production": {
|
|
59
|
+
"account_id": "",
|
|
60
|
+
"account_alias": "",
|
|
61
|
+
"region": "us-east-1"
|
|
62
|
+
},
|
|
63
|
+
"development": {
|
|
64
|
+
"account_id": "",
|
|
65
|
+
"account_alias": "",
|
|
66
|
+
"region": "us-east-1"
|
|
67
|
+
},
|
|
68
|
+
"shared": {
|
|
69
|
+
"account_id": "",
|
|
70
|
+
"account_alias": "",
|
|
71
|
+
"purpose": "Shared services (ECR, shared EKS, tooling)"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"vpc_mapping": {
|
|
75
|
+
"_description": "AWS VPC topology per environment, including subnets and AZ mapping",
|
|
76
|
+
"vpcs": [
|
|
77
|
+
{
|
|
78
|
+
"vpc_id": "",
|
|
79
|
+
"name": "",
|
|
80
|
+
"environment": "production",
|
|
81
|
+
"region": "us-east-1",
|
|
82
|
+
"cidr": "10.0.0.0/16",
|
|
83
|
+
"subnets": {
|
|
84
|
+
"private": [],
|
|
85
|
+
"public": []
|
|
86
|
+
},
|
|
87
|
+
"availability_zones": [],
|
|
88
|
+
"clusters": [],
|
|
89
|
+
"status": "ACTIVE"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"load_balancers": {
|
|
94
|
+
"_description": "AWS NLB and ALB resources by service and cluster",
|
|
95
|
+
"_example": {
|
|
96
|
+
"my-service-nlb-prod": {
|
|
97
|
+
"name": "my-service-nlb-prod",
|
|
98
|
+
"type": "network",
|
|
99
|
+
"scheme": "internal",
|
|
100
|
+
"dns": "xxxx.elb.us-east-1.amazonaws.com",
|
|
101
|
+
"service": "my-service",
|
|
102
|
+
"namespace": "my-namespace",
|
|
103
|
+
"cluster": "my-eks-cluster",
|
|
104
|
+
"purpose": ""
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"api_gateway": {
|
|
109
|
+
"_description": "AWS API Gateway V2 (HTTP/WebSocket) configurations and VPC Links",
|
|
110
|
+
"vpc_links": {
|
|
111
|
+
"_example_key": {
|
|
112
|
+
"id": "",
|
|
113
|
+
"status": "ACTIVE",
|
|
114
|
+
"target_nlb": "",
|
|
115
|
+
"target_nlb_dns": "",
|
|
116
|
+
"backend_service": "",
|
|
117
|
+
"namespace": "",
|
|
118
|
+
"cluster": "",
|
|
119
|
+
"host": "",
|
|
120
|
+
"purpose": ""
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"apis": []
|
|
124
|
+
},
|
|
125
|
+
"irsa_bindings": {
|
|
126
|
+
"_description": "IAM Roles for Service Accounts (OIDC-based). AWS equivalent of GCP Workload Identity.",
|
|
127
|
+
"_example": {
|
|
128
|
+
"my-service-sa": {
|
|
129
|
+
"kubernetes_sa": "my-service-sa",
|
|
130
|
+
"namespace": "my-namespace",
|
|
131
|
+
"iam_role_arn": "arn:aws:iam::123456789012:role/my-service-role",
|
|
132
|
+
"iam_policies": [
|
|
133
|
+
"arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess"
|
|
134
|
+
],
|
|
135
|
+
"purpose": "Describe what this service account does"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0",
|
|
3
|
+
"provider": "gcp",
|
|
4
|
+
"description": "GCP-specific context extensions. Merged on top of context-contracts.json at runtime by context_provider.py.",
|
|
5
|
+
"agents": {
|
|
6
|
+
"cloud-troubleshooter": {
|
|
7
|
+
"read": [
|
|
8
|
+
"gcp_services",
|
|
9
|
+
"workload_identity",
|
|
10
|
+
"static_ips"
|
|
11
|
+
],
|
|
12
|
+
"write": [
|
|
13
|
+
"gcp_services",
|
|
14
|
+
"workload_identity",
|
|
15
|
+
"static_ips"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"terraform-architect": {
|
|
19
|
+
"read": [
|
|
20
|
+
"gcp_services",
|
|
21
|
+
"workload_identity",
|
|
22
|
+
"static_ips"
|
|
23
|
+
],
|
|
24
|
+
"write": [
|
|
25
|
+
"gcp_services",
|
|
26
|
+
"workload_identity",
|
|
27
|
+
"static_ips"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"gitops-operator": {
|
|
31
|
+
"read": [
|
|
32
|
+
"workload_identity",
|
|
33
|
+
"gcp_services"
|
|
34
|
+
],
|
|
35
|
+
"write": []
|
|
36
|
+
},
|
|
37
|
+
"devops-developer": {
|
|
38
|
+
"read": [
|
|
39
|
+
"gcp_services"
|
|
40
|
+
],
|
|
41
|
+
"write": []
|
|
42
|
+
},
|
|
43
|
+
"speckit-planner": {
|
|
44
|
+
"read": [
|
|
45
|
+
"gcp_services"
|
|
46
|
+
],
|
|
47
|
+
"write": []
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"section_schemas": {
|
|
51
|
+
"gcp_services": {
|
|
52
|
+
"_description": "GCP-managed services used by the project (Artifact Registry, Cloud SQL, Memorystore, etc.)",
|
|
53
|
+
"artifact_registry": {
|
|
54
|
+
"repositories": [
|
|
55
|
+
{
|
|
56
|
+
"name": "",
|
|
57
|
+
"location": "",
|
|
58
|
+
"format": "DOCKER",
|
|
59
|
+
"project": "",
|
|
60
|
+
"url": ""
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"cloud_sql": {
|
|
65
|
+
"instances": [
|
|
66
|
+
{
|
|
67
|
+
"name": "",
|
|
68
|
+
"version": "POSTGRES_15",
|
|
69
|
+
"tier": "db-f1-micro",
|
|
70
|
+
"region": "",
|
|
71
|
+
"database_flags": {},
|
|
72
|
+
"status": ""
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"memorystore": {
|
|
77
|
+
"instances": [
|
|
78
|
+
{
|
|
79
|
+
"name": "",
|
|
80
|
+
"tier": "BASIC",
|
|
81
|
+
"memory_size_gb": 1,
|
|
82
|
+
"region": "",
|
|
83
|
+
"status": ""
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"cloud_storage": {
|
|
88
|
+
"buckets": [
|
|
89
|
+
{
|
|
90
|
+
"name": "",
|
|
91
|
+
"location": "",
|
|
92
|
+
"storage_class": "STANDARD",
|
|
93
|
+
"purpose": ""
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"secret_manager": {
|
|
98
|
+
"enabled": true,
|
|
99
|
+
"secrets": []
|
|
100
|
+
},
|
|
101
|
+
"pubsub": {
|
|
102
|
+
"topics": [],
|
|
103
|
+
"subscriptions": []
|
|
104
|
+
},
|
|
105
|
+
"cloud_nat": {
|
|
106
|
+
"name": "",
|
|
107
|
+
"router": "",
|
|
108
|
+
"region": "",
|
|
109
|
+
"status": ""
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"workload_identity": {
|
|
113
|
+
"_description": "GCP Workload Identity bindings: Kubernetes ServiceAccount -> GCP ServiceAccount with IAM roles",
|
|
114
|
+
"_example": {
|
|
115
|
+
"my-service-sa": {
|
|
116
|
+
"kubernetes_sa": "my-service-sa",
|
|
117
|
+
"namespace": "my-namespace",
|
|
118
|
+
"gcp_sa": "my-service-sa@project-id.iam.gserviceaccount.com",
|
|
119
|
+
"iam_roles": [
|
|
120
|
+
"roles/cloudsql.client",
|
|
121
|
+
"roles/secretmanager.secretAccessor",
|
|
122
|
+
"roles/artifactregistry.reader"
|
|
123
|
+
],
|
|
124
|
+
"purpose": "Describe what this service account does"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"static_ips": {
|
|
129
|
+
"_description": "GCP global and regional static IP addresses used for Ingress and services",
|
|
130
|
+
"_example": {
|
|
131
|
+
"my-service-ip": {
|
|
132
|
+
"name": "my-service-ip",
|
|
133
|
+
"address": "34.x.x.x",
|
|
134
|
+
"type": "global",
|
|
135
|
+
"purpose": "Ingress for my-service",
|
|
136
|
+
"dns_records": [
|
|
137
|
+
"my-service.example.com"
|
|
138
|
+
],
|
|
139
|
+
"ssl_certificates": "Active until YYYY-MM-DD",
|
|
140
|
+
"status": ""
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4.0",
|
|
3
|
+
"description": "Context contracts v4: universal core sections + agent-specific ops sections + workspace_repos. Core sections are granted to every agent. Cloud-specific extensions live in cloud/{provider}.json.",
|
|
4
|
+
"core_sections": [
|
|
5
|
+
"project_identity",
|
|
6
|
+
"stack",
|
|
7
|
+
"git",
|
|
8
|
+
"environment",
|
|
9
|
+
"application_services",
|
|
10
|
+
"architecture_overview",
|
|
11
|
+
"operational_guidelines"
|
|
12
|
+
],
|
|
13
|
+
"section_schemas": {
|
|
14
|
+
"workspace_repos": {
|
|
15
|
+
"description": "Array of repositories in a multi-repo workspace",
|
|
16
|
+
"schema": {
|
|
17
|
+
"repos": [
|
|
18
|
+
{
|
|
19
|
+
"name": "string",
|
|
20
|
+
"path": "string (relative to workspace root)",
|
|
21
|
+
"remote_url": "string",
|
|
22
|
+
"platform": "string (github/gitlab/bitbucket)",
|
|
23
|
+
"role": "string (gitops/iac/platform/agent/library)",
|
|
24
|
+
"primary_language": "string"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"agents": {
|
|
31
|
+
"cloud-troubleshooter": {
|
|
32
|
+
"read": [
|
|
33
|
+
"project_identity",
|
|
34
|
+
"stack",
|
|
35
|
+
"git",
|
|
36
|
+
"environment",
|
|
37
|
+
"application_services",
|
|
38
|
+
"architecture_overview",
|
|
39
|
+
"operational_guidelines",
|
|
40
|
+
"infrastructure",
|
|
41
|
+
"orchestration",
|
|
42
|
+
"cluster_details",
|
|
43
|
+
"infrastructure_topology",
|
|
44
|
+
"terraform_infrastructure",
|
|
45
|
+
"gitops_configuration",
|
|
46
|
+
"monitoring_observability",
|
|
47
|
+
"workspace_repos"
|
|
48
|
+
],
|
|
49
|
+
"write": [
|
|
50
|
+
"cluster_details",
|
|
51
|
+
"infrastructure_topology",
|
|
52
|
+
"application_services",
|
|
53
|
+
"monitoring_observability",
|
|
54
|
+
"architecture_overview"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"gitops-operator": {
|
|
58
|
+
"read": [
|
|
59
|
+
"project_identity",
|
|
60
|
+
"stack",
|
|
61
|
+
"git",
|
|
62
|
+
"environment",
|
|
63
|
+
"application_services",
|
|
64
|
+
"architecture_overview",
|
|
65
|
+
"operational_guidelines",
|
|
66
|
+
"infrastructure",
|
|
67
|
+
"orchestration",
|
|
68
|
+
"gitops_configuration",
|
|
69
|
+
"cluster_details",
|
|
70
|
+
"workspace_repos"
|
|
71
|
+
],
|
|
72
|
+
"write": [
|
|
73
|
+
"gitops_configuration",
|
|
74
|
+
"cluster_details",
|
|
75
|
+
"application_services"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"terraform-architect": {
|
|
79
|
+
"read": [
|
|
80
|
+
"project_identity",
|
|
81
|
+
"stack",
|
|
82
|
+
"git",
|
|
83
|
+
"environment",
|
|
84
|
+
"application_services",
|
|
85
|
+
"architecture_overview",
|
|
86
|
+
"operational_guidelines",
|
|
87
|
+
"infrastructure",
|
|
88
|
+
"orchestration",
|
|
89
|
+
"terraform_infrastructure",
|
|
90
|
+
"infrastructure_topology",
|
|
91
|
+
"cluster_details",
|
|
92
|
+
"workspace_repos"
|
|
93
|
+
],
|
|
94
|
+
"write": [
|
|
95
|
+
"terraform_infrastructure",
|
|
96
|
+
"infrastructure_topology"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"devops-developer": {
|
|
100
|
+
"read": [
|
|
101
|
+
"project_identity",
|
|
102
|
+
"stack",
|
|
103
|
+
"git",
|
|
104
|
+
"environment",
|
|
105
|
+
"application_services",
|
|
106
|
+
"architecture_overview",
|
|
107
|
+
"operational_guidelines",
|
|
108
|
+
"infrastructure",
|
|
109
|
+
"workspace_repos"
|
|
110
|
+
],
|
|
111
|
+
"write": [
|
|
112
|
+
"application_services",
|
|
113
|
+
"architecture_overview"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"speckit-planner": {
|
|
117
|
+
"read": [
|
|
118
|
+
"project_identity",
|
|
119
|
+
"stack",
|
|
120
|
+
"git",
|
|
121
|
+
"environment",
|
|
122
|
+
"application_services",
|
|
123
|
+
"architecture_overview",
|
|
124
|
+
"operational_guidelines",
|
|
125
|
+
"infrastructure",
|
|
126
|
+
"workspace_repos"
|
|
127
|
+
],
|
|
128
|
+
"write": []
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commit_message": {
|
|
3
|
+
"format": "conventional_commits",
|
|
4
|
+
"description": "Commit messages must follow Conventional Commits specification",
|
|
5
|
+
|
|
6
|
+
"type_allowed": [
|
|
7
|
+
"feat",
|
|
8
|
+
"fix",
|
|
9
|
+
"refactor",
|
|
10
|
+
"docs",
|
|
11
|
+
"test",
|
|
12
|
+
"chore",
|
|
13
|
+
"ci",
|
|
14
|
+
"perf",
|
|
15
|
+
"style",
|
|
16
|
+
"build"
|
|
17
|
+
],
|
|
18
|
+
|
|
19
|
+
"scope_required": false,
|
|
20
|
+
"scope_examples": ["helmrelease", "terraform", "pg-non-prod", "infrastructure"],
|
|
21
|
+
|
|
22
|
+
"subject_max_length": 72,
|
|
23
|
+
"subject_rules": {
|
|
24
|
+
"capitalize_first_letter": false,
|
|
25
|
+
"no_period_at_end": true,
|
|
26
|
+
"imperative_mood": true,
|
|
27
|
+
"no_emoji": true
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
"body_max_line_length": 72,
|
|
31
|
+
"body_required": false,
|
|
32
|
+
|
|
33
|
+
"footer_forbidden": [
|
|
34
|
+
"Generated with Claude Code",
|
|
35
|
+
"Co-Authored-By: Claude",
|
|
36
|
+
"🤖 Generated with"
|
|
37
|
+
],
|
|
38
|
+
|
|
39
|
+
"footer_allowed": [
|
|
40
|
+
"BREAKING CHANGE:",
|
|
41
|
+
"Refs:",
|
|
42
|
+
"Closes:",
|
|
43
|
+
"Fixes:",
|
|
44
|
+
"Implements:",
|
|
45
|
+
"See:"
|
|
46
|
+
],
|
|
47
|
+
|
|
48
|
+
"examples_valid": [
|
|
49
|
+
"feat(helmrelease): add Phase 3.3 services",
|
|
50
|
+
"fix(pg-non-prod): correct API key environment variable mappings",
|
|
51
|
+
"refactor: simplify context provider logic",
|
|
52
|
+
"docs: update README with new workflow",
|
|
53
|
+
"chore(deps): update terraform to v1.6.0"
|
|
54
|
+
],
|
|
55
|
+
|
|
56
|
+
"examples_invalid": [
|
|
57
|
+
"Added new feature",
|
|
58
|
+
"Fixed bugs",
|
|
59
|
+
"Updates",
|
|
60
|
+
"feat: add feature\n\n🤖 Generated with Claude Code",
|
|
61
|
+
"feat: add new feature 🚀",
|
|
62
|
+
"fix: 🐛 correct bug"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
"enforcement": {
|
|
67
|
+
"enabled": true,
|
|
68
|
+
"block_on_failure": true,
|
|
69
|
+
"log_violations": true,
|
|
70
|
+
"log_path": ".claude/logs/commit-violations.jsonl"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0",
|
|
3
|
+
"reconnaissance_agent": "devops-developer",
|
|
4
|
+
"surfaces": {
|
|
5
|
+
"live_runtime": {
|
|
6
|
+
"primary_agent": "cloud-troubleshooter",
|
|
7
|
+
"adjacent_surfaces": ["gitops_desired_state", "terraform_iac"],
|
|
8
|
+
"contract_sections": ["project_identity", "stack", "git", "environment", "infrastructure", "orchestration", "cluster_details", "monitoring_observability", "application_services", "infrastructure_topology", "architecture_overview"],
|
|
9
|
+
"required_checks": [
|
|
10
|
+
"Prefer read-only live validation when runtime state is the question",
|
|
11
|
+
"Capture the exact diagnostic command and the key output that changed your conclusion",
|
|
12
|
+
"Compare actual state against desired state when manifests or IaC are implicated"
|
|
13
|
+
],
|
|
14
|
+
"signals": {
|
|
15
|
+
"keywords": [
|
|
16
|
+
"live cluster",
|
|
17
|
+
"runtime drift",
|
|
18
|
+
"pod",
|
|
19
|
+
"pods",
|
|
20
|
+
"logs",
|
|
21
|
+
"incident",
|
|
22
|
+
"crashloopbackoff",
|
|
23
|
+
"imagepullbackoff",
|
|
24
|
+
"service unavailable",
|
|
25
|
+
"latency",
|
|
26
|
+
"outage",
|
|
27
|
+
"runtime"
|
|
28
|
+
],
|
|
29
|
+
"commands": ["kubectl", "gcloud", "aws", "eksctl", "gsutil"],
|
|
30
|
+
"artifacts": ["pod", "service", "ingress", "node pool", "cluster"]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"gitops_desired_state": {
|
|
34
|
+
"primary_agent": "gitops-operator",
|
|
35
|
+
"adjacent_surfaces": ["live_runtime", "terraform_iac", "app_ci_tooling"],
|
|
36
|
+
"contract_sections": ["project_identity", "stack", "git", "environment", "infrastructure", "orchestration", "gitops_configuration", "cluster_details", "application_services", "operational_guidelines", "architecture_overview"],
|
|
37
|
+
"required_checks": [
|
|
38
|
+
"Search existing manifests and neighboring GitOps resources before proposing changes",
|
|
39
|
+
"Check desired state against runtime symptoms when the task smells like drift",
|
|
40
|
+
"Surface any deployment/runtime contract that another surface must validate"
|
|
41
|
+
],
|
|
42
|
+
"signals": {
|
|
43
|
+
"keywords": [
|
|
44
|
+
"gitops",
|
|
45
|
+
"flux",
|
|
46
|
+
"helm",
|
|
47
|
+
"kustomize",
|
|
48
|
+
"manifest",
|
|
49
|
+
"deployment",
|
|
50
|
+
"state in git",
|
|
51
|
+
"desired state",
|
|
52
|
+
"helmrelease",
|
|
53
|
+
"kustomization",
|
|
54
|
+
"rollout",
|
|
55
|
+
"configmap",
|
|
56
|
+
"ingress"
|
|
57
|
+
],
|
|
58
|
+
"commands": ["helm", "flux", "kustomize", "kubectl diff", "kubectl apply --dry-run"],
|
|
59
|
+
"artifacts": ["yaml", "manifest", "helmrelease", "kustomization", "deployment", "service", "ingress"]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"terraform_iac": {
|
|
63
|
+
"primary_agent": "terraform-architect",
|
|
64
|
+
"adjacent_surfaces": ["gitops_desired_state", "app_ci_tooling", "live_runtime"],
|
|
65
|
+
"contract_sections": ["project_identity", "stack", "git", "environment", "infrastructure", "orchestration", "terraform_infrastructure", "infrastructure_topology", "cluster_details", "application_services", "architecture_overview"],
|
|
66
|
+
"required_checks": [
|
|
67
|
+
"Compare against 2-3 sibling modules or stacks before introducing new structure",
|
|
68
|
+
"Call out blast radius when the change touches shared modules, IAM, or stateful resources",
|
|
69
|
+
"State clearly which live/runtime or GitOps surfaces must cross-check the result"
|
|
70
|
+
],
|
|
71
|
+
"signals": {
|
|
72
|
+
"keywords": [
|
|
73
|
+
"terraform",
|
|
74
|
+
"terragrunt",
|
|
75
|
+
"iac",
|
|
76
|
+
"iam",
|
|
77
|
+
"bucket",
|
|
78
|
+
"state",
|
|
79
|
+
"module",
|
|
80
|
+
"service account",
|
|
81
|
+
"workload identity",
|
|
82
|
+
"secret manager",
|
|
83
|
+
"vpc",
|
|
84
|
+
"subnet",
|
|
85
|
+
"policy"
|
|
86
|
+
],
|
|
87
|
+
"commands": ["terraform", "terragrunt", "tflint"],
|
|
88
|
+
"artifacts": [".tf", ".hcl", "module", "terragrunt.hcl", "provider", "backend"]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"app_ci_tooling": {
|
|
92
|
+
"primary_agent": "devops-developer",
|
|
93
|
+
"adjacent_surfaces": ["terraform_iac", "gitops_desired_state"],
|
|
94
|
+
"contract_sections": ["project_identity", "stack", "git", "environment", "infrastructure", "application_services", "operational_guidelines", "architecture_overview"],
|
|
95
|
+
"required_checks": [
|
|
96
|
+
"Search for existing application, CI, and developer workflow patterns before changing build or runtime behavior",
|
|
97
|
+
"Surface deployment, runtime, or infrastructure implications instead of treating the task as app-only by default",
|
|
98
|
+
"Include exact build, test, or verification commands whenever they informed the conclusion"
|
|
99
|
+
],
|
|
100
|
+
"signals": {
|
|
101
|
+
"keywords": [
|
|
102
|
+
"ci",
|
|
103
|
+
"cd",
|
|
104
|
+
"pipeline",
|
|
105
|
+
"docker",
|
|
106
|
+
"dockerfile",
|
|
107
|
+
"build",
|
|
108
|
+
"test",
|
|
109
|
+
"lint",
|
|
110
|
+
"package",
|
|
111
|
+
"npm",
|
|
112
|
+
"pnpm",
|
|
113
|
+
"yarn",
|
|
114
|
+
"turbo",
|
|
115
|
+
"turborepo",
|
|
116
|
+
"remote cache",
|
|
117
|
+
"application code",
|
|
118
|
+
"env var",
|
|
119
|
+
"environment variable"
|
|
120
|
+
],
|
|
121
|
+
"commands": ["npm", "pnpm", "yarn", "node", "pytest", "jest", "eslint", "prettier", "turbo", "docker"],
|
|
122
|
+
"artifacts": ["package.json", "Dockerfile", "workflow", "pipeline", "tests", "src/"]
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"planning_specs": {
|
|
126
|
+
"primary_agent": "speckit-planner",
|
|
127
|
+
"adjacent_surfaces": ["app_ci_tooling", "gaia_system"],
|
|
128
|
+
"contract_sections": ["project_identity", "stack", "git", "environment", "infrastructure", "operational_guidelines", "application_services", "architecture_overview"],
|
|
129
|
+
"required_checks": [
|
|
130
|
+
"Keep planning artifacts aligned with governance and project context",
|
|
131
|
+
"Tag adjacent surfaces explicitly when the plan crosses infra, runtime, or app boundaries",
|
|
132
|
+
"Do not silently choose an implementation path when multiple valid options remain"
|
|
133
|
+
],
|
|
134
|
+
"signals": {
|
|
135
|
+
"keywords": [
|
|
136
|
+
"spec",
|
|
137
|
+
"plan",
|
|
138
|
+
"tasks",
|
|
139
|
+
"research",
|
|
140
|
+
"data-model",
|
|
141
|
+
"acceptance criteria",
|
|
142
|
+
"feature breakdown",
|
|
143
|
+
"workflow phase",
|
|
144
|
+
"speckit",
|
|
145
|
+
"specification",
|
|
146
|
+
"specify",
|
|
147
|
+
"task generation",
|
|
148
|
+
"implementation plan",
|
|
149
|
+
"feature planning",
|
|
150
|
+
"pre-implementation",
|
|
151
|
+
"feature spec",
|
|
152
|
+
"task breakdown"
|
|
153
|
+
],
|
|
154
|
+
"commands": ["/speckit.plan", "/speckit.tasks", "/speckit.init", "/speckit.add-task", "/speckit.analyze-task"],
|
|
155
|
+
"artifacts": ["spec.md", "plan.md", "tasks.md", "research.md", "data-model.md", "governance.md"]
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"gaia_system": {
|
|
159
|
+
"primary_agent": "gaia-system",
|
|
160
|
+
"adjacent_surfaces": ["app_ci_tooling"],
|
|
161
|
+
"contract_sections": ["project_identity", "stack", "git", "environment", "infrastructure", "orchestration", "operational_guidelines", "architecture_overview"],
|
|
162
|
+
"required_checks": [
|
|
163
|
+
"Keep hooks, skills, templates, and tests aligned as one system",
|
|
164
|
+
"Check for duplicated contract text or diverging runtime/prompt behavior",
|
|
165
|
+
"Call out any cross-agent or cross-hook impact explicitly"
|
|
166
|
+
],
|
|
167
|
+
"signals": {
|
|
168
|
+
"keywords": [
|
|
169
|
+
"hook",
|
|
170
|
+
"hooks",
|
|
171
|
+
"skill",
|
|
172
|
+
"skills",
|
|
173
|
+
"agent",
|
|
174
|
+
"agents",
|
|
175
|
+
"claude.md",
|
|
176
|
+
"project context",
|
|
177
|
+
"orchestrator",
|
|
178
|
+
"context provider",
|
|
179
|
+
"response contract",
|
|
180
|
+
"pre_tool_use",
|
|
181
|
+
"subagent_stop",
|
|
182
|
+
"gaia",
|
|
183
|
+
"scanner",
|
|
184
|
+
"contract",
|
|
185
|
+
"project-context",
|
|
186
|
+
"project-context.json",
|
|
187
|
+
"dispatch",
|
|
188
|
+
"routing",
|
|
189
|
+
"identity",
|
|
190
|
+
"meta-agent"
|
|
191
|
+
],
|
|
192
|
+
"commands": [],
|
|
193
|
+
"artifacts": ["hooks/", "skills/", "agents/", "templates/", "claude.md", "project-context.json"]
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|