@invictus-group-ai/orchestra 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/LICENSING.md +49 -0
- package/README.md +507 -0
- package/assets/settings-template.json +99 -0
- package/bin/invi.js +6 -0
- package/content-dist/LICENSE +95 -0
- package/content-dist/PIPELINE.md +823 -0
- package/content-dist/README.md +128 -0
- package/content-dist/agents/README.md +135 -0
- package/content-dist/agents/mapping.json +476 -0
- package/content-dist/agents/stacks/backend-django.md +66 -0
- package/content-dist/agents/stacks/backend-dotnet.md +72 -0
- package/content-dist/agents/stacks/backend-fastapi.md +66 -0
- package/content-dist/agents/stacks/backend-laravel.md +66 -0
- package/content-dist/agents/stacks/backend-node.md +66 -0
- package/content-dist/agents/stacks/backend-spring.md +66 -0
- package/content-dist/agents/stacks/desktop-delphi.md +73 -0
- package/content-dist/agents/stacks/frontend-angular.md +65 -0
- package/content-dist/agents/stacks/frontend-react.md +67 -0
- package/content-dist/agents/stacks/frontend-svelte.md +67 -0
- package/content-dist/agents/stacks/frontend-vue.md +66 -0
- package/content-dist/agents/stacks/mobile-flutter.md +68 -0
- package/content-dist/agents/stacks/wordpress.md +66 -0
- package/content-dist/agents/universal/invi-qa.md +57 -0
- package/content-dist/agents/universal/invi-reviewer.md +61 -0
- package/content-dist/agents/universal/invi-security.md +55 -0
- package/content-dist/agents/universal/invi-tester.md +55 -0
- package/content-dist/agents/universal/invi-ui.md +85 -0
- package/content-dist/fragments/base.md +37 -0
- package/content-dist/fragments/domain/api-publica-rate-limiting.md +83 -0
- package/content-dist/fragments/domain/autenticacao-enterprise.md +86 -0
- package/content-dist/fragments/domain/busca-elasticsearch.md +86 -0
- package/content-dist/fragments/domain/dashboard-admin-rbac.md +80 -0
- package/content-dist/fragments/domain/design-system.md +71 -0
- package/content-dist/fragments/domain/ecommerce-completo.md +86 -0
- package/content-dist/fragments/domain/filas-jobs.md +80 -0
- package/content-dist/fragments/domain/integracao-crm-erp.md +82 -0
- package/content-dist/fragments/domain/lgpd.md +84 -0
- package/content-dist/fragments/domain/multi-tenancy.md +79 -0
- package/content-dist/fragments/domain/notificacoes-multicanal.md +81 -0
- package/content-dist/fragments/domain/pagamentos-brasil.md +85 -0
- package/content-dist/fragments/domain/plataforma-conteudo.md +77 -0
- package/content-dist/fragments/domain/realtime-websockets.md +92 -0
- package/content-dist/fragments/domain/relatorios-analytics.md +80 -0
- package/content-dist/fragments/domain/saas-stripe-billing.md +79 -0
- package/content-dist/fragments/domain/sistema-pagamentos.md +81 -0
- package/content-dist/fragments/domain/upload-midia.md +81 -0
- package/content-dist/fragments/domain/whatsapp-business.md +82 -0
- package/content-dist/fragments/index.json +1670 -0
- package/content-dist/fragments/references/angular-ngrx/app-config-and-testing.md +81 -0
- package/content-dist/fragments/references/angular-ngrx/store-pattern.md +155 -0
- package/content-dist/fragments/references/ansible-server-setup/layout-and-config.md +143 -0
- package/content-dist/fragments/references/ansible-server-setup/roles.md +238 -0
- package/content-dist/fragments/references/api-publica-rate-limiting/patterns.md +68 -0
- package/content-dist/fragments/references/astro-static/content-and-islands.md +117 -0
- package/content-dist/fragments/references/autenticacao-enterprise/pitfalls.md +70 -0
- package/content-dist/fragments/references/busca-elasticsearch/patterns.md +100 -0
- package/content-dist/fragments/references/chrome-extension-mv3/messaging-and-storage.md +109 -0
- package/content-dist/fragments/references/cli-typescript-commander/commands-and-config.md +136 -0
- package/content-dist/fragments/references/cloud-run-gcp/build-and-deploy.md +127 -0
- package/content-dist/fragments/references/cloud-run-gcp/iam-secrets-networking.md +65 -0
- package/content-dist/fragments/references/computer-vision-yolo/serving-and-export.md +182 -0
- package/content-dist/fragments/references/computer-vision-yolo/training-and-validation.md +131 -0
- package/content-dist/fragments/references/convex-react/functions.md +117 -0
- package/content-dist/fragments/references/convex-react/react-and-storage.md +109 -0
- package/content-dist/fragments/references/dashboard-admin-rbac/patterns.md +73 -0
- package/content-dist/fragments/references/data-pipeline-airflow/dag-patterns.md +149 -0
- package/content-dist/fragments/references/data-pipeline-airflow/operations.md +74 -0
- package/content-dist/fragments/references/delphi-object-pascal/legacy-extraction.md +175 -0
- package/content-dist/fragments/references/django-drf-celery/celery-tasks.md +47 -0
- package/content-dist/fragments/references/django-drf-celery/viewsets-and-serializers.md +92 -0
- package/content-dist/fragments/references/docker-compose-dev/compose-files.md +146 -0
- package/content-dist/fragments/references/docker-compose-dev/dockerfile-and-proxy.md +108 -0
- package/content-dist/fragments/references/dotnet-aspnet/data-and-di.md +90 -0
- package/content-dist/fragments/references/dotnet-aspnet/web-layer.md +88 -0
- package/content-dist/fragments/references/ecommerce-completo/patterns.md +76 -0
- package/content-dist/fragments/references/electron-app/ipc-bridge.md +123 -0
- package/content-dist/fragments/references/electron-app/security-and-packaging.md +134 -0
- package/content-dist/fragments/references/elixir-phoenix/context-and-web.md +112 -0
- package/content-dist/fragments/references/elixir-phoenix/processes.md +65 -0
- package/content-dist/fragments/references/filas-jobs/patterns.md +116 -0
- package/content-dist/fragments/references/fine-tuning-huggingface/data-and-export.md +114 -0
- package/content-dist/fragments/references/fine-tuning-huggingface/training-and-lora.md +123 -0
- package/content-dist/fragments/references/flutter/platform-channels-and-goldens.md +68 -0
- package/content-dist/fragments/references/flutter/state-and-widgets.md +95 -0
- package/content-dist/fragments/references/github-actions-cicd/workflows.md +235 -0
- package/content-dist/fragments/references/go-chi-gorm/http-layer.md +87 -0
- package/content-dist/fragments/references/go-chi-gorm/service-layer.md +58 -0
- package/content-dist/fragments/references/graphql-apollo/resolvers-and-loaders.md +128 -0
- package/content-dist/fragments/references/hono-bun/patterns.md +144 -0
- package/content-dist/fragments/references/integracao-crm-erp/patterns.md +100 -0
- package/content-dist/fragments/references/kubernetes-helm/chart-templates.md +162 -0
- package/content-dist/fragments/references/kubernetes-helm/secrets-storage-deploy.md +78 -0
- package/content-dist/fragments/references/langchain-python-agent/agent-and-cost.md +120 -0
- package/content-dist/fragments/references/langchain-python-agent/memory-and-resilience.md +76 -0
- package/content-dist/fragments/references/laravel/eloquent-and-queues.md +126 -0
- package/content-dist/fragments/references/laravel/http-layer.md +110 -0
- package/content-dist/fragments/references/lgpd/patterns.md +110 -0
- package/content-dist/fragments/references/llm-ops-production/routing-and-budget.md +118 -0
- package/content-dist/fragments/references/llm-ops-production/tracing-eval-ab.md +102 -0
- package/content-dist/fragments/references/microservices-docker/compose-and-gateway.md +93 -0
- package/content-dist/fragments/references/microservices-docker/events-and-correlation.md +88 -0
- package/content-dist/fragments/references/ml-fastapi-serving/metrics-drift-docker.md +97 -0
- package/content-dist/fragments/references/ml-fastapi-serving/serving-core.md +155 -0
- package/content-dist/fragments/references/ml-training-pipeline/dvc-pipeline.md +102 -0
- package/content-dist/fragments/references/ml-training-pipeline/mlflow-registry-ci.md +139 -0
- package/content-dist/fragments/references/monitoring-observability/alerts-and-config.md +169 -0
- package/content-dist/fragments/references/monitoring-observability/instrumentation-node.md +139 -0
- package/content-dist/fragments/references/multi-tenancy/patterns.md +85 -0
- package/content-dist/fragments/references/nestjs-typescript/guards-and-decorators.md +103 -0
- package/content-dist/fragments/references/nestjs-typescript/modules-dtos-setup.md +106 -0
- package/content-dist/fragments/references/nextjs-app-router/patterns.md +177 -0
- package/content-dist/fragments/references/nextjs-prisma-postgres/billing.md +167 -0
- package/content-dist/fragments/references/nextjs-trpc-drizzle/data-and-auth.md +121 -0
- package/content-dist/fragments/references/nextjs-trpc-drizzle/trpc-setup.md +62 -0
- package/content-dist/fragments/references/nodejs-express-typescript/config-and-tokens.md +48 -0
- package/content-dist/fragments/references/nodejs-express-typescript/middleware.md +108 -0
- package/content-dist/fragments/references/notificacoes-multicanal/patterns.md +78 -0
- package/content-dist/fragments/references/nuxt3-tailwind/server-routes.md +79 -0
- package/content-dist/fragments/references/nuxt3-tailwind/state-and-fetching.md +129 -0
- package/content-dist/fragments/references/openai-api-integration/calls.md +210 -0
- package/content-dist/fragments/references/openai-api-integration/client-and-cost.md +71 -0
- package/content-dist/fragments/references/pagamentos-brasil/gateways-reconciliation.md +92 -0
- package/content-dist/fragments/references/pagamentos-brasil/pix-boleto.md +115 -0
- package/content-dist/fragments/references/plataforma-conteudo/patterns.md +74 -0
- package/content-dist/fragments/references/python-fastapi/dependency-injection.md +99 -0
- package/content-dist/fragments/references/python-fastapi/settings-and-tasks.md +47 -0
- package/content-dist/fragments/references/rag-pipeline/ingestion.md +92 -0
- package/content-dist/fragments/references/rag-pipeline/retrieval-and-eval.md +148 -0
- package/content-dist/fragments/references/react-express-monolith/auth-and-client.md +110 -0
- package/content-dist/fragments/references/react-express-monolith/monorepo.md +71 -0
- package/content-dist/fragments/references/react-native-expo/native-patterns.md +103 -0
- package/content-dist/fragments/references/react-native-expo/navigation-and-auth.md +55 -0
- package/content-dist/fragments/references/react-ts-zustand-query/store-and-query.md +152 -0
- package/content-dist/fragments/references/react-typescript/feature-module.md +64 -0
- package/content-dist/fragments/references/react-typescript/forms-and-state.md +69 -0
- package/content-dist/fragments/references/react-typescript/recipes.md +37 -0
- package/content-dist/fragments/references/react-typescript/testing.md +40 -0
- package/content-dist/fragments/references/realtime-websockets/patterns.md +92 -0
- package/content-dist/fragments/references/relatorios-analytics/patterns.md +81 -0
- package/content-dist/fragments/references/remix-express-full/auth-and-uploads.md +88 -0
- package/content-dist/fragments/references/remix-express-full/express-server.md +54 -0
- package/content-dist/fragments/references/remix-typescript/auth-and-db.md +68 -0
- package/content-dist/fragments/references/remix-typescript/loaders-and-actions.md +98 -0
- package/content-dist/fragments/references/rust-axum/error-and-state.md +99 -0
- package/content-dist/fragments/references/rust-axum/handlers.md +87 -0
- package/content-dist/fragments/references/saas-stripe-billing/patterns.md +86 -0
- package/content-dist/fragments/references/serverless-lambda/handler-patterns.md +107 -0
- package/content-dist/fragments/references/sistema-pagamentos/pitfalls.md +54 -0
- package/content-dist/fragments/references/spring-boot/service-and-data.md +96 -0
- package/content-dist/fragments/references/spring-boot/web-layer.md +100 -0
- package/content-dist/fragments/references/supabase-nextjs/clients-and-middleware.md +102 -0
- package/content-dist/fragments/references/supabase-nextjs/rls-and-storage.md +86 -0
- package/content-dist/fragments/references/svelte-sveltekit/hooks-and-state.md +67 -0
- package/content-dist/fragments/references/svelte-sveltekit/load-and-actions.md +80 -0
- package/content-dist/fragments/references/t3-stack/routers-and-callers.md +75 -0
- package/content-dist/fragments/references/t3-stack/trpc-setup.md +60 -0
- package/content-dist/fragments/references/terraform-aws/modules-and-ci.md +114 -0
- package/content-dist/fragments/references/terraform-aws/state-and-workspaces.md +66 -0
- package/content-dist/fragments/references/turborepo-monorepo/pipeline-and-packages.md +84 -0
- package/content-dist/fragments/references/upload-midia/patterns.md +80 -0
- package/content-dist/fragments/references/vector-search-pinecone/client-and-upsert.md +98 -0
- package/content-dist/fragments/references/vector-search-pinecone/query-and-hybrid.md +81 -0
- package/content-dist/fragments/references/vps-deploy-producao/compose-prod.md +97 -0
- package/content-dist/fragments/references/vps-deploy-producao/proxy-and-operations.md +118 -0
- package/content-dist/fragments/references/vscode-extension/activation-and-tree.md +98 -0
- package/content-dist/fragments/references/vscode-extension/webview-csp.md +57 -0
- package/content-dist/fragments/references/vue3-pinia-vite/components-and-stores.md +73 -0
- package/content-dist/fragments/references/vue3-pinia-vite/queries-forms-testing.md +100 -0
- package/content-dist/fragments/references/whatsapp-business/patterns.md +107 -0
- package/content-dist/fragments/references/wordpress/hooks-and-security.md +92 -0
- package/content-dist/fragments/references/wordpress/wp-cli-gates.md +64 -0
- package/content-dist/fragments/stack/angular-ngrx.md +75 -0
- package/content-dist/fragments/stack/ansible-server-setup.md +69 -0
- package/content-dist/fragments/stack/astro-static.md +72 -0
- package/content-dist/fragments/stack/chrome-extension-mv3.md +66 -0
- package/content-dist/fragments/stack/cli-typescript-commander.md +66 -0
- package/content-dist/fragments/stack/cloud-run-gcp.md +63 -0
- package/content-dist/fragments/stack/computer-vision-yolo.md +62 -0
- package/content-dist/fragments/stack/convex-react.md +65 -0
- package/content-dist/fragments/stack/data-pipeline-airflow.md +64 -0
- package/content-dist/fragments/stack/delphi-object-pascal.md +63 -0
- package/content-dist/fragments/stack/django-drf-celery.md +63 -0
- package/content-dist/fragments/stack/docker-compose-dev.md +69 -0
- package/content-dist/fragments/stack/dotnet-aspnet.md +62 -0
- package/content-dist/fragments/stack/electron-app.md +70 -0
- package/content-dist/fragments/stack/elixir-phoenix.md +65 -0
- package/content-dist/fragments/stack/fine-tuning-huggingface.md +69 -0
- package/content-dist/fragments/stack/flutter.md +61 -0
- package/content-dist/fragments/stack/github-actions-cicd.md +73 -0
- package/content-dist/fragments/stack/go-chi-gorm.md +73 -0
- package/content-dist/fragments/stack/graphql-apollo.md +70 -0
- package/content-dist/fragments/stack/hono-bun.md +62 -0
- package/content-dist/fragments/stack/kubernetes-helm.md +67 -0
- package/content-dist/fragments/stack/langchain-python-agent.md +64 -0
- package/content-dist/fragments/stack/laravel.md +64 -0
- package/content-dist/fragments/stack/llm-ops-production.md +63 -0
- package/content-dist/fragments/stack/microservices-docker.md +70 -0
- package/content-dist/fragments/stack/ml-fastapi-serving.md +64 -0
- package/content-dist/fragments/stack/ml-training-pipeline.md +67 -0
- package/content-dist/fragments/stack/monitoring-observability.md +68 -0
- package/content-dist/fragments/stack/nestjs-typescript.md +68 -0
- package/content-dist/fragments/stack/nextjs-app-router.md +65 -0
- package/content-dist/fragments/stack/nextjs-prisma-postgres.md +61 -0
- package/content-dist/fragments/stack/nextjs-trpc-drizzle.md +63 -0
- package/content-dist/fragments/stack/nodejs-express-typescript.md +60 -0
- package/content-dist/fragments/stack/nuxt3-tailwind.md +62 -0
- package/content-dist/fragments/stack/openai-api-integration.md +58 -0
- package/content-dist/fragments/stack/python-fastapi.md +64 -0
- package/content-dist/fragments/stack/rag-pipeline.md +62 -0
- package/content-dist/fragments/stack/react-express-monolith.md +61 -0
- package/content-dist/fragments/stack/react-native-expo.md +68 -0
- package/content-dist/fragments/stack/react-ts-zustand-query.md +64 -0
- package/content-dist/fragments/stack/react-typescript.md +73 -0
- package/content-dist/fragments/stack/remix-express-full.md +63 -0
- package/content-dist/fragments/stack/remix-typescript.md +66 -0
- package/content-dist/fragments/stack/rust-axum.md +63 -0
- package/content-dist/fragments/stack/serverless-lambda.md +65 -0
- package/content-dist/fragments/stack/spring-boot.md +63 -0
- package/content-dist/fragments/stack/supabase-nextjs.md +64 -0
- package/content-dist/fragments/stack/svelte-sveltekit.md +67 -0
- package/content-dist/fragments/stack/t3-stack.md +63 -0
- package/content-dist/fragments/stack/terraform-aws.md +65 -0
- package/content-dist/fragments/stack/turborepo-monorepo.md +61 -0
- package/content-dist/fragments/stack/vector-search-pinecone.md +63 -0
- package/content-dist/fragments/stack/vps-deploy-producao.md +64 -0
- package/content-dist/fragments/stack/vscode-extension.md +64 -0
- package/content-dist/fragments/stack/vue3-pinia-vite.md +65 -0
- package/content-dist/fragments/stack/wordpress.md +63 -0
- package/content-dist/skills/invi-commit/SKILL.md +85 -0
- package/content-dist/skills/invi-journal/SKILL.md +67 -0
- package/content-dist/skills/invi-map/SKILL.md +118 -0
- package/content-dist/skills/invi-mode/SKILL.md +176 -0
- package/content-dist/skills/invi-pr/SKILL.md +142 -0
- package/content-dist/skills/invi-qa/SKILL.md +75 -0
- package/content-dist/skills/invi-refactor-legacy/SKILL.md +90 -0
- package/content-dist/skills/invi-review/SKILL.md +83 -0
- package/content-dist/skills/invi-security/SKILL.md +89 -0
- package/content-dist/skills/invi-status/SKILL.md +72 -0
- package/content-dist/skills/invi-task/SKILL.md +143 -0
- package/content-dist/skills/invi-test/SKILL.md +97 -0
- package/content-dist/skills/po-handoff/SKILL.md +130 -0
- package/content-dist/skills/po-intake/SKILL.md +115 -0
- package/content-dist/skills/po-lint/SKILL.md +82 -0
- package/content-dist/skills/po-spec/SKILL.md +138 -0
- package/content-dist/skills/po-status/SKILL.md +130 -0
- package/content-dist/skills/po-verify/SKILL.md +124 -0
- package/content-dist/templates/requirements/REQ-TEMPLATE.md +110 -0
- package/content-dist/templates/requirements/constitution-TEMPLATE.md +77 -0
- package/dist/baseline.d.ts +21 -0
- package/dist/baseline.d.ts.map +1 -0
- package/dist/baseline.js +43 -0
- package/dist/baseline.js.map +1 -0
- package/dist/cli.d.ts +15 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +345 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/doctor.d.ts +31 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +173 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/export.d.ts +49 -0
- package/dist/commands/export.d.ts.map +1 -0
- package/dist/commands/export.js +95 -0
- package/dist/commands/export.js.map +1 -0
- package/dist/commands/gate.d.ts +42 -0
- package/dist/commands/gate.d.ts.map +1 -0
- package/dist/commands/gate.js +97 -0
- package/dist/commands/gate.js.map +1 -0
- package/dist/commands/init.d.ts +88 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +540 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/journalCmd.d.ts +47 -0
- package/dist/commands/journalCmd.d.ts.map +1 -0
- package/dist/commands/journalCmd.js +89 -0
- package/dist/commands/journalCmd.js.map +1 -0
- package/dist/commands/keys.d.ts +68 -0
- package/dist/commands/keys.d.ts.map +1 -0
- package/dist/commands/keys.js +240 -0
- package/dist/commands/keys.js.map +1 -0
- package/dist/commands/map.d.ts +123 -0
- package/dist/commands/map.d.ts.map +1 -0
- package/dist/commands/map.js +383 -0
- package/dist/commands/map.js.map +1 -0
- package/dist/commands/plan.d.ts +28 -0
- package/dist/commands/plan.d.ts.map +1 -0
- package/dist/commands/plan.js +64 -0
- package/dist/commands/plan.js.map +1 -0
- package/dist/commands/req.d.ts +92 -0
- package/dist/commands/req.d.ts.map +1 -0
- package/dist/commands/req.js +270 -0
- package/dist/commands/req.js.map +1 -0
- package/dist/commands/review.d.ts +40 -0
- package/dist/commands/review.d.ts.map +1 -0
- package/dist/commands/review.js +101 -0
- package/dist/commands/review.js.map +1 -0
- package/dist/commands/run.d.ts +33 -0
- package/dist/commands/run.d.ts.map +1 -0
- package/dist/commands/run.js +151 -0
- package/dist/commands/run.js.map +1 -0
- package/dist/commands/ship.d.ts +45 -0
- package/dist/commands/ship.d.ts.map +1 -0
- package/dist/commands/ship.js +252 -0
- package/dist/commands/ship.js.map +1 -0
- package/dist/commands/status.d.ts +36 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +152 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/sync.d.ts +91 -0
- package/dist/commands/sync.d.ts.map +1 -0
- package/dist/commands/sync.js +331 -0
- package/dist/commands/sync.js.map +1 -0
- package/dist/commands/syncCommits.d.ts +56 -0
- package/dist/commands/syncCommits.d.ts.map +1 -0
- package/dist/commands/syncCommits.js +97 -0
- package/dist/commands/syncCommits.js.map +1 -0
- package/dist/commands/task.d.ts +108 -0
- package/dist/commands/task.d.ts.map +1 -0
- package/dist/commands/task.js +217 -0
- package/dist/commands/task.js.map +1 -0
- package/dist/commands/update.d.ts +92 -0
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/commands/update.js +541 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/commands/verifyTask.d.ts +50 -0
- package/dist/commands/verifyTask.d.ts.map +1 -0
- package/dist/commands/verifyTask.js +172 -0
- package/dist/commands/verifyTask.js.map +1 -0
- package/dist/content.d.ts +128 -0
- package/dist/content.d.ts.map +1 -0
- package/dist/content.js +177 -0
- package/dist/content.js.map +1 -0
- package/dist/detect.d.ts +122 -0
- package/dist/detect.d.ts.map +1 -0
- package/dist/detect.js +594 -0
- package/dist/detect.js.map +1 -0
- package/dist/events.d.ts +36 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +76 -0
- package/dist/events.js.map +1 -0
- package/dist/frontmatter.d.ts +15 -0
- package/dist/frontmatter.d.ts.map +1 -0
- package/dist/frontmatter.js +74 -0
- package/dist/frontmatter.js.map +1 -0
- package/dist/i18n/en.d.ts +421 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +443 -0
- package/dist/i18n/en.js.map +1 -0
- package/dist/i18n/index.d.ts +40 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +66 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/pt-BR.d.ts +11 -0
- package/dist/i18n/pt-BR.d.ts.map +1 -0
- package/dist/i18n/pt-BR.js +435 -0
- package/dist/i18n/pt-BR.js.map +1 -0
- package/dist/identity.d.ts +78 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +152 -0
- package/dist/identity.js.map +1 -0
- package/dist/index.d.ts +79 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +48 -0
- package/dist/index.js.map +1 -0
- package/dist/insights.d.ts +86 -0
- package/dist/insights.d.ts.map +1 -0
- package/dist/insights.js +199 -0
- package/dist/insights.js.map +1 -0
- package/dist/interview.d.ts +81 -0
- package/dist/interview.d.ts.map +1 -0
- package/dist/interview.js +283 -0
- package/dist/interview.js.map +1 -0
- package/dist/inventory.d.ts +79 -0
- package/dist/inventory.d.ts.map +1 -0
- package/dist/inventory.js +86 -0
- package/dist/inventory.js.map +1 -0
- package/dist/journal.d.ts +22 -0
- package/dist/journal.d.ts.map +1 -0
- package/dist/journal.js +88 -0
- package/dist/journal.js.map +1 -0
- package/dist/migrations/legacyNames.d.ts +45 -0
- package/dist/migrations/legacyNames.d.ts.map +1 -0
- package/dist/migrations/legacyNames.js +118 -0
- package/dist/migrations/legacyNames.js.map +1 -0
- package/dist/plan.d.ts +42 -0
- package/dist/plan.d.ts.map +1 -0
- package/dist/plan.js +126 -0
- package/dist/plan.js.map +1 -0
- package/dist/render/agents.d.ts +327 -0
- package/dist/render/agents.d.ts.map +1 -0
- package/dist/render/agents.js +356 -0
- package/dist/render/agents.js.map +1 -0
- package/dist/render/claudeMd.d.ts +29 -0
- package/dist/render/claudeMd.d.ts.map +1 -0
- package/dist/render/claudeMd.js +110 -0
- package/dist/render/claudeMd.js.map +1 -0
- package/dist/render/githooks.d.ts +41 -0
- package/dist/render/githooks.d.ts.map +1 -0
- package/dist/render/githooks.js +168 -0
- package/dist/render/githooks.js.map +1 -0
- package/dist/render/markers.d.ts +13 -0
- package/dist/render/markers.d.ts.map +1 -0
- package/dist/render/markers.js +35 -0
- package/dist/render/markers.js.map +1 -0
- package/dist/render/requirements.d.ts +56 -0
- package/dist/render/requirements.d.ts.map +1 -0
- package/dist/render/requirements.js +86 -0
- package/dist/render/requirements.js.map +1 -0
- package/dist/render/settings.d.ts +43 -0
- package/dist/render/settings.d.ts.map +1 -0
- package/dist/render/settings.js +94 -0
- package/dist/render/settings.js.map +1 -0
- package/dist/render/transparency.d.ts +7 -0
- package/dist/render/transparency.d.ts.map +1 -0
- package/dist/render/transparency.js +164 -0
- package/dist/render/transparency.js.map +1 -0
- package/dist/requirements.d.ts +84 -0
- package/dist/requirements.d.ts.map +1 -0
- package/dist/requirements.js +229 -0
- package/dist/requirements.js.map +1 -0
- package/dist/sizing.d.ts +63 -0
- package/dist/sizing.d.ts.map +1 -0
- package/dist/sizing.js +104 -0
- package/dist/sizing.js.map +1 -0
- package/dist/tasks.d.ts +199 -0
- package/dist/tasks.d.ts.map +1 -0
- package/dist/tasks.js +320 -0
- package/dist/tasks.js.map +1 -0
- package/dist/util/diff3.d.ts +26 -0
- package/dist/util/diff3.d.ts.map +1 -0
- package/dist/util/diff3.js +112 -0
- package/dist/util/diff3.js.map +1 -0
- package/dist/util/fsx.d.ts +33 -0
- package/dist/util/fsx.d.ts.map +1 -0
- package/dist/util/fsx.js +153 -0
- package/dist/util/fsx.js.map +1 -0
- package/dist/util/git.d.ts +58 -0
- package/dist/util/git.d.ts.map +1 -0
- package/dist/util/git.js +171 -0
- package/dist/util/git.js.map +1 -0
- package/dist/util/merge.d.ts +27 -0
- package/dist/util/merge.d.ts.map +1 -0
- package/dist/util/merge.js +78 -0
- package/dist/util/merge.js.map +1 -0
- package/dist/util/out.d.ts +18 -0
- package/dist/util/out.d.ts.map +1 -0
- package/dist/util/out.js +23 -0
- package/dist/util/out.js.map +1 -0
- package/dist/util/proc.d.ts +12 -0
- package/dist/util/proc.d.ts.map +1 -0
- package/dist/util/proc.js +45 -0
- package/dist/util/proc.js.map +1 -0
- package/dist/util/registry.d.ts +58 -0
- package/dist/util/registry.d.ts.map +1 -0
- package/dist/util/registry.js +240 -0
- package/dist/util/registry.js.map +1 -0
- package/dist/verify.d.ts +52 -0
- package/dist/verify.d.ts.map +1 -0
- package/dist/verify.js +205 -0
- package/dist/verify.js.map +1 -0
- package/dist/version.d.ts +5 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +18 -0
- package/dist/version.js.map +1 -0
- package/package.json +63 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: po-verify
|
|
3
|
+
description: Business acceptance (UAT) of a delivered requirement — converts each EARS acceptance criterion 1:1 into a UAT scenario, walks the PO through conversational acceptance, records every pass/fail as req.event entries in the event log, and flips the REQ to delivered when all criteria pass. Use when implementation for a REQ is done and the PO wants to accept it ("validar REQ-104", "aceite", "UAT").
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# po-verify — conversational acceptance (AC → UAT)
|
|
7
|
+
|
|
8
|
+
The PO's gate. `invi-qa` verified the code against the criteria as an engineer; this skill verifies the
|
|
9
|
+
delivery with the PO as the business. Each criterion becomes exactly one scenario; the PO's observation —
|
|
10
|
+
not the agent's confidence — decides pass or fail.
|
|
11
|
+
|
|
12
|
+
## Standing rules
|
|
13
|
+
|
|
14
|
+
- Communicate with the user in the language configured in `.invictus/manifest.json` (`language.render`,
|
|
15
|
+
default pt-BR), in business language. Machine artifacts (event payloads, block keys, verdicts) stay EN.
|
|
16
|
+
- **The verdict is the PO's.** You may drive the steps (run the app, prepare data, read screens back),
|
|
17
|
+
but `pass` requires the PO's explicit confirmation of the observed outcome — or evidence the PO
|
|
18
|
+
explicitly accepts.
|
|
19
|
+
- **Honesty:** a scenario that couldn't be exercised is `not-verified` — never a pass, never silently
|
|
20
|
+
skipped. Anti-hallucination: if the environment can't run the system, say so and list what a human must
|
|
21
|
+
check by hand.
|
|
22
|
+
- One scenario at a time; never batch questions ("did 1–6 all work?" is not acceptance).
|
|
23
|
+
|
|
24
|
+
## Input
|
|
25
|
+
|
|
26
|
+
A REQ id (`/po-verify REQ-104`), normally `status: in_progress` with its handoff task(s) done (PR merged
|
|
27
|
+
or the delivery reachable on a test environment). Not done yet? Say what is missing (task state, PR) and
|
|
28
|
+
stop — acceptance of unfinished work teaches the team to ignore acceptance.
|
|
29
|
+
|
|
30
|
+
## Procedure
|
|
31
|
+
|
|
32
|
+
### 1. Derive the scenarios — one per AC, mechanically
|
|
33
|
+
|
|
34
|
+
For each `AC-<req>.<n>`, in order, translate the EARS structure into a scenario:
|
|
35
|
+
|
|
36
|
+
| EARS element | Scenario element |
|
|
37
|
+
|---|---|
|
|
38
|
+
| While/Enquanto \<state\> | **Given** — the state to put the system in first |
|
|
39
|
+
| When/Quando \<trigger\> · If/Se \<error condition\> | **When** — the action or the provoked failure |
|
|
40
|
+
| shall/deve \<response\> | **Then observe** — the outcome the PO must see |
|
|
41
|
+
|
|
42
|
+
Ubiquitous criteria (no trigger) become an inspection scenario ("open X, observe Y"). The `(no failure
|
|
43
|
+
mode: …)` marker changes nothing here — the criterion still gets its scenario.
|
|
44
|
+
|
|
45
|
+
### 2. Walk the PO through each scenario
|
|
46
|
+
|
|
47
|
+
Present the scenario in business language, execute or guide the steps, then ask for the verdict:
|
|
48
|
+
**pass** (PO saw the response) / **fail** (saw something else — capture what, verbatim) /
|
|
49
|
+
**not-verified** (couldn't be exercised — capture why). Record evidence per scenario (what was done,
|
|
50
|
+
what was observed).
|
|
51
|
+
|
|
52
|
+
### 3. Record — one `req.event` per AC + the outcome
|
|
53
|
+
|
|
54
|
+
Record with the deterministic verb (rung 1, PIPELINE.md §7.3) — one per AC verdict, then the terminal
|
|
55
|
+
event; the verb validates the payload strictly and performs the §7.2 status transition itself:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
invi req event REQ-104 --event ac_result --ac AC-104.2 --verdict pass|fail|not-verified
|
|
59
|
+
invi req event REQ-104 --event delivered --criteria-ok 6/6 # only when ALL ACs passed
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
CLI unavailable → append via `@invictus-group-ai/core.appendEvent` — same pattern as the fixture-tested
|
|
63
|
+
gate-event snippet (PIPELINE.md §4 rung 2), payload contract in §7.3 — update the front-matter `status:`
|
|
64
|
+
by hand, and say so. One per AC verdict:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
REQ_EVENT='{"req":"REQ-104","event":"ac_result","ac":"AC-104.2","verdict":"pass"}' \
|
|
68
|
+
node --input-type=module -e '
|
|
69
|
+
import { appendEvent, defaultLogDir, readManifest, hashGitEmail } from "@invictus-group-ai/core";
|
|
70
|
+
import { execFileSync } from "node:child_process";
|
|
71
|
+
const root = process.cwd();
|
|
72
|
+
const m = readManifest(root);
|
|
73
|
+
const email = execFileSync("git", ["config", "user.email"], { cwd: root }).toString().trim();
|
|
74
|
+
const dev = m.devs.find((d) => d.gitEmailHash === hashGitEmail(email)) ?? m.devs[0];
|
|
75
|
+
if (!dev) { console.error("no dev identity in manifest — run invi init first"); process.exit(1); }
|
|
76
|
+
const e = appendEvent(defaultLogDir(root), dev.id, {
|
|
77
|
+
sid: process.env.CLAUDE_SESSION_ID ?? "po-layer",
|
|
78
|
+
type: "req.event",
|
|
79
|
+
data: JSON.parse(process.env.REQ_EVENT),
|
|
80
|
+
});
|
|
81
|
+
console.log(e.h);
|
|
82
|
+
'
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Then the terminal outcome:
|
|
86
|
+
|
|
87
|
+
- **All ACs pass** → `invi req event <id> --event delivered --criteria-ok <n>/<n>` (the verb flips
|
|
88
|
+
`status: delivered`; rung 2: hand-set the front-matter + the
|
|
89
|
+
`{"req":"REQ-104","event":"delivered","criteria_ok":"6/6"}` payload).
|
|
90
|
+
- **Any fail** → status stays `in_progress`; no terminal event (the `ac_result` fails are the record);
|
|
91
|
+
failed ACs go back to the pipeline (a fix task via `/po-handoff`, type `fix`, carrying only the failed
|
|
92
|
+
ACs).
|
|
93
|
+
- **Only not-verified remain** → status stays `in_progress`; report exactly what a human must exercise
|
|
94
|
+
and how.
|
|
95
|
+
|
|
96
|
+
Payloads are metrics, never content — the failure narrative stays in the conversation and the UAT report,
|
|
97
|
+
not in the event log. Degradation ladder per PIPELINE.md §7.3: verb → snippet → journal note
|
|
98
|
+
(`invi journal note -m "req.event req=<id> ac=<ac> verdict=<v>"`) → state plainly that req events
|
|
99
|
+
were NOT logged.
|
|
100
|
+
|
|
101
|
+
### 4. Write the UAT report
|
|
102
|
+
|
|
103
|
+
`.invictus/requirements/uat/<REQ id>.md` (latest run; history lives in the event log): scenario × verdict
|
|
104
|
+
table with evidence, failures with expected-vs-observed, not-verified items with the manual steps. In the
|
|
105
|
+
render language.
|
|
106
|
+
|
|
107
|
+
## Output block
|
|
108
|
+
|
|
109
|
+
End with (grammar: `content/PIPELINE.md` §5; `PO-*` block specs: §7):
|
|
110
|
+
|
|
111
|
+
```INVICTUS-RESULT
|
|
112
|
+
BLOCK: PO-VERIFY
|
|
113
|
+
REQ: <REQ id>
|
|
114
|
+
CRITERIA_OK: <n>/<total>
|
|
115
|
+
AC_RESULTS: <map ac-104.1=pass ac-104.2=fail ac-104.3=not-verified>
|
|
116
|
+
VERDICT: ACCEPTED | REJECTED | PARTIAL
|
|
117
|
+
STATUS: delivered | in_progress
|
|
118
|
+
REPORT: .invictus/requirements/uat/<REQ id>.md
|
|
119
|
+
EVENTS_LOGGED: <n or none (<reason>)>
|
|
120
|
+
NEXT: <one line — ACCEPTED: nothing pending; REJECTED: fix handoff for the failed ACs; PARTIAL: the manual checks>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
(`ACCEPTED` = all pass · `REJECTED` = at least one fail · `PARTIAL` = no fail, but not-verified items
|
|
124
|
+
remain.)
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# REQ-TEMPLATE — requirement file format
|
|
2
|
+
|
|
3
|
+
Canonical format for the files under `.invictus/requirements/REQ-###.md` (client repo). Written by
|
|
4
|
+
`po-spec`, checked by `po-lint`, consumed by `po-handoff`/`po-verify`/`po-status`. Lifecycle, event
|
|
5
|
+
contract, and how REQ IDs flow into commit trailers: `content/PIPELINE.md` §7.
|
|
6
|
+
|
|
7
|
+
Design synthesis (EARS + Kiro requirements.md + spec-kit constitution): constrained syntax, one behavior
|
|
8
|
+
per criterion, explicit failure paths, stable IDs for traceability — the properties that make requirements
|
|
9
|
+
executable by LLM pipelines and mechanically lintable.
|
|
10
|
+
|
|
11
|
+
<!-- TODO(phase-5): `invi init` installs this template to `.invictus/templates/requirements/` and
|
|
12
|
+
creates `.invictus/requirements/` — until then po-spec carries the compact skeleton inline. -->
|
|
13
|
+
|
|
14
|
+
## IDs
|
|
15
|
+
|
|
16
|
+
- **Requirement ID**: `REQ-<number>` — zero-padded to 3 digits (`REQ-001`…`REQ-999`, then unpadded growth:
|
|
17
|
+
`REQ-1000`). Assigned by `po-spec` as max existing + 1. Never reused, never renumbered — the trailer
|
|
18
|
+
encoder extracts `REQ-\d+` from commit messages, so a renumbered REQ orphans its history.
|
|
19
|
+
- **Acceptance-criterion ID**: `AC-<req number>.<n>` (e.g. `AC-104.1`), sequential within the REQ. Never
|
|
20
|
+
renumbered after `approved`; a dropped criterion keeps its number and is marked `(withdrawn: <reason>)` —
|
|
21
|
+
`req.event` entries reference AC IDs and must stay resolvable.
|
|
22
|
+
- The file name equals the `id` (`REQ-104.md`).
|
|
23
|
+
|
|
24
|
+
## Front-matter fields
|
|
25
|
+
|
|
26
|
+
All keys and enum values EN (machine artifacts). Values that are prose (owner, non_goals) may be in the
|
|
27
|
+
client's language.
|
|
28
|
+
|
|
29
|
+
| Field | Type | Rule |
|
|
30
|
+
|---|---|---|
|
|
31
|
+
| `id` | string | `REQ-<number>`, equals the file name |
|
|
32
|
+
| `status` | enum | `draft \| approved \| in_progress \| delivered` — transitions ONLY per the PIPELINE.md §7 lifecycle table (approval is always a human decision) |
|
|
33
|
+
| `owner` | string | The PO accountable for this requirement. Stays in this file (business content); NEVER copied into event payloads or trailers (LGPD: telemetry is pseudonymous-only) |
|
|
34
|
+
| `epic` | string | Grouping slug, or `-` |
|
|
35
|
+
| `priority` | enum | `critical \| high \| medium \| low` |
|
|
36
|
+
| `created` | date | `YYYY-MM-DD` |
|
|
37
|
+
| `non_goals` | string[] | One-line machine-checkable exclusions ("does NOT change the checkout flow") — the short list; prose lives in the Out of scope section |
|
|
38
|
+
|
|
39
|
+
## EARS acceptance criteria
|
|
40
|
+
|
|
41
|
+
Every criterion is a single EARS sentence. **Criteria may be written in EN or pt-BR** (don't mix languages
|
|
42
|
+
within one REQ) — the structure is what's mandatory, and the keywords map 1:1:
|
|
43
|
+
|
|
44
|
+
| Pattern | EN template | pt-BR template |
|
|
45
|
+
|---|---|---|
|
|
46
|
+
| Ubiquitous | The \<system\> shall \<response\> | O \<sistema\> deve \<resposta\> |
|
|
47
|
+
| Event-driven | **When** \<trigger\>, the \<system\> shall \<response\> | **Quando** \<gatilho\>, o \<sistema\> deve \<resposta\> |
|
|
48
|
+
| State-driven | **While** \<state\>, the \<system\> shall \<response\> | **Enquanto** \<estado\>, o \<sistema\> deve \<resposta\> |
|
|
49
|
+
| Unwanted behavior | **If** \<error condition\>, **then** the \<system\> shall \<response\> | **Se** \<condição de erro\>, **então** o \<sistema\> deve \<resposta\> |
|
|
50
|
+
| Optional feature | **Where** \<feature is present\>, the \<system\> shall \<response\> | **Onde** \<recurso presente\>, o \<sistema\> deve \<resposta\> |
|
|
51
|
+
| Complex | **While** \<state\>, **when** \<trigger\>, the \<system\> shall \<response\> | **Enquanto** \<estado\>, **quando** \<gatilho\>, o \<sistema\> deve \<resposta\> |
|
|
52
|
+
|
|
53
|
+
Rules (each one mechanically enforced by `po-lint`):
|
|
54
|
+
|
|
55
|
+
1. **One behavior per criterion.** A response joined by "and"/"e" that describes two distinct behaviors is
|
|
56
|
+
two criteria. Compound *conditions* are fine (Complex pattern); compound *responses* are not.
|
|
57
|
+
2. **Every event-driven criterion has an unwanted-behavior twin.** Each When/Quando must be paired with at
|
|
58
|
+
least one If…Then/Se…Então covering the failure path of the same trigger. A criterion with genuinely no
|
|
59
|
+
failure mode carries the explicit marker `(no failure mode: <one-line reason>)` instead.
|
|
60
|
+
3. **Thresholds, not adverbs.** "fast", "friendly", "robust" (and "rápido", "amigável", "robusto"…) are
|
|
61
|
+
banned unless the same criterion states the measurable threshold — write the threshold instead
|
|
62
|
+
("responds within 2 s for 95% of requests").
|
|
63
|
+
4. **Testable.** Each criterion must convert 1:1 into a UAT scenario: When X → observe Y. If nothing
|
|
64
|
+
observable would differ, the criterion is decoration, not a requirement.
|
|
65
|
+
5. **Terms resolve.** Domain terms used in criteria are defined in the project constitution's Glossary
|
|
66
|
+
(`.invictus/requirements/constitution.md`) or in this file's user story — never left to interpretation.
|
|
67
|
+
6. **Constitution constraints are not repeated here.** They bind every REQ implicitly; restating them
|
|
68
|
+
drifts. A REQ that *conflicts* with the constitution cannot be approved.
|
|
69
|
+
|
|
70
|
+
## File skeleton
|
|
71
|
+
|
|
72
|
+
```markdown
|
|
73
|
+
---
|
|
74
|
+
id: REQ-104
|
|
75
|
+
status: draft
|
|
76
|
+
owner: "<PO name or role>"
|
|
77
|
+
epic: <epic-slug or ->
|
|
78
|
+
priority: high
|
|
79
|
+
created: 2026-07-10
|
|
80
|
+
non_goals:
|
|
81
|
+
- "<one-line exclusion>"
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
# REQ-104 — <requirement title>
|
|
85
|
+
|
|
86
|
+
## User story
|
|
87
|
+
|
|
88
|
+
As a <role>, I want <capability>, so that <business outcome>.
|
|
89
|
+
|
|
90
|
+
## Acceptance criteria (EARS)
|
|
91
|
+
|
|
92
|
+
- **AC-104.1** — When <trigger>, the <system> shall <response>.
|
|
93
|
+
- **AC-104.2** — If <error condition for AC-104.1's trigger>, then the <system> shall <response>.
|
|
94
|
+
- **AC-104.3** — While <state>, the <system> shall <response>. (no failure mode: <reason>)
|
|
95
|
+
|
|
96
|
+
## Out of scope
|
|
97
|
+
|
|
98
|
+
- <explicitly not part of this requirement — and where it lives instead, if known>
|
|
99
|
+
|
|
100
|
+
## Open questions
|
|
101
|
+
|
|
102
|
+
- [ ] <question> — <who answers> — <needed by>
|
|
103
|
+
|
|
104
|
+
## References
|
|
105
|
+
|
|
106
|
+
- Constitution: `.invictus/requirements/constitution.md` (binding, not restated here)
|
|
107
|
+
- Brief: <.invictus/requirements/briefs/… or ->
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Open questions must be empty (all checked off or moved into criteria/non-goals) before `status: approved`.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# constitution-TEMPLATE — standing project constraints
|
|
2
|
+
|
|
3
|
+
Rendered to `.invictus/requirements/constitution.md` at init (spec-kit-style "constitution"): the
|
|
4
|
+
constraints the PO never repeats per requirement. Every REQ is implicitly bound by every article here —
|
|
5
|
+
`po-spec` links it instead of restating it, `po-lint` fails a REQ that conflicts with it, and the dev
|
|
6
|
+
pipeline already enforces Article I through the manifest (`project.catastrophicRisk` → risk criterion in
|
|
7
|
+
`invi-task`, first BLOCKER in `invi-security`/`invi-review`, mandatory case in `invi-qa`).
|
|
8
|
+
|
|
9
|
+
Template variables use the agent-pack `{{VARIABLE}}` convention; `{{CATASTROPHIC_RISK}}` is seeded from
|
|
10
|
+
the init interview (the same answer that lands in `manifest.project.catastrophicRisk`).
|
|
11
|
+
|
|
12
|
+
<!-- TODO(phase-5): `invi init` renders this file to `.invictus/requirements/constitution.md`,
|
|
13
|
+
substituting {{CATASTROPHIC_RISK}} and {{PROJECT_NAME}}; until then po-spec creates it from this
|
|
14
|
+
template on first use, filling the risk from the manifest. -->
|
|
15
|
+
|
|
16
|
+
## Rendered file skeleton
|
|
17
|
+
|
|
18
|
+
```markdown
|
|
19
|
+
# Constitution — {{PROJECT_NAME}}
|
|
20
|
+
|
|
21
|
+
Standing constraints for every requirement in this project. Amendments are explicit PO decisions,
|
|
22
|
+
recorded as `decision` events in the event log — never silent edits. A requirement that conflicts with
|
|
23
|
+
an article cannot be approved; change the article first (with the decision logged) or change the
|
|
24
|
+
requirement.
|
|
25
|
+
|
|
26
|
+
## Article I — Catastrophic risk
|
|
27
|
+
|
|
28
|
+
The project's #1 named failure class:
|
|
29
|
+
|
|
30
|
+
> {{CATASTROPHIC_RISK}}
|
|
31
|
+
|
|
32
|
+
Every requirement whose behavior could plausibly touch this risk MUST carry at least one
|
|
33
|
+
unwanted-behavior criterion (If…Then / Se…Então) exercising it. The dev pipeline enforces the same rule
|
|
34
|
+
downstream (risk criterion in the task, first BLOCKER in the security/review gates, mandatory QA case).
|
|
35
|
+
|
|
36
|
+
## Article II — Compliance and data
|
|
37
|
+
|
|
38
|
+
<!-- What the business/law fixes: LGPD handling, retention, consent, audit trails, regulated flows.
|
|
39
|
+
One bullet per constraint, each testable. Example:
|
|
40
|
+
- Personal data of end users never leaves the platform's own database; exports are aggregate-only. -->
|
|
41
|
+
|
|
42
|
+
## Article III — Technical constraints
|
|
43
|
+
|
|
44
|
+
<!-- Non-negotiable platform facts requirements must respect: integrations that cannot change, offline
|
|
45
|
+
requirements, supported browsers/devices, hard performance floors. No version pins — versions live
|
|
46
|
+
in the auto-generated PROJECT FACTS, not in prose. -->
|
|
47
|
+
|
|
48
|
+
## Article IV — Quality bar
|
|
49
|
+
|
|
50
|
+
<!-- What "done" always includes beyond the ACs. Default: the Invictus pipeline gates (security, tests,
|
|
51
|
+
review, QA) pass; merge is always human. Add project-specific bars (e.g. accessibility level,
|
|
52
|
+
load thresholds) as testable bullets. -->
|
|
53
|
+
|
|
54
|
+
## Article V — Standing business rules
|
|
55
|
+
|
|
56
|
+
<!-- Rules true across all features, so POs stop repeating them. Example:
|
|
57
|
+
- Prices always include taxes when shown to end customers.
|
|
58
|
+
- Every destructive action is reversible for 30 days or requires double confirmation. -->
|
|
59
|
+
|
|
60
|
+
## Glossary
|
|
61
|
+
|
|
62
|
+
<!-- The ubiquitous language. po-lint resolves domain terms used in acceptance criteria against this
|
|
63
|
+
list; an undefined term is a lint finding. One term per line: -->
|
|
64
|
+
|
|
65
|
+
| Term | Definition |
|
|
66
|
+
|---|---|
|
|
67
|
+
| <term> | <one-line, unambiguous definition> |
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Rules for maintaining the rendered constitution
|
|
71
|
+
|
|
72
|
+
- **Seeded at init with the catastrophic risk** (Article I) — the one article that is never empty.
|
|
73
|
+
- Keep articles short and testable; a constraint nobody can check is a wish, not a constitution.
|
|
74
|
+
- Amendments: PO decides, the change is committed, and a `decision` event records what changed and why
|
|
75
|
+
the alternative lost (`invi journal decision`). History lives in git + the event log, not in the file.
|
|
76
|
+
- The glossary grows through `po-spec` (new terms proposed during spec writing, added with PO consent) —
|
|
77
|
+
it is the anchor for `po-lint`'s undefined-term check.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pristine-baseline store for `invi update`'s three-way merge
|
|
3
|
+
* (ARCHITECTURE §3: merge keyed on the recorded sha256 — the recorded hash
|
|
4
|
+
* IDENTIFIES the base; this store holds the base CONTENT).
|
|
5
|
+
*
|
|
6
|
+
* `.invictus/baseline/<repo-relative-path>` mirrors every merge-managed file
|
|
7
|
+
* exactly as the kit wrote it (fragments, skill SKILL.md files,
|
|
8
|
+
* TRANSPARENCY.md, .githooks/*). It is committed with the repo so any
|
|
9
|
+
* machine can run `invi update`. Installs made before this store existed
|
|
10
|
+
* fall back to a `.new` sidecar when a client-edited file must be updated
|
|
11
|
+
* (update bootstraps the baseline for unchanged files on its first run).
|
|
12
|
+
*/
|
|
13
|
+
export declare const BASELINE_DIR_REL = ".invictus/baseline";
|
|
14
|
+
/** Absolute baseline path mirroring a repo-relative file path. */
|
|
15
|
+
export declare function baselinePath(root: string, relPath: string): string;
|
|
16
|
+
/** The pristine content recorded for a file, or null when never snapshotted. */
|
|
17
|
+
export declare function readBaseline(root: string, relPath: string): string | null;
|
|
18
|
+
export declare function writeBaseline(root: string, relPath: string, content: string): void;
|
|
19
|
+
/** One-time explainer inside the baseline dir (name never collides with a mirrored path the kit manages). */
|
|
20
|
+
export declare function ensureBaselineReadme(root: string): void;
|
|
21
|
+
//# sourceMappingURL=baseline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseline.d.ts","sourceRoot":"","sources":["../src/baseline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD,kEAAkE;AAClE,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEzE;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAElF;AAID,6GAA6G;AAC7G,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAevD"}
|
package/dist/baseline.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pristine-baseline store for `invi update`'s three-way merge
|
|
3
|
+
* (ARCHITECTURE §3: merge keyed on the recorded sha256 — the recorded hash
|
|
4
|
+
* IDENTIFIES the base; this store holds the base CONTENT).
|
|
5
|
+
*
|
|
6
|
+
* `.invictus/baseline/<repo-relative-path>` mirrors every merge-managed file
|
|
7
|
+
* exactly as the kit wrote it (fragments, skill SKILL.md files,
|
|
8
|
+
* TRANSPARENCY.md, .githooks/*). It is committed with the repo so any
|
|
9
|
+
* machine can run `invi update`. Installs made before this store existed
|
|
10
|
+
* fall back to a `.new` sidecar when a client-edited file must be updated
|
|
11
|
+
* (update bootstraps the baseline for unchanged files on its first run).
|
|
12
|
+
*/
|
|
13
|
+
import { join } from 'node:path';
|
|
14
|
+
import { isFile, readTextFile, writeFileEnsuring } from './util/fsx.js';
|
|
15
|
+
export const BASELINE_DIR_REL = '.invictus/baseline';
|
|
16
|
+
/** Absolute baseline path mirroring a repo-relative file path. */
|
|
17
|
+
export function baselinePath(root, relPath) {
|
|
18
|
+
return join(root, '.invictus', 'baseline', relPath);
|
|
19
|
+
}
|
|
20
|
+
/** The pristine content recorded for a file, or null when never snapshotted. */
|
|
21
|
+
export function readBaseline(root, relPath) {
|
|
22
|
+
return readTextFile(baselinePath(root, relPath));
|
|
23
|
+
}
|
|
24
|
+
export function writeBaseline(root, relPath, content) {
|
|
25
|
+
writeFileEnsuring(baselinePath(root, relPath), content);
|
|
26
|
+
}
|
|
27
|
+
const README_REL = 'BASELINE-README.md';
|
|
28
|
+
/** One-time explainer inside the baseline dir (name never collides with a mirrored path the kit manages). */
|
|
29
|
+
export function ensureBaselineReadme(root) {
|
|
30
|
+
const path = baselinePath(root, README_REL);
|
|
31
|
+
if (isFile(path))
|
|
32
|
+
return;
|
|
33
|
+
writeFileEnsuring(path, `# Invictus baseline store
|
|
34
|
+
|
|
35
|
+
Pristine copies of every kit-installed file, exactly as \`invi init\` /
|
|
36
|
+
\`invi update\` wrote them. \`invi update\` uses these as the BASE of
|
|
37
|
+
its three-way merge (yours = your edited file, theirs = the new kit version).
|
|
38
|
+
|
|
39
|
+
Do not edit or delete files here — without a baseline, updating a file you
|
|
40
|
+
edited falls back to a \`.new\` sidecar you must merge by hand.
|
|
41
|
+
`);
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=baseline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseline.js","sourceRoot":"","sources":["../src/baseline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAExE,MAAM,CAAC,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAErD,kEAAkE;AAClE,MAAM,UAAU,YAAY,CAAC,IAAY,EAAE,OAAe;IACxD,OAAO,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,YAAY,CAAC,IAAY,EAAE,OAAe;IACxD,OAAO,YAAY,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAY,EAAE,OAAe,EAAE,OAAe;IAC1E,iBAAiB,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,GAAG,oBAAoB,CAAC;AAExC,6GAA6G;AAC7G,MAAM,UAAU,oBAAoB,CAAC,IAAY;IAC/C,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC5C,IAAI,MAAM,CAAC,IAAI,CAAC;QAAE,OAAO;IACzB,iBAAiB,CACf,IAAI,EACJ;;;;;;;;CAQH,CACE,CAAC;AACJ,CAAC"}
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `invi` CLI — commander wiring (ARCHITECTURE §8).
|
|
3
|
+
* Every command supports `--json` (machine output on stdout, human lines off).
|
|
4
|
+
* Deterministic task/gate verbs (`task create|state|list|show`, `gate`) own
|
|
5
|
+
* `.invictus/tasks/` and the PIPELINE.md §3 state machine; `map` owns the
|
|
6
|
+
* deterministic half of the codebase-map system (the /invi-map skill writes
|
|
7
|
+
* the documents, `map` validates them and re-renders the agents). The
|
|
8
|
+
* orchestration verbs (PIPELINE.md §8) are the deterministic scaffolding
|
|
9
|
+
* around the pipeline skills: `req` (REQ lifecycle, §7), `plan` (scaffold +
|
|
10
|
+
* lint), `run` (auto-sizing router), `verify` (gap detection), `review`
|
|
11
|
+
* (context assembler), `ship` (pre-PR gatekeeper). Judgment stays in the
|
|
12
|
+
* skills; these verbs never write prose into the event log.
|
|
13
|
+
*/
|
|
14
|
+
export declare function main(argv: string[]): Promise<void>;
|
|
15
|
+
//# sourceMappingURL=cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AA4CH,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAoYxD"}
|