@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,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: stack/data-pipeline-airflow
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
lang: en
|
|
5
|
+
summary: "Airflow pipeline discipline: DAGs orchestrate only, idempotent atomic tasks, paths-not-data through XCom, connections from env/secrets backend."
|
|
6
|
+
source: "ai-ml/08-data-pipeline-airflow.md"
|
|
7
|
+
detect:
|
|
8
|
+
deps: { "apache-airflow": "*" }
|
|
9
|
+
files: ["dags/**"]
|
|
10
|
+
score: 10
|
|
11
|
+
requires: []
|
|
12
|
+
conflicts: []
|
|
13
|
+
tokens: 829
|
|
14
|
+
migrated: true
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Data Pipeline (Apache Airflow)
|
|
18
|
+
|
|
19
|
+
Rules-only fragment; exemplar DAGs and operations code are evicted to `references/data-pipeline-airflow/` and read on demand.
|
|
20
|
+
|
|
21
|
+
## Architecture rules
|
|
22
|
+
|
|
23
|
+
- DAG files are orchestration only: no data-processing logic inline; tasks delegate to functions/operators under `dags/utils/` or plugins. Heavy imports live INSIDE task bodies — DAG files are parsed continuously by the scheduler.
|
|
24
|
+
- Every task is atomic and idempotent: it can fail, retry, and re-run without double effects. Warehouse loads go through a staging table with a transactional swap.
|
|
25
|
+
- XCom carries paths, ids, and small stats only — never dataframes, file contents, or connections. Tasks write data to object storage/DB and pass the key.
|
|
26
|
+
- Task code uses the run's logical date, not the wall clock, so backfills produce correct partitions.
|
|
27
|
+
- Connections and secrets come from `AIRFLOW_CONN_*` env vars or a secrets backend — never hardcoded in DAG files, and `Variable.get` never runs at module level (it hits the metadata DB on every parse loop).
|
|
28
|
+
- `catchup=False` is the default; enable it only when historical backfill is intended, and set `max_active_runs=1` when runs must not overlap.
|
|
29
|
+
- Retries with exponential backoff in `default_args`; failure alerts via callbacks that notify and never raise. Lateness alerting (deadline/SLA mechanisms) notifies without failing the DAG.
|
|
30
|
+
- Fan-out uses dynamic task mapping (`.expand`) instead of branch spaghetti.
|
|
31
|
+
- Data quality checks are their own task between extract and load; critical failures fail the task and stop the pipeline.
|
|
32
|
+
|
|
33
|
+
## Trigger → action
|
|
34
|
+
|
|
35
|
+
| Trigger | Action |
|
|
36
|
+
|---------|--------|
|
|
37
|
+
| New pipeline | TaskFlow DAG: extract → quality check → transform → load, linear and explicit |
|
|
38
|
+
| N similar targets | dynamic task mapping over the list |
|
|
39
|
+
| New credential | Airflow Connection via env var or secrets backend |
|
|
40
|
+
| Task too big | split until each piece is independently retryable |
|
|
41
|
+
| Alerting | failure callback (notify, swallow its own errors) + lateness alerts separate from failures |
|
|
42
|
+
| Backfill | deliberate: `catchup=True` + logical-date-driven task logic |
|
|
43
|
+
|
|
44
|
+
## Quality gates (before any PR)
|
|
45
|
+
|
|
46
|
+
- DagBag test proves every DAG imports with zero errors and has the expected shape (task count, schedule, catchup).
|
|
47
|
+
- Task functions unit-tested as plain Python with fakes; `dag.test()` for local integration.
|
|
48
|
+
- No XCom payload beyond small strings/dicts; no secrets or connection strings in DAG code.
|
|
49
|
+
- Retries, owner, and alerting configured in `default_args` for every production DAG.
|
|
50
|
+
- Loads verified idempotent: re-running a completed run does not duplicate data.
|
|
51
|
+
|
|
52
|
+
## Forbidden
|
|
53
|
+
|
|
54
|
+
- NEVER pass dataframes or file contents through XCom.
|
|
55
|
+
- NEVER hardcode credentials or connection URIs in DAG files.
|
|
56
|
+
- NEVER put heavy imports or DB/Variable reads at DAG-file module level.
|
|
57
|
+
- NEVER enable `catchup` casually — accidental backfills hammer sources.
|
|
58
|
+
- NEVER write non-idempotent tasks (blind INSERTs, appends without dedup).
|
|
59
|
+
- NEVER let alerting code raise — a broken webhook must not fail the pipeline.
|
|
60
|
+
|
|
61
|
+
## References (read on demand)
|
|
62
|
+
|
|
63
|
+
- `references/data-pipeline-airflow/dag-patterns.md` — TaskFlow ETL DAG, dynamic mapping, XCom discipline.
|
|
64
|
+
- `references/data-pipeline-airflow/operations.md` — env-var connections, secrets backend, alert callbacks, DagBag tests.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: stack/delphi-object-pascal
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
lang: en
|
|
5
|
+
summary: "Delphi/Object Pascal desktop discipline: rules out of forms, characterization tests before touching legacy, explicit memory ownership, parameterized SQL, UI only from the main thread."
|
|
6
|
+
detect:
|
|
7
|
+
deps: {}
|
|
8
|
+
files: ["**/*.dproj", "**/*.dpr", "**/*.lpi", "**/*.lpr", "**/*.groupproj"]
|
|
9
|
+
score: 10
|
|
10
|
+
requires: []
|
|
11
|
+
conflicts: []
|
|
12
|
+
tokens: 883
|
|
13
|
+
migrated: true
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Delphi / Object Pascal (desktop: VCL, FireMonkey, Lazarus)
|
|
17
|
+
|
|
18
|
+
Rules-only fragment; exemplar code is evicted to `references/delphi-object-pascal/` and read on demand. Assume a long-lived codebase unless the repo proves otherwise: rules inside forms, global units, no test project.
|
|
19
|
+
|
|
20
|
+
## Architecture rules
|
|
21
|
+
|
|
22
|
+
- Business rules live in units that do not use the UI units (`Vcl.Forms`, `FMX.Forms`, `Forms`): a rule unit must compile in a console test project. Forms and data modules orchestrate; they never decide.
|
|
23
|
+
- Event handlers stay thin — read input, call a service unit, render the result. SQL, money arithmetic, or policy branching inside an `OnClick` is a review blocker.
|
|
24
|
+
- Legacy changes by extraction, never by rewrite: new unit beside the form, one rule moved at a time, behavior identical, form calls the unit.
|
|
25
|
+
- Behavior change in untested code starts with a characterization test (DUnitX; FPCUnit on Lazarus) pinning the CURRENT behavior, including the parts that look wrong. Fixing what it exposes is a separate commit.
|
|
26
|
+
- Memory ownership is explicit: hand-created objects freed in `try..finally`; owned components freed by their owner; interface-typed references are reference-counted and never freed by hand. The two styles never mix on one type.
|
|
27
|
+
- Data access goes through the data layer with parameterized queries (`ParamByName`), explicit transactions, and rollback then re-raise on exception. Connections never live on a screen the user can close mid-transaction.
|
|
28
|
+
- Background work runs on a thread; UI controls are touched only from the main thread via `Synchronize`/`Queue` — a worker never even reads a control's property.
|
|
29
|
+
- A third-party component package is an install step on every machine and on the build server: never add one without human approval.
|
|
30
|
+
- Mirror the neighboring units' naming exactly.
|
|
31
|
+
|
|
32
|
+
## Trigger → action
|
|
33
|
+
|
|
34
|
+
| Trigger | Action |
|
|
35
|
+
|---------|--------|
|
|
36
|
+
| New business rule | UI-free unit + test; the form calls it |
|
|
37
|
+
| New screen | thin form → service unit → data layer |
|
|
38
|
+
| Change to an untested legacy form | characterization test → extract the rule → call it |
|
|
39
|
+
| Data access | parameterized query, explicit transaction, rollback + re-raise |
|
|
40
|
+
| Long-running work | thread; `Synchronize`/`Queue` only to update the UI |
|
|
41
|
+
| Visual change | edit in the IDE; commit the `.dfm`/`.lfm` with its `.pas` |
|
|
42
|
+
|
|
43
|
+
## Quality gates (before any PR)
|
|
44
|
+
|
|
45
|
+
- Compiles with no NEW warnings or hints (commands come from PROJECT FACTS: `msbuild`, `dcc32`, `lazbuild`).
|
|
46
|
+
- Tests pass; every extracted rule has one, and the characterization test still passes after the change.
|
|
47
|
+
- A changed `.dfm`/`.lfm` ships with its `.pas`, reviewed as a diff — never a wholesale IDE reformat.
|
|
48
|
+
- No build artifacts in the diff (`.dcu`, `.ppu`, `.exe`, `__history/`, `Win32/`, `.identcache`, `.dsk`).
|
|
49
|
+
|
|
50
|
+
## Forbidden
|
|
51
|
+
|
|
52
|
+
- NEVER put business rules, SQL, or money arithmetic in an event handler.
|
|
53
|
+
- NEVER rewrite a form or unit wholesale to "clean it up".
|
|
54
|
+
- NEVER change untested behavior without a characterization test first.
|
|
55
|
+
- NEVER use `with`, and never write an empty `except` block.
|
|
56
|
+
- NEVER touch VCL/FMX controls from a background thread.
|
|
57
|
+
- NEVER concatenate values into SQL — parameters only.
|
|
58
|
+
- NEVER free an interface-typed reference by hand, or own one object twice.
|
|
59
|
+
- NEVER commit build artifacts or IDE-local files.
|
|
60
|
+
|
|
61
|
+
## References (read on demand)
|
|
62
|
+
|
|
63
|
+
- `references/delphi-object-pascal/legacy-extraction.md` — characterization test, rule extraction out of a form, parameterized data access with a transaction, threaded work updating the UI.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: stack/django-drf-celery
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
lang: en
|
|
5
|
+
summary: "Django REST + Celery discipline: ViewSet→serializer→service layering, format-only serializer validation, idempotent JSON-serialized tasks."
|
|
6
|
+
source: "backend/03-django-drf-celery.md"
|
|
7
|
+
detect:
|
|
8
|
+
deps: { "django": "*", "celery": "*" }
|
|
9
|
+
files: ["manage.py"]
|
|
10
|
+
score: 10
|
|
11
|
+
requires: []
|
|
12
|
+
conflicts: []
|
|
13
|
+
tokens: 735
|
|
14
|
+
migrated: true
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Django REST API + Celery
|
|
18
|
+
|
|
19
|
+
Rules-only fragment; exemplar code is evicted to `references/django-drf-celery/` and read on demand.
|
|
20
|
+
|
|
21
|
+
## Architecture rules
|
|
22
|
+
|
|
23
|
+
- Strict layering: ViewSet → serializer → service → model. ViewSets never query the DB directly; querysets and business logic come from `services.py` (or manager methods).
|
|
24
|
+
- Serializer `validate_*` methods check format/consistency only — no DB queries, no business rules, no logic in `create()`/`update()`.
|
|
25
|
+
- Each app owns `models.py`, `serializers.py`, `views.py`, `urls.py`, `permissions.py`, `tasks.py`, `services.py`, `filters.py`, plus a `tests/` package with factories.
|
|
26
|
+
- Settings are split (base/dev/prod/test) and production is env-driven; every model change ships with a migration.
|
|
27
|
+
- Celery tasks are thin, idempotent wrappers: they receive IDs (never model instances), call a service, and own only retry logic. JSON serializer always; `acks_late` + re-queue on worker loss for tasks touching external services; exponential backoff on retries.
|
|
28
|
+
- Sensitive serializer fields (`password`, tokens) are `write_only=True`.
|
|
29
|
+
- Critical business logic never hides in Django signals — call services explicitly.
|
|
30
|
+
|
|
31
|
+
## Trigger → action
|
|
32
|
+
|
|
33
|
+
| Trigger | Action |
|
|
34
|
+
|---------|--------|
|
|
35
|
+
| New endpoint | serializer → service method → ViewSet action → router registration |
|
|
36
|
+
| Custom rule per object | DRF permission class — not inline `if` checks in actions |
|
|
37
|
+
| Background work | Celery task with `bind=True`, bounded retries, idempotency check first |
|
|
38
|
+
| Different input/output shapes | per-action serializer via `get_serializer_class` |
|
|
39
|
+
| List filtering | FilterSet class — not hand-parsed query params |
|
|
40
|
+
| N+1 risk | `select_related`/`prefetch_related` in the service-provided queryset |
|
|
41
|
+
|
|
42
|
+
## Quality gates (before any PR)
|
|
43
|
+
|
|
44
|
+
- Lint/format and tests pass; coverage on new service and view code meets the project bar (exact commands come from PROJECT FACTS).
|
|
45
|
+
- Migration check clean — no model change without its migration.
|
|
46
|
+
- Every new Celery task has a test running in eager mode (test settings only).
|
|
47
|
+
- No direct `Model.objects` usage inside ViewSets; validation errors raised via `is_valid(raise_exception=True)`.
|
|
48
|
+
- Queries reviewed for N+1 on list endpoints.
|
|
49
|
+
|
|
50
|
+
## Forbidden
|
|
51
|
+
|
|
52
|
+
- NEVER use pickle as the Celery serializer — JSON only.
|
|
53
|
+
- NEVER pass model instances to tasks — IDs only.
|
|
54
|
+
- NEVER swallow task exceptions with bare `except: pass` — log and re-raise or retry.
|
|
55
|
+
- NEVER put business logic in serializers or ViewSets — services own it.
|
|
56
|
+
- NEVER run Celery eager mode in production.
|
|
57
|
+
- NEVER commit `DEBUG=True` or hardcoded secrets in settings.
|
|
58
|
+
- NEVER skip migrations or hide critical logic in signals.
|
|
59
|
+
|
|
60
|
+
## References (read on demand)
|
|
61
|
+
|
|
62
|
+
- `references/django-drf-celery/viewsets-and-serializers.md` — service-backed ViewSet, format-only serializer validation, object-level permission.
|
|
63
|
+
- `references/django-drf-celery/celery-tasks.md` — idempotent task with bounded retries and structured logging.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: stack/docker-compose-dev
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
lang: en
|
|
5
|
+
summary: "Docker Compose dev-environment discipline: base+override file layering, healthcheck-gated startup, named volumes for data, env-driven config, non-root resource-limited prod images."
|
|
6
|
+
source: "devops/04-docker-compose-dev.md"
|
|
7
|
+
detect:
|
|
8
|
+
deps: {}
|
|
9
|
+
files: ["docker-compose.yml", "docker-compose.yaml", "compose.yaml", "compose.yml"]
|
|
10
|
+
score: 6
|
|
11
|
+
requires: []
|
|
12
|
+
conflicts: []
|
|
13
|
+
tokens: 899
|
|
14
|
+
migrated: true
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Docker Compose (multi-service dev environment)
|
|
18
|
+
|
|
19
|
+
Rules-only fragment; exemplar code is evicted to `references/docker-compose-dev/` and read on demand.
|
|
20
|
+
|
|
21
|
+
## Architecture rules
|
|
22
|
+
|
|
23
|
+
- One base `docker-compose.yml` shared by all environments; `docker-compose.override.yml` carries dev-only overrides (auto-loaded); prod/test overrides are applied with explicit `-f` chains, never implicitly.
|
|
24
|
+
- The obsolete top-level `version:` key never appears — files start at `services:`. Use the `docker compose` plugin; the standalone v1 binary is end-of-life.
|
|
25
|
+
- Named volumes for data (database, cache), bind mounts only for source code. Dependency directories (`node_modules`, vendor) are masked with a named volume, never bind-mounted from the host.
|
|
26
|
+
- Every stateful service declares a `healthcheck`; dependents use `depends_on` with `condition: service_healthy` so the app never races the database.
|
|
27
|
+
- Services address each other by service name on a user-defined network — never `localhost` across containers; connection endpoints always come from environment variables, never hardcoded hosts or ports.
|
|
28
|
+
- `.env` is gitignored; `.env.example` is committed with every key present and values redacted.
|
|
29
|
+
- Multi-stage Dockerfile: the dev stage carries dev dependencies, the prod stage installs runtime dependencies only, runs as a non-root user, and declares a `HEALTHCHECK`.
|
|
30
|
+
- The prod override sets resource limits and log rotation — no unbounded containers in any environment.
|
|
31
|
+
- Database/cache host ports are exposed in the dev override only, never in the base file or prod.
|
|
32
|
+
|
|
33
|
+
## Trigger → action
|
|
34
|
+
|
|
35
|
+
| Trigger | Action |
|
|
36
|
+
|---------|--------|
|
|
37
|
+
| New service | base-file entry → healthcheck → env-var wiring → dev override for ports/binds |
|
|
38
|
+
| Dockerfile changed | `docker compose up -d --build` — images never rebuild implicitly |
|
|
39
|
+
| One-off task (migration, seed) | `docker compose run --rm app <cmd>` |
|
|
40
|
+
| Hot reload dead on Windows/WSL2 | enable the watcher's polling env vars in the dev override |
|
|
41
|
+
| Prod deploy | explicit `-f docker-compose.yml -f docker-compose.prod.yml up -d --build` |
|
|
42
|
+
| Environment reset | `docker compose down` keeps volumes; adding `-v` destroys data |
|
|
43
|
+
|
|
44
|
+
## Naming
|
|
45
|
+
|
|
46
|
+
Base `docker-compose.yml` · dev `docker-compose.override.yml` · other environments `docker-compose.<env>.yml` · named volumes `<service>-data` · one user-defined bridge network per app.
|
|
47
|
+
|
|
48
|
+
## Quality gates
|
|
49
|
+
|
|
50
|
+
- `docker compose config` renders cleanly — no warnings, no obsolete keys.
|
|
51
|
+
- A fresh clone boots with `cp .env.example .env && docker compose up` — zero undocumented steps.
|
|
52
|
+
- Healthchecks on every stateful service; startup order enforced via `service_healthy`.
|
|
53
|
+
- Prod image: non-root user, no dev dependencies, resource limits, log rotation.
|
|
54
|
+
- No secrets in compose files, Dockerfiles, or images — environment only.
|
|
55
|
+
|
|
56
|
+
## Forbidden
|
|
57
|
+
|
|
58
|
+
- NEVER commit `.env` — `.env.example` is the committed template.
|
|
59
|
+
- NEVER add the obsolete top-level `version:` key to a compose file.
|
|
60
|
+
- NEVER use `localhost` for container-to-container communication.
|
|
61
|
+
- NEVER bind-mount dependency directories over the container's installed ones.
|
|
62
|
+
- NEVER expose database/cache ports outside the dev override.
|
|
63
|
+
- NEVER run prod containers as root or without resource limits.
|
|
64
|
+
- NEVER run `docker compose down -v` without explicit confirmation — it erases data volumes.
|
|
65
|
+
|
|
66
|
+
## References (read on demand)
|
|
67
|
+
|
|
68
|
+
- `references/docker-compose-dev/compose-files.md` — base file, dev/prod overrides, healthchecks, env interpolation.
|
|
69
|
+
- `references/docker-compose-dev/dockerfile-and-proxy.md` — multi-stage Dockerfile, `.env.example`, reverse-proxy config, everyday commands.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: stack/dotnet-aspnet
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
lang: en
|
|
5
|
+
summary: "ASP.NET Core service discipline: thin controllers, DTO boundaries, composition-root DI, async end to end, explicit authorization on every action."
|
|
6
|
+
detect:
|
|
7
|
+
deps: {}
|
|
8
|
+
files: ["**/*.csproj", "*.sln", "Program.cs"]
|
|
9
|
+
score: 10
|
|
10
|
+
requires: []
|
|
11
|
+
conflicts: []
|
|
12
|
+
tokens: 824
|
|
13
|
+
migrated: true
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# ASP.NET Core (.NET/C#)
|
|
17
|
+
|
|
18
|
+
Rules-only fragment; exemplar code is evicted to `references/dotnet-aspnet/` and read on demand. The `invi-backend-dotnet` agent applies these rules with the project's mapped conventions.
|
|
19
|
+
|
|
20
|
+
## Architecture rules
|
|
21
|
+
|
|
22
|
+
- Thin controllers: routing, model binding/validation, the authorization declaration, and one service call. Business rules live in services; persistence lives behind the repository/ORM layer.
|
|
23
|
+
- Every action carries an explicit authorization attribute or policy per the repo's pattern; anonymous endpoints are declared deliberately, never implied by omission.
|
|
24
|
+
- DTOs at the boundary: entities never serialize across the API surface; mapping is explicit and lives where the repo keeps its mappers.
|
|
25
|
+
- DI via the composition root: constructor injection; interfaces registered exactly where the repo's conventions place them. In layered setups registration order can decide which implementation wins — overrides go where conventions say, never "wherever compiles".
|
|
26
|
+
- One result contract per module: follow the repo's convention (result object vs thrown exception mapped by middleware) — copy the neighbor, never mix both styles.
|
|
27
|
+
- Async end to end on request paths: no `.Result`, `.Wait()`, or `.GetAwaiter().GetResult()`; an incomplete async migration is never made worse.
|
|
28
|
+
- Typed options bound from configuration; tracked `appsettings*.json` carry placeholders only — real values come from env vars or the secret store.
|
|
29
|
+
- Every schema change is a migration file generated by the repo's tooling, reviewed and tested in both directions.
|
|
30
|
+
|
|
31
|
+
## Trigger → action
|
|
32
|
+
|
|
33
|
+
| Trigger | Action |
|
|
34
|
+
|---------|--------|
|
|
35
|
+
| New endpoint | route + verb per repo convention → authorization declaration → DTO validation → one service call |
|
|
36
|
+
| New business rule | service method following the repo's result contract, registered in the composition root |
|
|
37
|
+
| Schema change | generate migration → review it → test update and rollback |
|
|
38
|
+
| New config value | typed options class bound in the composition root — never a bare config read |
|
|
39
|
+
| Slow/external work | hosted service/queued job per repo pattern — never inline in a request |
|
|
40
|
+
| Auth decision | policy/requirement defined once, declared on every action that needs it |
|
|
41
|
+
|
|
42
|
+
## Quality gates (before any PR)
|
|
43
|
+
|
|
44
|
+
- Build and tests pass (exact commands come from PROJECT FACTS).
|
|
45
|
+
- Every new action has an authorization declaration; no entity leaves the API.
|
|
46
|
+
- No blocking calls on async paths; new code is async all the way down.
|
|
47
|
+
- Migrations generated by tooling (snapshots never hand-edited) and tested both ways.
|
|
48
|
+
- Tracked config carries no real secrets; new settings are typed options.
|
|
49
|
+
|
|
50
|
+
## Forbidden
|
|
51
|
+
|
|
52
|
+
- NEVER block on async (`.Result`, `.Wait()`) on request paths.
|
|
53
|
+
- NEVER hand-concatenate SQL — parameterized/typed queries only.
|
|
54
|
+
- NEVER expose ORM entities or internal models through the API.
|
|
55
|
+
- NEVER ship an action without an explicit authorization declaration.
|
|
56
|
+
- NEVER swallow exceptions outside the repo's error-contract middleware.
|
|
57
|
+
- NEVER register services outside the composition-root conventions.
|
|
58
|
+
|
|
59
|
+
## References (read on demand)
|
|
60
|
+
|
|
61
|
+
- `references/dotnet-aspnet/web-layer.md` — thin controller, DTOs, authorization, error contract.
|
|
62
|
+
- `references/dotnet-aspnet/data-and-di.md` — composition root, options pattern, repository and migrations.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: stack/electron-app
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
lang: en
|
|
5
|
+
summary: "Electron process discipline: main/preload/renderer isolation, typed contextBridge API, validated IPC, locked-down window security, guarded navigation, verified packaging."
|
|
6
|
+
source: "frontend/12-electron-app.md"
|
|
7
|
+
detect:
|
|
8
|
+
deps: { "electron": "*" }
|
|
9
|
+
files: []
|
|
10
|
+
score: 10
|
|
11
|
+
requires: []
|
|
12
|
+
conflicts: []
|
|
13
|
+
tokens: 893
|
|
14
|
+
migrated: true
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Electron (main / preload / renderer)
|
|
18
|
+
|
|
19
|
+
Rules-only fragment; exemplar code is evicted to `references/electron-app/` and read on demand.
|
|
20
|
+
|
|
21
|
+
## Architecture rules
|
|
22
|
+
|
|
23
|
+
- Three processes, hard boundaries. Main (`src/main/`, Node) owns windows, filesystem, OS integration, and IPC handlers. Preload (`src/preload/`) is the ONLY bridge: it exposes a minimal typed API via `contextBridge.exposeInMainWorld` and holds zero business logic. Renderer (`src/renderer/`) is a plain web app that reaches native capability only through `window.api`.
|
|
24
|
+
- Main never imports renderer code; the renderer never imports `electron` or Node built-ins; preload exposes narrow functions — never objects like `require`, `process`, `fs`, or raw `ipcRenderer`.
|
|
25
|
+
- Request/response IPC uses `ipcMain.handle` + `ipcRenderer.invoke`. Main→renderer push uses `webContents.send`, wrapped in preload by a subscribe function that returns its own unsubscribe.
|
|
26
|
+
- Every IPC handler validates its inputs — renderer data is untrusted.
|
|
27
|
+
- Main+preload and renderer are separate TypeScript projects with separate build outputs.
|
|
28
|
+
- Native persistence (window bounds, recent files, preferences) lives in the main process behind a typed store — never in renderer `localStorage`.
|
|
29
|
+
|
|
30
|
+
## Critical security rules
|
|
31
|
+
|
|
32
|
+
- Every `BrowserWindow`: `contextIsolation: true`, `nodeIntegration: false`, `sandbox: true`, `webSecurity: true`, `allowRunningInsecureContent: false`.
|
|
33
|
+
- Block `will-navigate` to any non-allowlisted origin; `setWindowOpenHandler` denies new windows and routes external links through `shell.openExternal`.
|
|
34
|
+
|
|
35
|
+
## Trigger → action
|
|
36
|
+
|
|
37
|
+
| Trigger | Action |
|
|
38
|
+
|---------|--------|
|
|
39
|
+
| New native capability | main handler (validate input) → preload wrapper → typed `window.api` entry → renderer call |
|
|
40
|
+
| Main→renderer event | `webContents.send` → preload `on` wrapper returning a cleanup function |
|
|
41
|
+
| State worth persisting | typed main-process store, saved on window close |
|
|
42
|
+
| External link | `shell.openExternal` — never in-window navigation |
|
|
43
|
+
| Release | build both targets → package installers → verify the auto-update path before publishing |
|
|
44
|
+
|
|
45
|
+
## Naming
|
|
46
|
+
|
|
47
|
+
IPC channels `domain:action` (`fs:readFile`) · handlers grouped by domain under `src/main/ipc/` · the bridge API is typed once in preload and redeclared on `window` for the renderer.
|
|
48
|
+
|
|
49
|
+
## Quality gates
|
|
50
|
+
|
|
51
|
+
- Typecheck passes for both projects (main+preload and renderer); lint forbids Node/Electron imports under `src/renderer/`.
|
|
52
|
+
- Unit tests mock `window.api`; E2E drives the real built main entry point.
|
|
53
|
+
- Security flags asserted on every window; navigation and window-open guards in place.
|
|
54
|
+
- All IPC handlers validate and sanitize inputs.
|
|
55
|
+
- Packaged installer produced and the auto-updater exercised before any release.
|
|
56
|
+
|
|
57
|
+
## Forbidden
|
|
58
|
+
|
|
59
|
+
- NEVER set `nodeIntegration: true` or `contextIsolation: false` — either one turns renderer XSS into native code execution.
|
|
60
|
+
- NEVER expose Node objects (`require`, `process`, `fs`) or raw `ipcRenderer` through the bridge.
|
|
61
|
+
- NEVER import Node/Electron modules in the renderer, or renderer modules in main.
|
|
62
|
+
- NEVER set `webSecurity: false` or allow insecure content in production.
|
|
63
|
+
- NEVER use `eval()` or `new Function()` in the renderer.
|
|
64
|
+
- NEVER open external URLs inside an app window.
|
|
65
|
+
- NEVER commit code-signing certificates or keys.
|
|
66
|
+
|
|
67
|
+
## References (read on demand)
|
|
68
|
+
|
|
69
|
+
- `references/electron-app/ipc-bridge.md` — typed preload bridge, handler registration, renderer access hook.
|
|
70
|
+
- `references/electron-app/security-and-packaging.md` — window security flags, navigation guards, packaging config, auto-updater, persistent store, tests.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: stack/elixir-phoenix
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
lang: en
|
|
5
|
+
summary: "Phoenix discipline: contexts as the only business API, dumb schemas, fallback-driven controllers, lazy LiveView loading, PubSub-backed push, supervised processes only."
|
|
6
|
+
source: "backend/10-elixir-phoenix.md"
|
|
7
|
+
detect:
|
|
8
|
+
deps: { "phoenix": "*" }
|
|
9
|
+
files: ["mix.exs"]
|
|
10
|
+
score: 10
|
|
11
|
+
requires: []
|
|
12
|
+
conflicts: []
|
|
13
|
+
tokens: 834
|
|
14
|
+
migrated: true
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Elixir Phoenix (contexts + LiveView)
|
|
18
|
+
|
|
19
|
+
Rules-only fragment; exemplar context, changeset, channel, and GenServer code is evicted to `references/elixir-phoenix/` and read on demand.
|
|
20
|
+
|
|
21
|
+
## Architecture rules
|
|
22
|
+
|
|
23
|
+
- Contexts are the only public API to business logic — the web layer calls `MyApp.Accounts.get_user/1`, never `Repo` directly.
|
|
24
|
+
- Schemas are dumb: field definitions and `changeset/2` functions only; sensitive fields declared `redact: true`; JSON encoding derived explicitly with an `only:` allowlist.
|
|
25
|
+
- Controllers are thin `with` pipelines; a shared `FallbackController` translates every `{:error, …}` tuple into the proper HTTP response — no per-controller error branches.
|
|
26
|
+
- LiveView `mount/3` assigns the minimum; page-specific data loads in `handle_params/3`; zero business logic in `render/1` or templates.
|
|
27
|
+
- GenServer only for genuinely stateful processes (cache, counter, connection manager); one-off work goes through supervised Tasks or a job queue.
|
|
28
|
+
- Real-time is push, not poll: Phoenix Channels/LiveView backed by PubSub; cross-process events travel on PubSub topics, never as raw messages to PIDs.
|
|
29
|
+
- Every schema change ships with a migration; DB constraints (unique, FK) mirror changeset validations and surface via `*_constraint/3`.
|
|
30
|
+
|
|
31
|
+
## Trigger → action
|
|
32
|
+
|
|
33
|
+
| Trigger | Action |
|
|
34
|
+
|---------|--------|
|
|
35
|
+
| New feature area | context module with a small public API → schemas → context tests |
|
|
36
|
+
| New endpoint | route → thin controller `with` → context call → fallback handles errors |
|
|
37
|
+
| New page | LiveView: minimal `mount` → `handle_params` loads data → events in `handle_event` |
|
|
38
|
+
| Real-time update | broadcast on a PubSub topic → Channel/LiveView subscribers push to clients |
|
|
39
|
+
| Long-lived state | supervised GenServer, named via Registry |
|
|
40
|
+
| Schema change | migration (up/down tested) + changeset + constraint + context tests |
|
|
41
|
+
|
|
42
|
+
## Naming
|
|
43
|
+
|
|
44
|
+
Contexts are plural domain nouns (`Accounts`, `Billing`) · schemas singular (`User`) · LiveViews `<Resource>Live.Index` / `.Show` with colocated `.html.heex` · channels `<topic>_channel.ex` · tests mirror the `lib/` structure under `test/`.
|
|
45
|
+
|
|
46
|
+
## Quality gates
|
|
47
|
+
|
|
48
|
+
- `mix compile --warnings-as-errors`, `mix credo --strict`, `mix dialyzer`, and `mix test` all pass — CI blockers, no exceptions.
|
|
49
|
+
- Contexts tested independently of the web layer (no controller/LiveView in context tests); coverage meets the project bar.
|
|
50
|
+
- Changesets return descriptive error messages; every uniqueness rule exists as both a DB constraint and a changeset `unique_constraint`.
|
|
51
|
+
- No skipped tests without a written reason.
|
|
52
|
+
|
|
53
|
+
## Forbidden
|
|
54
|
+
|
|
55
|
+
- NEVER call `Repo.*` from controllers, LiveViews, components, or templates — contexts own persistence.
|
|
56
|
+
- NEVER create atoms from user input — use `String.to_existing_atom/1` when conversion is unavoidable.
|
|
57
|
+
- NEVER `send/2` to raw PIDs across process boundaries — Registry-named processes or PubSub.
|
|
58
|
+
- NEVER use `IO.inspect`/`IO.puts` in production code — use `Logger`.
|
|
59
|
+
- NEVER hold state in unsupervised processes or bare `:ets` tables.
|
|
60
|
+
- NEVER reach for GenServer when a plain function or Task does the job.
|
|
61
|
+
|
|
62
|
+
## References (read on demand)
|
|
63
|
+
|
|
64
|
+
- `references/elixir-phoenix/context-and-web.md` — schema + changeset, context module, thin controller with fallback.
|
|
65
|
+
- `references/elixir-phoenix/processes.md` — channel join/broadcast pattern, GenServer client/server split.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: stack/fine-tuning-huggingface
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
lang: en
|
|
5
|
+
summary: "LLM fine-tuning discipline: prompt-first decision gate, parameter-efficient (LoRA/QLoRA) training, leak-free seeded splits, tracked experiments, merged-weight serving."
|
|
6
|
+
source: "ai-ml/04-fine-tuning-huggingface.md"
|
|
7
|
+
detect:
|
|
8
|
+
deps: { "transformers": "*", "peft": "*" }
|
|
9
|
+
files: []
|
|
10
|
+
score: 9
|
|
11
|
+
requires: []
|
|
12
|
+
conflicts: []
|
|
13
|
+
tokens: 898
|
|
14
|
+
migrated: true
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# LLM fine-tuning (Transformers + PEFT)
|
|
18
|
+
|
|
19
|
+
Rules-only fragment; exemplar code is evicted to `references/fine-tuning-huggingface/` and read on demand.
|
|
20
|
+
|
|
21
|
+
## Architecture rules
|
|
22
|
+
|
|
23
|
+
- Prompt-engineer first. Fine-tune only after several prompt variations demonstrably fail, or when volume, output consistency, missing domain knowledge, or a self-hosted latency budget justifies the cost.
|
|
24
|
+
- Parameter-efficient by default: LoRA adapters; quantized base (QLoRA) when GPU memory is tight. Full fine-tunes require data-center-class VRAM and an explicit written justification.
|
|
25
|
+
- Data quality beats quantity: every example passes quality filters (length floors, truncation detection, context-window ceiling); dropped counts are logged. Below a few hundred quality examples, don't fine-tune.
|
|
26
|
+
- Train/validation/test split is seeded, created once before any training, and never regenerated mid-project. Evaluation data never leaks into training.
|
|
27
|
+
- Every run is logged to the experiment tracker (config, metrics, artifacts) and is reproducible from committed config files under `config/` — hyperparameters never live as inline constants.
|
|
28
|
+
- Checkpoint periodically; select the best checkpoint by eval loss, never the last. Gradient checkpointing stays on.
|
|
29
|
+
- Prompts are formatted through the tokenizer's chat template — never hand-written special-token strings.
|
|
30
|
+
- Production serves merged weights or an optimized export (e.g. ONNX) — the raw PEFT adapter is never loaded at serve time.
|
|
31
|
+
|
|
32
|
+
## LoRA sizing
|
|
33
|
+
|
|
34
|
+
Low rank for style/format adaptation, mid rank for structured output, high rank for domain-knowledge injection; alpha about twice the rank as a starting point.
|
|
35
|
+
|
|
36
|
+
## Trigger → action
|
|
37
|
+
|
|
38
|
+
| Trigger | Action |
|
|
39
|
+
|---------|--------|
|
|
40
|
+
| "Should we fine-tune?" | prompt baseline first → decide on volume/consistency/knowledge/latency grounds |
|
|
41
|
+
| New dataset | quality filters → chat-template formatting → seeded split → log filter counts |
|
|
42
|
+
| New run | tracked run named per convention → config committed → best-by-eval-loss checkpoint |
|
|
43
|
+
| Ship a model | merge adapter (or export) → evaluate the shipped artifact → deploy |
|
|
44
|
+
|
|
45
|
+
## Naming
|
|
46
|
+
|
|
47
|
+
Runs `{model}_{task}_{date}_{run_id}` · configs under `config/` · scripts `train.py`, `evaluate.py`, `inference.py`, `export.py` · data prep under `data/` (`prepare.py`, `format.py`, `quality_check.py`).
|
|
48
|
+
|
|
49
|
+
## Quality gates
|
|
50
|
+
|
|
51
|
+
- Split-leakage check passes; the split seed and filter counts are recorded.
|
|
52
|
+
- Trainable-parameter ratio sanity-checked after PEFT wrapping (a few percent for LoRA) — a wrong target-module list fails silently.
|
|
53
|
+
- Post-training evaluation uses a task-matched metric (execution-based for code, judge/human for instructions) and beats the base-model baseline.
|
|
54
|
+
- The evaluated artifact is the merged/exported one production will serve, not the bare adapter.
|
|
55
|
+
|
|
56
|
+
## Forbidden
|
|
57
|
+
|
|
58
|
+
- NEVER let validation/test examples leak into training data.
|
|
59
|
+
- NEVER train untracked or from uncommitted config.
|
|
60
|
+
- NEVER load a PEFT adapter in production — merge or export first.
|
|
61
|
+
- NEVER hand-craft chat-template token strings — use the tokenizer's chat template.
|
|
62
|
+
- NEVER ship the last checkpoint over the best-by-eval-loss one.
|
|
63
|
+
- NEVER fine-tune without a prompt-engineering baseline to compare against.
|
|
64
|
+
- NEVER commit datasets containing PII or secrets, or publish weights without a license review of the base model.
|
|
65
|
+
|
|
66
|
+
## References (read on demand)
|
|
67
|
+
|
|
68
|
+
- `references/fine-tuning-huggingface/training-and-lora.md` — LoRA config selection, QLoRA training entry point.
|
|
69
|
+
- `references/fine-tuning-huggingface/data-and-export.md` — data filters, chat-template formatting, merge/export, metric table.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: stack/flutter
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
lang: en
|
|
5
|
+
summary: "Flutter discipline: small composable widgets, one state-management pattern, business logic outside widgets, typed platform channels, golden-tested shared visuals."
|
|
6
|
+
detect:
|
|
7
|
+
deps: { "flutter": "*" }
|
|
8
|
+
files: ["pubspec.yaml", "lib/main.dart"]
|
|
9
|
+
score: 10
|
|
10
|
+
requires: []
|
|
11
|
+
conflicts: []
|
|
12
|
+
tokens: 790
|
|
13
|
+
migrated: true
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Flutter (mobile / multi-platform)
|
|
17
|
+
|
|
18
|
+
Rules-only fragment; exemplar code is evicted to `references/flutter/` and read on demand.
|
|
19
|
+
|
|
20
|
+
## Architecture rules
|
|
21
|
+
|
|
22
|
+
- Widget composition over inheritance: small single-purpose widgets, extracted when a `build` method outgrows a screenful or a subtree is reused; `const` constructors wherever possible.
|
|
23
|
+
- Feature-first layout per the repo convention: a feature's UI, state, and data live together; shared design-system widgets live in a common module — the only place visual primitives are defined.
|
|
24
|
+
- One state-management pattern per app — whatever the repo already uses. Ephemeral widget state stays local (`setState`); shared/app state goes through the chosen pattern; a second pattern is never introduced.
|
|
25
|
+
- Widgets render state and dispatch intents — business logic lives in the state layer/services and is testable without a widget tree.
|
|
26
|
+
- Async UI discipline: every async screen renders loading, error, and empty states; no unawaited futures on user flows; never use a `BuildContext` across an `await` without a `mounted` check.
|
|
27
|
+
- Platform channels behind a typed wrapper layer: one Dart API per capability with explicit error mapping; feature code never touches raw channel strings; every target platform's implementation ships in the same change.
|
|
28
|
+
- Navigation through the repo's router abstraction; theming through the app theme/design tokens — no hardcoded colors or text styles in feature widgets.
|
|
29
|
+
- Heavy computation goes to an isolate or the service layer — the UI isolate never blocks.
|
|
30
|
+
|
|
31
|
+
## Trigger → action
|
|
32
|
+
|
|
33
|
+
| Trigger | Action |
|
|
34
|
+
|---------|--------|
|
|
35
|
+
| New screen | route in the router → screen widget → state holder → repository/service |
|
|
36
|
+
| New shared visual component | design-system module + golden test |
|
|
37
|
+
| Native capability | typed platform-channel wrapper + implementations for every target platform |
|
|
38
|
+
| Visual change to shared widgets | regenerate goldens deliberately and review the image diff |
|
|
39
|
+
| Slow work | isolate/service — never on the UI thread |
|
|
40
|
+
| New dependency | check the repo's existing state/HTTP/DI choices first — extend, don't duplicate |
|
|
41
|
+
|
|
42
|
+
## Quality gates (before any PR)
|
|
43
|
+
|
|
44
|
+
- Analyzer and formatter clean; unit, widget, and golden tests pass (exact commands come from PROJECT FACTS).
|
|
45
|
+
- State/logic changes have unit tests; interactive widgets have widget tests; shared visual components have goldens.
|
|
46
|
+
- Async paths on touched screens show loading/error/empty states.
|
|
47
|
+
- Golden updates are intentional and reviewed — never regenerated wholesale to silence CI.
|
|
48
|
+
|
|
49
|
+
## Forbidden
|
|
50
|
+
|
|
51
|
+
- NEVER add a second state-management library.
|
|
52
|
+
- NEVER put business logic or I/O in `build()` methods.
|
|
53
|
+
- NEVER block the UI isolate with heavy work.
|
|
54
|
+
- NEVER hardcode colors, text styles, or user-facing strings in feature widgets — theme and l10n own them.
|
|
55
|
+
- NEVER call platform channels outside the typed wrapper layer.
|
|
56
|
+
- NEVER regenerate all goldens just to make a failing check pass.
|
|
57
|
+
|
|
58
|
+
## References (read on demand)
|
|
59
|
+
|
|
60
|
+
- `references/flutter/state-and-widgets.md` — feature layout, state holder, async screen states.
|
|
61
|
+
- `references/flutter/platform-channels-and-goldens.md` — typed channel wrapper, golden test harness.
|