@bonesofspring/ai-rules 0.2.72 → 0.2.74
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/CHANGELOG.md +43 -0
- package/README.md +7 -6
- package/bin/lib/ai-local-drift.js +4 -4
- package/bin/lib/engine-scripts.js +10 -0
- package/bin/lib/seed-ai-local-team.js +9 -5
- package/docs/TEAM-DB.md +105 -9
- package/docs/openapi/team-db.v1.json +1164 -224
- package/package.json +1 -1
- package/presets/_shared/ai-local/scripts/action-signals.mjs +225 -0
- package/presets/_shared/ai-local/scripts/actions-report.mjs +210 -0
- package/presets/_shared/ai-local/scripts/manifest.mjs +19 -1
- package/presets/_shared/ai-local/scripts/processes.mjs +5 -4
- package/presets/_shared/ai-local/scripts/rr-scheduler-start.mjs +161 -0
- package/presets/_shared/ai-local/scripts/team-db-api.mjs +347 -9
- package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +309 -4
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +312 -36
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +86 -1
- package/presets/_shared/ai-local/scripts/team-db.mjs +125 -40
- package/presets/_shared/ai-local/scripts/tracker-planned-drain.mjs +335 -0
- package/presets/_shared/core/agent-team/agent-artifact-contracts.md +9 -0
- package/presets/_shared/core/agent-team/agent-team-intake.md +2 -2
- package/presets/_shared/core/quality/self-review-and-context-hygiene.md +1 -0
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +15 -1
- package/presets/claude/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/claude/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/claude/android-kotlin/agents/debugger.md +1 -1
- package/presets/claude/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/claude/android-kotlin/agents/task-analyst.md +1 -1
- package/presets/claude/android-kotlin/commands/README.md +4 -0
- package/presets/claude/android-kotlin/commands/rr-scheduler-start.md +32 -0
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +15 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/go/agents/build-verifier.md +1 -1
- package/presets/claude/go/agents/code-reviewer.md +1 -1
- package/presets/claude/go/agents/debugger.md +1 -1
- package/presets/claude/go/agents/feature-developer.md +1 -1
- package/presets/claude/go/agents/task-analyst.md +1 -1
- package/presets/claude/go/commands/README.md +4 -0
- package/presets/claude/go/commands/rr-scheduler-start.md +32 -0
- package/presets/claude/go/hooks/chain-team-phases.sh +15 -1
- package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/ios-swift/agents/build-verifier.md +1 -1
- package/presets/claude/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/claude/ios-swift/agents/debugger.md +1 -1
- package/presets/claude/ios-swift/agents/feature-developer.md +1 -1
- package/presets/claude/ios-swift/agents/task-analyst.md +1 -1
- package/presets/claude/ios-swift/commands/README.md +4 -0
- package/presets/claude/ios-swift/commands/rr-scheduler-start.md +32 -0
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +15 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/java/agents/build-verifier.md +1 -1
- package/presets/claude/java/agents/code-reviewer.md +1 -1
- package/presets/claude/java/agents/debugger.md +1 -1
- package/presets/claude/java/agents/feature-developer.md +1 -1
- package/presets/claude/java/agents/task-analyst.md +1 -1
- package/presets/claude/java/commands/README.md +4 -0
- package/presets/claude/java/commands/rr-scheduler-start.md +32 -0
- package/presets/claude/java/hooks/chain-team-phases.sh +15 -1
- package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/claude/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/claude/mcp-ts/agents/task-analyst.md +1 -1
- package/presets/claude/mcp-ts/commands/README.md +4 -0
- package/presets/claude/mcp-ts/commands/rr-scheduler-start.md +32 -0
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +15 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/mol/agents/build-verifier.md +1 -1
- package/presets/claude/mol/agents/code-reviewer.md +1 -1
- package/presets/claude/mol/agents/debugger.md +1 -1
- package/presets/claude/mol/agents/feature-developer.md +1 -1
- package/presets/claude/mol/agents/task-analyst.md +1 -1
- package/presets/claude/mol/commands/README.md +4 -0
- package/presets/claude/mol/commands/rr-scheduler-start.md +32 -0
- package/presets/claude/mol/hooks/chain-team-phases.sh +15 -1
- package/presets/claude/mol/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/next/REPO_AGENTS.md +16 -0
- package/presets/claude/next/agents/accessibility-reviewer.md +4 -1
- package/presets/claude/next/agents/api-contract-reviewer.md +5 -2
- package/presets/claude/next/agents/build-verifier.md +6 -3
- package/presets/claude/next/agents/ci-investigator.md +1 -1
- package/presets/claude/next/agents/code-reviewer.md +7 -4
- package/presets/claude/next/agents/codebase-analyzer.md +4 -1
- package/presets/claude/next/agents/debugger.md +2 -2
- package/presets/claude/next/agents/feature-developer.md +2 -2
- package/presets/claude/next/agents/migration-specialist.md +4 -1
- package/presets/claude/next/agents/mockup-reviewer.md +4 -1
- package/presets/claude/next/agents/openspec-author.md +4 -1
- package/presets/claude/next/agents/performance-auditor.md +4 -1
- package/presets/claude/next/agents/playwright-test-generator.md +5 -2
- package/presets/claude/next/agents/playwright-test-healer.md +5 -2
- package/presets/claude/next/agents/playwright-test-planner.md +5 -2
- package/presets/claude/next/agents/qa-tester.md +5 -2
- package/presets/claude/next/agents/security-reviewer.md +4 -1
- package/presets/claude/next/agents/solution-architect.md +4 -1
- package/presets/claude/next/agents/task-analyst.md +5 -2
- package/presets/claude/next/agents/task-router.md +4 -1
- package/presets/claude/next/agents/tech-writer.md +4 -1
- package/presets/claude/next/agents/unit-test-generator.md +5 -2
- package/presets/claude/next/agents/unit-test-healer.md +5 -2
- package/presets/claude/next/agents/unit-test-planner.md +5 -2
- package/presets/claude/next/ai-local/conventions.md +26 -1
- package/presets/claude/next/commands/README.md +4 -0
- package/presets/claude/next/commands/rr-scheduler-start.md +32 -0
- package/presets/claude/next/hooks/chain-team-phases.sh +15 -1
- package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/nuxt/agents/build-verifier.md +1 -1
- package/presets/claude/nuxt/agents/code-reviewer.md +1 -1
- package/presets/claude/nuxt/agents/debugger.md +1 -1
- package/presets/claude/nuxt/agents/feature-developer.md +1 -1
- package/presets/claude/nuxt/agents/task-analyst.md +1 -1
- package/presets/claude/nuxt/commands/README.md +4 -0
- package/presets/claude/nuxt/commands/rr-scheduler-start.md +32 -0
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +15 -1
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/claude/php-hexagonal/agents/debugger.md +1 -1
- package/presets/claude/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/claude/php-hexagonal/agents/task-analyst.md +1 -1
- package/presets/claude/php-hexagonal/commands/README.md +4 -0
- package/presets/claude/php-hexagonal/commands/rr-scheduler-start.md +32 -0
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +15 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/php-laravel/agents/build-verifier.md +1 -1
- package/presets/claude/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/claude/php-laravel/agents/debugger.md +1 -1
- package/presets/claude/php-laravel/agents/feature-developer.md +1 -1
- package/presets/claude/php-laravel/agents/task-analyst.md +1 -1
- package/presets/claude/php-laravel/commands/README.md +4 -0
- package/presets/claude/php-laravel/commands/rr-scheduler-start.md +32 -0
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +15 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/svelte/agents/build-verifier.md +1 -1
- package/presets/claude/svelte/agents/code-reviewer.md +1 -1
- package/presets/claude/svelte/agents/debugger.md +1 -1
- package/presets/claude/svelte/agents/feature-developer.md +1 -1
- package/presets/claude/svelte/agents/task-analyst.md +1 -1
- package/presets/claude/svelte/commands/README.md +4 -0
- package/presets/claude/svelte/commands/rr-scheduler-start.md +32 -0
- package/presets/claude/svelte/hooks/chain-team-phases.sh +15 -1
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/cursor/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/cursor/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/cursor/android-kotlin/agents/debugger.md +1 -1
- package/presets/cursor/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/cursor/android-kotlin/agents/task-analyst.md +1 -1
- package/presets/cursor/android-kotlin/commands/README.md +4 -0
- package/presets/cursor/android-kotlin/commands/rr-scheduler-start.md +32 -0
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +15 -1
- package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/go/agents/build-verifier.md +1 -1
- package/presets/cursor/go/agents/code-reviewer.md +1 -1
- package/presets/cursor/go/agents/debugger.md +1 -1
- package/presets/cursor/go/agents/feature-developer.md +1 -1
- package/presets/cursor/go/agents/task-analyst.md +1 -1
- package/presets/cursor/go/commands/README.md +4 -0
- package/presets/cursor/go/commands/rr-scheduler-start.md +32 -0
- package/presets/cursor/go/hooks/chain-team-phases.sh +15 -1
- package/presets/cursor/go/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/ios-swift/agents/build-verifier.md +1 -1
- package/presets/cursor/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/cursor/ios-swift/agents/debugger.md +1 -1
- package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
- package/presets/cursor/ios-swift/agents/task-analyst.md +1 -1
- package/presets/cursor/ios-swift/commands/README.md +4 -0
- package/presets/cursor/ios-swift/commands/rr-scheduler-start.md +32 -0
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +15 -1
- package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/java/agents/build-verifier.md +1 -1
- package/presets/cursor/java/agents/code-reviewer.md +1 -1
- package/presets/cursor/java/agents/debugger.md +1 -1
- package/presets/cursor/java/agents/feature-developer.md +1 -1
- package/presets/cursor/java/agents/task-analyst.md +1 -1
- package/presets/cursor/java/commands/README.md +4 -0
- package/presets/cursor/java/commands/rr-scheduler-start.md +32 -0
- package/presets/cursor/java/hooks/chain-team-phases.sh +15 -1
- package/presets/cursor/java/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/cursor/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/cursor/mcp-ts/agents/task-analyst.md +1 -1
- package/presets/cursor/mcp-ts/commands/README.md +4 -0
- package/presets/cursor/mcp-ts/commands/rr-scheduler-start.md +32 -0
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +15 -1
- package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/mol/agents/build-verifier.md +1 -1
- package/presets/cursor/mol/agents/code-reviewer.md +1 -1
- package/presets/cursor/mol/agents/debugger.md +1 -1
- package/presets/cursor/mol/agents/feature-developer.md +1 -1
- package/presets/cursor/mol/agents/task-analyst.md +1 -1
- package/presets/cursor/mol/commands/README.md +4 -0
- package/presets/cursor/mol/commands/rr-scheduler-start.md +32 -0
- package/presets/cursor/mol/hooks/chain-team-phases.sh +15 -1
- package/presets/cursor/mol/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/next/AGENTS.md +2 -1
- package/presets/cursor/next/REPO_AGENTS.md +16 -0
- package/presets/cursor/next/agents/build-verifier.md +1 -1
- package/presets/cursor/next/agents/code-reviewer.md +1 -1
- package/presets/cursor/next/agents/debugger.md +1 -1
- package/presets/cursor/next/agents/feature-developer.md +1 -1
- package/presets/cursor/next/agents/task-analyst.md +1 -1
- package/presets/cursor/next/ai-local/conventions.md +6 -1
- package/presets/cursor/next/commands/README.md +4 -0
- package/presets/cursor/next/commands/rr-scheduler-start.md +32 -0
- package/presets/cursor/next/hooks/chain-team-phases.sh +15 -1
- package/presets/cursor/next/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/nuxt/agents/build-verifier.md +1 -1
- package/presets/cursor/nuxt/agents/code-reviewer.md +1 -1
- package/presets/cursor/nuxt/agents/debugger.md +1 -1
- package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
- package/presets/cursor/nuxt/agents/task-analyst.md +1 -1
- package/presets/cursor/nuxt/commands/README.md +4 -0
- package/presets/cursor/nuxt/commands/rr-scheduler-start.md +32 -0
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +15 -1
- package/presets/cursor/nuxt/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/cursor/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/cursor/php-hexagonal/agents/debugger.md +1 -1
- package/presets/cursor/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/cursor/php-hexagonal/agents/task-analyst.md +1 -1
- package/presets/cursor/php-hexagonal/commands/README.md +4 -0
- package/presets/cursor/php-hexagonal/commands/rr-scheduler-start.md +32 -0
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +15 -1
- package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/php-laravel/agents/build-verifier.md +1 -1
- package/presets/cursor/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/cursor/php-laravel/agents/debugger.md +1 -1
- package/presets/cursor/php-laravel/agents/feature-developer.md +1 -1
- package/presets/cursor/php-laravel/agents/task-analyst.md +1 -1
- package/presets/cursor/php-laravel/commands/README.md +4 -0
- package/presets/cursor/php-laravel/commands/rr-scheduler-start.md +32 -0
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +15 -1
- package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/svelte/agents/build-verifier.md +1 -1
- package/presets/cursor/svelte/agents/code-reviewer.md +1 -1
- package/presets/cursor/svelte/agents/debugger.md +1 -1
- package/presets/cursor/svelte/agents/feature-developer.md +1 -1
- package/presets/cursor/svelte/agents/task-analyst.md +1 -1
- package/presets/cursor/svelte/commands/README.md +4 -0
- package/presets/cursor/svelte/commands/rr-scheduler-start.md +32 -0
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +15 -1
- package/presets/cursor/svelte/rules/agent-team-intake.mdc +2 -2
- package/presets/mavis/android-kotlin/adapter-map.json +9 -1
- package/presets/mavis/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/mavis/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/mavis/android-kotlin/agents/debugger.md +1 -1
- package/presets/mavis/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/mavis/android-kotlin/agents/task-analyst.md +1 -1
- package/presets/mavis/android-kotlin/commands/README.md +4 -0
- package/presets/mavis/android-kotlin/commands/rr-scheduler-start.md +27 -0
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +15 -1
- package/presets/mavis/android-kotlin/rules/agent-team-intake.md +2 -2
- package/presets/mavis/go/adapter-map.json +9 -1
- package/presets/mavis/go/agents/build-verifier.md +1 -1
- package/presets/mavis/go/agents/code-reviewer.md +1 -1
- package/presets/mavis/go/agents/debugger.md +1 -1
- package/presets/mavis/go/agents/feature-developer.md +1 -1
- package/presets/mavis/go/agents/task-analyst.md +1 -1
- package/presets/mavis/go/commands/README.md +4 -0
- package/presets/mavis/go/commands/rr-scheduler-start.md +27 -0
- package/presets/mavis/go/hooks/chain-team-phases.sh +15 -1
- package/presets/mavis/go/rules/agent-team-intake.md +2 -2
- package/presets/mavis/ios-swift/adapter-map.json +9 -1
- package/presets/mavis/ios-swift/agents/build-verifier.md +1 -1
- package/presets/mavis/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/mavis/ios-swift/agents/debugger.md +1 -1
- package/presets/mavis/ios-swift/agents/feature-developer.md +1 -1
- package/presets/mavis/ios-swift/agents/task-analyst.md +1 -1
- package/presets/mavis/ios-swift/commands/README.md +4 -0
- package/presets/mavis/ios-swift/commands/rr-scheduler-start.md +27 -0
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +15 -1
- package/presets/mavis/ios-swift/rules/agent-team-intake.md +2 -2
- package/presets/mavis/java/adapter-map.json +9 -1
- package/presets/mavis/java/agents/build-verifier.md +1 -1
- package/presets/mavis/java/agents/code-reviewer.md +1 -1
- package/presets/mavis/java/agents/debugger.md +1 -1
- package/presets/mavis/java/agents/feature-developer.md +1 -1
- package/presets/mavis/java/agents/task-analyst.md +1 -1
- package/presets/mavis/java/commands/README.md +4 -0
- package/presets/mavis/java/commands/rr-scheduler-start.md +27 -0
- package/presets/mavis/java/hooks/chain-team-phases.sh +15 -1
- package/presets/mavis/java/rules/agent-team-intake.md +2 -2
- package/presets/mavis/mcp-ts/adapter-map.json +9 -1
- package/presets/mavis/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/mavis/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/mavis/mcp-ts/agents/task-analyst.md +1 -1
- package/presets/mavis/mcp-ts/commands/README.md +4 -0
- package/presets/mavis/mcp-ts/commands/rr-scheduler-start.md +27 -0
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +15 -1
- package/presets/mavis/mcp-ts/rules/agent-team-intake.md +2 -2
- package/presets/mavis/mol/adapter-map.json +9 -1
- package/presets/mavis/mol/agents/build-verifier.md +1 -1
- package/presets/mavis/mol/agents/code-reviewer.md +1 -1
- package/presets/mavis/mol/agents/debugger.md +1 -1
- package/presets/mavis/mol/agents/feature-developer.md +1 -1
- package/presets/mavis/mol/agents/task-analyst.md +1 -1
- package/presets/mavis/mol/commands/README.md +4 -0
- package/presets/mavis/mol/commands/rr-scheduler-start.md +27 -0
- package/presets/mavis/mol/hooks/chain-team-phases.sh +15 -1
- package/presets/mavis/mol/rules/agent-team-intake.md +2 -2
- package/presets/mavis/next/MAVIS.md +2 -1
- package/presets/mavis/next/REPO_AGENTS.md +16 -0
- package/presets/mavis/next/adapter-map.json +9 -1
- package/presets/mavis/next/agents/accessibility-reviewer.md +4 -1
- package/presets/mavis/next/agents/api-contract-reviewer.md +5 -2
- package/presets/mavis/next/agents/build-verifier.md +6 -3
- package/presets/mavis/next/agents/ci-investigator.md +1 -1
- package/presets/mavis/next/agents/code-reviewer.md +7 -4
- package/presets/mavis/next/agents/codebase-analyzer.md +4 -1
- package/presets/mavis/next/agents/debugger.md +2 -2
- package/presets/mavis/next/agents/feature-developer.md +2 -2
- package/presets/mavis/next/agents/migration-specialist.md +4 -1
- package/presets/mavis/next/agents/mockup-reviewer.md +4 -1
- package/presets/mavis/next/agents/openspec-author.md +4 -1
- package/presets/mavis/next/agents/performance-auditor.md +4 -1
- package/presets/mavis/next/agents/playwright-test-generator.md +5 -2
- package/presets/mavis/next/agents/playwright-test-healer.md +5 -2
- package/presets/mavis/next/agents/playwright-test-planner.md +5 -2
- package/presets/mavis/next/agents/qa-tester.md +5 -2
- package/presets/mavis/next/agents/security-reviewer.md +4 -1
- package/presets/mavis/next/agents/solution-architect.md +4 -1
- package/presets/mavis/next/agents/task-analyst.md +5 -2
- package/presets/mavis/next/agents/task-router.md +4 -1
- package/presets/mavis/next/agents/tech-writer.md +4 -1
- package/presets/mavis/next/agents/unit-test-generator.md +5 -2
- package/presets/mavis/next/agents/unit-test-healer.md +5 -2
- package/presets/mavis/next/agents/unit-test-planner.md +5 -2
- package/presets/mavis/next/ai-local/conventions.md +6 -1
- package/presets/mavis/next/commands/README.md +4 -0
- package/presets/mavis/next/commands/rr-scheduler-start.md +27 -0
- package/presets/mavis/next/hooks/chain-team-phases.sh +15 -1
- package/presets/mavis/next/rules/agent-team-intake.md +2 -2
- package/presets/mavis/nuxt/adapter-map.json +9 -1
- package/presets/mavis/nuxt/agents/build-verifier.md +1 -1
- package/presets/mavis/nuxt/agents/code-reviewer.md +1 -1
- package/presets/mavis/nuxt/agents/debugger.md +1 -1
- package/presets/mavis/nuxt/agents/feature-developer.md +1 -1
- package/presets/mavis/nuxt/agents/task-analyst.md +1 -1
- package/presets/mavis/nuxt/commands/README.md +4 -0
- package/presets/mavis/nuxt/commands/rr-scheduler-start.md +27 -0
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +15 -1
- package/presets/mavis/nuxt/rules/agent-team-intake.md +2 -2
- package/presets/mavis/php-hexagonal/adapter-map.json +9 -1
- package/presets/mavis/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/mavis/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/mavis/php-hexagonal/agents/debugger.md +1 -1
- package/presets/mavis/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/mavis/php-hexagonal/agents/task-analyst.md +1 -1
- package/presets/mavis/php-hexagonal/commands/README.md +4 -0
- package/presets/mavis/php-hexagonal/commands/rr-scheduler-start.md +27 -0
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +15 -1
- package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +2 -2
- package/presets/mavis/php-laravel/adapter-map.json +9 -1
- package/presets/mavis/php-laravel/agents/build-verifier.md +1 -1
- package/presets/mavis/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/mavis/php-laravel/agents/debugger.md +1 -1
- package/presets/mavis/php-laravel/agents/feature-developer.md +1 -1
- package/presets/mavis/php-laravel/agents/task-analyst.md +1 -1
- package/presets/mavis/php-laravel/commands/README.md +4 -0
- package/presets/mavis/php-laravel/commands/rr-scheduler-start.md +27 -0
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +15 -1
- package/presets/mavis/php-laravel/rules/agent-team-intake.md +2 -2
- package/presets/mavis/svelte/adapter-map.json +9 -1
- package/presets/mavis/svelte/agents/build-verifier.md +1 -1
- package/presets/mavis/svelte/agents/code-reviewer.md +1 -1
- package/presets/mavis/svelte/agents/debugger.md +1 -1
- package/presets/mavis/svelte/agents/feature-developer.md +1 -1
- package/presets/mavis/svelte/agents/task-analyst.md +1 -1
- package/presets/mavis/svelte/commands/README.md +4 -0
- package/presets/mavis/svelte/commands/rr-scheduler-start.md +27 -0
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +15 -1
- package/presets/mavis/svelte/rules/agent-team-intake.md +2 -2
- package/presets/opencode/android-kotlin/adapter-map.json +9 -1
- package/presets/opencode/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
- package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/opencode/android-kotlin/agents/task-analyst.md +1 -1
- package/presets/opencode/android-kotlin/commands/README.md +4 -0
- package/presets/opencode/android-kotlin/commands/rr-scheduler-start.md +35 -0
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +15 -1
- package/presets/opencode/android-kotlin/rules/agent-team-intake.md +2 -2
- package/presets/opencode/go/adapter-map.json +9 -1
- package/presets/opencode/go/agents/build-verifier.md +1 -1
- package/presets/opencode/go/agents/code-reviewer.md +1 -1
- package/presets/opencode/go/agents/debugger.md +1 -1
- package/presets/opencode/go/agents/feature-developer.md +1 -1
- package/presets/opencode/go/agents/task-analyst.md +1 -1
- package/presets/opencode/go/commands/README.md +4 -0
- package/presets/opencode/go/commands/rr-scheduler-start.md +35 -0
- package/presets/opencode/go/hooks/chain-team-phases.sh +15 -1
- package/presets/opencode/go/rules/agent-team-intake.md +2 -2
- package/presets/opencode/ios-swift/adapter-map.json +9 -1
- package/presets/opencode/ios-swift/agents/build-verifier.md +1 -1
- package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/opencode/ios-swift/agents/debugger.md +1 -1
- package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
- package/presets/opencode/ios-swift/agents/task-analyst.md +1 -1
- package/presets/opencode/ios-swift/commands/README.md +4 -0
- package/presets/opencode/ios-swift/commands/rr-scheduler-start.md +35 -0
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +15 -1
- package/presets/opencode/ios-swift/rules/agent-team-intake.md +2 -2
- package/presets/opencode/java/adapter-map.json +9 -1
- package/presets/opencode/java/agents/build-verifier.md +1 -1
- package/presets/opencode/java/agents/code-reviewer.md +1 -1
- package/presets/opencode/java/agents/debugger.md +1 -1
- package/presets/opencode/java/agents/feature-developer.md +1 -1
- package/presets/opencode/java/agents/task-analyst.md +1 -1
- package/presets/opencode/java/commands/README.md +4 -0
- package/presets/opencode/java/commands/rr-scheduler-start.md +35 -0
- package/presets/opencode/java/hooks/chain-team-phases.sh +15 -1
- package/presets/opencode/java/rules/agent-team-intake.md +2 -2
- package/presets/opencode/mcp-ts/adapter-map.json +9 -1
- package/presets/opencode/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/opencode/mcp-ts/agents/task-analyst.md +1 -1
- package/presets/opencode/mcp-ts/commands/README.md +4 -0
- package/presets/opencode/mcp-ts/commands/rr-scheduler-start.md +35 -0
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +15 -1
- package/presets/opencode/mcp-ts/rules/agent-team-intake.md +2 -2
- package/presets/opencode/mol/adapter-map.json +9 -1
- package/presets/opencode/mol/agents/build-verifier.md +1 -1
- package/presets/opencode/mol/agents/code-reviewer.md +1 -1
- package/presets/opencode/mol/agents/debugger.md +1 -1
- package/presets/opencode/mol/agents/feature-developer.md +1 -1
- package/presets/opencode/mol/agents/task-analyst.md +1 -1
- package/presets/opencode/mol/commands/README.md +4 -0
- package/presets/opencode/mol/commands/rr-scheduler-start.md +35 -0
- package/presets/opencode/mol/hooks/chain-team-phases.sh +15 -1
- package/presets/opencode/mol/rules/agent-team-intake.md +2 -2
- package/presets/opencode/next/OPENCODE.md +2 -1
- package/presets/opencode/next/REPO_AGENTS.md +16 -0
- package/presets/opencode/next/adapter-map.json +9 -1
- package/presets/opencode/next/agents/accessibility-reviewer.md +4 -1
- package/presets/opencode/next/agents/api-contract-reviewer.md +5 -2
- package/presets/opencode/next/agents/build-verifier.md +6 -3
- package/presets/opencode/next/agents/ci-investigator.md +1 -1
- package/presets/opencode/next/agents/code-reviewer.md +7 -4
- package/presets/opencode/next/agents/codebase-analyzer.md +4 -1
- package/presets/opencode/next/agents/debugger.md +2 -2
- package/presets/opencode/next/agents/feature-developer.md +2 -2
- package/presets/opencode/next/agents/migration-specialist.md +4 -1
- package/presets/opencode/next/agents/mockup-reviewer.md +4 -1
- package/presets/opencode/next/agents/openspec-author.md +4 -1
- package/presets/opencode/next/agents/performance-auditor.md +4 -1
- package/presets/opencode/next/agents/playwright-test-generator.md +5 -2
- package/presets/opencode/next/agents/playwright-test-healer.md +5 -2
- package/presets/opencode/next/agents/playwright-test-planner.md +5 -2
- package/presets/opencode/next/agents/qa-tester.md +5 -2
- package/presets/opencode/next/agents/security-reviewer.md +4 -1
- package/presets/opencode/next/agents/solution-architect.md +4 -1
- package/presets/opencode/next/agents/task-analyst.md +5 -2
- package/presets/opencode/next/agents/task-router.md +4 -1
- package/presets/opencode/next/agents/tech-writer.md +4 -1
- package/presets/opencode/next/agents/unit-test-generator.md +5 -2
- package/presets/opencode/next/agents/unit-test-healer.md +5 -2
- package/presets/opencode/next/agents/unit-test-planner.md +5 -2
- package/presets/opencode/next/ai-local/conventions.md +6 -1
- package/presets/opencode/next/commands/README.md +4 -0
- package/presets/opencode/next/commands/rr-scheduler-start.md +35 -0
- package/presets/opencode/next/hooks/chain-team-phases.sh +15 -1
- package/presets/opencode/next/rules/agent-team-intake.md +2 -2
- package/presets/opencode/nuxt/adapter-map.json +9 -1
- package/presets/opencode/nuxt/agents/build-verifier.md +1 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +1 -1
- package/presets/opencode/nuxt/agents/debugger.md +1 -1
- package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
- package/presets/opencode/nuxt/agents/task-analyst.md +1 -1
- package/presets/opencode/nuxt/commands/README.md +4 -0
- package/presets/opencode/nuxt/commands/rr-scheduler-start.md +35 -0
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +15 -1
- package/presets/opencode/nuxt/rules/agent-team-intake.md +2 -2
- package/presets/opencode/php-hexagonal/adapter-map.json +9 -1
- package/presets/opencode/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/debugger.md +1 -1
- package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/task-analyst.md +1 -1
- package/presets/opencode/php-hexagonal/commands/README.md +4 -0
- package/presets/opencode/php-hexagonal/commands/rr-scheduler-start.md +35 -0
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +15 -1
- package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +2 -2
- package/presets/opencode/php-laravel/adapter-map.json +9 -1
- package/presets/opencode/php-laravel/agents/build-verifier.md +1 -1
- package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/opencode/php-laravel/agents/debugger.md +1 -1
- package/presets/opencode/php-laravel/agents/feature-developer.md +1 -1
- package/presets/opencode/php-laravel/agents/task-analyst.md +1 -1
- package/presets/opencode/php-laravel/commands/README.md +4 -0
- package/presets/opencode/php-laravel/commands/rr-scheduler-start.md +35 -0
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +15 -1
- package/presets/opencode/php-laravel/rules/agent-team-intake.md +2 -2
- package/presets/opencode/plugins/output-guard/README.md +56 -9
- package/presets/opencode/plugins/output-guard/actions.ts +201 -0
- package/presets/opencode/plugins/output-guard/index.ts +147 -6
- package/presets/opencode/plugins/output-guard/rewrite.ts +15 -9
- package/presets/opencode/svelte/adapter-map.json +9 -1
- package/presets/opencode/svelte/agents/build-verifier.md +1 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +1 -1
- package/presets/opencode/svelte/agents/debugger.md +1 -1
- package/presets/opencode/svelte/agents/feature-developer.md +1 -1
- package/presets/opencode/svelte/agents/task-analyst.md +1 -1
- package/presets/opencode/svelte/commands/README.md +4 -0
- package/presets/opencode/svelte/commands/rr-scheduler-start.md +35 -0
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +15 -1
- package/presets/opencode/svelte/rules/agent-team-intake.md +2 -2
- package/presets/zcode/android-kotlin/adapter-map.json +9 -1
- package/presets/zcode/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/zcode/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/zcode/android-kotlin/agents/debugger.md +1 -1
- package/presets/zcode/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/zcode/android-kotlin/agents/task-analyst.md +1 -1
- package/presets/zcode/android-kotlin/commands/README.md +4 -0
- package/presets/zcode/android-kotlin/commands/rr-scheduler-start.md +35 -0
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +15 -1
- package/presets/zcode/android-kotlin/rules/agent-team-intake.md +2 -2
- package/presets/zcode/go/adapter-map.json +9 -1
- package/presets/zcode/go/agents/build-verifier.md +1 -1
- package/presets/zcode/go/agents/code-reviewer.md +1 -1
- package/presets/zcode/go/agents/debugger.md +1 -1
- package/presets/zcode/go/agents/feature-developer.md +1 -1
- package/presets/zcode/go/agents/task-analyst.md +1 -1
- package/presets/zcode/go/commands/README.md +4 -0
- package/presets/zcode/go/commands/rr-scheduler-start.md +35 -0
- package/presets/zcode/go/hooks/chain-team-phases.sh +15 -1
- package/presets/zcode/go/rules/agent-team-intake.md +2 -2
- package/presets/zcode/ios-swift/adapter-map.json +9 -1
- package/presets/zcode/ios-swift/agents/build-verifier.md +1 -1
- package/presets/zcode/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/zcode/ios-swift/agents/debugger.md +1 -1
- package/presets/zcode/ios-swift/agents/feature-developer.md +1 -1
- package/presets/zcode/ios-swift/agents/task-analyst.md +1 -1
- package/presets/zcode/ios-swift/commands/README.md +4 -0
- package/presets/zcode/ios-swift/commands/rr-scheduler-start.md +35 -0
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +15 -1
- package/presets/zcode/ios-swift/rules/agent-team-intake.md +2 -2
- package/presets/zcode/java/adapter-map.json +9 -1
- package/presets/zcode/java/agents/build-verifier.md +1 -1
- package/presets/zcode/java/agents/code-reviewer.md +1 -1
- package/presets/zcode/java/agents/debugger.md +1 -1
- package/presets/zcode/java/agents/feature-developer.md +1 -1
- package/presets/zcode/java/agents/task-analyst.md +1 -1
- package/presets/zcode/java/commands/README.md +4 -0
- package/presets/zcode/java/commands/rr-scheduler-start.md +35 -0
- package/presets/zcode/java/hooks/chain-team-phases.sh +15 -1
- package/presets/zcode/java/rules/agent-team-intake.md +2 -2
- package/presets/zcode/mcp-ts/adapter-map.json +9 -1
- package/presets/zcode/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/zcode/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/zcode/mcp-ts/agents/task-analyst.md +1 -1
- package/presets/zcode/mcp-ts/commands/README.md +4 -0
- package/presets/zcode/mcp-ts/commands/rr-scheduler-start.md +35 -0
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +15 -1
- package/presets/zcode/mcp-ts/rules/agent-team-intake.md +2 -2
- package/presets/zcode/mol/adapter-map.json +9 -1
- package/presets/zcode/mol/agents/build-verifier.md +1 -1
- package/presets/zcode/mol/agents/code-reviewer.md +1 -1
- package/presets/zcode/mol/agents/debugger.md +1 -1
- package/presets/zcode/mol/agents/feature-developer.md +1 -1
- package/presets/zcode/mol/agents/task-analyst.md +1 -1
- package/presets/zcode/mol/commands/README.md +4 -0
- package/presets/zcode/mol/commands/rr-scheduler-start.md +35 -0
- package/presets/zcode/mol/hooks/chain-team-phases.sh +15 -1
- package/presets/zcode/mol/rules/agent-team-intake.md +2 -2
- package/presets/zcode/next/REPO_AGENTS.md +16 -0
- package/presets/zcode/next/adapter-map.json +9 -1
- package/presets/zcode/next/agents/accessibility-reviewer.md +4 -1
- package/presets/zcode/next/agents/api-contract-reviewer.md +5 -2
- package/presets/zcode/next/agents/build-verifier.md +6 -3
- package/presets/zcode/next/agents/ci-investigator.md +1 -1
- package/presets/zcode/next/agents/code-reviewer.md +7 -4
- package/presets/zcode/next/agents/codebase-analyzer.md +4 -1
- package/presets/zcode/next/agents/debugger.md +2 -2
- package/presets/zcode/next/agents/feature-developer.md +2 -2
- package/presets/zcode/next/agents/migration-specialist.md +4 -1
- package/presets/zcode/next/agents/mockup-reviewer.md +4 -1
- package/presets/zcode/next/agents/openspec-author.md +4 -1
- package/presets/zcode/next/agents/performance-auditor.md +4 -1
- package/presets/zcode/next/agents/playwright-test-generator.md +5 -2
- package/presets/zcode/next/agents/playwright-test-healer.md +5 -2
- package/presets/zcode/next/agents/playwright-test-planner.md +5 -2
- package/presets/zcode/next/agents/qa-tester.md +5 -2
- package/presets/zcode/next/agents/security-reviewer.md +4 -1
- package/presets/zcode/next/agents/solution-architect.md +4 -1
- package/presets/zcode/next/agents/task-analyst.md +5 -2
- package/presets/zcode/next/agents/task-router.md +4 -1
- package/presets/zcode/next/agents/tech-writer.md +4 -1
- package/presets/zcode/next/agents/unit-test-generator.md +5 -2
- package/presets/zcode/next/agents/unit-test-healer.md +5 -2
- package/presets/zcode/next/agents/unit-test-planner.md +5 -2
- package/presets/zcode/next/ai-local/conventions.md +6 -1
- package/presets/zcode/next/commands/README.md +4 -0
- package/presets/zcode/next/commands/rr-scheduler-start.md +35 -0
- package/presets/zcode/next/hooks/chain-team-phases.sh +15 -1
- package/presets/zcode/next/rules/agent-team-intake.md +2 -2
- package/presets/zcode/nuxt/adapter-map.json +9 -1
- package/presets/zcode/nuxt/agents/build-verifier.md +1 -1
- package/presets/zcode/nuxt/agents/code-reviewer.md +1 -1
- package/presets/zcode/nuxt/agents/debugger.md +1 -1
- package/presets/zcode/nuxt/agents/feature-developer.md +1 -1
- package/presets/zcode/nuxt/agents/task-analyst.md +1 -1
- package/presets/zcode/nuxt/commands/README.md +4 -0
- package/presets/zcode/nuxt/commands/rr-scheduler-start.md +35 -0
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +15 -1
- package/presets/zcode/nuxt/rules/agent-team-intake.md +2 -2
- package/presets/zcode/php-hexagonal/adapter-map.json +9 -1
- package/presets/zcode/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/zcode/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/zcode/php-hexagonal/agents/debugger.md +1 -1
- package/presets/zcode/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/zcode/php-hexagonal/agents/task-analyst.md +1 -1
- package/presets/zcode/php-hexagonal/commands/README.md +4 -0
- package/presets/zcode/php-hexagonal/commands/rr-scheduler-start.md +35 -0
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +15 -1
- package/presets/zcode/php-hexagonal/rules/agent-team-intake.md +2 -2
- package/presets/zcode/php-laravel/adapter-map.json +9 -1
- package/presets/zcode/php-laravel/agents/build-verifier.md +1 -1
- package/presets/zcode/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/zcode/php-laravel/agents/debugger.md +1 -1
- package/presets/zcode/php-laravel/agents/feature-developer.md +1 -1
- package/presets/zcode/php-laravel/agents/task-analyst.md +1 -1
- package/presets/zcode/php-laravel/commands/README.md +4 -0
- package/presets/zcode/php-laravel/commands/rr-scheduler-start.md +35 -0
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +15 -1
- package/presets/zcode/php-laravel/rules/agent-team-intake.md +2 -2
- package/presets/zcode/svelte/adapter-map.json +9 -1
- package/presets/zcode/svelte/agents/build-verifier.md +1 -1
- package/presets/zcode/svelte/agents/code-reviewer.md +1 -1
- package/presets/zcode/svelte/agents/debugger.md +1 -1
- package/presets/zcode/svelte/agents/feature-developer.md +1 -1
- package/presets/zcode/svelte/agents/task-analyst.md +1 -1
- package/presets/zcode/svelte/commands/README.md +4 -0
- package/presets/zcode/svelte/commands/rr-scheduler-start.md +35 -0
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +15 -1
- package/presets/zcode/svelte/rules/agent-team-intake.md +2 -2
|
@@ -8,9 +8,12 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
10
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
11
15
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
16
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
17
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
18
|
|
|
16
19
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -9,7 +9,6 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
10
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
11
|
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
12
|
-
- `.mavis/rules/post-change-lint.md` — lint/type-check after code edits
|
|
13
12
|
|
|
14
13
|
Read when the task reaches the matching zone:
|
|
15
14
|
|
|
@@ -34,6 +33,7 @@ Read when the task reaches the matching zone:
|
|
|
34
33
|
- `.mavis/rules/types-jsdoc.md`
|
|
35
34
|
- `.mavis/rules/api-services.md`
|
|
36
35
|
- `.mavis/rules/http-client.md`
|
|
36
|
+
- `.mavis/rules/post-change-lint.md` — lint/type-check after code edits
|
|
37
37
|
|
|
38
38
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
39
39
|
|
|
@@ -102,7 +102,7 @@ Before you set `fixApplied: true` and emit the terminal receipt, self-audit the
|
|
|
102
102
|
|
|
103
103
|
Record a `## Self-review` block in `debug-report.md` (goal/AC coverage, evidence, alignment/drift). Optional loop (see the requestable `self-review-and-context-hygiene` contract). In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Keep the loop deterministic: it runs no model-driven pass — rule text is template-derived from the validated signature; a model-driven pass is not part of the loop, and if one is ever added it must be default-off and may write only to the staged band. Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
104
104
|
|
|
105
|
-
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing.
|
|
105
|
+
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Ledger rows go under the canonical header `| id | at | source | summary | fair | disposition | evidence | signature |`; after appending, run `node .ai.local/scripts/team-db.mjs ledger-check --slug <slug>` and fix any header it rejects.
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
## MCP usage
|
|
@@ -9,7 +9,6 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
10
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
11
|
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
12
|
-
- `.mavis/rules/post-change-lint.md` — lint/type-check after code edits
|
|
13
12
|
|
|
14
13
|
Read when the task reaches the matching zone:
|
|
15
14
|
|
|
@@ -34,6 +33,7 @@ Read when the task reaches the matching zone:
|
|
|
34
33
|
- `.mavis/rules/types-jsdoc.md`
|
|
35
34
|
- `.mavis/rules/api-services.md`
|
|
36
35
|
- `.mavis/rules/http-client.md`
|
|
36
|
+
- `.mavis/rules/post-change-lint.md` — lint/type-check after code edits
|
|
37
37
|
|
|
38
38
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
39
39
|
|
|
@@ -135,7 +135,7 @@ Before you emit the terminal implementation receipt (per wave for multi-wave wor
|
|
|
135
135
|
|
|
136
136
|
Record a `## Self-review` block in `implementation.md` (goal/AC coverage, evidence, alignment/drift). Optional loop (see the requestable `self-review-and-context-hygiene` contract). In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Keep the loop deterministic: it runs no model-driven pass — rule text is template-derived from the validated signature; a model-driven pass is not part of the loop, and if one is ever added it must be default-off and may write only to the staged band. Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
137
137
|
|
|
138
|
-
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing.
|
|
138
|
+
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Ledger rows go under the canonical header `| id | at | source | summary | fair | disposition | evidence | signature |`; after appending, run `node .ai.local/scripts/team-db.mjs ledger-check --slug <slug>` and fix any header it rejects.
|
|
139
139
|
|
|
140
140
|
## UI self-check vs Figma
|
|
141
141
|
|
|
@@ -8,9 +8,12 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
10
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
11
15
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
16
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
17
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
18
|
|
|
16
19
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -8,9 +8,12 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
10
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
11
15
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
16
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
17
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
18
|
|
|
16
19
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -8,9 +8,12 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
10
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
11
15
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
16
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
17
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
18
|
|
|
16
19
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -8,9 +8,12 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
10
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
11
15
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
16
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
17
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
18
|
|
|
16
19
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -7,12 +7,15 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
7
7
|
- `.mavis/rules/code-quality-and-refactoring.md`
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
11
|
+
- `.mavis/rules/playwright-agents.md`
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
10
15
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
16
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
17
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
18
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
|
-
- `.mavis/rules/playwright-agents.md`
|
|
16
19
|
- `.mavis/rules/tests-e2e-structure.md`
|
|
17
20
|
- `.mavis/rules/dev-process-lifecycle.md`
|
|
18
21
|
- `.mavis/rules/react-next-anti-hallucination.md` — phantom import banlist
|
|
@@ -7,12 +7,15 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
7
7
|
- `.mavis/rules/code-quality-and-refactoring.md`
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
11
|
+
- `.mavis/rules/playwright-agents.md`
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
10
15
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
16
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
17
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
18
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
|
-
- `.mavis/rules/playwright-agents.md`
|
|
16
19
|
- `.mavis/rules/tests-e2e-structure.md`
|
|
17
20
|
- `.mavis/rules/dev-process-lifecycle.md`
|
|
18
21
|
- `.mavis/rules/react-next-anti-hallucination.md` — phantom import banlist
|
|
@@ -7,12 +7,15 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
7
7
|
- `.mavis/rules/code-quality-and-refactoring.md`
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
11
|
+
- `.mavis/rules/playwright-agents.md`
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
10
15
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
16
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
17
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
18
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
|
-
- `.mavis/rules/playwright-agents.md`
|
|
16
19
|
- `.mavis/rules/tests-e2e-structure.md`
|
|
17
20
|
- `.mavis/rules/dev-process-lifecycle.md`
|
|
18
21
|
- `.mavis/rules/react-next-anti-hallucination.md` — phantom import banlist
|
|
@@ -7,12 +7,15 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
7
7
|
- `.mavis/rules/code-quality-and-refactoring.md`
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
11
|
+
- `.mavis/rules/tests-unit.md`
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
10
15
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
16
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
17
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
18
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
|
-
- `.mavis/rules/tests-unit.md`
|
|
16
19
|
- `.mavis/rules/playwright-agents.md`
|
|
17
20
|
- `.mavis/rules/tests-e2e-structure.md`
|
|
18
21
|
- `.mavis/rules/dev-process-lifecycle.md`
|
|
@@ -8,9 +8,12 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
10
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
11
15
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
16
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
17
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
18
|
|
|
16
19
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -8,9 +8,12 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
10
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
11
15
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
16
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
17
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
18
|
|
|
16
19
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -8,9 +8,12 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
10
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
11
15
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
16
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
17
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
18
|
|
|
16
19
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -72,7 +75,7 @@ Before you emit the terminal analysis receipt, self-audit the goal frame and dec
|
|
|
72
75
|
|
|
73
76
|
Record a `## Self-review` block in `brief.md` (goal/AC coverage, evidence, alignment/drift). Optional loop (see the requestable `self-review-and-context-hygiene` contract). In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Keep the loop deterministic: it runs no model-driven pass — rule text is template-derived from the validated signature; a model-driven pass is not part of the loop, and if one is ever added it must be default-off and may write only to the staged band. Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
74
77
|
|
|
75
|
-
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing.
|
|
78
|
+
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Ledger rows go under the canonical header `| id | at | source | summary | fair | disposition | evidence | signature |`; after appending, run `node .ai.local/scripts/team-db.mjs ledger-check --slug <slug>` and fix any header it rejects.
|
|
76
79
|
|
|
77
80
|
## Clarification cycle (must)
|
|
78
81
|
|
|
@@ -8,9 +8,12 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
10
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
11
15
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
16
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
17
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
18
|
|
|
16
19
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -8,9 +8,12 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
10
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
11
15
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
16
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
17
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
18
|
|
|
16
19
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -7,12 +7,15 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
7
7
|
- `.mavis/rules/code-quality-and-refactoring.md`
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
11
|
+
- `.mavis/rules/tests-unit.md`
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
10
15
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
16
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
17
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
18
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
|
-
- `.mavis/rules/tests-unit.md`
|
|
16
19
|
- `.mavis/rules/react-next-anti-hallucination.md` — phantom import banlist
|
|
17
20
|
|
|
18
21
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -7,12 +7,15 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
7
7
|
- `.mavis/rules/code-quality-and-refactoring.md`
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
11
|
+
- `.mavis/rules/tests-unit.md`
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
10
15
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
16
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
17
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
18
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
|
-
- `.mavis/rules/tests-unit.md`
|
|
16
19
|
- `.mavis/rules/react-next-anti-hallucination.md` — phantom import banlist
|
|
17
20
|
|
|
18
21
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -7,12 +7,15 @@ This subagent runs standalone (`mcode exec --file`) and inherits no global conte
|
|
|
7
7
|
- `.mavis/rules/code-quality-and-refactoring.md`
|
|
8
8
|
- `.mavis/rules/ai-local-overlay.md`
|
|
9
9
|
- `.mavis/rules/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
10
|
+
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
11
|
+
- `.mavis/rules/tests-unit.md`
|
|
12
|
+
|
|
13
|
+
Read when the task reaches the matching zone:
|
|
14
|
+
|
|
10
15
|
- `.mavis/rules/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
11
16
|
- `.mavis/rules/reference-features.md` — analog files first
|
|
12
17
|
- `.mavis/rules/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
13
|
-
- `.mavis/rules/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
14
18
|
- `.mavis/rules/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
15
|
-
- `.mavis/rules/tests-unit.md`
|
|
16
19
|
- `.mavis/rules/react-next-anti-hallucination.md` — phantom import banlist
|
|
17
20
|
|
|
18
21
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -14,7 +14,12 @@ Consumer setting for user-facing dialogue. Change `en` to your BCP-47 tag (e.g.
|
|
|
14
14
|
|
|
15
15
|
<!-- e.g. fragile flows, “never do X in this repo” -->
|
|
16
16
|
|
|
17
|
-
-
|
|
17
|
+
- **Docs-only steps validate with their own validator.** An OpenSpec apply/archive step writes `openspec/**` and
|
|
18
|
+
nothing else: `openspec validate <change> --type change --strict` (runs inside `openspec archive`),
|
|
19
|
+
`openspec validate --specs --strict`, `openspec list`. App lint/type-check/unit/build belong to a step that
|
|
20
|
+
changed `app/**` — never re-run a green app gate for a doc-only step. Exception — archiving before merge: when the
|
|
21
|
+
change's code is not on the base branch yet, the archive step inherits that change's own implementation gates. A
|
|
22
|
+
change folder's `tasks.md` records its implementation phase; it is not a gate definition for later phases.
|
|
18
23
|
|
|
19
24
|
## Patterns
|
|
20
25
|
|
|
@@ -60,3 +60,7 @@ On OpenCode, `/task-evil` runs as the `task-evil` primary agent: the `question`
|
|
|
60
60
|
- Hooks: `../hooks/chain-team-phases.sh` only (semi-auto runner; no `hooks.json` in mavis)
|
|
61
61
|
|
|
62
62
|
Edit procedure files in this preset folder or in the installed `.mavis/commands/` copy after `init`.
|
|
63
|
+
|
|
64
|
+
## Scheduler
|
|
65
|
+
|
|
66
|
+
- **`/rr-scheduler-start`** — start the team-db scheduler, or restart it when one already holds the lease. `init` seeds `.ai.local/scripts/rr-scheduler-start.mjs`.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Start or restart the scheduler
|
|
2
|
+
|
|
3
|
+
Bring up `team-db.mjs schedule` for this repository. When a scheduler already holds the lease, stop that process and start a new one.
|
|
4
|
+
|
|
5
|
+
## What to do
|
|
6
|
+
|
|
7
|
+
1. From the repository root, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
node .ai.local/scripts/rr-scheduler-start.mjs
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
2. Quote the stdout verbatim. A start prints `scheduler: started pid <pid>`. A restart prints `scheduler: restarted pid <pid> (stopped <previous>)`, plus the `processes:` lines from the manager.
|
|
14
|
+
3. On a non-zero exit, quote the `error:` line verbatim and stop. Do not start `team-db.mjs schedule` by hand and do not signal a pid the script did not name.
|
|
15
|
+
|
|
16
|
+
## What the script does
|
|
17
|
+
|
|
18
|
+
- Stops a scheduler this repository recorded, via `processes.mjs stop --name scheduler`.
|
|
19
|
+
- Signals a scheduler that was started outside the manager only when `scheduler.lock` names a live pid whose command line is `team-db.mjs schedule`. `SIGTERM`, then `SIGKILL` if it is still alive after 8 seconds. An in-flight child can outlive that kill.
|
|
20
|
+
- Removes `scheduler.lock` when its pid is already dead, so a crash does not block the next start for 90 seconds.
|
|
21
|
+
- Starts the timer through `processes.mjs start --name scheduler` with `exec node .ai.local/scripts/team-db.mjs schedule`, then waits until the new lease is fresh.
|
|
22
|
+
|
|
23
|
+
## Do not
|
|
24
|
+
|
|
25
|
+
- Write `status.json`, `metrics.json`, or any task or lifecycle file.
|
|
26
|
+
- Run `pkill`, `killall`, or `kill` against a pid the script did not print.
|
|
27
|
+
- Start a second `team-db.mjs schedule` after a non-zero exit.
|
|
@@ -57,12 +57,26 @@ function readSessionLease(id) {
|
|
|
57
57
|
return null;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
+
// The lease carries the window the projector attributes rows with — never one
|
|
61
|
+
// instant. `firstSeenAt` survives every later write of the same (session, slug)
|
|
62
|
+
// pair; a different slug starts a new window, and a lease older than the TTL
|
|
63
|
+
// starts over instead of claiming an ancient first sighting.
|
|
64
|
+
function firstSeenAtOf(file, value, now) {
|
|
65
|
+
try {
|
|
66
|
+
if (Date.now() - fs.statSync(file).mtimeMs > LEASE_TTL_MS) return now;
|
|
67
|
+
const previous = JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
68
|
+
if (previous && previous.slug === value && typeof previous.firstSeenAt === 'string') return previous.firstSeenAt;
|
|
69
|
+
} catch {}
|
|
70
|
+
return now;
|
|
71
|
+
}
|
|
60
72
|
function writeSessionLease(id, value) {
|
|
61
73
|
try {
|
|
62
74
|
fs.mkdirSync(LEASE_ROOT, { recursive: true });
|
|
63
75
|
const file = sessionLeasePath(id);
|
|
64
76
|
const temporary = `${file}.${process.pid}.tmp`;
|
|
65
|
-
|
|
77
|
+
const now = new Date().toISOString();
|
|
78
|
+
const firstSeenAt = firstSeenAtOf(file, value, now);
|
|
79
|
+
fs.writeFileSync(temporary, `${JSON.stringify({ slug: value, sessionId: id, firstSeenAt, updatedAt: now })}\n`);
|
|
66
80
|
fs.renameSync(temporary, file);
|
|
67
81
|
for (const name of fs.readdirSync(LEASE_ROOT)) {
|
|
68
82
|
if (!name.endsWith('.json')) continue;
|
|
@@ -6,9 +6,9 @@ When the user message looks like a **work request** (implement, add, fix, refact
|
|
|
6
6
|
|
|
7
7
|
1. Prefer **`/task <their request>`** or invoke **task-router** first.
|
|
8
8
|
2. Do not jump straight to coding without router + pipeline when scope is non-trivial.
|
|
9
|
-
3.
|
|
9
|
+
3. A question that one read answers — “how does X work”, “explain this function” — is a **pure question**: answer inline, no file, no `/task`. A question that needs more than one read, or whose answer is written down, is a **research** request: route it to agent **`codebase-analyzer`** (explain-as-is) or a `spike` pipeline, and never open implementation steps for it. Where the always-on root agent file ships the research gate, it states this same boundary as a `MUST` (§ Research requests).
|
|
10
10
|
4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
|
|
11
|
-
5. Every **work request** — with or without `/task`, and even when the user says “no pipeline” / “just do it” — persists the **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md`. Prefer `/task` (its **Slug** step writes it). If handling inline without `/task`, first create the slug dir and write `prompt.md` (write-if-absent), then proceed. Pure questions and trivial one-liners are not work requests → no file. On an inline follow-up for an existing slug (no `/task`) where the user authors new text, append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; create on first append; exclude machine-generated and empty/argument-less invocations).
|
|
11
|
+
5. Every **work request** — with or without `/task`, and even when the user says “no pipeline” / “just do it” — persists the **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md`. Prefer `/task` (its **Slug** step writes it). If handling inline without `/task`, first create the slug dir and write `prompt.md` (write-if-absent), then proceed. Pure questions and trivial one-liners are not work requests → no file; a research request is one (rule 3). On an inline follow-up for an existing slug (no `/task`) where the user authors new text, append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; create on first append; exclude machine-generated and empty/argument-less invocations).
|
|
12
12
|
6. **Reuse the dialogue language already resolved on this turn** (always-on `ai-local-overlay` / **language-policy**). A question and a message without a slash command still resolve before you speak. When this request writes `prompt.md`, persist that tag once in the header (`language: <BCP-47>`) + a `.memlog.md` `event:` line. Development, reasoning, and artifacts stay English. The setting wins over a mid-task prompt switch (surface it once, never ask). See **language-policy**.
|
|
13
13
|
7. **Project the intake write.** After `prompt.md` is written for an inline (non-`/task`) work request, run `node .ai.local/scripts/team-db.mjs sync --slug <slug> --deadline-ms 4500` once, so the new task row and its prompt reach the database. A projection failure is reported to the user, never blocks the request; the next full sync remains the convergence path. Do not run a full sync from intake.
|
|
14
14
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "mavis",
|
|
4
4
|
"stack": "nuxt",
|
|
5
5
|
"semanticSource": "cursor/nuxt",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "f31f863d855cbc0ffd32b8a4e54e168dc5d116aff4345d9b76c1f93ec6d64da4",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -269,6 +269,14 @@
|
|
|
269
269
|
"loadMode": "manual",
|
|
270
270
|
"reason": "No file-defined slash command API; keep as an explicit procedure plus exec --file"
|
|
271
271
|
},
|
|
272
|
+
{
|
|
273
|
+
"source": "commands/rr-scheduler-start.md",
|
|
274
|
+
"target": "commands/rr-scheduler-start.md",
|
|
275
|
+
"category": "commands",
|
|
276
|
+
"disposition": "transform",
|
|
277
|
+
"loadMode": "manual",
|
|
278
|
+
"reason": "No file-defined slash command API; keep as an explicit procedure plus exec --file"
|
|
279
|
+
},
|
|
272
280
|
{
|
|
273
281
|
"source": "commands/spec-start.md",
|
|
274
282
|
"target": "commands/spec-start.md",
|
|
@@ -60,7 +60,7 @@ Before you run the project gate and write the terminal validation receipt, self-
|
|
|
60
60
|
|
|
61
61
|
Record a `## Self-review` block in `validation-report.md` (goal/AC coverage, evidence, alignment/drift). Optional loop (see the requestable `self-review-and-context-hygiene` contract). In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Keep the loop deterministic: it runs no model-driven pass — rule text is template-derived from the validated signature; a model-driven pass is not part of the loop, and if one is ever added it must be default-off and may write only to the staged band. Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
62
62
|
|
|
63
|
-
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing.
|
|
63
|
+
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Ledger rows go under the canonical header `| id | at | source | summary | fair | disposition | evidence | signature |`; after appending, run `node .ai.local/scripts/team-db.mjs ledger-check --slug <slug>` and fix any header it rejects.
|
|
64
64
|
|
|
65
65
|
## Output
|
|
66
66
|
|
|
@@ -53,7 +53,7 @@ Before you emit the terminal review receipt, self-audit the review artifact: eve
|
|
|
53
53
|
|
|
54
54
|
Record a `## Self-review` block in `review.md` (goal/AC coverage, evidence, alignment/drift). Optional loop (see the requestable `self-review-and-context-hygiene` contract). In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Keep the loop deterministic: it runs no model-driven pass — rule text is template-derived from the validated signature; a model-driven pass is not part of the loop, and if one is ever added it must be default-off and may write only to the staged band. Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
55
55
|
|
|
56
|
-
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Append each finding to `review-ledger.md` (`disposition: open`) before the receipt.
|
|
56
|
+
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Append each finding to `review-ledger.md` (`disposition: open`) before the receipt. Ledger rows go under the canonical header `| id | at | source | summary | fair | disposition | evidence | signature |`; after appending, run `node .ai.local/scripts/team-db.mjs ledger-check --slug <slug>` and fix any header it rejects.
|
|
57
57
|
|
|
58
58
|
## Review artifact
|
|
59
59
|
|
|
@@ -97,7 +97,7 @@ Before you set `fixApplied: true` and emit the terminal receipt, self-audit the
|
|
|
97
97
|
|
|
98
98
|
Record a `## Self-review` block in `debug-report.md` (goal/AC coverage, evidence, alignment/drift). Optional loop (see the requestable `self-review-and-context-hygiene` contract). In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Keep the loop deterministic: it runs no model-driven pass — rule text is template-derived from the validated signature; a model-driven pass is not part of the loop, and if one is ever added it must be default-off and may write only to the staged band. Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
99
99
|
|
|
100
|
-
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing.
|
|
100
|
+
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Ledger rows go under the canonical header `| id | at | source | summary | fair | disposition | evidence | signature |`; after appending, run `node .ai.local/scripts/team-db.mjs ledger-check --slug <slug>` and fix any header it rejects.
|
|
101
101
|
|
|
102
102
|
## MCP usage
|
|
103
103
|
|
|
@@ -104,7 +104,7 @@ Before you emit the terminal implementation receipt (per wave for multi-wave wor
|
|
|
104
104
|
|
|
105
105
|
Record a `## Self-review` block in `implementation.md` (goal/AC coverage, evidence, alignment/drift). Optional loop (see the requestable `self-review-and-context-hygiene` contract). In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Keep the loop deterministic: it runs no model-driven pass — rule text is template-derived from the validated signature; a model-driven pass is not part of the loop, and if one is ever added it must be default-off and may write only to the staged band. Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
106
106
|
|
|
107
|
-
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing.
|
|
107
|
+
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Ledger rows go under the canonical header `| id | at | source | summary | fair | disposition | evidence | signature |`; after appending, run `node .ai.local/scripts/team-db.mjs ledger-check --slug <slug>` and fix any header it rejects.
|
|
108
108
|
|
|
109
109
|
## Anti-hallucination (Vue / Nuxt / Pinia)
|
|
110
110
|
|
|
@@ -64,7 +64,7 @@ Before you emit the terminal analysis receipt, self-audit the goal frame and dec
|
|
|
64
64
|
|
|
65
65
|
Record a `## Self-review` block in `brief.md` (goal/AC coverage, evidence, alignment/drift). Optional loop (see the requestable `self-review-and-context-hygiene` contract). In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Keep the loop deterministic: it runs no model-driven pass — rule text is template-derived from the validated signature; a model-driven pass is not part of the loop, and if one is ever added it must be default-off and may write only to the staged band. Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
66
66
|
|
|
67
|
-
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing.
|
|
67
|
+
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Ledger rows go under the canonical header `| id | at | source | summary | fair | disposition | evidence | signature |`; after appending, run `node .ai.local/scripts/team-db.mjs ledger-check --slug <slug>` and fix any header it rejects.
|
|
68
68
|
|
|
69
69
|
## Clarification cycle (must)
|
|
70
70
|
|
|
@@ -49,3 +49,7 @@ Procedure files are copied to `.mavis/commands/` on `ai-rules init mavis --prese
|
|
|
49
49
|
- Hooks: `../hooks/chain-team-phases.sh` only (semi-auto runner; no `hooks.json` in mavis)
|
|
50
50
|
|
|
51
51
|
Edit procedure files in this preset folder or in the installed `.mavis/commands/` copy after `init`.
|
|
52
|
+
|
|
53
|
+
## Scheduler
|
|
54
|
+
|
|
55
|
+
- **`/rr-scheduler-start`** — start the team-db scheduler, or restart it when one already holds the lease. `init` seeds `.ai.local/scripts/rr-scheduler-start.mjs`.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Start or restart the scheduler
|
|
2
|
+
|
|
3
|
+
Bring up `team-db.mjs schedule` for this repository. When a scheduler already holds the lease, stop that process and start a new one.
|
|
4
|
+
|
|
5
|
+
## What to do
|
|
6
|
+
|
|
7
|
+
1. From the repository root, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
node .ai.local/scripts/rr-scheduler-start.mjs
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
2. Quote the stdout verbatim. A start prints `scheduler: started pid <pid>`. A restart prints `scheduler: restarted pid <pid> (stopped <previous>)`, plus the `processes:` lines from the manager.
|
|
14
|
+
3. On a non-zero exit, quote the `error:` line verbatim and stop. Do not start `team-db.mjs schedule` by hand and do not signal a pid the script did not name.
|
|
15
|
+
|
|
16
|
+
## What the script does
|
|
17
|
+
|
|
18
|
+
- Stops a scheduler this repository recorded, via `processes.mjs stop --name scheduler`.
|
|
19
|
+
- Signals a scheduler that was started outside the manager only when `scheduler.lock` names a live pid whose command line is `team-db.mjs schedule`. `SIGTERM`, then `SIGKILL` if it is still alive after 8 seconds. An in-flight child can outlive that kill.
|
|
20
|
+
- Removes `scheduler.lock` when its pid is already dead, so a crash does not block the next start for 90 seconds.
|
|
21
|
+
- Starts the timer through `processes.mjs start --name scheduler` with `exec node .ai.local/scripts/team-db.mjs schedule`, then waits until the new lease is fresh.
|
|
22
|
+
|
|
23
|
+
## Do not
|
|
24
|
+
|
|
25
|
+
- Write `status.json`, `metrics.json`, or any task or lifecycle file.
|
|
26
|
+
- Run `pkill`, `killall`, or `kill` against a pid the script did not print.
|
|
27
|
+
- Start a second `team-db.mjs schedule` after a non-zero exit.
|
|
@@ -57,12 +57,26 @@ function readSessionLease(id) {
|
|
|
57
57
|
return null;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
+
// The lease carries the window the projector attributes rows with — never one
|
|
61
|
+
// instant. `firstSeenAt` survives every later write of the same (session, slug)
|
|
62
|
+
// pair; a different slug starts a new window, and a lease older than the TTL
|
|
63
|
+
// starts over instead of claiming an ancient first sighting.
|
|
64
|
+
function firstSeenAtOf(file, value, now) {
|
|
65
|
+
try {
|
|
66
|
+
if (Date.now() - fs.statSync(file).mtimeMs > LEASE_TTL_MS) return now;
|
|
67
|
+
const previous = JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
68
|
+
if (previous && previous.slug === value && typeof previous.firstSeenAt === 'string') return previous.firstSeenAt;
|
|
69
|
+
} catch {}
|
|
70
|
+
return now;
|
|
71
|
+
}
|
|
60
72
|
function writeSessionLease(id, value) {
|
|
61
73
|
try {
|
|
62
74
|
fs.mkdirSync(LEASE_ROOT, { recursive: true });
|
|
63
75
|
const file = sessionLeasePath(id);
|
|
64
76
|
const temporary = `${file}.${process.pid}.tmp`;
|
|
65
|
-
|
|
77
|
+
const now = new Date().toISOString();
|
|
78
|
+
const firstSeenAt = firstSeenAtOf(file, value, now);
|
|
79
|
+
fs.writeFileSync(temporary, `${JSON.stringify({ slug: value, sessionId: id, firstSeenAt, updatedAt: now })}\n`);
|
|
66
80
|
fs.renameSync(temporary, file);
|
|
67
81
|
for (const name of fs.readdirSync(LEASE_ROOT)) {
|
|
68
82
|
if (!name.endsWith('.json')) continue;
|