maestro-flow 0.5.42 → 0.5.44
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/.agents/skills/domain-add/SKILL.md +3 -0
- package/.agents/skills/learn-decompose/SKILL.md +7 -4
- package/.agents/skills/learn-follow/SKILL.md +4 -2
- package/.agents/skills/learn-investigate/SKILL.md +8 -6
- package/.agents/skills/learn-second-opinion/SKILL.md +6 -3
- package/.agents/skills/maestro/SKILL.md +1 -1
- package/.agents/skills/maestro-amend/SKILL.md +1 -1
- package/.agents/skills/maestro-analyze/SKILL.md +1 -1
- package/.agents/skills/maestro-blueprint/SKILL.md +1 -1
- package/.agents/skills/maestro-brainstorm/SKILL.md +4 -1
- package/.agents/skills/maestro-collab/SKILL.md +6 -2
- package/.agents/skills/maestro-companion/SKILL.md +4 -1
- package/.agents/skills/maestro-composer/SKILL.md +4 -2
- package/.agents/skills/maestro-execute/SKILL.md +26 -8
- package/.agents/skills/maestro-fork/SKILL.md +4 -3
- package/.agents/skills/maestro-grill/SKILL.md +1 -1
- package/.agents/skills/maestro-guard/SKILL.md +2 -2
- package/.agents/skills/maestro-impeccable/SKILL.md +2 -1
- package/.agents/skills/maestro-init/SKILL.md +1 -1
- package/.agents/skills/maestro-merge/SKILL.md +12 -1
- package/.agents/skills/maestro-milestone-audit/SKILL.md +1 -0
- package/.agents/skills/maestro-milestone-complete/SKILL.md +8 -3
- package/.agents/skills/maestro-milestone-release/SKILL.md +8 -4
- package/.agents/skills/maestro-overlay/SKILL.md +9 -0
- package/.agents/skills/maestro-plan/SKILL.md +1 -0
- package/.agents/skills/maestro-player/SKILL.md +2 -2
- package/.agents/skills/maestro-quick/SKILL.md +5 -3
- package/.agents/skills/maestro-ralph/SKILL.md +8 -8
- package/.agents/skills/maestro-ralph-agent/SKILL.md +697 -0
- package/.agents/skills/maestro-ralph-agent-execute/SKILL.md +461 -0
- package/.agents/skills/maestro-ralph-cli/SKILL.md +665 -0
- package/.agents/skills/maestro-ralph-cli-execute/SKILL.md +239 -0
- package/.agents/skills/maestro-ralph-execute/SKILL.md +127 -11
- package/.agents/skills/maestro-roadmap/SKILL.md +1 -1
- package/.agents/skills/maestro-swarm-workflow/SKILL.md +16 -14
- package/.agents/skills/maestro-tools-register/SKILL.md +16 -1
- package/.agents/skills/maestro-ui-codify/SKILL.md +11 -1
- package/.agents/skills/maestro-universal-workflow/SKILL.md +28 -5
- package/.agents/skills/maestro-update/SKILL.md +10 -7
- package/.agents/skills/manage-codebase-rebuild/SKILL.md +5 -1
- package/.agents/skills/manage-drift-realign/SKILL.md +6 -2
- package/.agents/skills/manage-harvest/SKILL.md +4 -1
- package/.agents/skills/manage-issue-discover/SKILL.md +1 -0
- package/.agents/skills/manage-kg-extractors/SKILL.md +5 -1
- package/.agents/skills/manage-knowhow-capture/SKILL.md +1 -0
- package/.agents/skills/manage-knowledge-audit/SKILL.md +3 -0
- package/.agents/skills/manage-wiki/SKILL.md +1 -0
- package/.agents/skills/odyssey-debug/SKILL.md +2 -1
- package/.agents/skills/odyssey-improve/SKILL.md +2 -2
- package/.agents/skills/odyssey-planex/SKILL.md +8 -7
- package/.agents/skills/odyssey-review-test-fix/SKILL.md +4 -1
- package/.agents/skills/odyssey-ui/SKILL.md +4 -4
- package/.agents/skills/quality-auto-test/SKILL.md +11 -1
- package/.agents/skills/quality-debug/SKILL.md +16 -2
- package/.agents/skills/quality-retrospective/SKILL.md +9 -1
- package/.agents/skills/quality-review/SKILL.md +8 -0
- package/.agents/skills/quality-sync/SKILL.md +2 -2
- package/.agents/skills/quality-test/SKILL.md +9 -1
- package/.agents/skills/security-audit/SKILL.md +14 -4
- package/.agents/skills/spec-add/SKILL.md +5 -2
- package/.agents/skills/spec-load/SKILL.md +1 -1
- package/.agents/skills/spec-remove/SKILL.md +1 -1
- package/.agents/skills/spec-setup/SKILL.md +3 -0
- package/.agy/skills/domain-add/SKILL.md +3 -0
- package/.agy/skills/learn-decompose/SKILL.md +7 -4
- package/.agy/skills/learn-follow/SKILL.md +4 -2
- package/.agy/skills/learn-investigate/SKILL.md +8 -6
- package/.agy/skills/learn-second-opinion/SKILL.md +6 -3
- package/.agy/skills/maestro/SKILL.md +1 -1
- package/.agy/skills/maestro-amend/SKILL.md +1 -1
- package/.agy/skills/maestro-analyze/SKILL.md +1 -1
- package/.agy/skills/maestro-blueprint/SKILL.md +1 -1
- package/.agy/skills/maestro-brainstorm/SKILL.md +4 -1
- package/.agy/skills/maestro-collab/SKILL.md +6 -2
- package/.agy/skills/maestro-companion/SKILL.md +4 -1
- package/.agy/skills/maestro-composer/SKILL.md +4 -2
- package/.agy/skills/maestro-execute/SKILL.md +26 -8
- package/.agy/skills/maestro-fork/SKILL.md +4 -3
- package/.agy/skills/maestro-grill/SKILL.md +1 -1
- package/.agy/skills/maestro-guard/SKILL.md +2 -2
- package/.agy/skills/maestro-impeccable/SKILL.md +2 -1
- package/.agy/skills/maestro-init/SKILL.md +1 -1
- package/.agy/skills/maestro-merge/SKILL.md +12 -1
- package/.agy/skills/maestro-milestone-audit/SKILL.md +1 -0
- package/.agy/skills/maestro-milestone-complete/SKILL.md +8 -3
- package/.agy/skills/maestro-milestone-release/SKILL.md +8 -4
- package/.agy/skills/maestro-overlay/SKILL.md +9 -0
- package/.agy/skills/maestro-plan/SKILL.md +1 -0
- package/.agy/skills/maestro-player/SKILL.md +2 -2
- package/.agy/skills/maestro-quick/SKILL.md +5 -3
- package/.agy/skills/maestro-ralph/SKILL.md +8 -8
- package/.agy/skills/maestro-ralph-agent/SKILL.md +696 -0
- package/.agy/skills/maestro-ralph-agent-execute/SKILL.md +457 -0
- package/.agy/skills/maestro-ralph-cli/SKILL.md +661 -0
- package/.agy/skills/maestro-ralph-cli-execute/SKILL.md +235 -0
- package/.agy/skills/maestro-ralph-execute/SKILL.md +127 -11
- package/.agy/skills/maestro-roadmap/SKILL.md +1 -1
- package/.agy/skills/maestro-swarm-workflow/SKILL.md +16 -14
- package/.agy/skills/maestro-tools-register/SKILL.md +16 -1
- package/.agy/skills/maestro-ui-codify/SKILL.md +11 -1
- package/.agy/skills/maestro-universal-workflow/SKILL.md +28 -5
- package/.agy/skills/maestro-update/SKILL.md +10 -7
- package/.agy/skills/manage-codebase-rebuild/SKILL.md +5 -1
- package/.agy/skills/manage-drift-realign/SKILL.md +6 -2
- package/.agy/skills/manage-harvest/SKILL.md +4 -1
- package/.agy/skills/manage-issue-discover/SKILL.md +1 -0
- package/.agy/skills/manage-kg-extractors/SKILL.md +5 -1
- package/.agy/skills/manage-knowhow-capture/SKILL.md +1 -0
- package/.agy/skills/manage-knowledge-audit/SKILL.md +3 -0
- package/.agy/skills/manage-wiki/SKILL.md +1 -0
- package/.agy/skills/odyssey-debug/SKILL.md +2 -1
- package/.agy/skills/odyssey-improve/SKILL.md +2 -2
- package/.agy/skills/odyssey-planex/SKILL.md +8 -7
- package/.agy/skills/odyssey-review-test-fix/SKILL.md +4 -1
- package/.agy/skills/odyssey-ui/SKILL.md +4 -4
- package/.agy/skills/quality-auto-test/SKILL.md +11 -1
- package/.agy/skills/quality-debug/SKILL.md +16 -2
- package/.agy/skills/quality-retrospective/SKILL.md +9 -1
- package/.agy/skills/quality-review/SKILL.md +8 -0
- package/.agy/skills/quality-sync/SKILL.md +2 -2
- package/.agy/skills/quality-test/SKILL.md +9 -1
- package/.agy/skills/security-audit/SKILL.md +14 -4
- package/.agy/skills/spec-add/SKILL.md +5 -2
- package/.agy/skills/spec-load/SKILL.md +1 -1
- package/.agy/skills/spec-remove/SKILL.md +1 -1
- package/.agy/skills/spec-setup/SKILL.md +3 -0
- package/.claude/commands/domain-add.md +3 -0
- package/.claude/commands/learn-decompose.md +7 -4
- package/.claude/commands/learn-follow.md +4 -2
- package/.claude/commands/learn-investigate.md +8 -6
- package/.claude/commands/learn-second-opinion.md +6 -3
- package/.claude/commands/maestro-amend.md +1 -1
- package/.claude/commands/maestro-analyze.md +1 -1
- package/.claude/commands/maestro-blueprint.md +1 -1
- package/.claude/commands/maestro-brainstorm.md +4 -1
- package/.claude/commands/maestro-collab.md +6 -2
- package/.claude/commands/maestro-companion.md +4 -1
- package/.claude/commands/maestro-composer.md +4 -2
- package/.claude/commands/maestro-execute.md +26 -8
- package/.claude/commands/maestro-fork.md +4 -3
- package/.claude/commands/maestro-grill.md +1 -1
- package/.claude/commands/maestro-guard.md +2 -2
- package/.claude/commands/maestro-impeccable.md +2 -1
- package/.claude/commands/maestro-init.md +1 -1
- package/.claude/commands/maestro-merge.md +12 -1
- package/.claude/commands/maestro-milestone-audit.md +1 -0
- package/.claude/commands/maestro-milestone-complete.md +8 -3
- package/.claude/commands/maestro-milestone-release.md +8 -4
- package/.claude/commands/maestro-overlay.md +9 -0
- package/.claude/commands/maestro-plan.md +1 -0
- package/.claude/commands/maestro-player.md +2 -2
- package/.claude/commands/maestro-quick.md +5 -3
- package/.claude/commands/maestro-ralph-agent-execute.md +459 -0
- package/.claude/commands/maestro-ralph-agent.md +695 -0
- package/.claude/commands/maestro-ralph-cli-execute.md +237 -0
- package/.claude/commands/maestro-ralph-cli.md +663 -0
- package/.claude/commands/maestro-ralph-execute.md +127 -11
- package/.claude/commands/maestro-ralph.md +8 -8
- package/.claude/commands/maestro-roadmap.md +1 -1
- package/.claude/commands/maestro-swarm-workflow.md +16 -14
- package/.claude/commands/maestro-tools-register.md +16 -1
- package/.claude/commands/maestro-ui-codify.md +11 -1
- package/.claude/commands/maestro-universal-workflow.md +28 -5
- package/.claude/commands/maestro-update.md +10 -7
- package/.claude/commands/maestro.md +1 -1
- package/.claude/commands/manage-codebase-rebuild.md +5 -1
- package/.claude/commands/manage-drift-realign.md +6 -2
- package/.claude/commands/manage-harvest.md +4 -1
- package/.claude/commands/manage-issue-discover.md +1 -0
- package/.claude/commands/manage-kg-extractors.md +5 -1
- package/.claude/commands/manage-knowhow-capture.md +1 -0
- package/.claude/commands/manage-knowledge-audit.md +3 -0
- package/.claude/commands/manage-wiki.md +1 -0
- package/.claude/commands/odyssey-debug.md +2 -1
- package/.claude/commands/odyssey-improve.md +2 -2
- package/.claude/commands/odyssey-planex.md +8 -7
- package/.claude/commands/odyssey-review-test-fix.md +4 -1
- package/.claude/commands/odyssey-ui.md +4 -4
- package/.claude/commands/quality-auto-test.md +11 -1
- package/.claude/commands/quality-debug.md +16 -2
- package/.claude/commands/quality-retrospective.md +9 -1
- package/.claude/commands/quality-review.md +8 -0
- package/.claude/commands/quality-sync.md +2 -2
- package/.claude/commands/quality-test.md +9 -1
- package/.claude/commands/security-audit.md +14 -4
- package/.claude/commands/spec-add.md +5 -2
- package/.claude/commands/spec-load.md +1 -1
- package/.claude/commands/spec-remove.md +1 -1
- package/.claude/commands/spec-setup.md +3 -0
- package/.codex/skills/codify-to-knowhow/SKILL.md +27 -15
- package/.codex/skills/domain-add/SKILL.md +5 -3
- package/.codex/skills/learn-decompose/SKILL.md +22 -4
- package/.codex/skills/learn-follow/SKILL.md +12 -6
- package/.codex/skills/learn-investigate/SKILL.md +11 -6
- package/.codex/skills/learn-retro/SKILL.md +12 -6
- package/.codex/skills/learn-second-opinion/SKILL.md +11 -3
- package/.codex/skills/maestro/SKILL.md +19 -13
- package/.codex/skills/maestro-amend/SKILL.md +10 -2
- package/.codex/skills/maestro-analyze/SKILL.md +7 -1
- package/.codex/skills/maestro-blueprint/SKILL.md +1 -1
- package/.codex/skills/maestro-brainstorm/SKILL.md +11 -8
- package/.codex/skills/maestro-collab/SKILL.md +5 -5
- package/.codex/skills/maestro-companion/SKILL.md +4 -1
- package/.codex/skills/maestro-composer/SKILL.md +6 -3
- package/.codex/skills/maestro-execute/SKILL.md +11 -8
- package/.codex/skills/maestro-fork/SKILL.md +4 -3
- package/.codex/skills/maestro-grill/SKILL.md +1 -1
- package/.codex/skills/maestro-guard/SKILL.md +1 -1
- package/.codex/skills/maestro-impeccable/SKILL.md +5 -5
- package/.codex/skills/maestro-init/SKILL.md +3 -2
- package/.codex/skills/maestro-milestone-audit/SKILL.md +21 -9
- package/.codex/skills/maestro-milestone-complete/SKILL.md +3 -3
- package/.codex/skills/maestro-milestone-release/SKILL.md +18 -1
- package/.codex/skills/maestro-next/SKILL.md +11 -10
- package/.codex/skills/maestro-overlay/SKILL.md +16 -6
- package/.codex/skills/maestro-player/SKILL.md +11 -5
- package/.codex/skills/maestro-quick/SKILL.md +2 -2
- package/.codex/skills/maestro-ralph/SKILL.md +44 -31
- package/.codex/skills/maestro-ralph-cli/SKILL.md +394 -0
- package/.codex/skills/maestro-ralph-cli-execute/SKILL.md +146 -0
- package/.codex/skills/maestro-ralph-execute/SKILL.md +105 -24
- package/.codex/skills/maestro-roadmap/SKILL.md +8 -2
- package/.codex/skills/maestro-tools-execute/SKILL.md +8 -4
- package/.codex/skills/maestro-tools-register/SKILL.md +10 -6
- package/.codex/skills/maestro-ui-codify/SKILL.md +14 -9
- package/.codex/skills/manage-codebase-rebuild/SKILL.md +36 -14
- package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
- package/.codex/skills/manage-drift-realign/SKILL.md +15 -12
- package/.codex/skills/manage-harvest/SKILL.md +1 -1
- package/.codex/skills/manage-issue/SKILL.md +8 -4
- package/.codex/skills/manage-issue-discover/SKILL.md +15 -14
- package/.codex/skills/manage-knowhow/SKILL.md +3 -2
- package/.codex/skills/manage-knowhow-capture/SKILL.md +4 -3
- package/.codex/skills/manage-learn/SKILL.md +2 -2
- package/.codex/skills/odyssey-debug/SKILL.md +12 -7
- package/.codex/skills/odyssey-improve/SKILL.md +11 -6
- package/.codex/skills/odyssey-planex/SKILL.md +14 -8
- package/.codex/skills/odyssey-review-test-fix/SKILL.md +12 -7
- package/.codex/skills/odyssey-ui/SKILL.md +10 -5
- package/.codex/skills/quality-auto-test/SKILL.md +13 -5
- package/.codex/skills/quality-debug/SKILL.md +18 -11
- package/.codex/skills/quality-refactor/SKILL.md +4 -4
- package/.codex/skills/quality-retrospective/SKILL.md +5 -6
- package/.codex/skills/quality-review/SKILL.md +18 -11
- package/.codex/skills/quality-sync/SKILL.md +2 -2
- package/.codex/skills/quality-test/SKILL.md +7 -5
- package/.codex/skills/security-audit/SKILL.md +7 -5
- package/.codex/skills/spec-add/SKILL.md +9 -7
- package/.codex/skills/spec-load/SKILL.md +3 -2
- package/.codex/skills/spec-map/SKILL.md +10 -1
- package/.codex/skills/spec-remove/SKILL.md +3 -2
- package/.codex/skills/team-coordinate/SKILL.md +10 -4
- package/.codex/skills/team-lifecycle-v4/SKILL.md +33 -26
- package/.codex/skills/team-quality-assurance/SKILL.md +43 -0
- package/.codex/skills/team-review/SKILL.md +50 -6
- package/.codex/skills/team-tech-debt/SKILL.md +53 -7
- package/.codex/skills/team-testing/SKILL.md +50 -2
- package/.codex/skills/wiki-connect/SKILL.md +3 -1
- package/.codex/skills/wiki-digest/SKILL.md +6 -4
- package/dashboard/dist-server/dashboard/src/server/wiki/embedding.d.ts +16 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js +419 -44
- package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +48 -10
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/credibility.d.ts +2 -2
- package/dashboard/dist-server/src/graph/kg/credibility.js +10 -5
- package/dashboard/dist-server/src/graph/kg/credibility.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/db/connection.d.ts +3 -2
- package/dashboard/dist-server/src/graph/kg/db/connection.js +28 -16
- package/dashboard/dist-server/src/graph/kg/db/connection.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/db/queries.js +4 -4
- package/dashboard/dist-server/src/graph/kg/db/queries.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/db/types.d.ts +3 -0
- package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.d.ts +46 -0
- package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js +329 -0
- package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/embedding/index.d.ts +2 -0
- package/dashboard/dist-server/src/graph/kg/embedding/index.js +3 -0
- package/dashboard/dist-server/src/graph/kg/embedding/index.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/engine.d.ts +20 -2
- package/dashboard/dist-server/src/graph/kg/engine.js +71 -1
- package/dashboard/dist-server/src/graph/kg/engine.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.d.ts +1 -1
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.js +8 -4
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/query/scoring.d.ts +5 -0
- package/dashboard/dist-server/src/graph/kg/query/scoring.js +85 -1
- package/dashboard/dist-server/src/graph/kg/query/scoring.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/query/search.d.ts +7 -0
- package/dashboard/dist-server/src/graph/kg/query/search.js +117 -1
- package/dashboard/dist-server/src/graph/kg/query/search.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/resolution/knowledge-resolver.d.ts +3 -3
- package/dashboard/dist-server/src/graph/kg/resolution/knowledge-resolver.js +3 -2
- package/dashboard/dist-server/src/graph/kg/resolution/knowledge-resolver.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/surface/hook-injector.js +2 -4
- package/dashboard/dist-server/src/graph/kg/surface/hook-injector.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js +49 -0
- package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js.map +1 -1
- package/dashboard/dist-server/src/hooks/kg-sync-hook.js +3 -0
- package/dashboard/dist-server/src/hooks/kg-sync-hook.js.map +1 -1
- package/dashboard/dist-server/src/search/daemon-client.d.ts +3 -25
- package/dashboard/dist-server/src/search/daemon-client.js +3 -25
- package/dashboard/dist-server/src/search/daemon-client.js.map +1 -1
- package/dashboard/dist-server/src/search/daemon-types.d.ts +29 -0
- package/dashboard/dist-server/src/search/daemon-types.js +31 -0
- package/dashboard/dist-server/src/search/daemon-types.js.map +1 -0
- package/dist/src/agents/api-explore/agent-loop.d.ts +1 -1
- package/dist/src/agents/api-explore/agent-loop.d.ts.map +1 -1
- package/dist/src/agents/api-explore/agent-loop.js +32 -17
- package/dist/src/agents/api-explore/agent-loop.js.map +1 -1
- package/dist/src/agents/api-explore/prompt-parser.js +5 -5
- package/dist/src/agents/api-explore/prompt-parser.js.map +1 -1
- package/dist/src/agents/api-explore/runner.d.ts.map +1 -1
- package/dist/src/agents/api-explore/runner.js +0 -2
- package/dist/src/agents/api-explore/runner.js.map +1 -1
- package/dist/src/agents/api-explore/system-prompt.d.ts.map +1 -1
- package/dist/src/agents/api-explore/system-prompt.js +30 -22
- package/dist/src/agents/api-explore/system-prompt.js.map +1 -1
- package/dist/src/agents/api-explore/tools.d.ts +1 -0
- package/dist/src/agents/api-explore/tools.d.ts.map +1 -1
- package/dist/src/agents/api-explore/tools.js +219 -50
- package/dist/src/agents/api-explore/tools.js.map +1 -1
- package/dist/src/commands/search.d.ts.map +1 -1
- package/dist/src/commands/search.js +10 -4
- package/dist/src/commands/search.js.map +1 -1
- package/dist/src/commands/update.d.ts.map +1 -1
- package/dist/src/commands/update.js +89 -21
- package/dist/src/commands/update.js.map +1 -1
- package/dist/src/core/plugin-bridge.d.ts.map +1 -1
- package/dist/src/core/plugin-bridge.js +17 -0
- package/dist/src/core/plugin-bridge.js.map +1 -1
- package/dist/src/graph/db/connection.d.ts +3 -2
- package/dist/src/graph/db/connection.d.ts.map +1 -1
- package/dist/src/graph/db/connection.js +28 -16
- package/dist/src/graph/db/connection.js.map +1 -1
- package/dist/src/graph/db/queries.d.ts.map +1 -1
- package/dist/src/graph/db/queries.js.map +1 -1
- package/dist/src/graph/kg/credibility.d.ts +2 -2
- package/dist/src/graph/kg/credibility.d.ts.map +1 -1
- package/dist/src/graph/kg/credibility.js +10 -5
- package/dist/src/graph/kg/credibility.js.map +1 -1
- package/dist/src/graph/kg/db/connection.d.ts +3 -2
- package/dist/src/graph/kg/db/connection.d.ts.map +1 -1
- package/dist/src/graph/kg/db/connection.js +28 -16
- package/dist/src/graph/kg/db/connection.js.map +1 -1
- package/dist/src/graph/kg/db/queries.js +4 -4
- package/dist/src/graph/kg/db/queries.js.map +1 -1
- package/dist/src/graph/kg/db/types.d.ts +3 -0
- package/dist/src/graph/kg/db/types.d.ts.map +1 -1
- package/dist/src/graph/kg/embedding/code-embedding.d.ts +47 -0
- package/dist/src/graph/kg/embedding/code-embedding.d.ts.map +1 -0
- package/dist/src/graph/kg/embedding/code-embedding.js +329 -0
- package/dist/src/graph/kg/embedding/code-embedding.js.map +1 -0
- package/dist/src/graph/kg/embedding/index.d.ts +3 -0
- package/dist/src/graph/kg/embedding/index.d.ts.map +1 -0
- package/dist/src/graph/kg/embedding/index.js +3 -0
- package/dist/src/graph/kg/embedding/index.js.map +1 -0
- package/dist/src/graph/kg/engine.d.ts +20 -2
- package/dist/src/graph/kg/engine.d.ts.map +1 -1
- package/dist/src/graph/kg/engine.js +71 -1
- package/dist/src/graph/kg/engine.js.map +1 -1
- package/dist/src/graph/kg/extraction/knowledge/domain-extractor.d.ts +1 -1
- package/dist/src/graph/kg/extraction/knowledge/domain-extractor.d.ts.map +1 -1
- package/dist/src/graph/kg/extraction/knowledge/domain-extractor.js +8 -4
- package/dist/src/graph/kg/extraction/knowledge/domain-extractor.js.map +1 -1
- package/dist/src/graph/kg/query/scoring.d.ts +5 -0
- package/dist/src/graph/kg/query/scoring.d.ts.map +1 -1
- package/dist/src/graph/kg/query/scoring.js +85 -1
- package/dist/src/graph/kg/query/scoring.js.map +1 -1
- package/dist/src/graph/kg/query/search.d.ts +7 -0
- package/dist/src/graph/kg/query/search.d.ts.map +1 -1
- package/dist/src/graph/kg/query/search.js +117 -1
- package/dist/src/graph/kg/query/search.js.map +1 -1
- package/dist/src/graph/kg/resolution/knowledge-resolver.d.ts +3 -3
- package/dist/src/graph/kg/resolution/knowledge-resolver.d.ts.map +1 -1
- package/dist/src/graph/kg/resolution/knowledge-resolver.js +3 -2
- package/dist/src/graph/kg/resolution/knowledge-resolver.js.map +1 -1
- package/dist/src/graph/kg/surface/hook-injector.d.ts.map +1 -1
- package/dist/src/graph/kg/surface/hook-injector.js +2 -4
- package/dist/src/graph/kg/surface/hook-injector.js.map +1 -1
- package/dist/src/graph/kg/surface/mcp-tools.d.ts.map +1 -1
- package/dist/src/graph/kg/surface/mcp-tools.js +49 -0
- package/dist/src/graph/kg/surface/mcp-tools.js.map +1 -1
- package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -1
- package/dist/src/hooks/kg-sync-hook.js +3 -0
- package/dist/src/hooks/kg-sync-hook.js.map +1 -1
- package/dist/src/search/daemon-client.d.ts +3 -25
- package/dist/src/search/daemon-client.d.ts.map +1 -1
- package/dist/src/search/daemon-client.js +3 -25
- package/dist/src/search/daemon-client.js.map +1 -1
- package/dist/src/search/daemon-types.d.ts +30 -0
- package/dist/src/search/daemon-types.d.ts.map +1 -0
- package/dist/src/search/daemon-types.js +31 -0
- package/dist/src/search/daemon-types.js.map +1 -0
- package/dist/src/search/daemon.d.ts +2 -27
- package/dist/src/search/daemon.d.ts.map +1 -1
- package/dist/src/search/daemon.js +4 -60
- package/dist/src/search/daemon.js.map +1 -1
- package/dist/src/tools/code-semantic-search.d.ts +10 -0
- package/dist/src/tools/code-semantic-search.d.ts.map +1 -0
- package/dist/src/tools/code-semantic-search.js +81 -0
- package/dist/src/tools/code-semantic-search.js.map +1 -0
- package/dist/src/tools/index.d.ts.map +1 -1
- package/dist/src/tools/index.js +4 -0
- package/dist/src/tools/index.js.map +1 -1
- package/dist/src/tools/wiki-search.d.ts +13 -0
- package/dist/src/tools/wiki-search.d.ts.map +1 -0
- package/dist/src/tools/wiki-search.js +120 -0
- package/dist/src/tools/wiki-search.js.map +1 -0
- package/dist/src/utils/update-notices.js +24 -0
- package/dist/src/utils/update-notices.js.map +1 -1
- package/package.json +4 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: odyssey-improve
|
|
3
3
|
description: Long-running codebase improvement cycle — multi-dimensional audit, deep diagnosis, targeted fix, verify, generalize, and engineering knowledge persistence
|
|
4
|
-
argument-hint: "<target> [--dimensions <list>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
|
|
4
|
+
argument-hint: "<target> [--dimensions <list>] [--fix-threshold <severity>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Write
|
|
@@ -189,7 +189,7 @@ Commit: `"odyssey-improve({slug}): DIAGNOSE — root cause analysis"`
|
|
|
189
189
|
`retries++`. < 3: `maestro delegate --role analyze`, new hypotheses, → S_DIAGNOSE. >= 3: Normal → AskUserQuestion | `-y` → INCONCLUSIVE → S_RECORD.
|
|
190
190
|
|
|
191
191
|
### A_FIX
|
|
192
|
-
1. Exhaustive fix: ALL diagnosed issues by severity tier (critical → high → medium → low within fix_threshold), one dimension at a time. After each tier, re-verify — new findings append to current tier.
|
|
192
|
+
1. Exhaustive fix: ALL diagnosed issues by severity tier (critical → high → medium → low within fix_threshold), one dimension at a time. After each tier, re-verify **current tier's dimension only** (not all dimensions) — new findings at same or higher severity append to current tier. Cross-dimension regression checks run once at S_VERIFY after all tiers complete.
|
|
193
193
|
2. For each fix: implement → evidence phase=fix
|
|
194
194
|
3. Normal: AskUserQuestion per-fix confirmation | `-y`: auto-proceed, record `deferred`
|
|
195
195
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: odyssey-planex
|
|
3
3
|
description: Requirement-driven iterative cycle — plan, execute, strict verify, fix loop until acceptance criteria met
|
|
4
|
-
argument-hint: "<requirement> [--max-iterations N] [--skip-generalize] [--auto] [--method agent|cli|auto] [--executor <tool>] [--skip-verify] [--heartbeat] [-y] [-c]"
|
|
4
|
+
argument-hint: "<requirement> [--template <name>] [--max-iterations N] [--skip-generalize] [--auto] [--method agent|cli|auto] [--executor <tool>] [--skip-verify] [--heartbeat] [-y] [-c]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Write
|
|
@@ -108,7 +108,7 @@ Applies to: **S_PLAN, S_VERIFY, S_GENERALIZE**. Logic in base.
|
|
|
108
108
|
<state_machine>
|
|
109
109
|
|
|
110
110
|
<states>
|
|
111
|
-
S_INTAKE → S_PLAN → S_EXECUTE → S_VERIFY → S_GENERALIZE → S_DISCOVER → S_RECORD → END
|
|
111
|
+
S_INTAKE → S_PLAN → S_EXECUTE → S_VERIFY → S_FIX → S_GENERALIZE → S_DISCOVER → S_RECORD → END
|
|
112
112
|
</states>
|
|
113
113
|
|
|
114
114
|
<transitions>
|
|
@@ -122,7 +122,7 @@ S_EXECUTE → S_VERIFY
|
|
|
122
122
|
S_VERIFY → S_GENERALIZE : all passed AND NOT skip_generalize
|
|
123
123
|
S_VERIFY → S_RECORD : all passed AND skip_generalize
|
|
124
124
|
S_VERIFY → S_FIX : some failed AND iteration < max
|
|
125
|
-
S_VERIFY → S_PLAN : fundamental plan flaw → cross_phase_loops++ (replan)
|
|
125
|
+
S_VERIFY → S_PLAN : fundamental plan flaw → cross_phase_loops++ (replan). **Criteria preservation:** acceptance_criteria[] statuses are preserved; only plan.tasks[] are regenerated. Previously passed criteria retain `passed` status; failed criteria reset to `pending` for re-verification after new plan execution.
|
|
126
126
|
S_VERIFY → S_RECORD : some failed AND iteration >= max (escalate)
|
|
127
127
|
|
|
128
128
|
S_FIX → S_VERIFY (loop)
|
|
@@ -295,7 +295,7 @@ Iron gate — every acceptance criterion checked objectively.
|
|
|
295
295
|
|--------|--------|
|
|
296
296
|
| `test` | Run relevant tests, check pass/fail |
|
|
297
297
|
| `grep` | Grep for expected pattern |
|
|
298
|
-
| `cli-review` | `maestro delegate --role review --mode analysis`
|
|
298
|
+
| `cli-review` | `maestro delegate "PURPOSE: Verify criterion {criterion_id}: {criterion}\nTASK: Read implementation code \| Check behavior matches criterion \| Report pass/fail with file:line evidence\nMODE: analysis\nCONTEXT: @{relevant_files}\nEXPECTED: JSON {criterion_id, status: passed\|failed, evidence: [{file, line, detail}]}" --role review --mode analysis` |
|
|
299
299
|
| `manual` | Normal: AskUserQuestion / `-y`: record `deferred` |
|
|
300
300
|
|
|
301
301
|
Record per criterion: `{"phase":"verification","type":"criterion-check","criterion_id":"AC1","method":"","result":"passed|failed","evidence":"","iteration":N}`. Update acceptance_criteria[].status. Append to iterations[].
|
|
@@ -312,11 +312,12 @@ Commit: `"odyssey-planex({slug}): VERIFY — acceptance check"`
|
|
|
312
312
|
2. For each failed criterion: diagnose gap → targeted code fix
|
|
313
313
|
3. CLI fix review (optional):
|
|
314
314
|
```bash
|
|
315
|
-
maestro delegate "PURPOSE: Review fixes for failing criteria
|
|
316
|
-
TASK: Check fix correctness | Verify no regressions on passing criteria
|
|
315
|
+
maestro delegate "PURPOSE: Review fixes for failing criteria; success = no regressions and fixes correct
|
|
316
|
+
TASK: Check fix correctness | Verify no regressions on passing criteria | Report verdict with file:line evidence
|
|
317
317
|
MODE: analysis
|
|
318
318
|
CONTEXT: @{modified_files} | Passing: {passing} | Fixed: {fixed}
|
|
319
|
-
EXPECTED: JSON {verdict, regression_risk, concerns}
|
|
319
|
+
EXPECTED: JSON {verdict: passed|concerns_found, regression_risk: low|medium|high, concerns: [{criterion_id, file, line, description}]}
|
|
320
|
+
CONSTRAINTS: Read-only | Check ALL passing criteria for regressions
|
|
320
321
|
" --role review --mode analysis
|
|
321
322
|
```
|
|
322
323
|
4. Append evidence (fix), update understanding.md section 5 → S_VERIFY
|
|
@@ -133,6 +133,8 @@ Glob latest session → read `session.json` → jump to `current_state`.
|
|
|
133
133
|
### A_ARCHAEOLOGY
|
|
134
134
|
2 parallel Agents: Timeline (`git log --oneline -20 -- {files}`) + Blame (top 3 files `git blame -L {region}`). Evidence phase=archaeology.
|
|
135
135
|
|
|
136
|
+
**Error handling:** If any archaeology agent fails (Timeline or Blame), log W003 and proceed with available results. If delegate fails, log W003 and proceed with local agent results only.
|
|
137
|
+
|
|
136
138
|
`maestro delegate --role analyze --mode analysis` (`run_in_background: true`):
|
|
137
139
|
- PURPOSE: Review recent modifications related to {target}
|
|
138
140
|
- EXPECTED: JSON [{commit_sha, risk_level, analysis, could_cause_issue, explanation}]
|
|
@@ -170,7 +172,7 @@ for tier in [critical, high, medium, low].filter(>= threshold):
|
|
|
170
172
|
```
|
|
171
173
|
|
|
172
174
|
Normal: AskUserQuestion per tier. `-y`: auto-fix all.
|
|
173
|
-
Remaining > 0 → retry (
|
|
175
|
+
Remaining > 0 → retry (max_fix_rounds = 5). Unchanged 2 rounds → classify each individually. After 5 rounds with remaining > 0 → escalate: Normal: AskUserQuestion (continue/accept/reclassify) | `-y`: classify remaining as `deferred`, proceed.
|
|
174
176
|
Blanket "pre-existing" forbidden.
|
|
175
177
|
|
|
176
178
|
Commit per tier: `"odyssey-review({slug}): FIX-{tier} — {N} items fixed"`
|
|
@@ -235,6 +237,7 @@ Every finding must have action (fix/issue/decision). Decision pending must AskUs
|
|
|
235
237
|
| E002 | error | Target path not found | Check path |
|
|
236
238
|
| W001 | warning | No git history | Proceed |
|
|
237
239
|
| W002 | warning | Some dimension agents failed | Partial coverage |
|
|
240
|
+
| W003 | warning | Archaeology agent or delegate failure | Proceed with available results |
|
|
238
241
|
</error_codes>
|
|
239
242
|
|
|
240
243
|
<success_criteria>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: odyssey-ui
|
|
3
3
|
description: Long-running UI optimization cycle — visual survey, multi-dimensional audit, divergent exploration, fix, verify, generalize, and design knowledge persistence
|
|
4
|
-
argument-hint: "<target> [--dimensions <list>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
|
|
4
|
+
argument-hint: "<target> [--dimensions <list>] [--fix-threshold <severity>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Write
|
|
@@ -136,7 +136,7 @@ Glob latest session → read `session.json` → jump to `current_state`.
|
|
|
136
136
|
### A_SURVEY
|
|
137
137
|
1. **Design system inventory**: Scan for design tokens, CSS variables, theme imports
|
|
138
138
|
2. **Current state analysis**: Styling patterns, layout strategy, component hierarchy
|
|
139
|
-
3. **CLI-assisted**: `maestro delegate --role analyze` — survey tokens, spacing, typography, hierarchy, consistency
|
|
139
|
+
3. **CLI-assisted**: `maestro delegate --role analyze --mode analysis` — survey tokens, spacing, typography, hierarchy, consistency
|
|
140
140
|
4. Append evidence phase=survey. Update section 2. Mark G1.
|
|
141
141
|
|
|
142
142
|
Commit: `"odyssey-ui({slug}): SURVEY — design token inventory"`
|
|
@@ -167,7 +167,7 @@ Goes beyond defect fixing — "what would make this delightful?"
|
|
|
167
167
|
|
|
168
168
|
Each returns `[{idea, category (polish|delight), impact, effort, description, inspiration}]`
|
|
169
169
|
|
|
170
|
-
**Step 2 — CLI-assisted**: `maestro delegate --role analyze` — polish opportunities, micro-interactions, visual rhythm, delight moments
|
|
170
|
+
**Step 2 — CLI-assisted**: `maestro delegate --role analyze --mode analysis` — polish opportunities, micro-interactions, visual rhythm, delight moments
|
|
171
171
|
|
|
172
172
|
**Step 3 — Consolidate**: Merge audit findings + divergent ideas → prioritized list (severity x impact x effort).
|
|
173
173
|
Append evidence phase=diverge. Update section 4. Mark G3.
|
|
@@ -184,7 +184,7 @@ Commit: `"odyssey-ui({slug}): FIX — implement improvements"`
|
|
|
184
184
|
|
|
185
185
|
### A_VERIFY
|
|
186
186
|
1. Run tests (lint, unit, visual regression)
|
|
187
|
-
2. `maestro delegate --role review` — visual correctness, interaction states, accessibility, responsive
|
|
187
|
+
2. `maestro delegate --role review --mode analysis` — visual correctness, interaction states, accessibility, responsive
|
|
188
188
|
3. `needs_rework` → S_FIX. `verified` → mark G4. Update section 5, write `confirmation`.
|
|
189
189
|
|
|
190
190
|
Commit: `"odyssey-ui({slug}): VERIFY — visual verification"`
|
|
@@ -25,6 +25,8 @@ Layers L0→L3 sequential (fail-fast), scenarios within layer parallel. `--max-i
|
|
|
25
25
|
Phase or task: $ARGUMENTS (required — phase number)
|
|
26
26
|
|
|
27
27
|
**Flags:**
|
|
28
|
+
- `-c N` — Resume from iteration N of an existing session (skips setup, resumes from last checkpoint)
|
|
29
|
+
- `-y` — Skip confirmation prompts for artifact registration and issue creation
|
|
28
30
|
- `--max-iter N` — Maximum outer iterations (default: 5). Set to 1 for single-pass generation only.
|
|
29
31
|
- `--layer L` — Start from or restrict to specific layer (L0|L1|L2|L3)
|
|
30
32
|
- `--dry-run` — Generate test plan only, do not execute
|
|
@@ -90,6 +92,14 @@ Follow '~/.maestro/workflows/auto-test.md' completely.
|
|
|
90
92
|
- Generate regression test scenarios from confirmed root causes, marked `source: "debug_root_cause"`
|
|
91
93
|
|
|
92
94
|
**Register artifact on completion:**
|
|
95
|
+
|
|
96
|
+
Unless `-y` flag is set, confirm before writing:
|
|
97
|
+
```
|
|
98
|
+
AskUserQuestion("Register auto-test artifact TST-{NNN} in state.json? (yes/no)")
|
|
99
|
+
→ yes: proceed with write
|
|
100
|
+
→ no: skip registration, continue to next-step routing
|
|
101
|
+
```
|
|
102
|
+
|
|
93
103
|
```
|
|
94
104
|
Append to state.json.artifacts[]:
|
|
95
105
|
{
|
|
@@ -147,7 +157,7 @@ Append to state.json.artifacts[]:
|
|
|
147
157
|
- [ ] report.json includes confidence section
|
|
148
158
|
- [ ] index.json updated with auto_test section
|
|
149
159
|
- [ ] If spec source: traceability matrix built, traceability.md written
|
|
150
|
-
- [ ] If failures: issues
|
|
160
|
+
- [ ] If failures: issues created in issues.jsonl (confirmed by user unless `-y`)
|
|
151
161
|
- [ ] If gap source: validation.json gaps updated (MISSING→COVERED)
|
|
152
162
|
- [ ] Next step routed based on convergence status
|
|
153
163
|
</success_criteria>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: quality-debug
|
|
3
3
|
description: Use when bugs, test failures, or unexpected behavior need systematic root cause investigation
|
|
4
|
-
argument-hint: "[issue description] [--from-uat <phase>] [--parallel]"
|
|
4
|
+
argument-hint: "[issue description] [-c] [--from-uat <phase>] [--parallel]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Write
|
|
@@ -73,6 +73,14 @@ Follow '~/.maestro/workflows/debug.md' completely.
|
|
|
73
73
|
- BLOCKED if inconclusive: resume session or escalate.
|
|
74
74
|
|
|
75
75
|
**Register artifact on completion (phase-scoped only):**
|
|
76
|
+
|
|
77
|
+
Confirm before writing:
|
|
78
|
+
```
|
|
79
|
+
AskUserQuestion("Register debug artifact DBG-{NNN} in state.json? (yes/no)")
|
|
80
|
+
→ yes: proceed with write
|
|
81
|
+
→ no: skip registration, continue to knowledge inquiry
|
|
82
|
+
```
|
|
83
|
+
|
|
76
84
|
```
|
|
77
85
|
Append to state.json.artifacts[]:
|
|
78
86
|
{
|
|
@@ -92,13 +100,19 @@ Append to state.json.artifacts[]:
|
|
|
92
100
|
|
|
93
101
|
### Post-debug Knowledge Inquiry
|
|
94
102
|
|
|
103
|
+
For each matching condition, ask the user explicitly:
|
|
104
|
+
|
|
95
105
|
| Condition | Ask | Route |
|
|
96
106
|
|-----------|-----|-------|
|
|
97
107
|
| Recurring root cause pattern (seen in prior debug) | "Document in debug-notes.md?" | spec-add debug |
|
|
98
108
|
| Non-obvious fix / workaround | "Record as learning?" | spec-add learning |
|
|
99
109
|
| Root cause = architectural boundary violation | "Update architecture-constraints.md?" | spec-add arch |
|
|
100
110
|
|
|
101
|
-
|
|
111
|
+
```
|
|
112
|
+
AskUserQuestion("<ask text> (yes/no)")
|
|
113
|
+
→ yes: Skill("spec-add", "<category> <content> --description \"<summary>\"")
|
|
114
|
+
→ no: skip this entry, proceed to next condition or completion
|
|
115
|
+
```
|
|
102
116
|
|
|
103
117
|
</execution>
|
|
104
118
|
|
|
@@ -30,7 +30,14 @@ Post-execution retrospective (复盘): four parallel lenses (technical/process/q
|
|
|
30
30
|
<context>
|
|
31
31
|
Arguments: $ARGUMENTS
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
**Flags:**
|
|
34
|
+
- `-y` — Skip confirmation prompts for external writes (issues.jsonl, spec entries, knowhow capture)
|
|
35
|
+
- `--no-route` — Skip routing stage (produce retrospective files only, no spec/issue/knowhow writes)
|
|
36
|
+
- `--compare N` — Compare current phase retrospective against phase N (requires single phase argument)
|
|
37
|
+
- `--all` — Run retrospective on all completed phases that lack retrospective.json
|
|
38
|
+
- `--lens <name>` — Restrict to specific lens (technical|process|quality|decision); default: all four
|
|
39
|
+
|
|
40
|
+
Modes (scan/single/range/all) and storage paths defined in workflow retrospective.md Argument Shape and Stages 1-7.
|
|
34
41
|
</context>
|
|
35
42
|
|
|
36
43
|
<execution>
|
|
@@ -55,6 +62,7 @@ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order.
|
|
|
55
62
|
- REQUIRED: `retrospective.md` written (human-readable).
|
|
56
63
|
- REQUIRED: Issue rows match canonical `issues.jsonl` schema (status "open", full fields).
|
|
57
64
|
- REQUIRED: Note tips routed via `Skill({ skill: "manage-knowhow-capture", args: "tip ..." })`.
|
|
65
|
+
- REQUIRED: Unless `-y` flag is set, confirm before each external write (issues.jsonl append, spec-entry append, knowhow-capture). With `-y`, skip all confirmation prompts.
|
|
58
66
|
- BLOCKED if routing incomplete: finish all write operations before reporting.
|
|
59
67
|
|
|
60
68
|
### Execution Constraints
|
|
@@ -80,6 +80,14 @@ Follow '~/.maestro/workflows/review.md' completely.
|
|
|
80
80
|
- `REVIEW_DIR/review.json` — findings, severity distribution, verdict
|
|
81
81
|
|
|
82
82
|
**Register artifact on completion:**
|
|
83
|
+
|
|
84
|
+
Confirm before writing state.json and issues.jsonl:
|
|
85
|
+
```
|
|
86
|
+
AskUserQuestion("Register review artifact REV-{NNN} in state.json and create {N} issues in issues.jsonl? (yes/no)")
|
|
87
|
+
→ yes: proceed with both writes
|
|
88
|
+
→ no: skip registration and issue creation, continue to completion
|
|
89
|
+
```
|
|
90
|
+
|
|
83
91
|
```
|
|
84
92
|
Append to state.json.artifacts[]:
|
|
85
93
|
{
|
|
@@ -42,7 +42,7 @@ Follow '~/.maestro/workflows/sync.md' completely.
|
|
|
42
42
|
|
|
43
43
|
**GATE 3: Refresh → Completion**
|
|
44
44
|
- REQUIRED: `.workflow/codebase/` docs refreshed for affected components.
|
|
45
|
-
- REQUIRED: state.json
|
|
45
|
+
- REQUIRED: If `--dry-run` is set, skip state.json write and report what would change. Otherwise, update state.json with sync timestamp.
|
|
46
46
|
- BLOCKED if missing: do not report completion without updated docs.
|
|
47
47
|
</execution>
|
|
48
48
|
|
|
@@ -80,7 +80,7 @@ maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
|
|
|
80
80
|
</error_codes>
|
|
81
81
|
|
|
82
82
|
<success_criteria>
|
|
83
|
-
- [ ] state.json updated with current sync timestamp
|
|
83
|
+
- [ ] state.json updated with current sync timestamp (skipped if `--dry-run`)
|
|
84
84
|
- [ ] Codebase docs refreshed for all affected components
|
|
85
85
|
- [ ] doc-index.json reflects current file state
|
|
86
86
|
- [ ] Changes tracked and logged
|
|
@@ -90,6 +90,14 @@ Follow '~/.maestro/workflows/test.md' completely.
|
|
|
90
90
|
- Generate regression test scenarios from confirmed root causes, marked `source: "debug_root_cause"`
|
|
91
91
|
|
|
92
92
|
**Register artifact on completion:**
|
|
93
|
+
|
|
94
|
+
Confirm before writing:
|
|
95
|
+
```
|
|
96
|
+
AskUserQuestion("Register test artifact TST-{NNN} in state.json? (yes/no)")
|
|
97
|
+
→ yes: proceed with write
|
|
98
|
+
→ no: skip registration, continue to completion
|
|
99
|
+
```
|
|
100
|
+
|
|
93
101
|
```
|
|
94
102
|
Append to state.json.artifacts[]:
|
|
95
103
|
{
|
|
@@ -163,7 +171,7 @@ maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
|
|
|
163
171
|
- [ ] Pressure pass completed if > 80% pass rate
|
|
164
172
|
- [ ] Confidence summary appended to uat.md
|
|
165
173
|
- [ ] index.json uat fields updated
|
|
166
|
-
- [ ] If issues: parallel debug agents
|
|
174
|
+
- [ ] If issues: confirm with user before spawning parallel debug agents per gap cluster
|
|
167
175
|
- [ ] Gaps updated with root_cause, fix_direction, affected_files
|
|
168
176
|
- [ ] Gap-fix loop triggered if --auto-fix (max 2 iterations)
|
|
169
177
|
- [ ] Next step routed (phase-transition if pass, verify if auto-fix success, debug --from-uat if issues, test-gen if low coverage)
|
|
@@ -98,10 +98,12 @@ Check for:
|
|
|
98
98
|
|
|
99
99
|
**Phase 4: Secrets Detection** (standard + deep)
|
|
100
100
|
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
```
|
|
102
|
+
Grep({
|
|
103
|
+
pattern: "(password|secret|api.?key|token|credential).*=.*['\"][^'\"]{8,}",
|
|
104
|
+
glob: "*.{ts,js,json,env*}",
|
|
105
|
+
output_mode: "content"
|
|
106
|
+
})
|
|
105
107
|
```
|
|
106
108
|
|
|
107
109
|
Check `.env.example` for leaked values. Check `.gitignore` for missing `.env` patterns.
|
|
@@ -159,6 +161,14 @@ Summary: {total} findings ({critical} critical, {high} high, {medium} medium, {l
|
|
|
159
161
|
```
|
|
160
162
|
|
|
161
163
|
**Register artifact on completion:**
|
|
164
|
+
|
|
165
|
+
Confirm before writing:
|
|
166
|
+
```
|
|
167
|
+
AskUserQuestion("Register security-audit artifact RVW-{NNN} in state.json? (yes/no)")
|
|
168
|
+
→ yes: proceed with write
|
|
169
|
+
→ no: skip registration, continue to completion
|
|
170
|
+
```
|
|
171
|
+
|
|
162
172
|
```
|
|
163
173
|
Append to state.json.artifacts[]:
|
|
164
174
|
{
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: spec-add
|
|
3
3
|
description: Add spec entry by category with role tagging
|
|
4
|
-
argument-hint: "[--scope project|global|team|personal] <category> <content>"
|
|
4
|
+
argument-hint: "[--scope project|global|team|personal] [-y] <category> <content>"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Write
|
|
8
8
|
- Bash
|
|
9
9
|
- Glob
|
|
10
10
|
- Grep
|
|
11
|
+
- AskUserQuestion
|
|
11
12
|
---
|
|
12
13
|
<purpose>
|
|
13
14
|
Add `<spec-entry>` to specs by category. 4 scopes: project (default), global, team, personal.
|
|
@@ -45,6 +46,8 @@ Scope-to-directory mapping, category-to-file mapping, and entry format defined i
|
|
|
45
46
|
|
|
46
47
|
<execution>
|
|
47
48
|
Follow '~/.maestro/workflows/specs-add.md' completely.
|
|
49
|
+
|
|
50
|
+
**Confirmation gate**: Unless -y flag is passed, after formatting the `<spec-entry>` block but before appending to the target file, AskUserQuestion showing the formatted entry, target file path, and scope. Proceed only on user confirm.
|
|
48
51
|
</execution>
|
|
49
52
|
|
|
50
53
|
<error_codes>
|
|
@@ -52,7 +55,7 @@ Follow '~/.maestro/workflows/specs-add.md' completely.
|
|
|
52
55
|
|------|----------|-------------|-------|
|
|
53
56
|
| E001 | fatal | Category and content are both required | parse_input |
|
|
54
57
|
| E002 | fatal | Specs directory not initialized -- run `maestro spec init --scope <scope>` | validate_entry |
|
|
55
|
-
| E003 | fatal | Invalid category -- must be one of: coding, arch, quality, debug, test, review, learning,
|
|
58
|
+
| E003 | fatal | Invalid category -- must be one of: coding, arch, quality, debug, test, review, learning, ui | parse_input |
|
|
56
59
|
| E004 | fatal | Invalid scope -- must be one of: project, global, team, personal | parse_input |
|
|
57
60
|
| E005 | fatal | Personal scope requires uid -- use `--uid` or run `maestro collab join` first | parse_input |
|
|
58
61
|
</error_codes>
|
|
@@ -27,7 +27,7 @@ $ARGUMENTS -- optional flags and keyword
|
|
|
27
27
|
- `global`: global + project merged (~/.maestro/specs/ + .workflow/specs/)
|
|
28
28
|
- `team`: project + team shared (.workflow/collab/specs/)
|
|
29
29
|
- `personal`: project + team + personal (requires uid)
|
|
30
|
-
- `--category <category>` — Load by category: primary category doc (full) + cross-file entries with matching category attr. Categories: coding, arch, test, review, debug, learning, ui.
|
|
30
|
+
- `--category <category>` — Load by category: primary category doc (full) + cross-file entries with matching category attr. Categories: coding, arch, quality, test, review, debug, learning, ui.
|
|
31
31
|
- `--keyword <word>` — Filter by keyword within entries
|
|
32
32
|
|
|
33
33
|
**File → Primary Category mapping:**
|
|
@@ -8,6 +8,7 @@ allowed-tools:
|
|
|
8
8
|
- Bash
|
|
9
9
|
- Glob
|
|
10
10
|
- Grep
|
|
11
|
+
- AskUserQuestion
|
|
11
12
|
---
|
|
12
13
|
<purpose>
|
|
13
14
|
Initialize `.workflow/specs/` by scanning codebase for conventions. Core files always created; optional files created when signals detected. Also generates recipe knowhow for detected workflows.
|
|
@@ -27,6 +28,8 @@ $ARGUMENTS (no arguments expected)
|
|
|
27
28
|
|
|
28
29
|
<execution>
|
|
29
30
|
Follow '~/.maestro/workflows/specs-setup.md' completely.
|
|
31
|
+
|
|
32
|
+
**Confirmation gate**: After scanning codebase and determining which files/directories will be created (core specs, optional specs, recipe knowhow), AskUserQuestion showing the full list of files to create with their categories and detected signals. Proceed only on user confirm.
|
|
30
33
|
</execution>
|
|
31
34
|
|
|
32
35
|
<error_codes>
|
|
@@ -145,22 +145,24 @@ $codify-to-knowhow ".workflow/reference_style/my-style-v1"
|
|
|
145
145
|
2. **Idempotent Writes**: Same-slug file exists = skip, never overwrite
|
|
146
146
|
3. **Closed Tags**: All entries use `<spec-entry>` / `<knowhow-entry>` closed-tag format
|
|
147
147
|
4. **Upstream Generates Manifest**: This skill only writes, never extracts knowledge
|
|
148
|
-
5. **CLI First, File Fallback**: Prefer `maestro spec add` CLI; fall back to direct file append on failure
|
|
149
|
-
6. **Ref Bridge**: Spec entries reference knowhow files via `ref` attribute
|
|
148
|
+
5. **CLI First, File Fallback**: Prefer `maestro spec add` CLI with `--ref` param; fall back to direct file append on failure (with confirmation log)
|
|
149
|
+
6. **Ref Bridge**: Spec entries reference knowhow files via `ref` attribute — both CLI path (`--ref` flag) and fallback path (`ref` attr in `<spec-entry>`) carry the ref
|
|
150
150
|
</invariants>
|
|
151
151
|
|
|
152
152
|
<execution>
|
|
153
153
|
|
|
154
154
|
### Step 1: Parse Package Path
|
|
155
155
|
|
|
156
|
-
**Parse from `$ARGUMENTS`**:
|
|
156
|
+
**Parse first positional from `$ARGUMENTS` and assign to `package_path`**:
|
|
157
157
|
|
|
158
158
|
| Variable | Source | Default |
|
|
159
159
|
|----------|--------|---------|
|
|
160
|
-
| `package_path` | positional (required) | ERROR if missing |
|
|
160
|
+
| `package_path` | first positional from $ARGUMENTS (required) | ERROR if missing |
|
|
161
161
|
|
|
162
162
|
```bash
|
|
163
|
-
|
|
163
|
+
# Parse first positional argument from $ARGUMENTS
|
|
164
|
+
package_path="$(echo "$ARGUMENTS" | awk '{print $1}')"
|
|
165
|
+
test -n "$package_path" || { echo "ERROR: package_path is required as first positional argument"; exit 1; }
|
|
164
166
|
|
|
165
167
|
# Validate directory exists
|
|
166
168
|
test -d "$package_path" || { echo "ERROR: Package path not found: $package_path"; exit 1; }
|
|
@@ -313,10 +315,12 @@ ${spec.body}
|
|
|
313
315
|
|
|
314
316
|
// Prefer CLI, fallback to direct append
|
|
315
317
|
const descFlag = spec.description ? ` --description "${spec.description}"` : '';
|
|
316
|
-
const
|
|
318
|
+
const refFlag = spec.ref ? ` --ref "${spec.ref}"` : '';
|
|
319
|
+
const cliResult = Bash(`maestro spec add ${spec.category} "${spec.title}" "${spec.body}" --keywords "${spec.keywords}"${descFlag}${refFlag} 2>/dev/null`);
|
|
317
320
|
|
|
318
321
|
if (cliResult.exitCode !== 0) {
|
|
319
|
-
// Fallback: direct file append
|
|
322
|
+
// Fallback: direct file append — confirm before writing
|
|
323
|
+
REPORT(`CLI failed for "${spec.title}", falling back to direct append to ${targetFile}`);
|
|
320
324
|
Edit(targetFile, { append: entryBlock });
|
|
321
325
|
}
|
|
322
326
|
|
|
@@ -348,22 +352,30 @@ for file in ${knowhowPaths}; do
|
|
|
348
352
|
done
|
|
349
353
|
```
|
|
350
354
|
|
|
351
|
-
**6b: Verify spec entries
|
|
355
|
+
**6b: Verify spec entries** (verify by actual targetFile set from manifest, not hardcoded categories):
|
|
356
|
+
|
|
357
|
+
```javascript
|
|
358
|
+
// Collect unique target files from manifest specs
|
|
359
|
+
const verifiedFiles = new Set();
|
|
360
|
+
for (const spec of manifest.specs) {
|
|
361
|
+
const targetFile = `.workflow/specs/${categoryFileMap[spec.category]}`;
|
|
362
|
+
verifiedFiles.add(targetFile);
|
|
363
|
+
}
|
|
364
|
+
```
|
|
352
365
|
|
|
353
366
|
```bash
|
|
354
367
|
echo "=== Spec Entry Verification ==="
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
echo " OK: architecture-constraints.md" || echo " MISSING: No entries in architecture-constraints.md"
|
|
368
|
+
for target_file in ${verifiedFiles}; do
|
|
369
|
+
grep -c "${slug}" "${target_file}" 2>/dev/null && \
|
|
370
|
+
echo " OK: ${target_file}" || echo " MISSING: No entries in ${target_file}"
|
|
371
|
+
done
|
|
360
372
|
```
|
|
361
373
|
|
|
362
|
-
**6c: Verify ref links
|
|
374
|
+
**6c: Verify ref links** (scan only the target files derived from the manifest):
|
|
363
375
|
|
|
364
376
|
```bash
|
|
365
377
|
echo "=== Ref Link Verification ==="
|
|
366
|
-
refs=$(grep -oP 'ref="knowhow/[^"]*"'
|
|
378
|
+
refs=$(grep -oP 'ref="knowhow/[^"]*"' ${verifiedFiles} 2>/dev/null | grep "${slug}" || true)
|
|
367
379
|
|
|
368
380
|
if [ -n "$refs" ]; then
|
|
369
381
|
echo "$refs" | while IFS= read -r ref; do
|
|
@@ -34,7 +34,7 @@ Extract canonical (first token, kebab-case) and definition (remainder) from argu
|
|
|
34
34
|
|
|
35
35
|
### Step 2: Validate Domain Directory
|
|
36
36
|
|
|
37
|
-
Verify `.workflow/domain/glossary.yaml` exists
|
|
37
|
+
Verify `.workflow/domain/glossary.yaml` exists. If missing, ask user to confirm auto-initialization (`maestro domain init`). Proceed on confirmation; abort with E002 if declined. Skip confirmation when `--yes` flag is set.
|
|
38
38
|
|
|
39
39
|
### Step 3: Check Duplicates
|
|
40
40
|
|
|
@@ -42,7 +42,7 @@ Read existing glossary and check for:
|
|
|
42
42
|
- Exact duplicate (same canonical name) → report existing entry, exit
|
|
43
43
|
- Near match (Levenshtein ≤ 2 or alias overlap) → warn, ask to confirm or merge
|
|
44
44
|
|
|
45
|
-
### Step 4: Extract Metadata
|
|
45
|
+
### Step 4: Extract & Confirm Metadata
|
|
46
46
|
|
|
47
47
|
Auto-derive from the definition and codebase context:
|
|
48
48
|
- **aliases** (1-3): common abbreviations, Chinese translations, alternate forms
|
|
@@ -50,6 +50,8 @@ Auto-derive from the definition and codebase context:
|
|
|
50
50
|
- **tier**: `core` | `extended` | `peripheral`
|
|
51
51
|
- **relationships**: scan existing glossary for related terms
|
|
52
52
|
|
|
53
|
+
Display a preview of all derived metadata and ask user to confirm or edit before proceeding. When `--yes` / `-y` flag is set, skip confirmation and write directly.
|
|
54
|
+
|
|
53
55
|
### Step 5: Register Term
|
|
54
56
|
|
|
55
57
|
```bash
|
|
@@ -66,7 +68,7 @@ Display: canonical name, definition, aliases, tier, relationships, and verify co
|
|
|
66
68
|
| Code | Severity | Description |
|
|
67
69
|
|------|----------|-------------|
|
|
68
70
|
| E001 | fatal | Canonical name and definition are both required |
|
|
69
|
-
| E002 | fatal | `.workflow/domain/` not initialized
|
|
71
|
+
| E002 | fatal | `.workflow/domain/` not initialized and user declined auto-init |
|
|
70
72
|
| E003 | fatal | Term already registered with same canonical name |
|
|
71
73
|
</error_codes>
|
|
72
74
|
|
|
@@ -77,7 +77,9 @@ Generate `tasks.csv` with 4 dimension rows (wave 1) + 1 cross-ref row (wave 2).
|
|
|
77
77
|
"findings": { "type": "string", "maxLength": 500 },
|
|
78
78
|
"error": { "type": "string" }
|
|
79
79
|
},
|
|
80
|
-
"required": ["id", "result_status", "findings"]
|
|
80
|
+
"required": ["id", "result_status", "findings"],
|
|
81
|
+
"if": { "properties": { "result_status": { "const": "completed" } } },
|
|
82
|
+
"then": { "required": ["id", "result_status", "findings", "patterns", "dimension"] }
|
|
81
83
|
}
|
|
82
84
|
```
|
|
83
85
|
|
|
@@ -110,14 +112,29 @@ Each dimension agent populates `patterns` as a JSON array string of:
|
|
|
110
112
|
|
|
111
113
|
### Phase 3: Wave 2 — Cross-Reference + Catalog
|
|
112
114
|
|
|
113
|
-
Single agent receives all wave 1 findings via `prev_context`. Uses same `output_schema` + termination contract above.
|
|
115
|
+
Single agent receives all wave 1 findings via `prev_context`. Uses same `output_schema` + termination contract above.
|
|
116
|
+
|
|
117
|
+
**prev_context filtering**: Only rows with `result_status=="completed"` are forwarded. For each wave 1 row that `failed`, append a `gap_note` line to the cross-ref instruction: `"[GAP] {dimension} scan failed — catalog may be incomplete for this dimension."` The cross-ref agent must not fabricate patterns for missing dimensions.
|
|
118
|
+
|
|
119
|
+
Tasks:
|
|
114
120
|
- Match against dedup set → mark as `documented`, `known`, or `new`
|
|
115
121
|
- Merge duplicates across dimensions (same pattern found by multiple agents)
|
|
116
122
|
- Flag contradictions with documented conventions
|
|
117
|
-
- Build pattern catalog grouped by dimension
|
|
123
|
+
- Build pattern catalog grouped by dimension; note any gap dimensions
|
|
118
124
|
|
|
119
125
|
### Phase 4: Persist
|
|
120
126
|
|
|
127
|
+
**Preview gate** (unless `-y`/`--yes`):
|
|
128
|
+
1. Build a summary table of all writes that will be performed:
|
|
129
|
+
- Knowhow file path + pattern count
|
|
130
|
+
- New patterns to append to `learnings.md` (list names + INS-ids)
|
|
131
|
+
- If `--save-spec`: spec entries to create
|
|
132
|
+
- If `--save-wiki`: wiki notes to create
|
|
133
|
+
2. Display the summary to the user via `request_user_input` asking for confirmation (`y` to proceed, `n` to abort, `e` to edit selection).
|
|
134
|
+
3. If user selects `e`, re-display with checkboxes and apply only checked items.
|
|
135
|
+
4. If `-y`/`--yes` flag is set, skip the preview gate and write all items automatically.
|
|
136
|
+
|
|
137
|
+
**Writes:**
|
|
121
138
|
1. Write `KNW-decompose-{slug}-{date}.md` with full catalog
|
|
122
139
|
2. Append each **new** pattern to `.workflow/specs/learnings.md` (source: "decompose", category: "pattern")
|
|
123
140
|
3. If `--save-spec`: invoke `spec-add` per new pattern
|
|
@@ -129,7 +146,7 @@ Single agent receives all wave 1 findings via `prev_context`. Uses same `output_
|
|
|
129
146
|
|------|----------|-----------|----------|
|
|
130
147
|
| E001 | error | Target path not found | Check path or use module name |
|
|
131
148
|
| E002 | error | No source files in target | Check target has .ts/.js files |
|
|
132
|
-
| W001 | warning | Dimension agent failed — partial results |
|
|
149
|
+
| W001 | warning | Dimension agent failed — partial results | Exclude from prev_context, add gap_note, proceed |
|
|
133
150
|
| W002 | warning | coding-conventions.md not found | All patterns marked "new" |
|
|
134
151
|
</error_codes>
|
|
135
152
|
|
|
@@ -138,6 +155,7 @@ Single agent receives all wave 1 findings via `prev_context`. Uses same `output_
|
|
|
138
155
|
- [ ] 4 dimension agents spawned in parallel via spawn_agents_on_csv
|
|
139
156
|
- [ ] Each finding has: name, dimension, confidence, anchors, description
|
|
140
157
|
- [ ] Cross-reference performed (documented / known / new)
|
|
158
|
+
- [ ] Preview summary shown and user confirmed (or `-y` flag bypassed)
|
|
141
159
|
- [ ] Pattern catalog written to `KNW-decompose-{slug}-{date}.md`
|
|
142
160
|
- [ ] New patterns appended to `.workflow/specs/learnings.md` with stable INS-ids
|
|
143
161
|
- [ ] If --save-spec / --save-wiki: entries created
|
|
@@ -52,10 +52,15 @@ From forcing question answers, extract: design patterns (with file:line anchors)
|
|
|
52
52
|
|
|
53
53
|
Cross-reference against `coding-conventions.md`: documented vs undocumented patterns.
|
|
54
54
|
|
|
55
|
-
### Stage 5: Persist
|
|
56
|
-
1.
|
|
57
|
-
2.
|
|
58
|
-
|
|
55
|
+
### Stage 5: Persist (confirmation-gated)
|
|
56
|
+
1. Display understanding map summary to user
|
|
57
|
+
2. **Confirmation gate**: prompt user via `request_user_input` — "Save knowhow and specs? (y/n/edit)"
|
|
58
|
+
- `y` → proceed to write
|
|
59
|
+
- `n` → skip persistence, display summary only
|
|
60
|
+
- `edit` → let user modify findings before writing
|
|
61
|
+
3. On confirmation: write `KNW-follow-{slug}-{date}.md` with understanding map
|
|
62
|
+
4. On confirmation: append new patterns to `.workflow/specs/learnings.md` (source: "follow", stable INS-ids)
|
|
63
|
+
5. If `--save-wiki`: create wiki note entry (also gated by step 2 confirmation)
|
|
59
64
|
|
|
60
65
|
**Next steps:** `$learn-decompose <path>`, `$spec-add coding ...`, `$learn-second-opinion <file>`
|
|
61
66
|
</execution>
|
|
@@ -75,6 +80,7 @@ Cross-reference against `coding-conventions.md`: documented vs undocumented patt
|
|
|
75
80
|
- [ ] All 4 forcing questions applied per section
|
|
76
81
|
- [ ] Patterns extracted with file:line anchors
|
|
77
82
|
- [ ] Understanding map produced with concepts, patterns, assumptions, questions
|
|
78
|
-
- [ ]
|
|
79
|
-
- [ ]
|
|
83
|
+
- [ ] User confirmation obtained before persistence
|
|
84
|
+
- [ ] `KNW-follow-{slug}-{date}.md` written (if confirmed)
|
|
85
|
+
- [ ] `.workflow/specs/learnings.md` appended with stable INS-ids (if confirmed)
|
|
80
86
|
</success_criteria>
|