tribunal-kit 9.2.6 → 9.2.8
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/.agent/ARCHITECTURE.md +4 -4
- package/.agent/data/skill_certification_ledger.jsonl +40 -0
- package/.agent/data/skill_ontology.json +138 -0
- package/.agent/history/architecture-intelligence.html +1487 -401
- package/.agent/history/architecture-model.json +16130 -5802
- package/.agent/history/architecture-verification.json +6 -6
- package/.agent/routing_index.json +656 -1566
- package/.agent/rules/GEMINI.md +1 -1
- package/.agent/scripts/adaptive_execution.js +704 -0
- package/.agent/scripts/architecture_diff.js +60 -17
- package/.agent/scripts/architecture_extractor.js +60 -21
- package/.agent/scripts/architecture_health.js +58 -21
- package/.agent/scripts/architecture_intelligence.js +3100 -0
- package/.agent/scripts/architecture_verifier.js +46 -13
- package/.agent/scripts/architecture_visualizer.js +1536 -421
- package/.agent/scripts/blast_radius_engine.js +64 -24
- package/.agent/scripts/capability_evolution.js +555 -0
- package/.agent/scripts/concept_extractor.js +240 -0
- package/.agent/scripts/consideration_engine.js +284 -0
- package/.agent/scripts/context_broker.js +397 -31
- package/.agent/scripts/corpus_certification_orchestrator.js +502 -0
- package/.agent/scripts/corpus_validation_engine.js +311 -0
- package/.agent/scripts/coverage_engine.js +102 -0
- package/.agent/scripts/cross_domain_engine.js +1883 -0
- package/.agent/scripts/engineering_memory.js +1442 -0
- package/.agent/scripts/final_corpus_validation_engine.js +405 -0
- package/.agent/scripts/integrity_manifest.js +1 -5
- package/.agent/scripts/intent_extractor.js +130 -0
- package/.agent/scripts/judgment_engine.js +790 -0
- package/.agent/scripts/materiality_engine.js +251 -0
- package/.agent/scripts/outcome_engine.js +639 -0
- package/.agent/scripts/outcome_optimization_engine.js +1632 -0
- package/.agent/scripts/routing_evaluation_engine.js +184 -0
- package/.agent/scripts/simulation_engine.js +1478 -0
- package/.agent/scripts/skill_behavior_classifier.js +90 -0
- package/.agent/scripts/skill_behavior_harness.js +105 -0
- package/.agent/scripts/skill_certification_engine.js +586 -0
- package/.agent/scripts/skill_contract_engine.js +424 -0
- package/.agent/scripts/skill_coverage_expansion_engine.js +505 -0
- package/.agent/scripts/skill_evidence_acquisition_engine.js +535 -0
- package/.agent/scripts/skill_evidence_engine.js +83 -0
- package/.agent/scripts/skill_expectation_engine.js +38 -0
- package/.agent/scripts/skill_fixture_engine.js +24 -0
- package/.agent/scripts/skill_human_validation.js +32 -0
- package/.agent/scripts/skill_intelligence.js +1300 -0
- package/.agent/scripts/skill_observation_engine.js +25 -0
- package/.agent/scripts/skill_ontology_engine.js +83 -0
- package/.agent/scripts/skill_quality_engine.js +343 -0
- package/.agent/scripts/skill_reconstruction_engine.js +164 -0
- package/.agent/scripts/skill_remediation_engine.js +326 -0
- package/.agent/scripts/skill_scenario_engine.js +108 -0
- package/.agent/scripts/skill_test_authoring_engine.js +1011 -0
- package/.agent/scripts/verification_auditor.js +346 -0
- package/.agent/skill-intelligence/taxonomy/engineering-concepts.json +555 -0
- package/.agent/skill_topic_map.json +15 -55
- package/.agent/skills/12-principles-of-animation/SKILL.md +9 -0
- package/.agent/skills/60fps-animation/SKILL.md +14 -0
- package/.agent/skills/accessible-animation/SKILL.md +9 -0
- package/.agent/skills/adapt/SKILL.md +8 -0
- package/.agent/skills/adr-generation/SKILL.md +9 -0
- package/.agent/skills/advanced-rag-pipelines/SKILL.md +9 -0
- package/.agent/skills/agent-organizer/SKILL.md +8 -0
- package/.agent/skills/agent-syscall-guidelines/SKILL.md +10 -0
- package/.agent/skills/agentic-patterns/SKILL.md +9 -0
- package/.agent/skills/agentic-workflows-2026/SKILL.md +8 -0
- package/.agent/skills/agentshield-security/SKILL.md +16 -0
- package/.agent/skills/ai-app-hardening/SKILL.md +7 -0
- package/.agent/skills/ai-prompt-injection-defense/SKILL.md +9 -0
- package/.agent/skills/animation-on-scroll/SKILL.md +9 -0
- package/.agent/skills/animation-systems/SKILL.md +8 -0
- package/.agent/skills/antfu-conventions/SKILL.md +9 -0
- package/.agent/skills/anti-slop-enforcement/SKILL.md +11 -0
- package/.agent/skills/api-patterns/SKILL.md +9 -0
- package/.agent/skills/api-security-auditor/SKILL.md +10 -0
- package/.agent/skills/app-builder/SKILL.md +8 -0
- package/.agent/skills/appflow-wireframe/SKILL.md +9 -0
- package/.agent/skills/apple-design/SKILL.md +8 -0
- package/.agent/skills/architecture/SKILL.md +8 -0
- package/.agent/skills/architecture-drift/SKILL.md +9 -0
- package/.agent/skills/architecture-intelligence/SKILL.md +17 -0
- package/.agent/skills/audit-and-fix/SKILL.md +8 -0
- package/.agent/skills/authentication-best-practices/SKILL.md +10 -0
- package/.agent/skills/autonomous-execution/SKILL.md +9 -0
- package/.agent/skills/backend-alembic/SKILL.md +16 -0
- package/.agent/skills/backend-architecture-auditor/SKILL.md +16 -0
- package/.agent/skills/backend-mongodb/SKILL.md +10 -0
- package/.agent/skills/backend-mysql/SKILL.md +16 -0
- package/.agent/skills/backend-performance-auditor/SKILL.md +10 -0
- package/.agent/skills/backend-postgresql/SKILL.md +10 -0
- package/.agent/skills/backend-redis/SKILL.md +10 -0
- package/.agent/skills/backend-security-expert/SKILL.md +10 -0
- package/.agent/skills/backend-sqlalchemy/SKILL.md +10 -0
- package/.agent/skills/backend-sqlite/SKILL.md +10 -0
- package/.agent/skills/backend-testing-auditor/SKILL.md +15 -0
- package/.agent/skills/baseline-ui/SKILL.md +8 -0
- package/.agent/skills/bash-linux/SKILL.md +9 -0
- package/.agent/skills/behavioral-modes/SKILL.md +9 -0
- package/.agent/skills/better-colors/SKILL.md +9 -0
- package/.agent/skills/better-typography/SKILL.md +9 -0
- package/.agent/skills/better-ui/SKILL.md +8 -0
- package/.agent/skills/bolder/SKILL.md +8 -0
- package/.agent/skills/brainstorming/SKILL.md +8 -0
- package/.agent/skills/browser-audit/SKILL.md +9 -0
- package/.agent/skills/browser-native-ai/SKILL.md +8 -0
- package/.agent/skills/build-primitive/SKILL.md +8 -0
- package/.agent/skills/building-native-ui/SKILL.md +7 -0
- package/.agent/skills/cicd-pro/SKILL.md +9 -0
- package/.agent/skills/clarify/SKILL.md +8 -0
- package/.agent/skills/clean-code/SKILL.md +8 -0
- package/.agent/skills/cloud-architect/SKILL.md +8 -0
- package/.agent/skills/cobejs/SKILL.md +8 -0
- package/.agent/skills/code-review-checklist/SKILL.md +9 -0
- package/.agent/skills/codebase-design/SKILL.md +14 -0
- package/.agent/skills/colorize/SKILL.md +8 -0
- package/.agent/skills/compact-landing/SKILL.md +9 -0
- package/.agent/skills/company-logos/SKILL.md +9 -0
- package/.agent/skills/config-validator/SKILL.md +9 -0
- package/.agent/skills/containerization-pro/SKILL.md +9 -0
- package/.agent/skills/context-engineering-pro/SKILL.md +10 -0
- package/.agent/skills/create-design-md/SKILL.md +7 -0
- package/.agent/skills/critique/SKILL.md +8 -0
- package/.agent/skills/csharp-developer/SKILL.md +9 -0
- package/.agent/skills/data-validation-schemas/SKILL.md +8 -0
- package/.agent/skills/database-design/SKILL.md +8 -0
- package/.agent/skills/delight/SKILL.md +8 -0
- package/.agent/skills/deployment-procedures/SKILL.md +9 -0
- package/.agent/skills/design-lab/SKILL.md +8 -0
- package/.agent/skills/devops-engineer/SKILL.md +9 -0
- package/.agent/skills/devops-incident-responder/SKILL.md +16 -0
- package/.agent/skills/diagnosing-bugs/SKILL.md +9 -0
- package/.agent/skills/distill/SKILL.md +8 -0
- package/.agent/skills/documentation-templates/SKILL.md +9 -0
- package/.agent/skills/domain-modeling/SKILL.md +9 -0
- package/.agent/skills/duckdb-analytical-sql/SKILL.md +10 -0
- package/.agent/skills/edge-ai-mobile/SKILL.md +8 -0
- package/.agent/skills/edge-computing/SKILL.md +9 -0
- package/.agent/skills/emil-design-eng/SKILL.md +9 -0
- package/.agent/skills/error-resilience/SKILL.md +8 -0
- package/.agent/skills/expo-router-v4/SKILL.md +9 -0
- package/.agent/skills/extract-design-system/SKILL.md +9 -0
- package/.agent/skills/fabel-protocol/SKILL.md +9 -0
- package/.agent/skills/failure-mode-analysis/SKILL.md +10 -0
- package/.agent/skills/fastapi-pro/SKILL.md +9 -0
- package/.agent/skills/fixing-accessibility/SKILL.md +9 -0
- package/.agent/skills/fixing-metadata/SKILL.md +9 -0
- package/.agent/skills/fixing-motion-performance/SKILL.md +9 -0
- package/.agent/skills/framer-motion-expert/SKILL.md +9 -0
- package/.agent/skills/frontend-design/SKILL.md +7 -0
- package/.agent/skills/frontend-security-expert/SKILL.md +9 -0
- package/.agent/skills/game-design-expert/SKILL.md +9 -0
- package/.agent/skills/game-engineering-expert/SKILL.md +16 -0
- package/.agent/skills/generative-ui-expert/SKILL.md +9 -0
- package/.agent/skills/geo-fundamentals/SKILL.md +9 -0
- package/.agent/skills/git-pro/SKILL.md +9 -0
- package/.agent/skills/github-operations/SKILL.md +9 -0
- package/.agent/skills/gpt-taste/SKILL.md +9 -0
- package/.agent/skills/graph-engineering/SKILL.md +16 -0
- package/.agent/skills/gsap-core/SKILL.md +9 -0
- package/.agent/skills/gsap-frameworks/SKILL.md +9 -0
- package/.agent/skills/gsap-performance/SKILL.md +9 -0
- package/.agent/skills/gsap-plugins/SKILL.md +9 -0
- package/.agent/skills/gsap-react/SKILL.md +9 -0
- package/.agent/skills/gsap-scrolltrigger/SKILL.md +9 -0
- package/.agent/skills/gsap-timeline/SKILL.md +9 -0
- package/.agent/skills/gsap-utils/SKILL.md +9 -0
- package/.agent/skills/harden/SKILL.md +8 -0
- package/.agent/skills/harness-protocol/SKILL.md +9 -0
- package/.agent/skills/hf-cli/SKILL.md +11 -0
- package/.agent/skills/hf-cloud-aws-context-discovery/SKILL.md +10 -0
- package/.agent/skills/hf-cloud-python-env-setup/SKILL.md +10 -0
- package/.agent/skills/hf-cloud-sagemaker-deployment-planner/SKILL.md +10 -0
- package/.agent/skills/hf-cloud-sagemaker-iam-preflight/SKILL.md +10 -0
- package/.agent/skills/hf-cloud-sagemaker-production-defaults/SKILL.md +10 -0
- package/.agent/skills/hf-cloud-serving-image-selection/SKILL.md +10 -0
- package/.agent/skills/hf-mem/SKILL.md +11 -0
- package/.agent/skills/huggingface-best/SKILL.md +9 -0
- package/.agent/skills/huggingface-community-evals/SKILL.md +11 -0
- package/.agent/skills/huggingface-datasets/SKILL.md +10 -0
- package/.agent/skills/huggingface-gradio/SKILL.md +10 -0
- package/.agent/skills/huggingface-llm-trainer/SKILL.md +10 -0
- package/.agent/skills/huggingface-local-models/SKILL.md +10 -0
- package/.agent/skills/huggingface-lora-space-builder/SKILL.md +11 -0
- package/.agent/skills/huggingface-paper-publisher/SKILL.md +11 -0
- package/.agent/skills/huggingface-papers/SKILL.md +11 -0
- package/.agent/skills/huggingface-spaces/SKILL.md +10 -0
- package/.agent/skills/huggingface-tool-builder/SKILL.md +11 -0
- package/.agent/skills/huggingface-trackio/SKILL.md +11 -0
- package/.agent/skills/huggingface-vision-trainer/SKILL.md +11 -0
- package/.agent/skills/huggingface-zerogpu/SKILL.md +11 -0
- package/.agent/skills/human-gate-negotiation/SKILL.md +11 -0
- package/.agent/skills/i18n-localization/SKILL.md +9 -0
- package/.agent/skills/impeccable/SKILL.md +8 -0
- package/.agent/skills/improve-codebase-architecture/SKILL.md +10 -0
- package/.agent/skills/improve-ui/SKILL.md +8 -0
- package/.agent/skills/intelligent-routing/SKILL.md +9 -0
- package/.agent/skills/knowledge-graph/SKILL.md +9 -0
- package/.agent/skills/landing-page/SKILL.md +9 -0
- package/.agent/skills/lint-and-validate/SKILL.md +9 -0
- package/.agent/skills/llm-engineering/SKILL.md +9 -0
- package/.agent/skills/local-first/SKILL.md +10 -0
- package/.agent/skills/lottie-animation/SKILL.md +9 -0
- package/.agent/skills/marquee-loop/SKILL.md +9 -0
- package/.agent/skills/masked-reveal/SKILL.md +9 -0
- package/.agent/skills/mcp-builder/SKILL.md +9 -0
- package/.agent/skills/micro-interaction/SKILL.md +9 -0
- package/.agent/skills/mobile-design/SKILL.md +7 -0
- package/.agent/skills/monorepo-management/SKILL.md +9 -0
- package/.agent/skills/morphing-icons/SKILL.md +9 -0
- package/.agent/skills/motion-engineering/SKILL.md +8 -0
- package/.agent/skills/nextjs-react-expert/SKILL.md +10 -0
- package/.agent/skills/nodejs-best-practices/SKILL.md +16 -0
- package/.agent/skills/observability/SKILL.md +8 -0
- package/.agent/skills/opentelemetry-observability/SKILL.md +9 -0
- package/.agent/skills/page-transition-animation/SKILL.md +10 -0
- package/.agent/skills/parallel-agents/SKILL.md +15 -0
- package/.agent/skills/performance-profiling/SKILL.md +9 -0
- package/.agent/skills/plan-writing/SKILL.md +8 -0
- package/.agent/skills/platform-engineer/SKILL.md +9 -0
- package/.agent/skills/platform-engineering-opentofu/SKILL.md +10 -0
- package/.agent/skills/playwright-ai-e2e/SKILL.md +9 -0
- package/.agent/skills/playwright-best-practices/SKILL.md +16 -0
- package/.agent/skills/polish/SKILL.md +8 -0
- package/.agent/skills/powershell-windows/SKILL.md +9 -0
- package/.agent/skills/pricing-page/SKILL.md +9 -0
- package/.agent/skills/product-aware-heuristics/SKILL.md +10 -0
- package/.agent/skills/progressive-blur/SKILL.md +9 -0
- package/.agent/skills/project-idioms/SKILL.md +8 -0
- package/.agent/skills/property-based-testing/SKILL.md +9 -0
- package/.agent/skills/python-patterns/SKILL.md +9 -0
- package/.agent/skills/python-pro/SKILL.md +9 -0
- package/.agent/skills/quieter/SKILL.md +8 -0
- package/.agent/skills/react-doctor/SKILL.md +9 -0
- package/.agent/skills/react-specialist/SKILL.md +9 -0
- package/.agent/skills/readme-builder/SKILL.md +9 -0
- package/.agent/skills/realtime-patterns/SKILL.md +9 -0
- package/.agent/skills/red-team-tactics/SKILL.md +16 -0
- package/.agent/skills/redesign-skill/SKILL.md +9 -0
- package/.agent/skills/review-animations/SKILL.md +8 -0
- package/.agent/skills/rust-pro/SKILL.md +9 -0
- package/.agent/skills/semantic-filesystem-navigation/SKILL.md +11 -0
- package/.agent/skills/seo-fundamentals/SKILL.md +9 -0
- package/.agent/skills/server-management/SKILL.md +8 -0
- package/.agent/skills/session-log-interrogation/SKILL.md +11 -0
- package/.agent/skills/shadcn-ui-expert/SKILL.md +9 -0
- package/.agent/skills/shape/SKILL.md +8 -0
- package/.agent/skills/skill-creator/SKILL.md +9 -0
- package/.agent/skills/soft-skill/SKILL.md +9 -0
- package/.agent/skills/sounds-on-the-web/SKILL.md +9 -0
- package/.agent/skills/sql-pro/SKILL.md +9 -0
- package/.agent/skills/subagent-driven-development/SKILL.md +11 -0
- package/.agent/skills/supabase-postgres-best-practices/SKILL.md +17 -0
- package/.agent/skills/svg-animation/SKILL.md +9 -0
- package/.agent/skills/swiftui-expert/SKILL.md +9 -0
- package/.agent/skills/swiss-design/SKILL.md +8 -0
- package/.agent/skills/system-design-pro/SKILL.md +9 -0
- package/.agent/skills/systematic-debugging/SKILL.md +14 -0
- package/.agent/skills/tailwind-patterns/SKILL.md +9 -0
- package/.agent/skills/taste-skill/SKILL.md +9 -0
- package/.agent/skills/tdd-workflow/SKILL.md +9 -0
- package/.agent/skills/test-result-analyzer/SKILL.md +9 -0
- package/.agent/skills/testing-patterns/SKILL.md +8 -0
- package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +11 -0
- package/.agent/skills/thinking-protocol/SKILL.md +10 -0
- package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +9 -0
- package/.agent/skills/train-sentence-transformers/SKILL.md +10 -0
- package/.agent/skills/transformers-js/SKILL.md +8 -0
- package/.agent/skills/transitions-dev/SKILL.md +8 -0
- package/.agent/skills/trend-researcher/SKILL.md +9 -0
- package/.agent/skills/tribunal-instincts-memory/SKILL.md +11 -0
- package/.agent/skills/trl-training/SKILL.md +9 -0
- package/.agent/skills/typescript-advanced/SKILL.md +9 -0
- package/.agent/skills/typeset/SKILL.md +8 -0
- package/.agent/skills/ui-reasoning-engine/SKILL.md +9 -0
- package/.agent/skills/ui-skill-packs/SKILL.md +9 -0
- package/.agent/skills/ui-skills-root/SKILL.md +9 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +9 -0
- package/.agent/skills/ui-ux-researcher/SKILL.md +8 -0
- package/.agent/skills/vector-search-pgvector/SKILL.md +10 -0
- package/.agent/skills/verification-before-completion/SKILL.md +9 -0
- package/.agent/skills/vue-expert/SKILL.md +9 -0
- package/.agent/skills/vulnerability-scanner/SKILL.md +9 -0
- package/.agent/skills/web-accessibility-auditor/SKILL.md +16 -0
- package/.agent/skills/web-design-guidelines/SKILL.md +9 -0
- package/.agent/skills/web-quality-audit/SKILL.md +10 -0
- package/.agent/skills/webapp-testing/SKILL.md +8 -0
- package/.agent/skills/webgpu-performance/SKILL.md +9 -0
- package/.agent/skills/whimsy-injector/SKILL.md +9 -0
- package/.agent/skills/workflow-optimizer/SKILL.md +9 -0
- package/.agent/skills/zero-trust-passkeys/SKILL.md +10 -0
- package/.agent/skills_inventory.json +502 -3167
- package/.agent/workflows/arch.md +96 -80
- package/.agent/workflows/skill-intelligence.md +216 -0
- package/.agents/skills/12-principles-of-animation/SKILL.md +9 -0
- package/.agents/skills/60fps-animation/SKILL.md +14 -0
- package/.agents/skills/accessible-animation/SKILL.md +9 -0
- package/.agents/skills/adapt/SKILL.md +8 -0
- package/.agents/skills/adr-generation/SKILL.md +9 -0
- package/.agents/skills/advanced-rag-pipelines/SKILL.md +9 -0
- package/.agents/skills/agent-organizer/SKILL.md +8 -0
- package/.agents/skills/agent-syscall-guidelines/SKILL.md +10 -0
- package/.agents/skills/agentic-patterns/SKILL.md +9 -0
- package/.agents/skills/agentic-workflows-2026/SKILL.md +8 -0
- package/.agents/skills/agentshield-security/SKILL.md +16 -0
- package/.agents/skills/ai-app-hardening/SKILL.md +7 -0
- package/.agents/skills/ai-prompt-injection-defense/SKILL.md +9 -0
- package/.agents/skills/animation-on-scroll/SKILL.md +9 -0
- package/.agents/skills/animation-systems/SKILL.md +8 -0
- package/.agents/skills/antfu-conventions/SKILL.md +9 -0
- package/.agents/skills/anti-slop-enforcement/SKILL.md +11 -0
- package/.agents/skills/api-patterns/SKILL.md +9 -0
- package/.agents/skills/api-security-auditor/SKILL.md +10 -0
- package/.agents/skills/app-builder/SKILL.md +8 -0
- package/.agents/skills/appflow-wireframe/SKILL.md +9 -0
- package/.agents/skills/apple-design/SKILL.md +8 -0
- package/.agents/skills/architecture/SKILL.md +8 -0
- package/.agents/skills/architecture-drift/SKILL.md +9 -0
- package/.agents/skills/architecture-intelligence/SKILL.md +17 -0
- package/.agents/skills/audit-and-fix/SKILL.md +8 -0
- package/.agents/skills/authentication-best-practices/SKILL.md +10 -0
- package/.agents/skills/autonomous-execution/SKILL.md +9 -0
- package/.agents/skills/backend-alembic/SKILL.md +16 -0
- package/.agents/skills/backend-architecture-auditor/SKILL.md +16 -0
- package/.agents/skills/backend-mongodb/SKILL.md +10 -0
- package/.agents/skills/backend-mysql/SKILL.md +16 -0
- package/.agents/skills/backend-performance-auditor/SKILL.md +10 -0
- package/.agents/skills/backend-postgresql/SKILL.md +10 -0
- package/.agents/skills/backend-redis/SKILL.md +10 -0
- package/.agents/skills/backend-security-expert/SKILL.md +10 -0
- package/.agents/skills/backend-sqlalchemy/SKILL.md +10 -0
- package/.agents/skills/backend-sqlite/SKILL.md +10 -0
- package/.agents/skills/backend-testing-auditor/SKILL.md +15 -0
- package/.agents/skills/baseline-ui/SKILL.md +8 -0
- package/.agents/skills/bash-linux/SKILL.md +9 -0
- package/.agents/skills/behavioral-modes/SKILL.md +9 -0
- package/.agents/skills/better-colors/SKILL.md +9 -0
- package/.agents/skills/better-typography/SKILL.md +9 -0
- package/.agents/skills/better-ui/SKILL.md +8 -0
- package/.agents/skills/bolder/SKILL.md +8 -0
- package/.agents/skills/brainstorming/SKILL.md +8 -0
- package/.agents/skills/browser-audit/SKILL.md +9 -0
- package/.agents/skills/browser-native-ai/SKILL.md +8 -0
- package/.agents/skills/build-primitive/SKILL.md +8 -0
- package/.agents/skills/building-native-ui/SKILL.md +7 -0
- package/.agents/skills/cicd-pro/SKILL.md +9 -0
- package/.agents/skills/clarify/SKILL.md +8 -0
- package/.agents/skills/clean-code/SKILL.md +8 -0
- package/.agents/skills/cloud-architect/SKILL.md +8 -0
- package/.agents/skills/cobejs/SKILL.md +8 -0
- package/.agents/skills/code-review-checklist/SKILL.md +9 -0
- package/.agents/skills/codebase-design/SKILL.md +14 -0
- package/.agents/skills/colorize/SKILL.md +8 -0
- package/.agents/skills/compact-landing/SKILL.md +9 -0
- package/.agents/skills/company-logos/SKILL.md +9 -0
- package/.agents/skills/config-validator/SKILL.md +9 -0
- package/.agents/skills/containerization-pro/SKILL.md +9 -0
- package/.agents/skills/context-engineering-pro/SKILL.md +10 -0
- package/.agents/skills/create-design-md/SKILL.md +7 -0
- package/.agents/skills/critique/SKILL.md +8 -0
- package/.agents/skills/csharp-developer/SKILL.md +9 -0
- package/.agents/skills/data-validation-schemas/SKILL.md +8 -0
- package/.agents/skills/database-design/SKILL.md +8 -0
- package/.agents/skills/delight/SKILL.md +8 -0
- package/.agents/skills/deployment-procedures/SKILL.md +9 -0
- package/.agents/skills/design-lab/SKILL.md +8 -0
- package/.agents/skills/devops-engineer/SKILL.md +9 -0
- package/.agents/skills/devops-incident-responder/SKILL.md +16 -0
- package/.agents/skills/diagnosing-bugs/SKILL.md +9 -0
- package/.agents/skills/distill/SKILL.md +8 -0
- package/.agents/skills/documentation-templates/SKILL.md +9 -0
- package/.agents/skills/domain-modeling/SKILL.md +9 -0
- package/.agents/skills/duckdb-analytical-sql/SKILL.md +10 -0
- package/.agents/skills/edge-ai-mobile/SKILL.md +8 -0
- package/.agents/skills/edge-computing/SKILL.md +9 -0
- package/.agents/skills/emil-design-eng/SKILL.md +9 -0
- package/.agents/skills/error-resilience/SKILL.md +8 -0
- package/.agents/skills/expo-router-v4/SKILL.md +9 -0
- package/.agents/skills/extract-design-system/SKILL.md +9 -0
- package/.agents/skills/fabel-protocol/SKILL.md +9 -0
- package/.agents/skills/failure-mode-analysis/SKILL.md +10 -0
- package/.agents/skills/fastapi-pro/SKILL.md +9 -0
- package/.agents/skills/fixing-accessibility/SKILL.md +9 -0
- package/.agents/skills/fixing-metadata/SKILL.md +9 -0
- package/.agents/skills/fixing-motion-performance/SKILL.md +9 -0
- package/.agents/skills/framer-motion-expert/SKILL.md +9 -0
- package/.agents/skills/frontend-design/SKILL.md +7 -0
- package/.agents/skills/frontend-security-expert/SKILL.md +9 -0
- package/.agents/skills/game-design-expert/SKILL.md +9 -0
- package/.agents/skills/game-engineering-expert/SKILL.md +16 -0
- package/.agents/skills/generative-ui-expert/SKILL.md +9 -0
- package/.agents/skills/geo-fundamentals/SKILL.md +9 -0
- package/.agents/skills/git-pro/SKILL.md +9 -0
- package/.agents/skills/github-operations/SKILL.md +9 -0
- package/.agents/skills/gpt-taste/SKILL.md +9 -0
- package/.agents/skills/graph-engineering/SKILL.md +16 -0
- package/.agents/skills/gsap-core/SKILL.md +9 -0
- package/.agents/skills/gsap-frameworks/SKILL.md +9 -0
- package/.agents/skills/gsap-performance/SKILL.md +9 -0
- package/.agents/skills/gsap-plugins/SKILL.md +9 -0
- package/.agents/skills/gsap-react/SKILL.md +9 -0
- package/.agents/skills/gsap-scrolltrigger/SKILL.md +9 -0
- package/.agents/skills/gsap-timeline/SKILL.md +9 -0
- package/.agents/skills/gsap-utils/SKILL.md +9 -0
- package/.agents/skills/harden/SKILL.md +8 -0
- package/.agents/skills/harness-protocol/SKILL.md +9 -0
- package/.agents/skills/hf-cli/SKILL.md +11 -0
- package/.agents/skills/hf-cloud-aws-context-discovery/SKILL.md +10 -0
- package/.agents/skills/hf-cloud-python-env-setup/SKILL.md +10 -0
- package/.agents/skills/hf-cloud-sagemaker-deployment-planner/SKILL.md +10 -0
- package/.agents/skills/hf-cloud-sagemaker-iam-preflight/SKILL.md +10 -0
- package/.agents/skills/hf-cloud-sagemaker-production-defaults/SKILL.md +10 -0
- package/.agents/skills/hf-cloud-serving-image-selection/SKILL.md +10 -0
- package/.agents/skills/hf-mem/SKILL.md +11 -0
- package/.agents/skills/huggingface-best/SKILL.md +9 -0
- package/.agents/skills/huggingface-community-evals/SKILL.md +11 -0
- package/.agents/skills/huggingface-datasets/SKILL.md +10 -0
- package/.agents/skills/huggingface-gradio/SKILL.md +10 -0
- package/.agents/skills/huggingface-llm-trainer/SKILL.md +10 -0
- package/.agents/skills/huggingface-local-models/SKILL.md +10 -0
- package/.agents/skills/huggingface-lora-space-builder/SKILL.md +11 -0
- package/.agents/skills/huggingface-paper-publisher/SKILL.md +11 -0
- package/.agents/skills/huggingface-papers/SKILL.md +11 -0
- package/.agents/skills/huggingface-spaces/SKILL.md +10 -0
- package/.agents/skills/huggingface-tool-builder/SKILL.md +11 -0
- package/.agents/skills/huggingface-trackio/SKILL.md +11 -0
- package/.agents/skills/huggingface-vision-trainer/SKILL.md +11 -0
- package/.agents/skills/huggingface-zerogpu/SKILL.md +11 -0
- package/.agents/skills/human-gate-negotiation/SKILL.md +11 -0
- package/.agents/skills/i18n-localization/SKILL.md +9 -0
- package/.agents/skills/impeccable/SKILL.md +8 -0
- package/.agents/skills/improve-codebase-architecture/SKILL.md +10 -0
- package/.agents/skills/improve-ui/SKILL.md +8 -0
- package/.agents/skills/intelligent-routing/SKILL.md +9 -0
- package/.agents/skills/knowledge-graph/SKILL.md +9 -0
- package/.agents/skills/landing-page/SKILL.md +9 -0
- package/.agents/skills/lint-and-validate/SKILL.md +9 -0
- package/.agents/skills/llm-engineering/SKILL.md +9 -0
- package/.agents/skills/local-first/SKILL.md +10 -0
- package/.agents/skills/lottie-animation/SKILL.md +9 -0
- package/.agents/skills/marquee-loop/SKILL.md +9 -0
- package/.agents/skills/masked-reveal/SKILL.md +9 -0
- package/.agents/skills/mcp-builder/SKILL.md +9 -0
- package/.agents/skills/micro-interaction/SKILL.md +9 -0
- package/.agents/skills/mobile-design/SKILL.md +7 -0
- package/.agents/skills/monorepo-management/SKILL.md +9 -0
- package/.agents/skills/morphing-icons/SKILL.md +9 -0
- package/.agents/skills/motion-engineering/SKILL.md +8 -0
- package/.agents/skills/nextjs-react-expert/SKILL.md +10 -0
- package/.agents/skills/nodejs-best-practices/SKILL.md +16 -0
- package/.agents/skills/observability/SKILL.md +8 -0
- package/.agents/skills/opentelemetry-observability/SKILL.md +9 -0
- package/.agents/skills/page-transition-animation/SKILL.md +10 -0
- package/.agents/skills/parallel-agents/SKILL.md +15 -0
- package/.agents/skills/performance-profiling/SKILL.md +9 -0
- package/.agents/skills/plan-writing/SKILL.md +8 -0
- package/.agents/skills/platform-engineer/SKILL.md +9 -0
- package/.agents/skills/platform-engineering-opentofu/SKILL.md +10 -0
- package/.agents/skills/playwright-ai-e2e/SKILL.md +9 -0
- package/.agents/skills/playwright-best-practices/SKILL.md +16 -0
- package/.agents/skills/polish/SKILL.md +8 -0
- package/.agents/skills/powershell-windows/SKILL.md +9 -0
- package/.agents/skills/pricing-page/SKILL.md +9 -0
- package/.agents/skills/product-aware-heuristics/SKILL.md +10 -0
- package/.agents/skills/progressive-blur/SKILL.md +9 -0
- package/.agents/skills/project-idioms/SKILL.md +8 -0
- package/.agents/skills/property-based-testing/SKILL.md +9 -0
- package/.agents/skills/python-patterns/SKILL.md +9 -0
- package/.agents/skills/python-pro/SKILL.md +9 -0
- package/.agents/skills/quieter/SKILL.md +8 -0
- package/.agents/skills/react-doctor/SKILL.md +9 -0
- package/.agents/skills/react-specialist/SKILL.md +9 -0
- package/.agents/skills/readme-builder/SKILL.md +9 -0
- package/.agents/skills/realtime-patterns/SKILL.md +9 -0
- package/.agents/skills/red-team-tactics/SKILL.md +16 -0
- package/.agents/skills/redesign-skill/SKILL.md +9 -0
- package/.agents/skills/review-animations/SKILL.md +8 -0
- package/.agents/skills/rust-pro/SKILL.md +9 -0
- package/.agents/skills/semantic-filesystem-navigation/SKILL.md +11 -0
- package/.agents/skills/seo-fundamentals/SKILL.md +9 -0
- package/.agents/skills/server-management/SKILL.md +8 -0
- package/.agents/skills/session-log-interrogation/SKILL.md +11 -0
- package/.agents/skills/shadcn-ui-expert/SKILL.md +9 -0
- package/.agents/skills/shape/SKILL.md +8 -0
- package/.agents/skills/skill-creator/SKILL.md +9 -0
- package/.agents/skills/soft-skill/SKILL.md +9 -0
- package/.agents/skills/sounds-on-the-web/SKILL.md +9 -0
- package/.agents/skills/sql-pro/SKILL.md +9 -0
- package/.agents/skills/subagent-driven-development/SKILL.md +11 -0
- package/.agents/skills/supabase-postgres-best-practices/SKILL.md +17 -0
- package/.agents/skills/svg-animation/SKILL.md +9 -0
- package/.agents/skills/swiftui-expert/SKILL.md +9 -0
- package/.agents/skills/swiss-design/SKILL.md +8 -0
- package/.agents/skills/system-design-pro/SKILL.md +9 -0
- package/.agents/skills/systematic-debugging/SKILL.md +14 -0
- package/.agents/skills/tailwind-patterns/SKILL.md +9 -0
- package/.agents/skills/taste-skill/SKILL.md +9 -0
- package/.agents/skills/tdd-workflow/SKILL.md +9 -0
- package/.agents/skills/test-result-analyzer/SKILL.md +9 -0
- package/.agents/skills/testing-patterns/SKILL.md +8 -0
- package/.agents/skills/thermo-nuclear-code-quality-review/SKILL.md +11 -0
- package/.agents/skills/thinking-protocol/SKILL.md +10 -0
- package/.agents/skills/to-spring-or-not-to-spring/SKILL.md +9 -0
- package/.agents/skills/train-sentence-transformers/SKILL.md +10 -0
- package/.agents/skills/transformers-js/SKILL.md +8 -0
- package/.agents/skills/transitions-dev/SKILL.md +8 -0
- package/.agents/skills/trend-researcher/SKILL.md +9 -0
- package/.agents/skills/tribunal-instincts-memory/SKILL.md +11 -0
- package/.agents/skills/trl-training/SKILL.md +9 -0
- package/.agents/skills/typescript-advanced/SKILL.md +9 -0
- package/.agents/skills/typeset/SKILL.md +8 -0
- package/.agents/skills/ui-reasoning-engine/SKILL.md +9 -0
- package/.agents/skills/ui-skill-packs/SKILL.md +9 -0
- package/.agents/skills/ui-skills-root/SKILL.md +9 -0
- package/.agents/skills/ui-ux-pro-max/SKILL.md +9 -0
- package/.agents/skills/ui-ux-researcher/SKILL.md +8 -0
- package/.agents/skills/vector-search-pgvector/SKILL.md +10 -0
- package/.agents/skills/verification-before-completion/SKILL.md +9 -0
- package/.agents/skills/vue-expert/SKILL.md +9 -0
- package/.agents/skills/vulnerability-scanner/SKILL.md +9 -0
- package/.agents/skills/web-accessibility-auditor/SKILL.md +16 -0
- package/.agents/skills/web-design-guidelines/SKILL.md +9 -0
- package/.agents/skills/web-quality-audit/SKILL.md +10 -0
- package/.agents/skills/webapp-testing/SKILL.md +8 -0
- package/.agents/skills/webgpu-performance/SKILL.md +9 -0
- package/.agents/skills/whimsy-injector/SKILL.md +9 -0
- package/.agents/skills/workflow-optimizer/SKILL.md +9 -0
- package/.agents/skills/zero-trust-passkeys/SKILL.md +10 -0
- package/CONTRIBUTING.md +2 -2
- package/README.md +25 -25
- package/bin/adapter-install.js +1 -1
- package/bin/mcp-server.js +249 -0
- package/package.json +11 -8
- package/plugins/core-plugin.json +1 -1
- package/plugins/gemini/extension.json +1 -1
- package/skills/12-principles-of-animation/SKILL.md +9 -0
- package/skills/60fps-animation/SKILL.md +14 -0
- package/skills/accessible-animation/SKILL.md +9 -0
- package/skills/adapt/SKILL.md +8 -0
- package/skills/adr-generation/SKILL.md +9 -0
- package/skills/advanced-rag-pipelines/SKILL.md +9 -0
- package/skills/agent-organizer/SKILL.md +8 -0
- package/skills/agent-syscall-guidelines/SKILL.md +10 -0
- package/skills/agentic-patterns/SKILL.md +9 -0
- package/skills/agentic-workflows-2026/SKILL.md +8 -0
- package/skills/agentshield-security/SKILL.md +16 -0
- package/skills/ai-app-hardening/SKILL.md +7 -0
- package/skills/ai-prompt-injection-defense/SKILL.md +9 -0
- package/skills/animation-on-scroll/SKILL.md +9 -0
- package/skills/animation-systems/SKILL.md +8 -0
- package/skills/antfu-conventions/SKILL.md +9 -0
- package/skills/anti-slop-enforcement/SKILL.md +11 -0
- package/skills/api-patterns/SKILL.md +9 -0
- package/skills/api-security-auditor/SKILL.md +10 -0
- package/skills/app-builder/SKILL.md +8 -0
- package/skills/appflow-wireframe/SKILL.md +9 -0
- package/skills/apple-design/SKILL.md +8 -0
- package/skills/architecture/SKILL.md +8 -0
- package/skills/architecture-drift/SKILL.md +9 -0
- package/skills/architecture-intelligence/SKILL.md +17 -0
- package/skills/audit-and-fix/SKILL.md +8 -0
- package/skills/authentication-best-practices/SKILL.md +10 -0
- package/skills/autonomous-execution/SKILL.md +9 -0
- package/skills/backend-alembic/SKILL.md +16 -0
- package/skills/backend-architecture-auditor/SKILL.md +16 -0
- package/skills/backend-mongodb/SKILL.md +10 -0
- package/skills/backend-mysql/SKILL.md +16 -0
- package/skills/backend-performance-auditor/SKILL.md +10 -0
- package/skills/backend-postgresql/SKILL.md +10 -0
- package/skills/backend-redis/SKILL.md +10 -0
- package/skills/backend-security-expert/SKILL.md +10 -0
- package/skills/backend-sqlalchemy/SKILL.md +10 -0
- package/skills/backend-sqlite/SKILL.md +10 -0
- package/skills/backend-testing-auditor/SKILL.md +15 -0
- package/skills/baseline-ui/SKILL.md +8 -0
- package/skills/bash-linux/SKILL.md +9 -0
- package/skills/behavioral-modes/SKILL.md +9 -0
- package/skills/better-colors/SKILL.md +9 -0
- package/skills/better-typography/SKILL.md +9 -0
- package/skills/better-ui/SKILL.md +8 -0
- package/skills/bolder/SKILL.md +8 -0
- package/skills/brainstorming/SKILL.md +8 -0
- package/skills/browser-audit/SKILL.md +9 -0
- package/skills/browser-native-ai/SKILL.md +8 -0
- package/skills/build-primitive/SKILL.md +8 -0
- package/skills/building-native-ui/SKILL.md +7 -0
- package/skills/cicd-pro/SKILL.md +9 -0
- package/skills/clarify/SKILL.md +8 -0
- package/skills/clean-code/SKILL.md +8 -0
- package/skills/cloud-architect/SKILL.md +8 -0
- package/skills/cobejs/SKILL.md +8 -0
- package/skills/code-review-checklist/SKILL.md +9 -0
- package/skills/codebase-design/SKILL.md +14 -0
- package/skills/colorize/SKILL.md +8 -0
- package/skills/compact-landing/SKILL.md +9 -0
- package/skills/company-logos/SKILL.md +9 -0
- package/skills/config-validator/SKILL.md +9 -0
- package/skills/containerization-pro/SKILL.md +9 -0
- package/skills/context-engineering-pro/SKILL.md +10 -0
- package/skills/create-design-md/SKILL.md +7 -0
- package/skills/critique/SKILL.md +8 -0
- package/skills/csharp-developer/SKILL.md +9 -0
- package/skills/data-validation-schemas/SKILL.md +8 -0
- package/skills/database-design/SKILL.md +8 -0
- package/skills/delight/SKILL.md +8 -0
- package/skills/deployment-procedures/SKILL.md +9 -0
- package/skills/design-lab/SKILL.md +8 -0
- package/skills/devops-engineer/SKILL.md +9 -0
- package/skills/devops-incident-responder/SKILL.md +16 -0
- package/skills/diagnosing-bugs/SKILL.md +9 -0
- package/skills/distill/SKILL.md +8 -0
- package/skills/documentation-templates/SKILL.md +9 -0
- package/skills/domain-modeling/SKILL.md +9 -0
- package/skills/duckdb-analytical-sql/SKILL.md +10 -0
- package/skills/edge-ai-mobile/SKILL.md +8 -0
- package/skills/edge-computing/SKILL.md +9 -0
- package/skills/emil-design-eng/SKILL.md +9 -0
- package/skills/error-resilience/SKILL.md +8 -0
- package/skills/expo-router-v4/SKILL.md +9 -0
- package/skills/extract-design-system/SKILL.md +9 -0
- package/skills/fabel-protocol/SKILL.md +9 -0
- package/skills/failure-mode-analysis/SKILL.md +10 -0
- package/skills/fastapi-pro/SKILL.md +9 -0
- package/skills/fixing-accessibility/SKILL.md +9 -0
- package/skills/fixing-metadata/SKILL.md +9 -0
- package/skills/fixing-motion-performance/SKILL.md +9 -0
- package/skills/framer-motion-expert/SKILL.md +9 -0
- package/skills/frontend-design/SKILL.md +7 -0
- package/skills/frontend-security-expert/SKILL.md +9 -0
- package/skills/game-design-expert/SKILL.md +9 -0
- package/skills/game-engineering-expert/SKILL.md +16 -0
- package/skills/generative-ui-expert/SKILL.md +9 -0
- package/skills/geo-fundamentals/SKILL.md +9 -0
- package/skills/git-pro/SKILL.md +9 -0
- package/skills/github-operations/SKILL.md +9 -0
- package/skills/gpt-taste/SKILL.md +9 -0
- package/skills/graph-engineering/SKILL.md +16 -0
- package/skills/gsap-core/SKILL.md +9 -0
- package/skills/gsap-frameworks/SKILL.md +9 -0
- package/skills/gsap-performance/SKILL.md +9 -0
- package/skills/gsap-plugins/SKILL.md +9 -0
- package/skills/gsap-react/SKILL.md +9 -0
- package/skills/gsap-scrolltrigger/SKILL.md +9 -0
- package/skills/gsap-timeline/SKILL.md +9 -0
- package/skills/gsap-utils/SKILL.md +9 -0
- package/skills/harden/SKILL.md +8 -0
- package/skills/harness-protocol/SKILL.md +9 -0
- package/skills/hf-cli/SKILL.md +11 -0
- package/skills/hf-cloud-aws-context-discovery/SKILL.md +10 -0
- package/skills/hf-cloud-python-env-setup/SKILL.md +10 -0
- package/skills/hf-cloud-sagemaker-deployment-planner/SKILL.md +10 -0
- package/skills/hf-cloud-sagemaker-iam-preflight/SKILL.md +10 -0
- package/skills/hf-cloud-sagemaker-production-defaults/SKILL.md +10 -0
- package/skills/hf-cloud-serving-image-selection/SKILL.md +10 -0
- package/skills/hf-mem/SKILL.md +11 -0
- package/skills/huggingface-best/SKILL.md +9 -0
- package/skills/huggingface-community-evals/SKILL.md +11 -0
- package/skills/huggingface-datasets/SKILL.md +10 -0
- package/skills/huggingface-gradio/SKILL.md +10 -0
- package/skills/huggingface-llm-trainer/SKILL.md +10 -0
- package/skills/huggingface-local-models/SKILL.md +10 -0
- package/skills/huggingface-lora-space-builder/SKILL.md +11 -0
- package/skills/huggingface-paper-publisher/SKILL.md +11 -0
- package/skills/huggingface-papers/SKILL.md +11 -0
- package/skills/huggingface-spaces/SKILL.md +10 -0
- package/skills/huggingface-tool-builder/SKILL.md +11 -0
- package/skills/huggingface-trackio/SKILL.md +11 -0
- package/skills/huggingface-vision-trainer/SKILL.md +11 -0
- package/skills/huggingface-zerogpu/SKILL.md +11 -0
- package/skills/human-gate-negotiation/SKILL.md +11 -0
- package/skills/i18n-localization/SKILL.md +9 -0
- package/skills/impeccable/SKILL.md +8 -0
- package/skills/improve-codebase-architecture/SKILL.md +10 -0
- package/skills/improve-ui/SKILL.md +8 -0
- package/skills/intelligent-routing/SKILL.md +9 -0
- package/skills/knowledge-graph/SKILL.md +9 -0
- package/skills/landing-page/SKILL.md +9 -0
- package/skills/lint-and-validate/SKILL.md +9 -0
- package/skills/llm-engineering/SKILL.md +9 -0
- package/skills/local-first/SKILL.md +10 -0
- package/skills/lottie-animation/SKILL.md +9 -0
- package/skills/marquee-loop/SKILL.md +9 -0
- package/skills/masked-reveal/SKILL.md +9 -0
- package/skills/mcp-builder/SKILL.md +9 -0
- package/skills/micro-interaction/SKILL.md +9 -0
- package/skills/mobile-design/SKILL.md +7 -0
- package/skills/monorepo-management/SKILL.md +9 -0
- package/skills/morphing-icons/SKILL.md +9 -0
- package/skills/motion-engineering/SKILL.md +8 -0
- package/skills/nextjs-react-expert/SKILL.md +10 -0
- package/skills/nodejs-best-practices/SKILL.md +16 -0
- package/skills/observability/SKILL.md +8 -0
- package/skills/opentelemetry-observability/SKILL.md +9 -0
- package/skills/page-transition-animation/SKILL.md +10 -0
- package/skills/parallel-agents/SKILL.md +15 -0
- package/skills/performance-profiling/SKILL.md +9 -0
- package/skills/plan-writing/SKILL.md +8 -0
- package/skills/platform-engineer/SKILL.md +9 -0
- package/skills/platform-engineering-opentofu/SKILL.md +10 -0
- package/skills/playwright-ai-e2e/SKILL.md +9 -0
- package/skills/playwright-best-practices/SKILL.md +16 -0
- package/skills/polish/SKILL.md +8 -0
- package/skills/powershell-windows/SKILL.md +9 -0
- package/skills/pricing-page/SKILL.md +9 -0
- package/skills/product-aware-heuristics/SKILL.md +10 -0
- package/skills/progressive-blur/SKILL.md +9 -0
- package/skills/project-idioms/SKILL.md +8 -0
- package/skills/property-based-testing/SKILL.md +9 -0
- package/skills/python-patterns/SKILL.md +9 -0
- package/skills/python-pro/SKILL.md +9 -0
- package/skills/quieter/SKILL.md +8 -0
- package/skills/react-doctor/SKILL.md +9 -0
- package/skills/react-specialist/SKILL.md +9 -0
- package/skills/readme-builder/SKILL.md +9 -0
- package/skills/realtime-patterns/SKILL.md +9 -0
- package/skills/red-team-tactics/SKILL.md +16 -0
- package/skills/redesign-skill/SKILL.md +9 -0
- package/skills/review-animations/SKILL.md +8 -0
- package/skills/rust-pro/SKILL.md +9 -0
- package/skills/semantic-filesystem-navigation/SKILL.md +11 -0
- package/skills/seo-fundamentals/SKILL.md +9 -0
- package/skills/server-management/SKILL.md +8 -0
- package/skills/session-log-interrogation/SKILL.md +11 -0
- package/skills/shadcn-ui-expert/SKILL.md +9 -0
- package/skills/shape/SKILL.md +8 -0
- package/skills/skill-creator/SKILL.md +9 -0
- package/skills/soft-skill/SKILL.md +9 -0
- package/skills/sounds-on-the-web/SKILL.md +9 -0
- package/skills/sql-pro/SKILL.md +9 -0
- package/skills/subagent-driven-development/SKILL.md +11 -0
- package/skills/supabase-postgres-best-practices/SKILL.md +17 -0
- package/skills/svg-animation/SKILL.md +9 -0
- package/skills/swiftui-expert/SKILL.md +9 -0
- package/skills/swiss-design/SKILL.md +8 -0
- package/skills/system-design-pro/SKILL.md +9 -0
- package/skills/systematic-debugging/SKILL.md +14 -0
- package/skills/tailwind-patterns/SKILL.md +9 -0
- package/skills/taste-skill/SKILL.md +9 -0
- package/skills/tdd-workflow/SKILL.md +9 -0
- package/skills/test-result-analyzer/SKILL.md +9 -0
- package/skills/testing-patterns/SKILL.md +8 -0
- package/skills/thermo-nuclear-code-quality-review/SKILL.md +11 -0
- package/skills/thinking-protocol/SKILL.md +10 -0
- package/skills/to-spring-or-not-to-spring/SKILL.md +9 -0
- package/skills/train-sentence-transformers/SKILL.md +10 -0
- package/skills/transformers-js/SKILL.md +8 -0
- package/skills/transitions-dev/SKILL.md +8 -0
- package/skills/trend-researcher/SKILL.md +9 -0
- package/skills/tribunal-instincts-memory/SKILL.md +11 -0
- package/skills/trl-training/SKILL.md +9 -0
- package/skills/typescript-advanced/SKILL.md +9 -0
- package/skills/typeset/SKILL.md +8 -0
- package/skills/ui-reasoning-engine/SKILL.md +9 -0
- package/skills/ui-skill-packs/SKILL.md +9 -0
- package/skills/ui-skills-root/SKILL.md +9 -0
- package/skills/ui-ux-pro-max/SKILL.md +9 -0
- package/skills/ui-ux-researcher/SKILL.md +8 -0
- package/skills/vector-search-pgvector/SKILL.md +10 -0
- package/skills/verification-before-completion/SKILL.md +9 -0
- package/skills/vue-expert/SKILL.md +9 -0
- package/skills/vulnerability-scanner/SKILL.md +9 -0
- package/skills/web-accessibility-auditor/SKILL.md +16 -0
- package/skills/web-design-guidelines/SKILL.md +9 -0
- package/skills/web-quality-audit/SKILL.md +10 -0
- package/skills/webapp-testing/SKILL.md +8 -0
- package/skills/webgpu-performance/SKILL.md +9 -0
- package/skills/whimsy-injector/SKILL.md +9 -0
- package/skills/workflow-optimizer/SKILL.md +9 -0
- package/skills/zero-trust-passkeys/SKILL.md +10 -0
- package/src/browser/index.js +2 -1
- package/src/browser/launcher.js +41 -1
- package/src/cli.js +21 -1
- package/src/commands/arch.js +261 -172
- package/src/commands/context.js +27 -8
- package/src/commands/init.js +538 -462
- package/src/commands/intelligence.js +86 -0
- package/src/commands/learn.js +21 -6
- package/src/commands/memory.js +10 -1
- package/src/commands/native.js +12 -3
- package/src/commands/review.js +235 -1
- package/src/commands/skill-intelligence.js +1165 -0
- package/src/commands/system1.js +562 -312
- package/src/context/ranker.js +337 -339
- package/src/evaluation/evaluation_runner.js +207 -0
- package/src/evaluation/scenario_registry.js +82 -0
- package/src/evolution/engine.js +296 -295
- package/src/execution/agent_correction_engine.js +76 -0
- package/src/execution/controlled_write_service.js +301 -0
- package/src/execution/correction_run_engine.js +234 -0
- package/src/execution/correction_verifier.js +85 -0
- package/src/execution/evidence_aggregator.js +54 -0
- package/src/execution/finding_diff_engine.js +59 -0
- package/src/execution/index.js +42 -0
- package/src/execution/prompt_isolator.js +145 -0
- package/src/execution/provider_adapter.js +495 -0
- package/src/execution/resolution_certificate.js +53 -0
- package/src/execution/resolution_policy.js +70 -0
- package/src/execution/review_executor.js +335 -0
- package/src/execution/reviewer_registry.js +137 -0
- package/src/execution/schemas.js +298 -0
- package/src/execution/transaction_manager.js +237 -0
- package/src/execution/validation_runner.js +174 -0
- package/src/execution/verdict_aggregator.js +181 -0
- package/src/execution/write_policy_engine.js +95 -0
- package/src/intelligence/adaptive_correction.js +72 -0
- package/src/intelligence/adaptive_reviewer_orchestrator.js +123 -0
- package/src/intelligence/case_indexer.js +166 -0
- package/src/intelligence/case_memory.js +149 -0
- package/src/intelligence/case_similarity.js +86 -0
- package/src/intelligence/cbr_engine.js +90 -0
- package/src/intelligence/evidence_optimization.js +106 -0
- package/src/intelligence/failure_intelligence.js +95 -0
- package/src/intelligence/governance_drift_detector.js +75 -0
- package/src/intelligence/governance_simulator.js +115 -0
- package/src/intelligence/human_intelligence.js +46 -0
- package/src/intelligence/mcp_tools.js +87 -0
- package/src/intelligence/reviewer_performance.js +94 -0
- package/src/intelligence/risk_prediction_engine.js +92 -0
- package/src/intelligence/token_intelligence.js +73 -0
- package/src/synthesis/claim_check_separator.js +294 -271
- package/src/system1/browser_intelligence.js +300 -0
- package/src/system1/constants.js +49 -0
- package/src/system1/decision_engine.js +498 -0
- package/src/system1/evidence_engine.js +602 -0
- package/src/system1/evolution_pipeline.js +581 -0
- package/src/system1/index.d.ts +114 -0
- package/src/system1/index.js +102 -0
- package/src/system1/reviewer_orchestrator.js +477 -0
- package/src/tui/banner.js +26 -47
- package/src/tui/index.js +4 -0
- package/src/tui/panel.js +55 -0
- package/src/tui/progress.js +42 -0
- package/src/tui/reviewer-grid.js +9 -10
- package/src/tui/theme.js +59 -16
- package/src/tui/tree.js +57 -29
- package/src/tui/wizard.js +22 -18
- package/src/utils/fs.js +27 -0
- package/.agent/skills/local-first-architecture/SKILL.md +0 -123
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* verdict_aggregator.js — Deterministic Governance Verdict Aggregator
|
|
5
|
+
* ====================================================================
|
|
6
|
+
* Phase 1I: Deterministic Verdict Aggregator & Monotonic Safety Invariants
|
|
7
|
+
*
|
|
8
|
+
* Core Directives:
|
|
9
|
+
* 1. LLMs provide evidence and individual opinions; this deterministic engine decides the final state.
|
|
10
|
+
* 2. Monotonic Safety: Uncertainty or errors can maintain or increase scrutiny, never silently decrease it.
|
|
11
|
+
* 3. Fail-Closed: Unknown states or failures never become APPROVED.
|
|
12
|
+
* 4. Deterministic checks always overrule conflicting LLM claims.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
class VerdictAggregator {
|
|
16
|
+
/**
|
|
17
|
+
* Aggregates multiple ReviewerResult objects and optional deterministic checks
|
|
18
|
+
* into an authoritative governance verdict.
|
|
19
|
+
*
|
|
20
|
+
* @param {Object} params
|
|
21
|
+
* @param {Array<Object>} params.results - ReviewerResult[] from ReviewExecutor
|
|
22
|
+
* @param {Array<Object>} [params.checks] - ImplementationCheck[] (deterministic facts)
|
|
23
|
+
* @param {number} [params.tier=1] - Impact tier (0..3)
|
|
24
|
+
* @param {Object} [params.decision] - DecisionPayload
|
|
25
|
+
* @param {string} [params.reviewRunId] - Provenance ID
|
|
26
|
+
* @returns {Object} AggregatedVerdictPayload
|
|
27
|
+
*/
|
|
28
|
+
static aggregate(params = {}) {
|
|
29
|
+
const results = Array.isArray(params.results) ? params.results : [];
|
|
30
|
+
const checks = Array.isArray(params.checks) ? params.checks : [];
|
|
31
|
+
const tier = typeof params.tier === 'number' ? params.tier : 1;
|
|
32
|
+
const reviewRunId = params.reviewRunId || `agg_${Date.now()}`;
|
|
33
|
+
const decision = params.decision || {};
|
|
34
|
+
|
|
35
|
+
const allFindings = [];
|
|
36
|
+
const conflicts = [];
|
|
37
|
+
const reviewersExecuted = [];
|
|
38
|
+
let hasCritical = false;
|
|
39
|
+
let hasHigh = false;
|
|
40
|
+
let hasMedium = false;
|
|
41
|
+
let hasLow = false;
|
|
42
|
+
let hasError = false;
|
|
43
|
+
let hasRejected = false;
|
|
44
|
+
let hasWarning = false;
|
|
45
|
+
let hasApproved = false;
|
|
46
|
+
|
|
47
|
+
// 1. Ingest all reviewer results
|
|
48
|
+
for (const r of results) {
|
|
49
|
+
if (!r || typeof r !== 'object') continue;
|
|
50
|
+
const revId = r.reviewerId || 'unknown';
|
|
51
|
+
reviewersExecuted.push(revId);
|
|
52
|
+
|
|
53
|
+
if (r.verdict === 'ERROR') hasError = true;
|
|
54
|
+
if (r.verdict === 'REJECTED') hasRejected = true;
|
|
55
|
+
if (r.verdict === 'WARNING') hasWarning = true;
|
|
56
|
+
if (r.verdict === 'APPROVED') hasApproved = true;
|
|
57
|
+
|
|
58
|
+
if (Array.isArray(r.findings)) {
|
|
59
|
+
for (const f of r.findings) {
|
|
60
|
+
const findingWithRev = { ...f, reviewer: revId };
|
|
61
|
+
allFindings.push(findingWithRev);
|
|
62
|
+
|
|
63
|
+
if (f.severity === 'CRITICAL') hasCritical = true;
|
|
64
|
+
if (f.severity === 'HIGH') hasHigh = true;
|
|
65
|
+
if (f.severity === 'MEDIUM') hasMedium = true;
|
|
66
|
+
if (f.severity === 'LOW') hasLow = true;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// 2. Cross-check against deterministic execution facts
|
|
72
|
+
// If deterministic test/lint/security check failed, force failure
|
|
73
|
+
for (const c of checks) {
|
|
74
|
+
if (c && c.result === 'FAILED') {
|
|
75
|
+
conflicts.push({
|
|
76
|
+
type: 'DETERMINISTIC_CHECK_FAILED',
|
|
77
|
+
description: `Deterministic check "${c.check || 'check'}" FAILED. Reviewer opinions cannot overrule deterministic failure.`,
|
|
78
|
+
resolution: 'CHECK_FAILURE_ENFORCED',
|
|
79
|
+
});
|
|
80
|
+
hasCritical = true;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// 3. Detect reviewer-to-reviewer conflicts
|
|
85
|
+
if (hasApproved && (hasRejected || hasCritical || hasHigh)) {
|
|
86
|
+
conflicts.push({
|
|
87
|
+
type: 'REVIEWER_CONTRADICTION',
|
|
88
|
+
description:
|
|
89
|
+
'One or more reviewers approved the change while others flagged Critical/High severity risks or rejected it.',
|
|
90
|
+
resolution: 'RESOLVED_TOWARD_GREATER_SCRUTINY',
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// 4. Determine authoritative final verdict based on strict safety rules
|
|
95
|
+
let finalVerdict = 'APPROVED';
|
|
96
|
+
let finalSeverity = 'INFO';
|
|
97
|
+
let reason = '';
|
|
98
|
+
|
|
99
|
+
if (results.length === 0) {
|
|
100
|
+
// Tier 0 Fast-Pass with 0 reviewers is approved if no deterministic check failed
|
|
101
|
+
if (tier === 0 && !hasCritical) {
|
|
102
|
+
finalVerdict = 'APPROVED';
|
|
103
|
+
finalSeverity = 'INFO';
|
|
104
|
+
reason =
|
|
105
|
+
'Fast-Pass (Tier 0) verified: Low-risk documentation/styling change with zero risk signals.';
|
|
106
|
+
} else {
|
|
107
|
+
finalVerdict = 'REJECTED';
|
|
108
|
+
finalSeverity = 'HIGH';
|
|
109
|
+
reason = 'Fail-Closed Invariant: Zero reviewers executed for a change requiring audit.';
|
|
110
|
+
}
|
|
111
|
+
} else if (hasCritical) {
|
|
112
|
+
finalVerdict = 'REJECTED';
|
|
113
|
+
finalSeverity = 'CRITICAL';
|
|
114
|
+
reason = 'Rejected due to one or more CRITICAL security or logic findings.';
|
|
115
|
+
} else if (hasHigh) {
|
|
116
|
+
finalVerdict = 'REJECTED';
|
|
117
|
+
finalSeverity = 'HIGH';
|
|
118
|
+
reason = 'Rejected due to unmitigated HIGH severity findings.';
|
|
119
|
+
} else if (hasRejected) {
|
|
120
|
+
finalVerdict = 'REJECTED';
|
|
121
|
+
finalSeverity = 'HIGH';
|
|
122
|
+
reason = 'Rejected due to explicit reviewer rejection verdict.';
|
|
123
|
+
} else if (hasError) {
|
|
124
|
+
// Any error prevents unconditional approval
|
|
125
|
+
finalVerdict = 'WARNING';
|
|
126
|
+
finalSeverity = 'MEDIUM';
|
|
127
|
+
reason =
|
|
128
|
+
'Reviewer execution encountered one or more errors or timeouts; cannot grant unconditional approval.';
|
|
129
|
+
} else if (hasMedium || hasWarning) {
|
|
130
|
+
finalVerdict = 'WARNING';
|
|
131
|
+
finalSeverity = 'MEDIUM';
|
|
132
|
+
reason = 'Approved with warnings: Medium severity findings require developer review.';
|
|
133
|
+
} else if (hasLow) {
|
|
134
|
+
finalVerdict = 'WARNING';
|
|
135
|
+
finalSeverity = 'LOW';
|
|
136
|
+
reason = 'Approved with minor suggestions: Low severity improvements recommended.';
|
|
137
|
+
} else {
|
|
138
|
+
finalVerdict = 'APPROVED';
|
|
139
|
+
finalSeverity = 'INFO';
|
|
140
|
+
reason = `All ${reviewersExecuted.length} specialist reviewer(s) approved with zero findings.`;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// 5. Epistemic Confidence Calculation
|
|
144
|
+
let confidence = 'L1';
|
|
145
|
+
if (hasError) {
|
|
146
|
+
confidence = 'L3';
|
|
147
|
+
} else if (hasCritical || hasHigh) {
|
|
148
|
+
confidence = 'L1';
|
|
149
|
+
} else if (decision.confidence) {
|
|
150
|
+
confidence = decision.confidence;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return {
|
|
154
|
+
verdict: finalVerdict,
|
|
155
|
+
severity: finalSeverity,
|
|
156
|
+
confidence,
|
|
157
|
+
reviewersExecuted,
|
|
158
|
+
findingsCount: {
|
|
159
|
+
total: allFindings.length,
|
|
160
|
+
critical: allFindings.filter(f => f.severity === 'CRITICAL').length,
|
|
161
|
+
high: allFindings.filter(f => f.severity === 'HIGH').length,
|
|
162
|
+
medium: allFindings.filter(f => f.severity === 'MEDIUM').length,
|
|
163
|
+
low: allFindings.filter(f => f.severity === 'LOW').length,
|
|
164
|
+
info: allFindings.filter(f => f.severity === 'INFO').length,
|
|
165
|
+
},
|
|
166
|
+
findings: allFindings,
|
|
167
|
+
conflicts,
|
|
168
|
+
reason,
|
|
169
|
+
provenance: {
|
|
170
|
+
reviewRunId,
|
|
171
|
+
decisionId: decision.decision_id || null,
|
|
172
|
+
tier,
|
|
173
|
+
timestamp: new Date().toISOString(),
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
module.exports = {
|
|
180
|
+
VerdictAggregator,
|
|
181
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
|
|
5
|
+
const DEFAULT_SENSITIVE_PATTERNS = [
|
|
6
|
+
/\.env.*/i,
|
|
7
|
+
/credentials/i,
|
|
8
|
+
/secrets/i,
|
|
9
|
+
/\.pem$/i,
|
|
10
|
+
/\.key$/i,
|
|
11
|
+
/\.github[\\/]workflows[\\/]/i,
|
|
12
|
+
/package(?:-lock)?\.json$/i,
|
|
13
|
+
/auth/i,
|
|
14
|
+
/security/i,
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
const CRITICAL_GOVERNANCE_PATTERNS = [
|
|
18
|
+
/tribunal-kit[\\/]src[\\/]execution[\\/]/i, // core execution engine
|
|
19
|
+
/\.agent[\\/]rules[\\/]/i, // core rules
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
class WritePolicyEngine {
|
|
23
|
+
constructor(options = {}) {
|
|
24
|
+
this.sensitivePatterns = options.sensitivePatterns || DEFAULT_SENSITIVE_PATTERNS;
|
|
25
|
+
this.criticalPatterns = options.criticalPatterns || CRITICAL_GOVERNANCE_PATTERNS;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
evaluate(request, decision = null) {
|
|
29
|
+
let hasSensitive = false;
|
|
30
|
+
let hasCritical = false;
|
|
31
|
+
const reasons = [];
|
|
32
|
+
|
|
33
|
+
// Identity checks
|
|
34
|
+
if (!request.agentId || request.agentId === 'UNKNOWN_AGENT') {
|
|
35
|
+
hasSensitive = true;
|
|
36
|
+
reasons.push('Unverified agent identity requires review.');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// File patterns
|
|
40
|
+
for (const file of request.files) {
|
|
41
|
+
const normalizedPath = file.path.replace(/\\/g, '/');
|
|
42
|
+
|
|
43
|
+
// Check critical
|
|
44
|
+
if (this.criticalPatterns.some(p => p.test(normalizedPath))) {
|
|
45
|
+
hasCritical = true;
|
|
46
|
+
reasons.push(`Critical governance file touched: ${file.path}`);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Check sensitive
|
|
50
|
+
if (this.sensitivePatterns.some(p => p.test(normalizedPath))) {
|
|
51
|
+
hasSensitive = true;
|
|
52
|
+
reasons.push(`Sensitive file pattern matched: ${file.path}`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Determine baseline policy from files
|
|
57
|
+
let policy = 'ALLOW';
|
|
58
|
+
if (hasCritical) {
|
|
59
|
+
policy = 'DENY'; // Must be human explicitly, or heavily gated
|
|
60
|
+
} else if (hasSensitive) {
|
|
61
|
+
policy = 'REVIEW_REQUIRED';
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Override with decision engine tier
|
|
65
|
+
if (decision) {
|
|
66
|
+
if (decision.tier > 0 && policy === 'ALLOW') {
|
|
67
|
+
policy = 'REVIEW_REQUIRED';
|
|
68
|
+
reasons.push(`Impact tier ${decision.tier} requires review.`);
|
|
69
|
+
}
|
|
70
|
+
if (decision.tier >= 3) {
|
|
71
|
+
// high tier changes might also trigger human approval
|
|
72
|
+
if (policy !== 'DENY') {
|
|
73
|
+
policy = 'REVIEW_REQUIRED';
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (decision.escalated) {
|
|
77
|
+
policy = 'DENY'; // Or requires human approval
|
|
78
|
+
reasons.push(`Decision engine escalated: ${decision.escalation_reason}`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Always require human approval for DENY or high risk? The prompt says DENY means no LLM alone can ALLOW.
|
|
83
|
+
return {
|
|
84
|
+
action: policy,
|
|
85
|
+
reasons,
|
|
86
|
+
requiresHumanApproval: policy === 'DENY' || hasCritical || (decision && decision.tier >= 3),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
module.exports = {
|
|
92
|
+
WritePolicyEngine,
|
|
93
|
+
DEFAULT_SENSITIVE_PATTERNS,
|
|
94
|
+
CRITICAL_GOVERNANCE_PATTERNS,
|
|
95
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* adaptive_correction.js — Tribunal Intelligence: Adaptive Correction Strategies
|
|
5
|
+
* ============================================================================
|
|
6
|
+
* Phase 7K implementation.
|
|
7
|
+
*
|
|
8
|
+
* Uses historical evidence to recommend correction approaches for blocked cases.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const { CaseIndexer } = require('./case_indexer');
|
|
12
|
+
const { CaseMemory } = require('./case_memory');
|
|
13
|
+
|
|
14
|
+
class AdaptiveCorrection {
|
|
15
|
+
constructor(options = {}) {
|
|
16
|
+
this.indexer = options.indexer || new CaseIndexer(options);
|
|
17
|
+
this.memory = options.memory || new CaseMemory(options);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Recommends a correction strategy based on historical successes for similar findings.
|
|
22
|
+
*
|
|
23
|
+
* @param {Object} finding The finding object that blocked the transaction
|
|
24
|
+
* @param {Array} similarCases Historical similar cases
|
|
25
|
+
* @returns {Object|null} Recommended strategy overlay for the correction engine
|
|
26
|
+
*/
|
|
27
|
+
recommendCorrection(finding, similarCases) {
|
|
28
|
+
if (!finding || !finding.category || !similarCases || similarCases.length === 0) return null;
|
|
29
|
+
|
|
30
|
+
const strategySuccesses = new Map();
|
|
31
|
+
|
|
32
|
+
for (const sim of similarCases) {
|
|
33
|
+
const caseRecord = this.memory.getCase(sim.caseId);
|
|
34
|
+
if (!caseRecord || caseRecord.finalVerdict !== 'RESOLVED') continue;
|
|
35
|
+
|
|
36
|
+
// Did they encounter a similar finding and successfully correct it?
|
|
37
|
+
const corrections = caseRecord.correctionAttempts || [];
|
|
38
|
+
for (const corr of corrections) {
|
|
39
|
+
if (
|
|
40
|
+
corr.targetFindingCategory === finding.category &&
|
|
41
|
+
corr.status === 'SUCCESS' &&
|
|
42
|
+
corr.strategyApplied
|
|
43
|
+
) {
|
|
44
|
+
const stratId = corr.strategyApplied;
|
|
45
|
+
strategySuccesses.set(stratId, (strategySuccesses.get(stratId) || 0) + 1);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (strategySuccesses.size === 0) return null;
|
|
51
|
+
|
|
52
|
+
// Find the most successful strategy
|
|
53
|
+
let bestStrategy = null;
|
|
54
|
+
let bestCount = 0;
|
|
55
|
+
for (const [strat, count] of strategySuccesses.entries()) {
|
|
56
|
+
if (count > bestCount) {
|
|
57
|
+
bestStrategy = strat;
|
|
58
|
+
bestCount = count;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (!bestStrategy) return null;
|
|
63
|
+
|
|
64
|
+
return {
|
|
65
|
+
recommendedStrategy: bestStrategy,
|
|
66
|
+
historicalSuccessCount: bestCount,
|
|
67
|
+
advisory: `This is a recommendation based on ${bestCount} historical successes. The agent still proposes the actual change, and Tribunal still governs it.`,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
module.exports = { AdaptiveCorrection };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* adaptive_reviewer_orchestrator.js — Tribunal Intelligence
|
|
5
|
+
* ============================================================================
|
|
6
|
+
* Phase 7F implementation.
|
|
7
|
+
*
|
|
8
|
+
* Upgrades the static ReviewerOrchestrator decision layer with historical Case Intelligence.
|
|
9
|
+
*
|
|
10
|
+
* Contract:
|
|
11
|
+
* - Adaptive selection may optimize (add/reorder) optional reviewer choice.
|
|
12
|
+
* - Adaptive selection may NOT remove mandatory safety reviewers selected by the deterministic engine.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
const { orchestrateReviewers } = require('../system1/reviewer_orchestrator');
|
|
16
|
+
const { ReviewerPerformance } = require('./reviewer_performance');
|
|
17
|
+
|
|
18
|
+
class AdaptiveReviewerOrchestrator {
|
|
19
|
+
constructor(options = {}) {
|
|
20
|
+
this.performanceStore = options.performanceStore || new ReviewerPerformance(options);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Orchestrates reviewers using both deterministic safety and historical intelligence.
|
|
25
|
+
*
|
|
26
|
+
* @param {Object} options Standard orchestrator options (tier, files, diff, task, evidence, previousFindings, forcedReviewers)
|
|
27
|
+
* @param {Object} query Context for historical analysis
|
|
28
|
+
* @returns {Object} Upgraded orchestration payload
|
|
29
|
+
*/
|
|
30
|
+
adaptReviewers(options, query = {}) {
|
|
31
|
+
// 1. Run Baseline Deterministic Engine
|
|
32
|
+
// This establishes the absolute minimum safety floor.
|
|
33
|
+
const baseline = orchestrateReviewers(options);
|
|
34
|
+
|
|
35
|
+
// Short circuit if Tier 0 limits reviewers absolutely
|
|
36
|
+
if (baseline.total_selected === 0) {
|
|
37
|
+
return baseline;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const { selected, rejected, coverage } = baseline;
|
|
41
|
+
const { impactTier, files, categories } = query;
|
|
42
|
+
|
|
43
|
+
// 2. Fetch Performance Intelligence
|
|
44
|
+
// Retrieve historical effectiveness of selected reviewers
|
|
45
|
+
const adaptiveSelected = [];
|
|
46
|
+
const safetyRequiredNames = new Set(selected.map(r => r.reviewer));
|
|
47
|
+
|
|
48
|
+
for (const reviewer of selected) {
|
|
49
|
+
const stats = this.performanceStore.getReviewerStats(reviewer.reviewer);
|
|
50
|
+
let boostedScore = reviewer.score;
|
|
51
|
+
let reasoning = reviewer.reason;
|
|
52
|
+
|
|
53
|
+
if (stats.reliabilityScore !== null) {
|
|
54
|
+
if (stats.reliabilityScore > 0.8) {
|
|
55
|
+
boostedScore += 0.2;
|
|
56
|
+
reasoning += ` | Historical performance indicates high reliability (${(stats.reliabilityScore * 100).toFixed(0)}%).`;
|
|
57
|
+
} else if (stats.reliabilityScore < 0.4) {
|
|
58
|
+
boostedScore -= 0.2;
|
|
59
|
+
reasoning += ` | Historical performance is poor; retained due to mandatory safety policy.`;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
adaptiveSelected.push({
|
|
64
|
+
...reviewer,
|
|
65
|
+
score: parseFloat(boostedScore.toFixed(2)),
|
|
66
|
+
reason: reasoning,
|
|
67
|
+
_isMandatorySafety: true, // Tagged to ensure it can never be removed
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// 3. Optional additions based on historical Similar Cases
|
|
72
|
+
// If we have similarity insights, we might pull in a rejected reviewer.
|
|
73
|
+
// E.g., a Database reviewer on an API tier change because previously similar API changes masked DB risks.
|
|
74
|
+
if (query.similarCases && query.similarCases.length > 0) {
|
|
75
|
+
// Collect reviewers that were historically present in successful similarity matches
|
|
76
|
+
const historicalUsefulSet = new Set();
|
|
77
|
+
for (const simCase of query.similarCases) {
|
|
78
|
+
if (simCase.confidence === 'HIGH' || simCase.similarityScore >= 0.7) {
|
|
79
|
+
const histRecord = this.performanceStore.memory.getCase(simCase.caseId);
|
|
80
|
+
if (histRecord && histRecord.finalVerdict === 'RESOLVED') {
|
|
81
|
+
// If they caught things in the past successfully
|
|
82
|
+
(histRecord.selectedReviewers || []).forEach(r => historicalUsefulSet.add(r));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const tierCapacityMap = { 0: 0, 1: 1, 2: 3, 3: 8 };
|
|
88
|
+
let availableCapacity = (tierCapacityMap[options.tier] || 1) - adaptiveSelected.length;
|
|
89
|
+
|
|
90
|
+
// Sort rejected by their historical usefulness
|
|
91
|
+
const adaptiveRejected = [];
|
|
92
|
+
for (const rejectedReq of rejected) {
|
|
93
|
+
if (historicalUsefulSet.has(rejectedReq.reviewer) && availableCapacity > 0) {
|
|
94
|
+
// Elevate this reviewer
|
|
95
|
+
adaptiveSelected.push({
|
|
96
|
+
reviewer: rejectedReq.reviewer,
|
|
97
|
+
reason: `${rejectedReq.reason} | ADAPTIVE OVERRIDE: Historically necessary for highly similar cases.`,
|
|
98
|
+
risk_covered: 'adaptive_historical',
|
|
99
|
+
evidence_supplied: [],
|
|
100
|
+
expected_contribution:
|
|
101
|
+
'Historical precedent indicates hidden risks in this change profile.',
|
|
102
|
+
score: 0.5,
|
|
103
|
+
_isMandatorySafety: false,
|
|
104
|
+
});
|
|
105
|
+
availableCapacity--;
|
|
106
|
+
} else {
|
|
107
|
+
adaptiveRejected.push(rejectedReq);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
baseline.rejected = adaptiveRejected;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// 4. Re-sort by intelligence boosted scores
|
|
114
|
+
adaptiveSelected.sort((a, b) => b.score - a.score);
|
|
115
|
+
|
|
116
|
+
baseline.selected = adaptiveSelected;
|
|
117
|
+
baseline.total_selected = adaptiveSelected.length;
|
|
118
|
+
|
|
119
|
+
return baseline;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
module.exports = { AdaptiveReviewerOrchestrator };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* case_indexer.js — Tribunal Intelligence: Case Indexing
|
|
5
|
+
* ============================================================================
|
|
6
|
+
* Phase 7C implementation of efficient local-first case indexing.
|
|
7
|
+
*
|
|
8
|
+
* Maintains a live metadata index of all finalized cases, enabling O(1) or O(N)
|
|
9
|
+
* sweeps over case metadata without incurring full filesystem reads for payload bodies.
|
|
10
|
+
*
|
|
11
|
+
* It helps answer:
|
|
12
|
+
* - Have we seen this type of change before?
|
|
13
|
+
* - Have we seen this file before?
|
|
14
|
+
* - Have we seen this finding before?
|
|
15
|
+
* - Which reviewers performed well on similar cases?
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
const fs = require('fs');
|
|
19
|
+
const path = require('path');
|
|
20
|
+
|
|
21
|
+
class CaseIndexer {
|
|
22
|
+
constructor(options = {}) {
|
|
23
|
+
this.workspace = options.workspace || process.cwd();
|
|
24
|
+
this.agentDir = options.agentDir || path.join(this.workspace, '.agent');
|
|
25
|
+
this.intelligenceDir = path.join(this.agentDir, 'intelligence');
|
|
26
|
+
this.indexPath = path.join(this.intelligenceDir, 'cases.index.json');
|
|
27
|
+
|
|
28
|
+
this.index = {
|
|
29
|
+
cases: {}, // caseId -> structured metadata
|
|
30
|
+
byImpactTier: {}, // tier -> Set of caseIds
|
|
31
|
+
byFailureMode: {}, // mode -> Set of caseIds
|
|
32
|
+
byFile: {}, // filePath -> Set of caseIds
|
|
33
|
+
byReviewer: {}, // reviewerId -> Set of caseIds
|
|
34
|
+
};
|
|
35
|
+
this._loadIndex();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
_loadIndex() {
|
|
39
|
+
if (fs.existsSync(this.indexPath)) {
|
|
40
|
+
try {
|
|
41
|
+
const raw = JSON.parse(fs.readFileSync(this.indexPath, 'utf8'));
|
|
42
|
+
this.index.cases = raw.cases || {};
|
|
43
|
+
|
|
44
|
+
// Deserialize sets
|
|
45
|
+
['byImpactTier', 'byFailureMode', 'byFile', 'byReviewer'].forEach(key => {
|
|
46
|
+
this.index[key] = {};
|
|
47
|
+
if (raw[key]) {
|
|
48
|
+
for (const [k, arr] of Object.entries(raw[key])) {
|
|
49
|
+
this.index[key][k] = new Set(arr);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
} catch (e) {
|
|
54
|
+
console.warn('[Tribunal Case Indexer] Failed to load index, starting fresh.', e);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
_saveIndex() {
|
|
60
|
+
// Serialize sets
|
|
61
|
+
const serialized = {
|
|
62
|
+
cases: this.index.cases,
|
|
63
|
+
byImpactTier: {},
|
|
64
|
+
byFailureMode: {},
|
|
65
|
+
byFile: {},
|
|
66
|
+
byReviewer: {},
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
['byImpactTier', 'byFailureMode', 'byFile', 'byReviewer'].forEach(key => {
|
|
70
|
+
for (const [k, set] of Object.entries(this.index[key])) {
|
|
71
|
+
serialized[key][k] = Array.from(set);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
if (!fs.existsSync(this.intelligenceDir)) {
|
|
76
|
+
fs.mkdirSync(this.intelligenceDir, { recursive: true });
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Atomic write to prevent index corruption
|
|
80
|
+
const tempPath = this.indexPath + '.tmp';
|
|
81
|
+
fs.writeFileSync(tempPath, JSON.stringify(serialized, null, 2), 'utf8');
|
|
82
|
+
fs.renameSync(tempPath, this.indexPath);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
_addToSet(indexMap, key, value) {
|
|
86
|
+
if (!indexMap[key]) indexMap[key] = new Set();
|
|
87
|
+
indexMap[key].add(value);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Adds a finalized case to the index.
|
|
92
|
+
* Called automatically by CaseMemory.storeCase in an integrated system,
|
|
93
|
+
* or lazily via batch processors.
|
|
94
|
+
*
|
|
95
|
+
* @param {Object} caseRecord The fully structured case.
|
|
96
|
+
*/
|
|
97
|
+
indexCase(caseRecord) {
|
|
98
|
+
if (!caseRecord || !caseRecord.caseId) return;
|
|
99
|
+
|
|
100
|
+
const { caseId } = caseRecord;
|
|
101
|
+
|
|
102
|
+
// Build indexing metadata
|
|
103
|
+
const files = Array.isArray(caseRecord.changeFingerprint?.files)
|
|
104
|
+
? caseRecord.changeFingerprint.files
|
|
105
|
+
: [];
|
|
106
|
+
|
|
107
|
+
const failureModes = caseRecord.failureModes || [];
|
|
108
|
+
const impactTier = caseRecord.impactTier || 'UNKNOWN';
|
|
109
|
+
const reviewers = caseRecord.selectedReviewers || [];
|
|
110
|
+
|
|
111
|
+
// Persist small fast-scan metadata
|
|
112
|
+
this.index.cases[caseId] = {
|
|
113
|
+
timestamp: caseRecord.timestamp,
|
|
114
|
+
impactTier,
|
|
115
|
+
finalVerdict: caseRecord.finalVerdict,
|
|
116
|
+
correctionCount: (caseRecord.correctionAttempts || []).length,
|
|
117
|
+
latency: caseRecord.latency,
|
|
118
|
+
tokenInput: caseRecord.tokenUsage?.input || 0,
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
// Update reverse-lookup sets
|
|
122
|
+
this._addToSet(this.index.byImpactTier, impactTier, caseId);
|
|
123
|
+
|
|
124
|
+
failureModes.forEach(mode => this._addToSet(this.index.byFailureMode, mode, caseId));
|
|
125
|
+
files.forEach(f => this._addToSet(this.index.byFile, f, caseId));
|
|
126
|
+
reviewers.forEach(r => this._addToSet(this.index.byReviewer, r, caseId));
|
|
127
|
+
|
|
128
|
+
this._saveIndex();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Fast queries over the index
|
|
133
|
+
*/
|
|
134
|
+
getCasesByFile(filePath) {
|
|
135
|
+
return Array.from(this.index.byFile[filePath] || []);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
getCasesByImpactTier(tier) {
|
|
139
|
+
return Array.from(this.index.byImpactTier[tier] || []);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
getCasesByFailureMode(mode) {
|
|
143
|
+
return Array.from(this.index.byFailureMode[mode] || []);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
getReviewerPerformanceSignals(reviewerName) {
|
|
147
|
+
const caseIds = Array.from(this.index.byReviewer[reviewerName] || []);
|
|
148
|
+
const casesAppeared = caseIds.length;
|
|
149
|
+
let regressionsAssociated = 0;
|
|
150
|
+
|
|
151
|
+
// Scan light metadata
|
|
152
|
+
for (const cid of caseIds) {
|
|
153
|
+
if (this.index.byFailureMode['REGRESSION']?.has(cid)) {
|
|
154
|
+
regressionsAssociated++;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return {
|
|
159
|
+
casesAppeared,
|
|
160
|
+
regressionsAssociated,
|
|
161
|
+
reliabilityScore: casesAppeared === 0 ? null : 1.0 - regressionsAssociated / casesAppeared,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
module.exports = { CaseIndexer };
|