mega-brain-ai 1.3.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/.antigravity/README.md +46 -0
- package/.antigravity/rules/.gitkeep +0 -0
- package/.antigravity/rules/mega-brain.md +39 -0
- package/.claude/CLAUDE.md +172 -0
- package/.claude/agents.yaml +44 -0
- package/.claude/commands/agents.md +161 -0
- package/.claude/commands/ask.md +117 -0
- package/.claude/commands/benchmark.md +224 -0
- package/.claude/commands/chat.md +343 -0
- package/.claude/commands/compare.md +116 -0
- package/.claude/commands/conclave.md +196 -0
- package/.claude/commands/config.md +133 -0
- package/.claude/commands/create-agent.md +467 -0
- package/.claude/commands/debate.md +159 -0
- package/.claude/commands/documentation/create-architecture-documentation.md +175 -0
- package/.claude/commands/dossiers.md +180 -0
- package/.claude/commands/evolve.md +223 -0
- package/.claude/commands/extract-dna.md +172 -0
- package/.claude/commands/extract-knowledge.md +507 -0
- package/.claude/commands/gsd/add-phase.md +43 -0
- package/.claude/commands/gsd/add-tests.md +41 -0
- package/.claude/commands/gsd/add-todo.md +47 -0
- package/.claude/commands/gsd/audit-milestone.md +36 -0
- package/.claude/commands/gsd/check-todos.md +45 -0
- package/.claude/commands/gsd/cleanup.md +18 -0
- package/.claude/commands/gsd/complete-milestone.md +136 -0
- package/.claude/commands/gsd/debug.md +167 -0
- package/.claude/commands/gsd/discuss-phase.md +83 -0
- package/.claude/commands/gsd/execute-phase.md +41 -0
- package/.claude/commands/gsd/health.md +22 -0
- package/.claude/commands/gsd/help.md +22 -0
- package/.claude/commands/gsd/insert-phase.md +32 -0
- package/.claude/commands/gsd/join-discord.md +18 -0
- package/.claude/commands/gsd/list-phase-assumptions.md +46 -0
- package/.claude/commands/gsd/map-codebase.md +71 -0
- package/.claude/commands/gsd/new-milestone.md +44 -0
- package/.claude/commands/gsd/new-project.md +42 -0
- package/.claude/commands/gsd/pause-work.md +38 -0
- package/.claude/commands/gsd/plan-milestone-gaps.md +34 -0
- package/.claude/commands/gsd/plan-phase.md +45 -0
- package/.claude/commands/gsd/progress.md +24 -0
- package/.claude/commands/gsd/quick.md +41 -0
- package/.claude/commands/gsd/reapply-patches.md +110 -0
- package/.claude/commands/gsd/remove-phase.md +31 -0
- package/.claude/commands/gsd/research-phase.md +189 -0
- package/.claude/commands/gsd/resume-work.md +40 -0
- package/.claude/commands/gsd/set-profile.md +34 -0
- package/.claude/commands/gsd/settings.md +36 -0
- package/.claude/commands/gsd/update.md +37 -0
- package/.claude/commands/gsd/verify-work.md +38 -0
- package/.claude/commands/inbox.md +296 -0
- package/.claude/commands/ingest-empresa.md +191 -0
- package/.claude/commands/ingest.md +183 -0
- package/.claude/commands/jarvis-briefing.md +67 -0
- package/.claude/commands/jarvis-control.md +169 -0
- package/.claude/commands/jarvis-full.md +182 -0
- package/.claude/commands/jarvis.md +212 -0
- package/.claude/commands/ler-drive.md +212 -0
- package/.claude/commands/log.md +158 -0
- package/.claude/commands/loop.md +133 -0
- package/.claude/commands/loops.md +73 -0
- package/.claude/commands/mission-autopilot.md +538 -0
- package/.claude/commands/mission.md +353 -0
- package/.claude/commands/process-inbox.md +148 -0
- package/.claude/commands/process-jarvis.md +3036 -0
- package/.claude/commands/process-video.md +131 -0
- package/.claude/commands/rag-search.md +78 -0
- package/.claude/commands/resume.md +33 -0
- package/.claude/commands/save.md +38 -0
- package/.claude/commands/scan-inbox.md +125 -0
- package/.claude/commands/setup.md +99 -0
- package/.claude/commands/system-digest.md +243 -0
- package/.claude/commands/verify.md +182 -0
- package/.claude/commands/view-dna.md +169 -0
- package/.claude/get-shit-done/VERSION +1 -0
- package/.claude/get-shit-done/bin/gsd-tools.cjs +588 -0
- package/.claude/get-shit-done/bin/lib/commands.cjs +553 -0
- package/.claude/get-shit-done/bin/lib/config.cjs +162 -0
- package/.claude/get-shit-done/bin/lib/core.cjs +411 -0
- package/.claude/get-shit-done/bin/lib/frontmatter.cjs +299 -0
- package/.claude/get-shit-done/bin/lib/init.cjs +710 -0
- package/.claude/get-shit-done/bin/lib/milestone.cjs +216 -0
- package/.claude/get-shit-done/bin/lib/phase.cjs +871 -0
- package/.claude/get-shit-done/bin/lib/roadmap.cjs +298 -0
- package/.claude/get-shit-done/bin/lib/state.cjs +679 -0
- package/.claude/get-shit-done/bin/lib/template.cjs +222 -0
- package/.claude/get-shit-done/bin/lib/verify.cjs +773 -0
- package/.claude/get-shit-done/references/checkpoints.md +776 -0
- package/.claude/get-shit-done/references/continuation-format.md +249 -0
- package/.claude/get-shit-done/references/decimal-phase-calculation.md +65 -0
- package/.claude/get-shit-done/references/git-integration.md +248 -0
- package/.claude/get-shit-done/references/git-planning-commit.md +38 -0
- package/.claude/get-shit-done/references/model-profile-resolution.md +34 -0
- package/.claude/get-shit-done/references/model-profiles.md +92 -0
- package/.claude/get-shit-done/references/phase-argument-parsing.md +61 -0
- package/.claude/get-shit-done/references/planning-config.md +196 -0
- package/.claude/get-shit-done/references/questioning.md +145 -0
- package/.claude/get-shit-done/references/tdd.md +263 -0
- package/.claude/get-shit-done/references/ui-brand.md +160 -0
- package/.claude/get-shit-done/references/verification-patterns.md +612 -0
- package/.claude/get-shit-done/templates/DEBUG.md +164 -0
- package/.claude/get-shit-done/templates/UAT.md +247 -0
- package/.claude/get-shit-done/templates/VALIDATION.md +76 -0
- package/.claude/get-shit-done/templates/codebase/architecture.md +255 -0
- package/.claude/get-shit-done/templates/codebase/concerns.md +310 -0
- package/.claude/get-shit-done/templates/codebase/conventions.md +307 -0
- package/.claude/get-shit-done/templates/codebase/integrations.md +280 -0
- package/.claude/get-shit-done/templates/codebase/stack.md +186 -0
- package/.claude/get-shit-done/templates/codebase/structure.md +285 -0
- package/.claude/get-shit-done/templates/codebase/testing.md +480 -0
- package/.claude/get-shit-done/templates/config.json +37 -0
- package/.claude/get-shit-done/templates/context.md +283 -0
- package/.claude/get-shit-done/templates/continue-here.md +78 -0
- package/.claude/get-shit-done/templates/debug-subagent-prompt.md +91 -0
- package/.claude/get-shit-done/templates/discovery.md +146 -0
- package/.claude/get-shit-done/templates/milestone-archive.md +123 -0
- package/.claude/get-shit-done/templates/milestone.md +115 -0
- package/.claude/get-shit-done/templates/phase-prompt.md +569 -0
- package/.claude/get-shit-done/templates/planner-subagent-prompt.md +117 -0
- package/.claude/get-shit-done/templates/project.md +184 -0
- package/.claude/get-shit-done/templates/requirements.md +231 -0
- package/.claude/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
- package/.claude/get-shit-done/templates/research-project/FEATURES.md +147 -0
- package/.claude/get-shit-done/templates/research-project/PITFALLS.md +200 -0
- package/.claude/get-shit-done/templates/research-project/STACK.md +120 -0
- package/.claude/get-shit-done/templates/research-project/SUMMARY.md +170 -0
- package/.claude/get-shit-done/templates/research.md +552 -0
- package/.claude/get-shit-done/templates/retrospective.md +54 -0
- package/.claude/get-shit-done/templates/roadmap.md +202 -0
- package/.claude/get-shit-done/templates/state.md +176 -0
- package/.claude/get-shit-done/templates/summary-complex.md +59 -0
- package/.claude/get-shit-done/templates/summary-minimal.md +41 -0
- package/.claude/get-shit-done/templates/summary-standard.md +48 -0
- package/.claude/get-shit-done/templates/summary.md +248 -0
- package/.claude/get-shit-done/templates/user-setup.md +311 -0
- package/.claude/get-shit-done/templates/verification-report.md +322 -0
- package/.claude/get-shit-done/workflows/add-phase.md +111 -0
- package/.claude/get-shit-done/workflows/add-tests.md +350 -0
- package/.claude/get-shit-done/workflows/add-todo.md +157 -0
- package/.claude/get-shit-done/workflows/audit-milestone.md +297 -0
- package/.claude/get-shit-done/workflows/check-todos.md +176 -0
- package/.claude/get-shit-done/workflows/cleanup.md +152 -0
- package/.claude/get-shit-done/workflows/complete-milestone.md +763 -0
- package/.claude/get-shit-done/workflows/diagnose-issues.md +219 -0
- package/.claude/get-shit-done/workflows/discovery-phase.md +289 -0
- package/.claude/get-shit-done/workflows/discuss-phase.md +542 -0
- package/.claude/get-shit-done/workflows/execute-phase.md +449 -0
- package/.claude/get-shit-done/workflows/execute-plan.md +448 -0
- package/.claude/get-shit-done/workflows/health.md +156 -0
- package/.claude/get-shit-done/workflows/help.md +489 -0
- package/.claude/get-shit-done/workflows/insert-phase.md +129 -0
- package/.claude/get-shit-done/workflows/list-phase-assumptions.md +178 -0
- package/.claude/get-shit-done/workflows/map-codebase.md +315 -0
- package/.claude/get-shit-done/workflows/new-milestone.md +382 -0
- package/.claude/get-shit-done/workflows/new-project.md +1116 -0
- package/.claude/get-shit-done/workflows/pause-work.md +122 -0
- package/.claude/get-shit-done/workflows/plan-milestone-gaps.md +274 -0
- package/.claude/get-shit-done/workflows/plan-phase.md +569 -0
- package/.claude/get-shit-done/workflows/progress.md +381 -0
- package/.claude/get-shit-done/workflows/quick.md +453 -0
- package/.claude/get-shit-done/workflows/remove-phase.md +154 -0
- package/.claude/get-shit-done/workflows/research-phase.md +73 -0
- package/.claude/get-shit-done/workflows/resume-project.md +306 -0
- package/.claude/get-shit-done/workflows/set-profile.md +80 -0
- package/.claude/get-shit-done/workflows/settings.md +213 -0
- package/.claude/get-shit-done/workflows/transition.md +544 -0
- package/.claude/get-shit-done/workflows/update.md +219 -0
- package/.claude/get-shit-done/workflows/verify-phase.md +242 -0
- package/.claude/get-shit-done/workflows/verify-work.md +569 -0
- package/.claude/gsd-file-manifest.json +144 -0
- package/.claude/hooks/agent_creation_trigger.py +168 -0
- package/.claude/hooks/agent_index_updater.py +255 -0
- package/.claude/hooks/agent_memory_persister.py +203 -0
- package/.claude/hooks/claude_md_agent_sync.py +162 -0
- package/.claude/hooks/claude_md_guard.py +154 -0
- package/.claude/hooks/continuous_save.py +414 -0
- package/.claude/hooks/creation_validator.py +360 -0
- package/.claude/hooks/enforce_dual_location.py +501 -0
- package/.claude/hooks/enforce_plan_mode.py +220 -0
- package/.claude/hooks/gsd-check-update.js +62 -0
- package/.claude/hooks/gsd-context-monitor.js +122 -0
- package/.claude/hooks/gsd-statusline.js +108 -0
- package/.claude/hooks/inbox_age_alert.py +367 -0
- package/.claude/hooks/ledger_updater.py +303 -0
- package/.claude/hooks/memory_hints_injector.py +251 -0
- package/.claude/hooks/memory_updater.py +202 -0
- package/.claude/hooks/notification_system.py +115 -0
- package/.claude/hooks/pending_tracker.py +188 -0
- package/.claude/hooks/pipeline_checkpoint.py +583 -0
- package/.claude/hooks/post_batch_cascading.py +1740 -0
- package/.claude/hooks/post_tool_use.py +120 -0
- package/.claude/hooks/quality_watchdog.py +394 -0
- package/.claude/hooks/ralph_wiggum.py +286 -0
- package/.claude/hooks/session-source-sync.py +223 -0
- package/.claude/hooks/session_autosave_v2.py +1135 -0
- package/.claude/hooks/session_end.py +203 -0
- package/.claude/hooks/session_start.py +939 -0
- package/.claude/hooks/skill_indexer.py +48 -0
- package/.claude/hooks/skill_router.py +358 -0
- package/.claude/hooks/stop_hook_completeness.py +187 -0
- package/.claude/hooks/user_prompt_submit.py +125 -0
- package/.claude/package.json +1 -0
- package/.claude/rules/ANTHROPIC-STANDARDS.md +384 -0
- package/.claude/rules/CLAUDE-LITE.md +201 -0
- package/.claude/rules/RULE-GROUP-1.md +320 -0
- package/.claude/rules/RULE-GROUP-2.md +307 -0
- package/.claude/rules/RULE-GROUP-3.md +248 -0
- package/.claude/rules/RULE-GROUP-4.md +427 -0
- package/.claude/rules/RULE-GROUP-5.md +388 -0
- package/.claude/rules/RULE-GROUP-6.md +387 -0
- package/.claude/rules/RULE-GSD-MANDATORY.md +106 -0
- package/.claude/rules/agent-cognition.md +779 -0
- package/.claude/rules/agent-integrity.md +692 -0
- package/.claude/rules/epistemic-standards.md +333 -0
- package/.claude/rules/logging.md +53 -0
- package/.claude/rules/mcp-governance.md +128 -0
- package/.claude/rules/pipeline.md +60 -0
- package/.claude/rules/state-management.md +93 -0
- package/.claude/scripts/apply-tags.py +77 -0
- package/.claude/scripts/batch-extract-transcriptions.py +132 -0
- package/.claude/scripts/build-complete-index.py +250 -0
- package/.claude/scripts/build-planilha-index.py +170 -0
- package/.claude/scripts/complete-tag-matching.py +250 -0
- package/.claude/scripts/deduplicate-inbox.py +139 -0
- package/.claude/scripts/docx-xml-extractor.py +141 -0
- package/.claude/scripts/extract-docx-text.py +58 -0
- package/.claude/scripts/extract-single-transcription.py +74 -0
- package/.claude/scripts/extract_docx_from_gdrive.py +77 -0
- package/.claude/scripts/jarvis_orchestrator.py +5 -0
- package/.claude/scripts/organized-downloader.py +246 -0
- package/.claude/scripts/planilha-tagger.py +187 -0
- package/.claude/scripts/revert-tags.py +70 -0
- package/.claude/scripts/source-sync.py +265 -0
- package/.claude/scripts/tag-inbox-files.py +276 -0
- package/.claude/scripts/tag-inbox-v2.py +253 -0
- package/.claude/scripts/test-extraction.py +35 -0
- package/.claude/scripts/test-full-extraction.py +74 -0
- package/.claude/scripts/validate_cascading_integrity.py +409 -0
- package/.claude/settings.json +215 -0
- package/.claude/skills/DETECTION-PROTOCOL.md +217 -0
- package/.claude/skills/README.md +240 -0
- package/.claude/skills/SKILL-REGISTRY.md +283 -0
- package/.claude/skills/SKILL-SUGGESTIONS.md +114 -0
- package/.claude/skills/_TEMPLATES/SKILL-WRITER-GUIDE.md +385 -0
- package/.claude/skills/agent-creation/SKILL.md +374 -0
- package/.claude/skills/ask-company/SKILL.md +198 -0
- package/.claude/skills/brainstorming/SKILL.md +72 -0
- package/.claude/skills/chronicler/SKILL.md +146 -0
- package/.claude/skills/chronicler/chronicler_core.py +468 -0
- package/.claude/skills/code-review/SKILL.md +160 -0
- package/.claude/skills/convert-to-company-docs/SKILL.md +68 -0
- package/.claude/skills/convert-to-company-docs/convert.py +532 -0
- package/.claude/skills/dispatching-parallel-agents/SKILL.md +193 -0
- package/.claude/skills/docs-megabrain/SKILL.md +251 -0
- package/.claude/skills/executing-plans/SKILL.md +114 -0
- package/.claude/skills/executor/SKILL.md +161 -0
- package/.claude/skills/fase-2-5-tagging/SKILL.md +182 -0
- package/.claude/skills/feature-dev/SKILL.md +154 -0
- package/.claude/skills/frontend-design/SKILL.md +165 -0
- package/.claude/skills/gdrive-transcription-downloader/SKILL.md +249 -0
- package/.claude/skills/gemini-fallback/SKILL.md +67 -0
- package/.claude/skills/gemini-fallback/gemini_fetch.py +0 -0
- package/.claude/skills/gha/SKILL.md +96 -0
- package/.claude/skills/gha/gha_diagnostic.py +227 -0
- package/.claude/skills/github-workflow/SKILL.md +190 -0
- package/.claude/skills/hookify/SKILL.md +134 -0
- package/.claude/skills/hybrid-source-reading/SKILL.md +265 -0
- package/.claude/skills/jarvis/SKILL.md +546 -0
- package/.claude/skills/jarvis-briefing/SKILL.md +340 -0
- package/.claude/skills/knowledge-extraction/SKILL.md +318 -0
- package/.claude/skills/ler-planilha/SKILL.md +281 -0
- package/.claude/skills/pipeline-jarvis/SKILL.md +430 -0
- package/.claude/skills/plugin-dev/SKILL.md +176 -0
- package/.claude/skills/pr-review-toolkit/SKILL.md +178 -0
- package/.claude/skills/process-company-inbox/SKILL.md +183 -0
- package/.claude/skills/python-megabrain/SKILL.md +323 -0
- package/.claude/skills/resume/SKILL.md +61 -0
- package/.claude/skills/save/SKILL.md +87 -0
- package/.claude/skills/skill-creator-internal/SKILL.md +186 -0
- package/.claude/skills/skill-writer/SKILL.md +153 -0
- package/.claude/skills/skill-writer/examples.md +191 -0
- package/.claude/skills/skill-writer/troubleshooting.md +205 -0
- package/.claude/skills/smart-download-tagger/SKILL.md +148 -0
- package/.claude/skills/source-sync/SKILL.md +240 -0
- package/.claude/skills/sync-docs/SKILL.md +193 -0
- package/.claude/skills/sync-docs/config.json +37 -0
- package/.claude/skills/sync-docs/gdrive_sync.py +358 -0
- package/.claude/skills/sync-docs/reauth.py +71 -0
- package/.claude/skills/using-superpowers/SKILL.md +105 -0
- package/.claude/skills/verification-before-completion/SKILL.md +130 -0
- package/.claude/skills/verify/SKILL.md +154 -0
- package/.claude/skills/verify/verify_runner.py +0 -0
- package/.claude/skills/verify-6-levels/SKILL.md +234 -0
- package/.claude/skills/writing-plans/SKILL.md +184 -0
- package/.claude/templates/BATCH-LOG-TEMPLATE.md +221 -0
- package/.claudeignore +9 -0
- package/.cursor/agents.yaml +44 -0
- package/.cursor/rules/mega-brain.md +39 -0
- package/.gitattributes +19 -0
- package/.github/CODEOWNERS +8 -0
- package/.github/ISSUE_TEMPLATE/agent.md +96 -0
- package/.github/ISSUE_TEMPLATE/bug.md +67 -0
- package/.github/ISSUE_TEMPLATE/feature.md +56 -0
- package/.github/ISSUE_TEMPLATE/pipeline.md +70 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +30 -0
- package/.github/assets/banner.svg +152 -0
- package/.github/assets/logo-dark.svg +79 -0
- package/.github/assets/social-preview.png +0 -0
- package/.github/layer1-allowlist.txt +196 -0
- package/.github/layer2-manifest.txt +42 -0
- package/.github/layer3-manifest.txt +94 -0
- package/.github/workflows/claude-code-pr.yml +198 -0
- package/.github/workflows/claude-code-review.yml +57 -0
- package/.github/workflows/claude.yml +76 -0
- package/.github/workflows/publish-pro.yml +72 -0
- package/.github/workflows/publish.yml +86 -0
- package/.github/workflows/verification.yml +251 -0
- package/.gitignore +244 -0
- package/.gitleaks.toml +118 -0
- package/.windsurf/agents.yaml +44 -0
- package/.windsurf/rules/mega-brain.md +39 -0
- package/CONTRIBUTING.md +62 -0
- package/QUICK-START.md +231 -0
- package/README.md +168 -0
- package/agents/AGENT-INDEX.yaml +107 -0
- package/agents/MASTER-AGENT.md +612 -0
- package/agents/README.md +48 -0
- package/agents/_templates/INDEX.md +741 -0
- package/agents/_templates/TEMPLATE-AGENT-MD-ULTRA-ROBUSTO-V3.md +2399 -0
- package/agents/boardroom/CHECKLIST-MASTER.md +281 -0
- package/agents/boardroom/INTEGRATION-GUIDE.md +406 -0
- package/agents/boardroom/README.md +238 -0
- package/agents/boardroom/config/BOARDROOM-CONFIG.md +186 -0
- package/agents/boardroom/config/TTS-INTEGRATION.md +258 -0
- package/agents/boardroom/config/VOICE-PROFILES.md +624 -0
- package/agents/boardroom/scripts/audio_generator.py +375 -0
- package/agents/boardroom/scripts/audio_generator_edge.py +353 -0
- package/agents/boardroom/scripts/jarvis_boardroom_hook.py +415 -0
- package/agents/boardroom/scripts/notebooklm_generator.py +578 -0
- package/agents/boardroom/templates/EPISODE-TEMPLATE.md +367 -0
- package/agents/boardroom/templates/scene-templates/SCENE-AGENT-DEBATE.md +252 -0
- package/agents/boardroom/templates/scene-templates/SCENE-COUNCIL.md +270 -0
- package/agents/boardroom/templates/scene-templates/SCENE-DNA-CONSULTATION.md +126 -0
- package/agents/boardroom/templates/scene-templates/SCENE-QUESTION.md +174 -0
- package/agents/boardroom/workflows/WORKFLOW-AUDIO-GENERATION.md +421 -0
- package/agents/conclave/CRITIC.md +197 -0
- package/agents/conclave/DEVILS-ADVOCATE.md +274 -0
- package/agents/conclave/README.md +35 -0
- package/agents/conclave/SYNTHESIZER.md +293 -0
- package/agents/conclave/advogado-do-diabo/AGENT.md +502 -0
- package/agents/conclave/advogado-do-diabo/SOUL.md +100 -0
- package/agents/conclave/critico-metodologico/AGENT.md +683 -0
- package/agents/conclave/critico-metodologico/SOUL.md +107 -0
- package/agents/conclave/sintetizador/AGENT.md +571 -0
- package/agents/conclave/sintetizador/SOUL.md +94 -0
- package/agents/constitution/BASE-CONSTITUTION.md +254 -0
- package/agents/persona-registry.yaml +300 -0
- package/agents/sua-empresa/.gitkeep +0 -0
- package/agents/sua-empresa/README.md +44 -0
- package/agents/sua-empresa/_example/jds/EXAMPLE-JD.md +42 -0
- package/agents/sua-empresa/_example/org/EXAMPLE-ORG.md +32 -0
- package/agents/sua-empresa/_example/roles/EXAMPLE-ROLE.md +38 -0
- package/artifacts/README.md +11 -0
- package/artifacts/canonical/.gitkeep +0 -0
- package/artifacts/chunks/.gitkeep +0 -0
- package/artifacts/insights/.gitkeep +0 -0
- package/artifacts/narratives/.gitkeep +0 -0
- package/bin/cli.js +2 -0
- package/bin/lib/ascii-art.js +202 -0
- package/bin/lib/feature-gate.js +46 -0
- package/bin/lib/installer.js +593 -0
- package/bin/lib/license.js +59 -0
- package/bin/lib/pro-commands.js +75 -0
- package/bin/lib/setup-wizard.js +547 -0
- package/bin/lib/validate-email.js +113 -0
- package/bin/mega-brain.js +136 -0
- package/bin/pre-publish-gate.js +229 -0
- package/bin/push.js +1056 -0
- package/bin/templates/env.example +27 -0
- package/bin/utils/pro-detector.js +50 -0
- package/bin/validate-package.js +190 -0
- package/core/__init__.py +2 -0
- package/core/glossary/INDEX.md +63 -0
- package/core/glossary/digital.md +243 -0
- package/core/glossary/finance.md +49 -0
- package/core/glossary/marketing.md +69 -0
- package/core/glossary/operations.md +50 -0
- package/core/glossary/sales.md +690 -0
- package/core/intelligence/__init__.py +41 -0
- package/core/intelligence/agent_trigger.py +468 -0
- package/core/intelligence/audit_layers.py +491 -0
- package/core/intelligence/autonomous_processor.py +796 -0
- package/core/intelligence/bootstrap_registry.py +550 -0
- package/core/intelligence/business_model_detector.py +476 -0
- package/core/intelligence/dossier_trigger.py +336 -0
- package/core/intelligence/entity_normalizer.py +565 -0
- package/core/intelligence/org_chain_detector.py +411 -0
- package/core/intelligence/review_dashboard.py +338 -0
- package/core/intelligence/role_detector.py +855 -0
- package/core/intelligence/session_autosave.py +46 -0
- package/core/intelligence/skill_generator.py +601 -0
- package/core/intelligence/sow_generator.py +711 -0
- package/core/intelligence/sync_package_files.py +504 -0
- package/core/intelligence/task_orchestrator.py +780 -0
- package/core/intelligence/theme_analyzer.py +562 -0
- package/core/intelligence/tool_discovery.py +432 -0
- package/core/intelligence/validate_json_integrity.py +106 -0
- package/core/intelligence/validate_layers.py +310 -0
- package/core/intelligence/verify_classifications.py +94 -0
- package/core/intelligence/viability_scorer.py +592 -0
- package/core/jarvis/02-JARVIS-SOUL.md +390 -0
- package/core/jarvis/03-JARVIS-DNA.yaml +312 -0
- package/core/jarvis/AGENT.md +191 -0
- package/core/jarvis/agent-creator/AGENT.md +199 -0
- package/core/jarvis/agent-creator/SOUL.md +82 -0
- package/core/jarvis/agent-creator/tasks/create-agent.md +133 -0
- package/core/jarvis/agent-creator/tasks/sync-agents.md +100 -0
- package/core/jarvis/agent-creator/workflows/wf-create-agent.yaml +110 -0
- package/core/jarvis/agent-creator/workflows/wf-pipeline-trigger.yaml +111 -0
- package/core/jarvis/autonomous/benchmark/AGENT.md +347 -0
- package/core/jarvis/autonomous/benchmark/SOUL.md +78 -0
- package/core/jarvis/autonomous/critic/AGENT.md +324 -0
- package/core/jarvis/autonomous/critic/SOUL.md +78 -0
- package/core/jarvis/autonomous/evolver/AGENT.md +294 -0
- package/core/jarvis/autonomous/evolver/SOUL.md +85 -0
- package/core/jarvis/autonomous/playbook-generator/AGENT.md +399 -0
- package/core/jarvis/autonomous/playbook-generator/SOUL.md +80 -0
- package/core/patterns/_ROLE_PATTERNS.yaml +547 -0
- package/core/patterns/quality_gates.yaml +259 -0
- package/core/patterns/trigger_config.yaml +193 -0
- package/core/schemas/SCHEMA-INDEX.md +94 -0
- package/core/schemas/canonical-map.schema.json +98 -0
- package/core/schemas/chunks-state.schema.json +131 -0
- package/core/schemas/decisions-registry.schema.json +120 -0
- package/core/schemas/file-registry.schema.json +69 -0
- package/core/schemas/insights-state.schema.json +111 -0
- package/core/schemas/narratives-state.schema.json +150 -0
- package/core/tasks/CHANGELOG.md +55 -0
- package/core/tasks/TASK-REGISTRY.md +113 -0
- package/core/tasks/_templates/task-tmpl.md +105 -0
- package/core/tasks/analyze-themes.md +84 -0
- package/core/tasks/detect-role.md +82 -0
- package/core/tasks/extract-dna.md +114 -0
- package/core/tasks/normalize-entities.md +82 -0
- package/core/tasks/process-batch.md +111 -0
- package/core/tasks/validate-cascade.md +105 -0
- package/core/templates/README.md +27 -0
- package/core/templates/agents/dna-config-template.yaml +181 -0
- package/core/templates/agents/enrichment-protocol.md +408 -0
- package/core/templates/agents/memory-template.md +567 -0
- package/core/templates/agents/reasoning-model.md +331 -0
- package/core/templates/agents/soul-template.md +416 -0
- package/core/templates/agents/template-evolution.md +544 -0
- package/core/templates/debates/CONCLAVE-LOG-TEMPLATE-v2.md +309 -0
- package/core/templates/debates/conclave-log-template.md +309 -0
- package/core/templates/debates/conclave-protocol.md +518 -0
- package/core/templates/debates/debate-dynamics-config.yaml +322 -0
- package/core/templates/debates/debate-dynamics.md +613 -0
- package/core/templates/debates/debate-protocol.md +323 -0
- package/core/templates/logs/LOG-TEMPLATES.md +1068 -0
- package/core/templates/logs/batch-visual-template.md +841 -0
- package/core/templates/logs/log-structure.md +65 -0
- package/core/templates/logs/visual-diff.md +159 -0
- package/core/templates/phases/dossier-compilation.md +790 -0
- package/core/templates/phases/narrative-metabolism.md +292 -0
- package/core/templates/phases/narrative-synthesis.md +278 -0
- package/core/templates/phases/phase4-checkpoint.md +146 -0
- package/core/templates/phases/prompt-1.1-chunking.md +154 -0
- package/core/templates/phases/prompt-1.2-entity-resolution.md +186 -0
- package/core/templates/phases/prompt-2.1-dna-tags.md +208 -0
- package/core/templates/phases/prompt-2.1-insight-extraction.md +191 -0
- package/core/templates/phases/prompt-3.1-narrative.md +331 -0
- package/core/templates/phases/sources-compilation.md +340 -0
- package/core/workflows/PIPELINE-JARVIS-DOCS.md +606 -0
- package/core/workflows/wf-conclave.yaml +139 -0
- package/core/workflows/wf-extract-dna.yaml +158 -0
- package/core/workflows/wf-ingest.yaml +88 -0
- package/core/workflows/wf-pipeline-full.yaml +138 -0
- package/docs/API-KEYS-GUIDE.md +372 -0
- package/docs/INTEGRATION-POINTS.md +501 -0
- package/docs/LAYERS.md +403 -0
- package/docs/PLAN-MODE-PROTOCOL.md +388 -0
- package/docs/RESTORE-AND-INDEX.md +203 -0
- package/docs/TAG-RESOLVER-IMPLEMENTATION.md +597 -0
- package/docs/conselho.md +337 -0
- package/docs/context7-readme.md +28 -0
- package/docs/jarvis-logging-protocol.md +380 -0
- package/docs/pipeline-completa-v4.md +1315 -0
- package/docs/prompts/meta_agente_mapeamento_processos.md +297 -0
- package/docs/quick-start.md +197 -0
- package/docs/readme-ralph-cascateamento.md +207 -0
- package/docs/template-master.md +727 -0
- package/docs/templates/phase5/IMPLEMENTATION-GUIDE.md +355 -0
- package/docs/templates/phase5/MOGA-BRAIN-PHASE5-TEMPLATES.md +1284 -0
- package/docs/templates/phase5/README.md +165 -0
- package/docs/workflow-continuous-claude.md +2232 -0
- package/inbox/.gitkeep +0 -0
- package/inbox/README.md +15 -0
- package/knowledge/NAVIGATION-MAP.json +292 -0
- package/knowledge/README.md +11 -0
- package/knowledge/dna/.gitkeep +0 -0
- package/knowledge/dossiers/persons/.gitkeep +0 -0
- package/knowledge/dossiers/system/.gitkeep +0 -0
- package/knowledge/dossiers/themes/.gitkeep +0 -0
- package/knowledge/playbooks/.gitkeep +0 -0
- package/knowledge/sources/.gitkeep +0 -0
- package/logs/.gitkeep +0 -0
- package/logs/README.md +11 -0
- package/package.json +180 -0
- package/requirements.txt +4 -0
|
@@ -0,0 +1,1315 @@
|
|
|
1
|
+
# MEGA BRAIN: A MAQUINA COMPLETA
|
|
2
|
+
### Pipeline Intelligence Layer v4.0 — Documentacao Oficial
|
|
3
|
+
|
|
4
|
+
```
|
|
5
|
+
╔══════════════════════════════════════════════════════════════════════════╗
|
|
6
|
+
║ ║
|
|
7
|
+
║ ██╗███╗ ███╗███████╗ ██████╗ █████╗ ║
|
|
8
|
+
║ ██║████╗ ████║██╔════╝██╔════╝ ██╔══██╗ ║
|
|
9
|
+
║ ██║██╔████╔██║█████╗ ██║ ███╗███████║ ║
|
|
10
|
+
║ ██║██║╚██╔╝██║██╔══╝ ██║ ██║██╔══██║ ║
|
|
11
|
+
║ ██║██║ ╚═╝ ██║███████╗╚██████╔╝██║ ██║ ║
|
|
12
|
+
║ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝ ║
|
|
13
|
+
║ ║
|
|
14
|
+
║ ██████╗ ██████╗ █████╗ ██╗███╗ ██╗ ║
|
|
15
|
+
║ ██╔══██╗██╔══██╗██╔══██╗██║████╗ ██║ ║
|
|
16
|
+
║ ██████╔╝██████╔╝███████║██║██╔██╗ ██║ ║
|
|
17
|
+
║ ██╔══██╗██╔══██╗██╔══██║██║██║╚██╗██║ ║
|
|
18
|
+
║ ██████╔╝██║ ██║██║ ██║██║██║ ╚████║ ║
|
|
19
|
+
║ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ║
|
|
20
|
+
║ ║
|
|
21
|
+
║ INTELLIGENCE LAYER v4.0 — PIPELINE COMPLETA ║
|
|
22
|
+
║ ║
|
|
23
|
+
║ "De qualquer conteudo ingerido, o Mega Brain automaticamente: ║
|
|
24
|
+
║ detecta entidades, infere cargos, trigga dossiers, cria agentes ║
|
|
25
|
+
║ com Skills operacionais, mapeia cadeias organizacionais, e ║
|
|
26
|
+
║ prepara SOWs que servem tanto para configurar agentes IA quanto ║
|
|
27
|
+
║ para contratar pessoas reais." ║
|
|
28
|
+
║ ║
|
|
29
|
+
║ Data: 2026-02-26 ║
|
|
30
|
+
║ Versao: 4.0.0 ║
|
|
31
|
+
║ Autor: JARVIS (Chronicler) ║
|
|
32
|
+
╚══════════════════════════════════════════════════════════════════════════╝
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## INDICE
|
|
38
|
+
|
|
39
|
+
1. [Visao Geral da Maquina](#1-visao-geral-da-maquina)
|
|
40
|
+
2. [Fase 0: Ingestao de Conteudo](#2-fase-0-ingestao-de-conteudo)
|
|
41
|
+
3. [Fase 1: MODO 1 — Destinos Declarados](#3-fase-1-modo-1--destinos-declarados)
|
|
42
|
+
4. [Fase 2: MODO 2 — Inferencia Inteligente](#4-fase-2-modo-2--inferencia-inteligente)
|
|
43
|
+
5. [Fase 3: MODO 3 — Gatilhos de Threshold](#5-fase-3-modo-3--gatilhos-de-threshold)
|
|
44
|
+
6. [Fase 4: Merge e Cascateamento](#6-fase-4-merge-e-cascateamento)
|
|
45
|
+
7. [Fase 5: MODO 4 — Analise de Inteligencia](#7-fase-5-modo-4--analise-de-inteligencia) **[NOVO v4.0]**
|
|
46
|
+
8. [Fase 6: MODO 5 — Enforcement de Qualidade](#8-fase-6-modo-5--enforcement-de-qualidade) **[NOVO v4.0]**
|
|
47
|
+
9. [Fase 7: Validacao e Manifest](#9-fase-7-validacao-e-manifest)
|
|
48
|
+
10. [Human Checkpoints e Review Queue](#10-human-checkpoints-e-review-queue) **[NOVO v4.0]**
|
|
49
|
+
11. [Mapa Completo de Scripts](#11-mapa-completo-de-scripts)
|
|
50
|
+
12. [Mapa Completo de Hooks](#12-mapa-completo-de-hooks)
|
|
51
|
+
13. [Todos os Thresholds e Gatilhos](#13-todos-os-thresholds-e-gatilhos)
|
|
52
|
+
14. [Estrutura de Diretorios](#14-estrutura-de-diretorios)
|
|
53
|
+
15. [KPIs de Sucesso](#15-kpis-de-sucesso)
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 1. VISAO GERAL DA MAQUINA
|
|
58
|
+
|
|
59
|
+
A melhor forma de entender o Mega Brain e como uma **fabrica de conhecimento**.
|
|
60
|
+
Conteudo bruto entra por um lado. Do outro lado saem:
|
|
61
|
+
agentes inteligentes, dossiers tematicos, skills executaveis,
|
|
62
|
+
organogramas empresariais, e SOWs que servem para IA e humanos.
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
╔═══════════════════════════════════════════════════════════════════════════════╗
|
|
66
|
+
║ A MAQUINA MEGA BRAIN — VISAO AEREA ║
|
|
67
|
+
╠═══════════════════════════════════════════════════════════════════════════════╣
|
|
68
|
+
║ ║
|
|
69
|
+
║ ENTRADA (Qualquer Conteudo) ║
|
|
70
|
+
║ ═══════════════════════════ ║
|
|
71
|
+
║ Videos YouTube, PDFs, Podcasts, Transcricoes, Artigos, Cursos ║
|
|
72
|
+
║ │ ║
|
|
73
|
+
║ ▼ ║
|
|
74
|
+
║ ┌─────────────────────────────────────────────────────────────────────┐ ║
|
|
75
|
+
║ │ INGESTAO & CHUNKING │ ║
|
|
76
|
+
║ │ Conteudo bruto → Chunks semanticos (JSON) → Insights curados │ ║
|
|
77
|
+
║ │ processing/chunks/*.json processing/insights/*.json │ ║
|
|
78
|
+
║ └───────────────────────────────────┬─────────────────────────────────┘ ║
|
|
79
|
+
║ │ ║
|
|
80
|
+
║ ▼ ║
|
|
81
|
+
║ ┌─────────────────────────────────────────────────────────────────────┐ ║
|
|
82
|
+
║ │ BATCH.md (Documento de Lote) │ ║
|
|
83
|
+
║ │ Markdown com: metadata, chunks ref, DESTINO DO CONHECIMENTO │ ║
|
|
84
|
+
║ │ "Para onde este conhecimento deve ir" │ ║
|
|
85
|
+
║ └───────────────────────────────────┬─────────────────────────────────┘ ║
|
|
86
|
+
║ │ ║
|
|
87
|
+
║ ▼ ║
|
|
88
|
+
║ ╔═════════════════════════════════════════════════════════════════════╗ ║
|
|
89
|
+
║ ║ ORQUESTRADOR: post_batch_cascading.py v4.0 ║ ║
|
|
90
|
+
║ ║ (O CORACAO DA MAQUINA) ║ ║
|
|
91
|
+
║ ║ ║ ║
|
|
92
|
+
║ ║ MODO 1 ──► Destinos Declarados (o autor disse) ║ ║
|
|
93
|
+
║ ║ │ ║ ║
|
|
94
|
+
║ ║ ▼ ║ ║
|
|
95
|
+
║ ║ MODO 2 ──► Inferencia Inteligente (IA descobre) ║ ║
|
|
96
|
+
║ ║ │ ║ ║
|
|
97
|
+
║ ║ ▼ ║ ║
|
|
98
|
+
║ ║ MODO 3 ──► Gatilhos de Threshold (limites atingidos) ║ ║
|
|
99
|
+
║ ║ │ ║ ║
|
|
100
|
+
║ ║ ▼ ║ ║
|
|
101
|
+
║ ║ MERGE ──► Combina tudo (declarado tem prioridade) ║ ║
|
|
102
|
+
║ ║ │ ║ ║
|
|
103
|
+
║ ║ ▼ ║ ║
|
|
104
|
+
║ ║ CASCADE ──► Grava nos destinos fisicos ║ ║
|
|
105
|
+
║ ║ │ ║ ║
|
|
106
|
+
║ ║ ▼ ║ ║
|
|
107
|
+
║ ║ ┌─────────────────────────────────────────────────────────┐ ║ ║
|
|
108
|
+
║ ║ │ ★ MODO 4 ──► Business Model + SOW + Skills [NOVO] │ ║ ║
|
|
109
|
+
║ ║ │ ★ MODO 5 ──► Quality Gates + APEX Scoring [NOVO] │ ║ ║
|
|
110
|
+
║ ║ └─────────────────────────────────────────────────────────┘ ║ ║
|
|
111
|
+
║ ║ │ ║ ║
|
|
112
|
+
║ ║ ▼ ║ ║
|
|
113
|
+
║ ║ VALIDATE ──► REGRA #26 (integridade) ║ ║
|
|
114
|
+
║ ║ │ ║ ║
|
|
115
|
+
║ ║ ▼ ║ ║
|
|
116
|
+
║ ║ MANIFEST ──► Registra 13 steps executados ║ ║
|
|
117
|
+
║ ╚═════════════════════════════════════════════════════════════════════╝ ║
|
|
118
|
+
║ │ ║
|
|
119
|
+
║ ▼ ║
|
|
120
|
+
║ SAIDAS (Artefatos Gerados) ║
|
|
121
|
+
║ ══════════════════════════ ║
|
|
122
|
+
║ ║
|
|
123
|
+
║ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ║
|
|
124
|
+
║ │ AGENTES │ │ DOSSIERS │ │ SKILLS │ │ SOWs │ │PLAYBOOKS │ ║
|
|
125
|
+
║ │ de Cargo │ │Tematicos │ │Executav. │ │Dual-Purp.│ │Operacion.│ ║
|
|
126
|
+
║ │ agents/ │ │knowledge/│ │knowledge/│ │ agents/ │ │knowledge/│ ║
|
|
127
|
+
║ │ cargo/ │ │dossiers/ │ │dna/skills│ │cargo/SOW │ │playbooks/│ ║
|
|
128
|
+
║ └──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘ ║
|
|
129
|
+
║ ║
|
|
130
|
+
╚═══════════════════════════════════════════════════════════════════════════════╝
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Em uma frase:** Conteudo entra como video/PDF, e sai como agentes operacionais
|
|
134
|
+
com ferramentas, skills, SOWs, e quality gates — tudo rastreavel.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## 2. FASE 0: INGESTAO DE CONTEUDO
|
|
139
|
+
|
|
140
|
+
Antes de qualquer processamento, o conteudo bruto precisa ser transformado
|
|
141
|
+
em formato que a maquina entende.
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
╔═════════════════════════════════════════════════════════════════╗
|
|
145
|
+
║ FASE 0: INGESTAO ║
|
|
146
|
+
╠═════════════════════════════════════════════════════════════════╣
|
|
147
|
+
║ ║
|
|
148
|
+
║ FONTES DE CONTEUDO ║
|
|
149
|
+
║ ══════════════════ ║
|
|
150
|
+
║ ║
|
|
151
|
+
║ YouTube ──┐ ║
|
|
152
|
+
║ PDFs ─────┤ ║
|
|
153
|
+
║ Podcasts ─┤──► TRANSCRICAO ──► CHUNKING ──► CHUNKS (JSON) ║
|
|
154
|
+
║ Cursos ───┤ ║
|
|
155
|
+
║ Artigos ──┘ ║
|
|
156
|
+
║ ║
|
|
157
|
+
║ Cada CHUNK e um pedaco semantico com: ║
|
|
158
|
+
║ ┌─────────────────────────────────────────────────────┐ ║
|
|
159
|
+
║ │ { │ ║
|
|
160
|
+
║ │ "chunk_id": "CG-SM001-042", │ ║
|
|
161
|
+
║ │ "source": "Cole Gordon - Sales Masterclass", │ ║
|
|
162
|
+
║ │ "text": "The CLOSER needs to master NEPQ...", │ ║
|
|
163
|
+
║ │ "speaker": "Cole Gordon", │ ║
|
|
164
|
+
║ │ "themes": ["vendas", "objecoes"], │ ║
|
|
165
|
+
║ │ "frameworks": ["NEPQ"], │ ║
|
|
166
|
+
║ │ "key_concepts": ["discovery call", "pain points"] │ ║
|
|
167
|
+
║ │ } │ ║
|
|
168
|
+
║ └─────────────────────────────────────────────────────┘ ║
|
|
169
|
+
║ ║
|
|
170
|
+
║ Localizacao: ║
|
|
171
|
+
║ processing/chunks/*.json (96 chunks ativos) ║
|
|
172
|
+
║ processing/insights/*.json (8 insights curados) ║
|
|
173
|
+
║ ║
|
|
174
|
+
║ Apos chunking, um BATCH.md e criado com os destinos. ║
|
|
175
|
+
║ Esse BATCH.md e o que dispara toda a maquina. ║
|
|
176
|
+
║ ║
|
|
177
|
+
╚═════════════════════════════════════════════════════════════════╝
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**Exemplo concreto:** Voce baixa 3 videos do Cole Gordon sobre vendas.
|
|
181
|
+
Cada video e transcrito e dividido em ~30 chunks semanticos. Esses chunks
|
|
182
|
+
contem frases como *"The closer needs to handle objections using NEPQ"*.
|
|
183
|
+
E nessa frase que a maquina inteira comeca a trabalhar.
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## 3. FASE 1: MODO 1 — DESTINOS DECLARADOS
|
|
188
|
+
|
|
189
|
+
O primeiro passo e ler o que o **autor do batch** declarou explicitamente.
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
╔═════════════════════════════════════════════════════════════════╗
|
|
193
|
+
║ FASE 1: MODO 1 — DESTINOS DECLARADOS ║
|
|
194
|
+
╠═════════════════════════════════════════════════════════════════╣
|
|
195
|
+
║ ║
|
|
196
|
+
║ REGRA #22: "DESTINO DO CONHECIMENTO nao e informativa — ║
|
|
197
|
+
║ e ORDEM DE EXECUCAO." ║
|
|
198
|
+
║ ║
|
|
199
|
+
║ O batch contem uma secao assim: ║
|
|
200
|
+
║ ║
|
|
201
|
+
║ ┌─────────────────────────────────────────────────┐ ║
|
|
202
|
+
║ │ ## DESTINO DO CONHECIMENTO │ ║
|
|
203
|
+
║ │ │ ║
|
|
204
|
+
║ │ AGENTES A ALIMENTAR: │ ║
|
|
205
|
+
║ │ - CLOSER (frameworks: NEPQ, Objection Loop) │ ║
|
|
206
|
+
║ │ - BDR (frameworks: Cold Call Script) │ ║
|
|
207
|
+
║ │ │ ║
|
|
208
|
+
║ │ PLAYBOOKS A ENRIQUECER: │ ║
|
|
209
|
+
║ │ - PLAYBOOK-VENDAS-001 │ ║
|
|
210
|
+
║ │ │ ║
|
|
211
|
+
║ │ DNA A CONSOLIDAR: │ ║
|
|
212
|
+
║ │ - DNA-VENDAS (3 novos frameworks) │ ║
|
|
213
|
+
║ │ │ ║
|
|
214
|
+
║ │ DOSSIERS: │ ║
|
|
215
|
+
║ │ - Dossier Objecoes em Vendas │ ║
|
|
216
|
+
║ └─────────────────────────────────────────────────┘ ║
|
|
217
|
+
║ ║
|
|
218
|
+
║ Script: extract_destinations() no orquestrador ║
|
|
219
|
+
║ Input: Texto markdown do batch ║
|
|
220
|
+
║ Output: Lista de destinos por tipo ║
|
|
221
|
+
║ ║
|
|
222
|
+
║ ┌─────────────────────────────────────────────────┐ ║
|
|
223
|
+
║ │ { │ ║
|
|
224
|
+
║ │ "agents": [CLOSER, BDR], │ ║
|
|
225
|
+
║ │ "playbooks": [PLAYBOOK-VENDAS-001], │ ║
|
|
226
|
+
║ │ "dnas": [DNA-VENDAS], │ ║
|
|
227
|
+
║ │ "dossiers": [Dossier Objecoes] │ ║
|
|
228
|
+
║ │ } │ ║
|
|
229
|
+
║ └─────────────────────────────────────────────────┘ ║
|
|
230
|
+
║ ║
|
|
231
|
+
║ IMPORTANTE: Declarado tem PRIORIDADE sobre inferido. ║
|
|
232
|
+
║ Se o autor disse "vai pro CLOSER", vai pro CLOSER. ║
|
|
233
|
+
║ ║
|
|
234
|
+
╚═════════════════════════════════════════════════════════════════╝
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## 4. FASE 2: MODO 2 — INFERENCIA INTELIGENTE
|
|
240
|
+
|
|
241
|
+
Aqui e onde a maquina comeca a pensar sozinha. Mesmo que o autor
|
|
242
|
+
NAO tenha declarado destinos, a IA descobre para onde o conhecimento deve ir.
|
|
243
|
+
|
|
244
|
+
```
|
|
245
|
+
╔═════════════════════════════════════════════════════════════════════════════╗
|
|
246
|
+
║ FASE 2: MODO 2 — INFERENCIA INTELIGENTE ║
|
|
247
|
+
╠═════════════════════════════════════════════════════════════════════════════╣
|
|
248
|
+
║ ║
|
|
249
|
+
║ Tres scripts trabalham em conjunto para inferir destinos: ║
|
|
250
|
+
║ ║
|
|
251
|
+
║ ┌───────────────────────────────────────────────────────────────┐ ║
|
|
252
|
+
║ │ │ ║
|
|
253
|
+
║ │ TEXTO DO BATCH: "The closer needs to master NEPQ and │ ║
|
|
254
|
+
║ │ handle objections. Our BDR team of 8 generates leads. │ ║
|
|
255
|
+
║ │ We hired a copywriter for the sales pages." │ ║
|
|
256
|
+
║ │ │ ║
|
|
257
|
+
║ └───────────┬───────────────────┬───────────────────┬───────────┘ ║
|
|
258
|
+
║ │ │ │ ║
|
|
259
|
+
║ ▼ ▼ ▼ ║
|
|
260
|
+
║ ┌───────────────┐ ┌────────────────┐ ┌──────────────────────┐ ║
|
|
261
|
+
║ │ ROLE DETECTOR │ │ THEME ANALYZER │ │ ENTITY NORMALIZER │ ║
|
|
262
|
+
║ │ v2.0 │ │ v1.0 │ │ v1.0 │ ║
|
|
263
|
+
║ │ │ │ │ │ │ ║
|
|
264
|
+
║ │ 3 niveis de │ │ Extrai temas │ │ Canonicaliza nomes │ ║
|
|
265
|
+
║ │ deteccao: │ │ de qualquer │ │ (fuzzy matching): │ ║
|
|
266
|
+
║ │ │ │ formato: │ │ │ ║
|
|
267
|
+
║ │ DIRETO (1.0x) │ │ - key_concepts │ │ "Sam oven" ──► │ ║
|
|
268
|
+
║ │ "closer" no │ │ - temas[] │ │ "Sam Ovens" │ ║
|
|
269
|
+
║ │ texto │ │ - themes[] │ │ │ ║
|
|
270
|
+
║ │ │ │ - metadata │ │ "Hormozi" ──► │ ║
|
|
271
|
+
║ │ INFERIDO(0.7x)│ │ │ │ "Alex Hormozi" │ ║
|
|
272
|
+
║ │ "handle │ │ Normaliza via │ │ │ ║
|
|
273
|
+
║ │ objections" │ │ DOMAINS- │ │ Thresholds: │ ║
|
|
274
|
+
║ │ implica │ │ TAXONOMY │ │ >= 0.85: review │ ║
|
|
275
|
+
║ │ CLOSER │ │ │ │ >= 0.95: auto-merge │ ║
|
|
276
|
+
║ │ │ │ │ │ │ ║
|
|
277
|
+
║ │ EMERGENTE │ │ │ │ │ ║
|
|
278
|
+
║ │ (0.5x) │ │ │ │ │ ║
|
|
279
|
+
║ │ "we hired a │ │ │ │ │ ║
|
|
280
|
+
║ │ copywriter" │ │ │ │ │ ║
|
|
281
|
+
║ │ detecta novo │ │ │ │ │ ║
|
|
282
|
+
║ │ cargo │ │ │ │ │ ║
|
|
283
|
+
║ └───────┬───────┘ └───────┬────────┘ └──────────┬───────────┘ ║
|
|
284
|
+
║ │ │ │ ║
|
|
285
|
+
║ ▼ ▼ ▼ ║
|
|
286
|
+
║ ┌─────────────────────────────────────────────────────────────┐ ║
|
|
287
|
+
║ │ ENTITY-REGISTRY.json (v16) │ ║
|
|
288
|
+
║ │ "Single Source of Truth" │ ║
|
|
289
|
+
║ │ │ ║
|
|
290
|
+
║ │ persons: 50 │ roles: 236 │ themes: 448 │ total: 734│ ║
|
|
291
|
+
║ │ │ ║
|
|
292
|
+
║ │ Cada role acumula weighted_score: │ ║
|
|
293
|
+
║ │ │ ║
|
|
294
|
+
║ │ CLOSER: direct=15 inferred=8 emergent=2 │ ║
|
|
295
|
+
║ │ weighted_score = 15×1.0 + 8×0.7 + 2×0.5 = 21.6 │ ║
|
|
296
|
+
║ │ status: "active" (>= 10) │ ║
|
|
297
|
+
║ │ │ ║
|
|
298
|
+
║ │ COPYWRITER: direct=3 inferred=12 emergent=1 │ ║
|
|
299
|
+
║ │ weighted_score = 3×1.0 + 12×0.7 + 1×0.5 = 11.9 │ ║
|
|
300
|
+
║ │ status: "active" (>= 10) │ ║
|
|
301
|
+
║ │ │ ║
|
|
302
|
+
║ │ PODCAST-HOST: direct=0 inferred=0 emergent=2 │ ║
|
|
303
|
+
║ │ weighted_score = 0 + 0 + 2×0.5 = 1.0 │ ║
|
|
304
|
+
║ │ status: "emergent_candidate" (< 3) │ ║
|
|
305
|
+
║ └─────────────────────────────────────────────────────────────┘ ║
|
|
306
|
+
║ ║
|
|
307
|
+
║ Scripts envolvidos: ║
|
|
308
|
+
║ ┌──────────────────────┬──────────────────────────────────────┐ ║
|
|
309
|
+
║ │ role_detector.py │ Detecta cargos em 3 niveis │ ║
|
|
310
|
+
║ │ theme_analyzer.py │ Extrai temas de qualquer formato │ ║
|
|
311
|
+
║ │ entity_normalizer.py │ Canonicaliza e deduplicacao fuzzy │ ║
|
|
312
|
+
║ │ _ROLE_PATTERNS.yaml │ Vocabulario de 33+ cargos com regex │ ║
|
|
313
|
+
║ │ DOMAINS-TAXONOMY.yaml│ 19 dominios para classificacao │ ║
|
|
314
|
+
║ └──────────────────────┴──────────────────────────────────────┘ ║
|
|
315
|
+
║ ║
|
|
316
|
+
╚═════════════════════════════════════════════════════════════════════════════╝
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
**Exemplo concreto:**
|
|
320
|
+
O texto diz *"we hired a copywriter for the sales pages"*.
|
|
321
|
+
- **DIRETO:** Nao mencionou "COPYWRITER" como cargo formal → 0 pontos diretos
|
|
322
|
+
- **INFERIDO:** "hired a copywriter" bate no pattern `contrat[ao]r?\s+(?:a|um)\s+(\w+)` → +0.7
|
|
323
|
+
- **EMERGENTE:** Pattern generico `hired\s+a\s+(\w+)` tambem captura → +0.5
|
|
324
|
+
- **Total:** 1.2 pontos neste batch. Acumula com batches anteriores.
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
## 5. FASE 3: MODO 3 — GATILHOS DE THRESHOLD
|
|
329
|
+
|
|
330
|
+
Apos a deteccao, o sistema verifica: "Alguma entidade atingiu o limiar
|
|
331
|
+
para criar algo novo?"
|
|
332
|
+
|
|
333
|
+
```
|
|
334
|
+
╔═════════════════════════════════════════════════════════════════════════════╗
|
|
335
|
+
║ FASE 3: MODO 3 — GATILHOS DE THRESHOLD ║
|
|
336
|
+
╠═════════════════════════════════════════════════════════════════════════════╣
|
|
337
|
+
║ ║
|
|
338
|
+
║ Dois scripts avaliam os thresholds: ║
|
|
339
|
+
║ ║
|
|
340
|
+
║ ┌───────────────────────────────────────────────────────────────┐ ║
|
|
341
|
+
║ │ DOSSIER TRIGGER (dossier_trigger.py) │ ║
|
|
342
|
+
║ │ │ ║
|
|
343
|
+
║ │ Para cada TEMA no registry, verifica: │ ║
|
|
344
|
+
║ │ │ ║
|
|
345
|
+
║ │ ┌──────────────────────────────────────────────────┐ │ ║
|
|
346
|
+
║ │ │ Tema "Objecoes em Vendas": │ │ ║
|
|
347
|
+
║ │ │ occurrences: 23 (precisa >= 15) ...... OK │ │ ║
|
|
348
|
+
║ │ │ sources: 3 (precisa >= 2) ...... OK │ │ ║
|
|
349
|
+
║ │ │ frameworks: 4 (precisa >= 2) ...... OK │ │ ║
|
|
350
|
+
║ │ │ relevance: 27.5 (precisa >= 25) ...... OK │ │ ║
|
|
351
|
+
║ │ │ has_dossier: false │ │ ║
|
|
352
|
+
║ │ │ ───────────────────────────────────── │ │ ║
|
|
353
|
+
║ │ │ RESULTADO: ★ CRIAR DOSSIER │ │ ║
|
|
354
|
+
║ │ └──────────────────────────────────────────────────┘ │ ║
|
|
355
|
+
║ └───────────────────────────────────────────────────────────────┘ ║
|
|
356
|
+
║ ║
|
|
357
|
+
║ ┌───────────────────────────────────────────────────────────────┐ ║
|
|
358
|
+
║ │ AGENT TRIGGER (agent_trigger.py v2.0) — 3 TIERS │ ║
|
|
359
|
+
║ │ │ ║
|
|
360
|
+
║ │ Para cada ROLE no registry, classifica em 3 niveis: │ ║
|
|
361
|
+
║ │ │ ║
|
|
362
|
+
║ │ ┌───────────────────────────────────────────────────────┐ │ ║
|
|
363
|
+
║ │ │ │ │ ║
|
|
364
|
+
║ │ │ TIER 1: ESTABLISHED (ws >= 10, sources >= 2) │ │ ║
|
|
365
|
+
║ │ │ ════════════════════════════════════════════ │ │ ║
|
|
366
|
+
║ │ │ Acao: ★ CRIAR AGENTE │ │ ║
|
|
367
|
+
║ │ │ │ │ ║
|
|
368
|
+
║ │ │ Exemplos: │ │ ║
|
|
369
|
+
║ │ │ CLOSER ws=21.6 src=3 ──► CRIAR │ │ ║
|
|
370
|
+
║ │ │ BDR ws=14.2 src=2 ──► CRIAR │ │ ║
|
|
371
|
+
║ │ │ COPYWRITER ws=11.9 src=2 ──► CRIAR │ │ ║
|
|
372
|
+
║ │ │ │ │ ║
|
|
373
|
+
║ │ │ ───────────────────────────────────────────── │ │ ║
|
|
374
|
+
║ │ │ │ │ ║
|
|
375
|
+
║ │ │ TIER 2: EMERGING (ws >= 5, sources >= 1) │ │ ║
|
|
376
|
+
║ │ │ ════════════════════════════════════════ │ │ ║
|
|
377
|
+
║ │ │ Acao: Monitorar (status: "tracking") │ │ ║
|
|
378
|
+
║ │ │ │ │ ║
|
|
379
|
+
║ │ │ Exemplos: │ │ ║
|
|
380
|
+
║ │ │ CMO ws=7.3 src=1 ──► MONITORAR │ │ ║
|
|
381
|
+
║ │ │ DESIGNER ws=5.5 src=1 ──► MONITORAR │ │ ║
|
|
382
|
+
║ │ │ │ │ ║
|
|
383
|
+
║ │ │ ───────────────────────────────────────────── │ │ ║
|
|
384
|
+
║ │ │ │ │ ║
|
|
385
|
+
║ │ │ TIER 3: EMERGENT (ws >= 3, sources >= 1) │ │ ║
|
|
386
|
+
║ │ │ ════════════════════════════════════════ │ │ ║
|
|
387
|
+
║ │ │ Acao: Observar (status: "emergent_candidate") │ │ ║
|
|
388
|
+
║ │ │ │ │ ║
|
|
389
|
+
║ │ │ Exemplos: │ │ ║
|
|
390
|
+
║ │ │ PODCAST-HOST ws=1.0 ──► OBSERVAR │ │ ║
|
|
391
|
+
║ │ │ VIDEOGRAPHER ws=3.2 ──► OBSERVAR │ │ ║
|
|
392
|
+
║ │ │ │ │ ║
|
|
393
|
+
║ │ └───────────────────────────────────────────────────────┘ │ ║
|
|
394
|
+
║ └───────────────────────────────────────────────────────────────┘ ║
|
|
395
|
+
║ ║
|
|
396
|
+
║ Configuracao: trigger_config.yaml (v2.0) ║
|
|
397
|
+
║ ║
|
|
398
|
+
║ Relevance Score (Dossiers): ║
|
|
399
|
+
║ ┌────────────────────────────────────────────────────────┐ ║
|
|
400
|
+
║ │ cross_source_weight: 3.0 (bonus por fonte extra) │ ║
|
|
401
|
+
║ │ framework_weight: 2.0 (bonus por framework) │ ║
|
|
402
|
+
║ │ methodology_weight: 2.0 (bonus por metodologia) │ ║
|
|
403
|
+
║ │ heuristic_weight: 1.5 (bonus por heuristica) │ ║
|
|
404
|
+
║ │ philosophy_weight: 1.0 (bonus por filosofia) │ ║
|
|
405
|
+
║ └────────────────────────────────────────────────────────┘ ║
|
|
406
|
+
║ ║
|
|
407
|
+
╚═════════════════════════════════════════════════════════════════════════════╝
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
**Exemplo concreto:** Apos 5 batches do Cole Gordon, o role CLOSER acumulou
|
|
411
|
+
weighted_score 21.6 e aparece em 3 fontes distintas. O agent_trigger diz:
|
|
412
|
+
*"CLOSER atingiu Tier 1 (established). CRIAR AGENTE."*
|
|
413
|
+
|
|
414
|
+
---
|
|
415
|
+
|
|
416
|
+
## 6. FASE 4: MERGE E CASCATEAMENTO
|
|
417
|
+
|
|
418
|
+
Agora os tres modos convergem. Destinos declarados, inferidos e triggados
|
|
419
|
+
sao combinados e o sistema grava fisicamente nos destinos.
|
|
420
|
+
|
|
421
|
+
```
|
|
422
|
+
╔═════════════════════════════════════════════════════════════════════════════╗
|
|
423
|
+
║ FASE 4: MERGE + CASCATEAMENTO FISICO ║
|
|
424
|
+
╠═════════════════════════════════════════════════════════════════════════════╣
|
|
425
|
+
║ ║
|
|
426
|
+
║ MERGE: 3 fontes combinadas com prioridade ║
|
|
427
|
+
║ ║
|
|
428
|
+
║ ┌──────────┐ ┌──────────┐ ┌──────────┐ ║
|
|
429
|
+
║ │ MODO 1 │ + │ MODO 2 │ + │ MODO 3 │ ║
|
|
430
|
+
║ │Declarado │ │ Inferido │ │ Triggers │ ║
|
|
431
|
+
║ │PRIORIDADE│ │ │ │ │ ║
|
|
432
|
+
║ │ MAXIMA │ │ │ │ │ ║
|
|
433
|
+
║ └─────┬────┘ └─────┬────┘ └─────┬────┘ ║
|
|
434
|
+
║ │ │ │ ║
|
|
435
|
+
║ └──────────────┼──────────────┘ ║
|
|
436
|
+
║ │ ║
|
|
437
|
+
║ ▼ ║
|
|
438
|
+
║ ┌────────────────┐ ║
|
|
439
|
+
║ │ DEDUPLICACAO │ Se CLOSER aparece nos 3, ║
|
|
440
|
+
║ │ + MERGE │ usa o do MODO 1 (declarado). ║
|
|
441
|
+
║ └────────┬───────┘ ║
|
|
442
|
+
║ │ ║
|
|
443
|
+
║ ┌────────────┼────────────┬────────────┐ ║
|
|
444
|
+
║ ▼ ▼ ▼ ▼ ║
|
|
445
|
+
║ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ║
|
|
446
|
+
║ │ cascade │ │ cascade │ │ cascade │ │ cascade │ ║
|
|
447
|
+
║ │ _to_ │ │ _to_ │ │ _to_ │ │ _to_ │ ║
|
|
448
|
+
║ │ agents() │ │playbooks │ │ dnas() │ │dossiers()│ ║
|
|
449
|
+
║ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ ║
|
|
450
|
+
║ │ │ │ │ ║
|
|
451
|
+
║ ▼ ▼ ▼ ▼ ║
|
|
452
|
+
║ agents/ knowledge/ knowledge/ knowledge/ ║
|
|
453
|
+
║ cargo/ playbooks/ dna/ dossiers/ ║
|
|
454
|
+
║ persons/ persons/ themes/ ║
|
|
455
|
+
║ ║
|
|
456
|
+
║ O que cada cascade faz: ║
|
|
457
|
+
║ 1. Encontra o artefato existente OU cria novo ║
|
|
458
|
+
║ 2. Extrai CONTEUDO REAL dos frameworks (nao so nomes) ║
|
|
459
|
+
║ 3. Appenda ao arquivo do destino ║
|
|
460
|
+
║ 4. Loga no cascading.jsonl ║
|
|
461
|
+
║ ║
|
|
462
|
+
╚═════════════════════════════════════════════════════════════════════════════╝
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
---
|
|
466
|
+
|
|
467
|
+
## 7. FASE 5: MODO 4 — ANALISE DE INTELIGENCIA
|
|
468
|
+
|
|
469
|
+
```
|
|
470
|
+
╔═════════════════════════════════════════════════════════════════════════════╗
|
|
471
|
+
║ ║
|
|
472
|
+
║ ██╗███╗ ██╗ ██████╗ ██╗ ██╗ ██████╗ ██╗ ██╗██╗ ██╗ ██████╗ ║
|
|
473
|
+
║ ████╗ ██║██╔═══██╗██║ ██║██╔═══██╗ ██║ ██║██║ ██║██╔═══██╗ ║
|
|
474
|
+
║ ██╔██╗ ██║██║ ██║██║ ██║██║ ██║ ██║ ██║███████║██║ ██║ ║
|
|
475
|
+
║ ██║╚██╗██║██║ ██║╚██╗ ██╔╝██║ ██║ ╚██╗ ██╔╝╚════██║██║ ██║ ║
|
|
476
|
+
║ ██║ ╚████║╚██████╔╝ ╚████╔╝ ╚██████╔╝ ╚████╔╝ ██║╚██████╔╝ ║
|
|
477
|
+
║ ╚═╝ ╚═══╝ ╚═════╝ ╚═══╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═════╝ ║
|
|
478
|
+
║ ║
|
|
479
|
+
║ FASE 5: MODO 4 — ANALISE DE INTELIGENCIA [★ NOVO v4.0] ║
|
|
480
|
+
╠═══════════════════════════════════════════════════════════════════════════╣
|
|
481
|
+
║ ║
|
|
482
|
+
║ Tres sub-etapas executam em sequencia: ║
|
|
483
|
+
║ ║
|
|
484
|
+
║ ┌─────────────────────────────────────────────────────────────────────┐ ║
|
|
485
|
+
║ │ │ ║
|
|
486
|
+
║ │ ★ MODO 4a: BUSINESS MODEL DETECTOR │ ║
|
|
487
|
+
║ │ ═══════════════════════════════════ │ ║
|
|
488
|
+
║ │ Script: business_model_detector.py │ ║
|
|
489
|
+
║ │ │ ║
|
|
490
|
+
║ │ O que faz: │ ║
|
|
491
|
+
║ │ Analisa chunks e descobre a ESTRUTURA ORGANIZACIONAL │ ║
|
|
492
|
+
║ │ de cada pessoa mencionada. │ ║
|
|
493
|
+
║ │ │ ║
|
|
494
|
+
║ │ Detecta: │ ║
|
|
495
|
+
║ │ ┌─────────────────────────────────────────────────────┐ │ ║
|
|
496
|
+
║ │ │ DEPARTAMENTOS │ │ ║
|
|
497
|
+
║ │ │ "Our sales team" ──► Dept: Sales │ │ ║
|
|
498
|
+
║ │ │ "Head of Marketing" ──► Dept: Marketing │ │ ║
|
|
499
|
+
║ │ │ │ │ ║
|
|
500
|
+
║ │ │ TEAM SIZES │ │ ║
|
|
501
|
+
║ │ │ "team of 12" ──► 12 pessoas │ │ ║
|
|
502
|
+
║ │ │ "grew to 200 employees" ──► 200 pessoas │ │ ║
|
|
503
|
+
║ │ │ │ │ ║
|
|
504
|
+
║ │ │ REVENUE SIGNALS │ │ ║
|
|
505
|
+
║ │ │ "revenue of $100M" ──► $100M │ │ ║
|
|
506
|
+
║ │ │ "ticket medio de R$5.000" ──► R$5K │ │ ║
|
|
507
|
+
║ │ │ │ │ ║
|
|
508
|
+
║ │ │ ROLE CONSOLIDATION │ │ ║
|
|
509
|
+
║ │ │ "She also handles marketing" ──► 1 pessoa, 2 jobs │ │ ║
|
|
510
|
+
║ │ │ "wears many hats" ──► consolidacao detectada │ │ ║
|
|
511
|
+
║ │ │ │ │ ║
|
|
512
|
+
║ │ │ ROLE CHAIN (Hierarquia) │ │ ║
|
|
513
|
+
║ │ │ CEO ──► COO ──► Sales Manager ──► Closer │ │ ║
|
|
514
|
+
║ │ │ └──► CRO ──► BDR Lead ──► BDR │ │ ║
|
|
515
|
+
║ │ │ └──► CMO ──► Content Lead │ │ ║
|
|
516
|
+
║ │ └─────────────────────────────────────────────────────┘ │ ║
|
|
517
|
+
║ │ │ ║
|
|
518
|
+
║ │ Grava no ENTITY-REGISTRY: │ ║
|
|
519
|
+
║ │ persons["Alex Hormozi"].business_model = { │ ║
|
|
520
|
+
║ │ departments: ["Sales", "Marketing", "Ops", "Acquisition"], │ ║
|
|
521
|
+
║ │ team_size_estimate: "50-200", │ ║
|
|
522
|
+
║ │ revenue_signals: ["$100M+"], │ ║
|
|
523
|
+
║ │ role_chain: { CEO -> COO -> ... }, │ ║
|
|
524
|
+
║ │ role_consolidation: [...] │ ║
|
|
525
|
+
║ │ } │ ║
|
|
526
|
+
║ │ │ ║
|
|
527
|
+
║ └─────────────────────────────────────────────────────────────────────┘ ║
|
|
528
|
+
║ ║
|
|
529
|
+
║ ┌─────────────────────────────────────────────────────────────────────┐ ║
|
|
530
|
+
║ │ │ ║
|
|
531
|
+
║ │ ★ MODO 4b: SOW GENERATOR (Dual-Purpose) │ ║
|
|
532
|
+
║ │ ════════════════════════════════════════ │ ║
|
|
533
|
+
║ │ Script: sow_generator.py │ ║
|
|
534
|
+
║ │ │ ║
|
|
535
|
+
║ │ O que faz: │ ║
|
|
536
|
+
║ │ Para cada cargo com weighted_score suficiente, gera um │ ║
|
|
537
|
+
║ │ SOW (Statement of Work) que serve TANTO para configurar │ ║
|
|
538
|
+
║ │ agente IA quanto como job description para contratar humano. │ ║
|
|
539
|
+
║ │ │ ║
|
|
540
|
+
║ │ EXECUTOR DECISION TREE (6 perguntas): │ ║
|
|
541
|
+
║ │ ┌──────────────────────────────────────────────────────────┐ │ ║
|
|
542
|
+
║ │ │ │ │ ║
|
|
543
|
+
║ │ │ Q1: Output 100% previsivel? │ │ ║
|
|
544
|
+
║ │ │ SIM ──► WORKER (automacao pura) │ │ ║
|
|
545
|
+
║ │ │ NAO ──► continua │ │ ║
|
|
546
|
+
║ │ │ │ │ ║
|
|
547
|
+
║ │ │ Q2: Pode ser funcao pura (input → output)? │ │ ║
|
|
548
|
+
║ │ │ SIM ──► WORKER │ │ ║
|
|
549
|
+
║ │ │ NAO ──► continua │ │ ║
|
|
550
|
+
║ │ │ │ │ ║
|
|
551
|
+
║ │ │ Q3: Precisa interpretar linguagem natural? │ │ ║
|
|
552
|
+
║ │ │ NAO ──► WORKER │ │ ║
|
|
553
|
+
║ │ │ SIM ──► continua │ │ ║
|
|
554
|
+
║ │ │ │ │ ║
|
|
555
|
+
║ │ │ Q4: Impacto de erro e significativo? │ │ ║
|
|
556
|
+
║ │ │ SIM ──► HYBRID (humano valida) │ │ ║
|
|
557
|
+
║ │ │ NAO ──► continua │ │ ║
|
|
558
|
+
║ │ │ │ │ ║
|
|
559
|
+
║ │ │ Q5: Requer julgamento estrategico? │ │ ║
|
|
560
|
+
║ │ │ SIM ──► HYBRID ou HUMAN │ │ ║
|
|
561
|
+
║ │ │ NAO ──► AGENT │ │ ║
|
|
562
|
+
║ │ │ │ │ ║
|
|
563
|
+
║ │ │ Q6: IA pode assistir/preparar? │ │ ║
|
|
564
|
+
║ │ │ SIM ──► HYBRID (IA prepara, humano decide) │ │ ║
|
|
565
|
+
║ │ │ NAO ──► HUMAN (100% humano) │ │ ║
|
|
566
|
+
║ │ │ │ │ ║
|
|
567
|
+
║ │ └──────────────────────────────────────────────────────────┘ │ ║
|
|
568
|
+
║ │ │ ║
|
|
569
|
+
║ │ Resultado por cargo: │ ║
|
|
570
|
+
║ │ ┌──────────────────────────────────────────────┐ │ ║
|
|
571
|
+
║ │ │ CLOSER ──────────► Hybrid (vende, IA prep) │ │ ║
|
|
572
|
+
║ │ │ DATA-ANALYST ───► Agent (opera com dados) │ │ ║
|
|
573
|
+
║ │ │ BDR ─────────────► Hybrid (outbound + IA) │ │ ║
|
|
574
|
+
║ │ │ REPORT-MAKER ───► Worker (output previsiv) │ │ ║
|
|
575
|
+
║ │ │ CEO ─────────────► Human (100% estrateg.) │ │ ║
|
|
576
|
+
║ │ └──────────────────────────────────────────────┘ │ ║
|
|
577
|
+
║ │ │ ║
|
|
578
|
+
║ │ Grava: agents/cargo/{dominio}/{role}/SOW.md + SOW.json │ ║
|
|
579
|
+
║ │ 44 SOWs gerados atualmente │ ║
|
|
580
|
+
║ │ │ ║
|
|
581
|
+
║ └─────────────────────────────────────────────────────────────────────┘ ║
|
|
582
|
+
║ ║
|
|
583
|
+
║ ┌─────────────────────────────────────────────────────────────────────┐ ║
|
|
584
|
+
║ │ │ ║
|
|
585
|
+
║ │ ★ MODO 4c: SKILL GENERATOR (NERO Pipeline) │ ║
|
|
586
|
+
║ │ ═══════════════════════════════════════════ │ ║
|
|
587
|
+
║ │ Script: skill_generator.py │ ║
|
|
588
|
+
║ │ │ ║
|
|
589
|
+
║ │ O que faz: │ ║
|
|
590
|
+
║ │ Le os chunks/insights de cada persona e converte FRAMEWORKS │ ║
|
|
591
|
+
║ │ mencionados em SKILLS EXECUTAVEIS (SKILL.md). │ ║
|
|
592
|
+
║ │ │ ║
|
|
593
|
+
║ │ Pipeline: Framework no DNA ──► SKILL.md executavel │ ║
|
|
594
|
+
║ │ │ ║
|
|
595
|
+
║ │ Exemplo: │ ║
|
|
596
|
+
║ │ Chunk diz: "I use the CLOSER Framework: C=Clarify, L=Label..." │ ║
|
|
597
|
+
║ │ │ ║
|
|
598
|
+
║ │ Gera SKILL.md: │ ║
|
|
599
|
+
║ │ ┌──────────────────────────────────────────────────────┐ │ ║
|
|
600
|
+
║ │ │ # CLOSER Framework │ │ ║
|
|
601
|
+
║ │ │ > Skill ID: dna-alex-hormozi-closer-framework │ │ ║
|
|
602
|
+
║ │ │ > Source: DNA Layer 4 - Alex Hormozi │ │ ║
|
|
603
|
+
║ │ │ > Type: sequential │ │ ║
|
|
604
|
+
║ │ │ │ │ ║
|
|
605
|
+
║ │ │ ## Quando Usar │ │ ║
|
|
606
|
+
║ │ │ Calls de vendas high-ticket ($5K+) │ │ ║
|
|
607
|
+
║ │ │ │ │ ║
|
|
608
|
+
║ │ │ ## Quando NAO Usar │ │ ║
|
|
609
|
+
║ │ │ Vendas transacionais de baixo valor │ │ ║
|
|
610
|
+
║ │ │ │ │ ║
|
|
611
|
+
║ │ │ ## Workflow │ │ ║
|
|
612
|
+
║ │ │ 1. Clarify the problem │ │ ║
|
|
613
|
+
║ │ │ 2. Label the emotion │ │ ║
|
|
614
|
+
║ │ │ 3. Overview the past attempts │ │ ║
|
|
615
|
+
║ │ │ 4. Sell the solution │ │ ║
|
|
616
|
+
║ │ │ 5. Explain away concerns │ │ ║
|
|
617
|
+
║ │ │ 6. Reinforce the decision │ │ ║
|
|
618
|
+
║ │ │ │ │ ║
|
|
619
|
+
║ │ │ ## Evidencia │ │ ║
|
|
620
|
+
║ │ │ "The CLOSER framework is what I used to close │ │ ║
|
|
621
|
+
║ │ │ over $100M in sales..." — Alex Hormozi │ │ ║
|
|
622
|
+
║ │ └──────────────────────────────────────────────────────┘ │ ║
|
|
623
|
+
║ │ │ ║
|
|
624
|
+
║ │ Registra em: knowledge/dna/_dna-skills-registry.yaml │ ║
|
|
625
|
+
║ │ 530 skills geradas atualmente │ ║
|
|
626
|
+
║ │ │ ║
|
|
627
|
+
║ └─────────────────────────────────────────────────────────────────────┘ ║
|
|
628
|
+
║ ║
|
|
629
|
+
╚═════════════════════════════════════════════════════════════════════════════╝
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
---
|
|
633
|
+
|
|
634
|
+
## 8. FASE 6: MODO 5 — ENFORCEMENT DE QUALIDADE
|
|
635
|
+
|
|
636
|
+
```
|
|
637
|
+
╔═════════════════════════════════════════════════════════════════════════════╗
|
|
638
|
+
║ ║
|
|
639
|
+
║ FASE 6: MODO 5 — ENFORCEMENT DE QUALIDADE [★ NOVO v4.0] ║
|
|
640
|
+
║ "Nada ruim passa. Nada generico e criado." ║
|
|
641
|
+
╠═══════════════════════════════════════════════════════════════════════════╣
|
|
642
|
+
║ ║
|
|
643
|
+
║ ┌─────────────────────────────────────────────────────────────────────┐ ║
|
|
644
|
+
║ │ │ ║
|
|
645
|
+
║ │ ★ MODO 5a: QUALITY GATES (6 gates + 8 vetos) │ ║
|
|
646
|
+
║ │ ═════════════════════════════════════════════ │ ║
|
|
647
|
+
║ │ Config: quality_gates.yaml │ ║
|
|
648
|
+
║ │ Script: viability_scorer.py (funcao check_quality_gates) │ ║
|
|
649
|
+
║ │ │ ║
|
|
650
|
+
║ │ 6 GATES DE QUALIDADE: │ ║
|
|
651
|
+
║ │ ┌──────────────────────────────────────────────────────────────┐ │ ║
|
|
652
|
+
║ │ │ │ │ ║
|
|
653
|
+
║ │ │ QG-1.1 ENTITY VIABILITY [auto] │ │ ║
|
|
654
|
+
║ │ │ ──────────────────────────────────────── │ │ ║
|
|
655
|
+
║ │ │ Pergunta: "Entidade tem evidencia suficiente?" │ │ ║
|
|
656
|
+
║ │ │ Criterio: weighted_score >= 10 E sources >= 2 │ │ ║
|
|
657
|
+
║ │ │ Passa: marca como "active" │ │ ║
|
|
658
|
+
║ │ │ Falha: marca como "tracking" (nao cria agente) │ │ ║
|
|
659
|
+
║ │ │ │ │ ║
|
|
660
|
+
║ │ │ QG-1.2 ENTITY DEDUPLICATION [auto] │ │ ║
|
|
661
|
+
║ │ │ ──────────────────────────────────────── │ │ ║
|
|
662
|
+
║ │ │ Pergunta: "Ja existe entidade igual?" │ │ ║
|
|
663
|
+
║ │ │ Criterio: fuzzy score < 0.85 contra existentes │ │ ║
|
|
664
|
+
║ │ │ Passa: cria nova │ │ ║
|
|
665
|
+
║ │ │ Falha: vai pra review_queue (merge manual) │ │ ║
|
|
666
|
+
║ │ │ │ │ ║
|
|
667
|
+
║ │ │ QG-2.1 DOSSIER QUALITY [auto] │ │ ║
|
|
668
|
+
║ │ │ ──────────────────────────────────────── │ │ ║
|
|
669
|
+
║ │ │ Pergunta: "Dossier tem substancia?" │ │ ║
|
|
670
|
+
║ │ │ Criterio: relevance >= 25 E occurrences >= 15 │ │ ║
|
|
671
|
+
║ │ │ E sources >= 2 E frameworks >= 2 │ │ ║
|
|
672
|
+
║ │ │ Passa: cria dossier │ │ ║
|
|
673
|
+
║ │ │ Falha: marca como "candidate" (monitorar) │ │ ║
|
|
674
|
+
║ │ │ │ │ ║
|
|
675
|
+
║ │ │ QG-3.1 AGENT CREATION QUALITY [hybrid] │ │ ║
|
|
676
|
+
║ │ │ ──────────────────────────────────────── │ │ ║
|
|
677
|
+
║ │ │ Pergunta: "Agente tem base pra existir?" │ │ ║
|
|
678
|
+
║ │ │ Criterio: SOW gerado E 3+ responsibilities │ │ ║
|
|
679
|
+
║ │ │ E domain match E ws >= 10 │ │ ║
|
|
680
|
+
║ │ │ Passa: cria agente │ │ ║
|
|
681
|
+
║ │ │ Falha: bloqueia (requer aprovacao humana) │ │ ║
|
|
682
|
+
║ │ │ │ │ ║
|
|
683
|
+
║ │ │ QG-4.1 SKILL QUALITY [auto] │ │ ║
|
|
684
|
+
║ │ │ ──────────────────────────────────────── │ │ ║
|
|
685
|
+
║ │ │ Pergunta: "Skill e executavel?" │ │ ║
|
|
686
|
+
║ │ │ Criterio: source verificavel E 3+ workflow steps │ │ ║
|
|
687
|
+
║ │ │ E evidence > 50 chars │ │ ║
|
|
688
|
+
║ │ │ Passa: publica skill │ │ ║
|
|
689
|
+
║ │ │ Falha: marca como "draft" │ │ ║
|
|
690
|
+
║ │ │ │ │ ║
|
|
691
|
+
║ │ │ QG-5.1 BUSINESS MODEL CONSIST. [hybrid] │ │ ║
|
|
692
|
+
║ │ │ ──────────────────────────────────────── │ │ ║
|
|
693
|
+
║ │ │ Pergunta: "Modelo de negocio faz sentido?" │ │ ║
|
|
694
|
+
║ │ │ Criterio: sem ciclos na hierarquia E depts com roles │ │ ║
|
|
695
|
+
║ │ │ E revenue consistente com team_size │ │ ║
|
|
696
|
+
║ │ │ Passa: valida modelo │ │ ║
|
|
697
|
+
║ │ │ Falha: flag pra revisao humana │ │ ║
|
|
698
|
+
║ │ │ │ │ ║
|
|
699
|
+
║ │ └──────────────────────────────────────────────────────────────┘ │ ║
|
|
700
|
+
║ │ │ ║
|
|
701
|
+
║ │ 8 CONDICOES DE VETO (bloqueantes — nao podem ser overridden): │ ║
|
|
702
|
+
║ │ ┌──────────────────────────────────────────────────────────────┐ │ ║
|
|
703
|
+
║ │ │ │ │ ║
|
|
704
|
+
║ │ │ VC-001 < 2 fontes ──► VETO criar agente │ │ ║
|
|
705
|
+
║ │ │ VC-002 Sem domain match ──► VETO (add taxonomy antes) │ │ ║
|
|
706
|
+
║ │ │ VC-003 Hierarquia circular ──► VETO (corrigir antes) │ │ ║
|
|
707
|
+
║ │ │ VC-004 Agente generico ──► VETO (minds first!) │ │ ║
|
|
708
|
+
║ │ │ VC-005 Skill sem evidencia ──► VETO publicar (fica draft) │ │ ║
|
|
709
|
+
║ │ │ VC-006 Duplicata >= 0.95 ──► VETO (auto-merge) │ │ ║
|
|
710
|
+
║ │ │ VC-007 SOW vazio ──► VETO publicar │ │ ║
|
|
711
|
+
║ │ │ VC-008 Dossier sem fonte ──► VETO criar │ │ ║
|
|
712
|
+
║ │ │ │ │ ║
|
|
713
|
+
║ │ └──────────────────────────────────────────────────────────────┘ │ ║
|
|
714
|
+
║ │ │ ║
|
|
715
|
+
║ └─────────────────────────────────────────────────────────────────────┘ ║
|
|
716
|
+
║ ║
|
|
717
|
+
║ ┌─────────────────────────────────────────────────────────────────────┐ ║
|
|
718
|
+
║ │ │ ║
|
|
719
|
+
║ │ ★ MODO 5b: APEX VIABILITY SCORING (5 Dimensoes) │ ║
|
|
720
|
+
║ │ ════════════════════════════════════════════════ │ ║
|
|
721
|
+
║ │ Script: viability_scorer.py │ ║
|
|
722
|
+
║ │ │ ║
|
|
723
|
+
║ │ Avalia CADA PERSONA em 5 dimensoes antes de criar agente: │ ║
|
|
724
|
+
║ │ │ ║
|
|
725
|
+
║ │ ┌──────────────────────────────────────────────────────────────┐ │ ║
|
|
726
|
+
║ │ │ │ │ ║
|
|
727
|
+
║ │ │ A AVAILABILITY (peso 1.0) Volume de conteudo │ │ ║
|
|
728
|
+
║ │ │ ───────────────────────────────────────────────── │ │ ║
|
|
729
|
+
║ │ │ 10h+ conteudo, 3+ tipos de fonte ........... 10 pts │ │ ║
|
|
730
|
+
║ │ │ 5-10h, 2 tipos ............................ 7 pts │ │ ║
|
|
731
|
+
║ │ │ 1-5h, 1 tipo .............................. 5 pts │ │ ║
|
|
732
|
+
║ │ │ < 1h ....................................... 3 pts │ │ ║
|
|
733
|
+
║ │ │ │ │ ║
|
|
734
|
+
║ │ │ P PERSONA CLARITY (peso 0.9) Consistencia de voz │ │ ║
|
|
735
|
+
║ │ │ ───────────────────────────────────────────────── │ │ ║
|
|
736
|
+
║ │ │ Voice consistente, frameworks unicos ...... 10 pts │ │ ║
|
|
737
|
+
║ │ │ Voice identificavel, alguns frameworks .... 7 pts │ │ ║
|
|
738
|
+
║ │ │ Voice variavel ............................. 5 pts │ │ ║
|
|
739
|
+
║ │ │ Sem voice distinta ......................... 3 pts │ │ ║
|
|
740
|
+
║ │ │ │ │ ║
|
|
741
|
+
║ │ │ E EVOLUTION (peso 0.8) Cobertura temporal │ │ ║
|
|
742
|
+
║ │ │ ───────────────────────────────────────────────── │ │ ║
|
|
743
|
+
║ │ │ 5+ anos, evolucao visivel .................. 10 pts │ │ ║
|
|
744
|
+
║ │ │ 2-5 anos ................................... 7 pts │ │ ║
|
|
745
|
+
║ │ │ 1-2 anos ................................... 5 pts │ │ ║
|
|
746
|
+
║ │ │ < 1 ano .................................... 3 pts │ │ ║
|
|
747
|
+
║ │ │ │ │ ║
|
|
748
|
+
║ │ │ X EXPERTISE (peso 0.9) Frameworks originais │ │ ║
|
|
749
|
+
║ │ │ ───────────────────────────────────────────────── │ │ ║
|
|
750
|
+
║ │ │ 10+ frameworks originais ................... 10 pts │ │ ║
|
|
751
|
+
║ │ │ 5-10 frameworks ............................ 7 pts │ │ ║
|
|
752
|
+
║ │ │ 2-5 frameworks ............................. 5 pts │ │ ║
|
|
753
|
+
║ │ │ < 2 frameworks ............................. 3 pts │ │ ║
|
|
754
|
+
║ │ │ │ │ ║
|
|
755
|
+
║ │ │ S STRATEGIC FIT (peso 0.8) Alinhamento com dominios │ │ ║
|
|
756
|
+
║ │ │ ───────────────────────────────────────────────── │ │ ║
|
|
757
|
+
║ │ │ Alinhamento direto com dominios core ....... 10 pts │ │ ║
|
|
758
|
+
║ │ │ Alinhamento parcial ........................ 7 pts │ │ ║
|
|
759
|
+
║ │ │ Tangencial ................................. 5 pts │ │ ║
|
|
760
|
+
║ │ │ Sem alinhamento ............................ 3 pts │ │ ║
|
|
761
|
+
║ │ │ │ │ ║
|
|
762
|
+
║ │ └──────────────────────────────────────────────────────────────┘ │ ║
|
|
763
|
+
║ │ │ ║
|
|
764
|
+
║ │ Decisao: │ ║
|
|
765
|
+
║ │ ┌──────────────────────────────────────────────────────────────┐ │ ║
|
|
766
|
+
║ │ │ │ │ ║
|
|
767
|
+
║ │ │ APEX >= 7.0 ──► ✅ GO Criar agente completo │ │ ║
|
|
768
|
+
║ │ │ APEX 5.0-6.9 ──► ⚠️ CONDICIONAL Criar com ressalvas │ │ ║
|
|
769
|
+
║ │ │ APEX < 5.0 ──► ❌ NO-GO Apenas tracking │ │ ║
|
|
770
|
+
║ │ │ │ │ ║
|
|
771
|
+
║ │ │ Exemplos reais: │ │ ║
|
|
772
|
+
║ │ │ Alex Hormozi APEX=8.82 ──► GO │ │ ║
|
|
773
|
+
║ │ │ Cole Gordon APEX=6.36 ──► CONDICIONAL │ │ ║
|
|
774
|
+
║ │ │ Sam Ovens APEX=5.91 ──► CONDICIONAL │ │ ║
|
|
775
|
+
║ │ │ Desconhecido X APEX=2.10 ──► NO-GO │ │ ║
|
|
776
|
+
║ │ │ │ │ ║
|
|
777
|
+
║ │ └──────────────────────────────────────────────────────────────┘ │ ║
|
|
778
|
+
║ │ │ ║
|
|
779
|
+
║ └─────────────────────────────────────────────────────────────────────┘ ║
|
|
780
|
+
║ ║
|
|
781
|
+
║ ┌─────────────────────────────────────────────────────────────────────┐ ║
|
|
782
|
+
║ │ │ ║
|
|
783
|
+
║ │ ★ MODO 5c: TOOL DISCOVERY + COMMAND LOADER │ ║
|
|
784
|
+
║ │ ═══════════════════════════════════════════ │ ║
|
|
785
|
+
║ │ Script: tool_discovery.py │ ║
|
|
786
|
+
║ │ │ ║
|
|
787
|
+
║ │ Para cada cargo, descobre ferramentas necessarias: │ ║
|
|
788
|
+
║ │ │ ║
|
|
789
|
+
║ │ ┌───────────────────────────────────────────────────────────┐ │ ║
|
|
790
|
+
║ │ │ CLOSER: │ │ ║
|
|
791
|
+
║ │ │ Essential: CRM, Calendar, Video Call │ │ ║
|
|
792
|
+
║ │ │ Recommended: Proposal Tool, WhatsApp Business │ │ ║
|
|
793
|
+
║ │ │ MCP Available: hubspot-mcp, google-calendar-mcp │ │ ║
|
|
794
|
+
║ │ │ │ │ ║
|
|
795
|
+
║ │ │ BDR: │ │ ║
|
|
796
|
+
║ │ │ Essential: CRM, Dialer, Email Sequencer │ │ ║
|
|
797
|
+
║ │ │ Recommended: LinkedIn Sales Navigator │ │ ║
|
|
798
|
+
║ │ │ MCP Available: hubspot-mcp, gmail-mcp │ │ ║
|
|
799
|
+
║ │ │ │ │ ║
|
|
800
|
+
║ │ │ COPYWRITER: │ │ ║
|
|
801
|
+
║ │ │ Essential: Google Docs, Reference Library │ │ ║
|
|
802
|
+
║ │ │ Recommended: Grammarly, Headline Analyzer │ │ ║
|
|
803
|
+
║ │ │ MCP Available: google-drive-mcp │ │ ║
|
|
804
|
+
║ │ └───────────────────────────────────────────────────────────┘ │ ║
|
|
805
|
+
║ │ │ ║
|
|
806
|
+
║ │ COMMAND LOADER (regra critica): │ ║
|
|
807
|
+
║ │ "Ao ativar este agente, CARREGAR tasks ANTES de executar." │ ║
|
|
808
|
+
║ │ │ ║
|
|
809
|
+
║ │ ┌───────────────────────────────────────────────────────────┐ │ ║
|
|
810
|
+
║ │ │ Agente CLOSER — Tasks Obrigatorias: │ │ ║
|
|
811
|
+
║ │ │ │ │ ║
|
|
812
|
+
║ │ │ *execute-close closer-call-framework.md │ │ ║
|
|
813
|
+
║ │ │ *objection-handle closer-objections.md │ │ ║
|
|
814
|
+
║ │ │ *pipeline-review closer-pipeline.md │ │ ║
|
|
815
|
+
║ │ └───────────────────────────────────────────────────────────┘ │ ║
|
|
816
|
+
║ │ │ ║
|
|
817
|
+
║ │ AUTONOMY LEVELS: │ ║
|
|
818
|
+
║ │ ┌───────────────────────────────────────────────────────────┐ │ ║
|
|
819
|
+
║ │ │ Level 0: Reference (consulta apenas) │ │ ║
|
|
820
|
+
║ │ │ Level 1: Assisted (IA prepara, humano executa) │ │ ║
|
|
821
|
+
║ │ │ Level 2: Supervised (IA executa, humano valida) │ │ ║
|
|
822
|
+
║ │ │ Level 3: Autonomous (IA opera, humano monitora) │ │ ║
|
|
823
|
+
║ │ │ Level 4: Full Auto (IA sozinha) │ │ ║
|
|
824
|
+
║ │ └───────────────────────────────────────────────────────────┘ │ ║
|
|
825
|
+
║ │ │ ║
|
|
826
|
+
║ └─────────────────────────────────────────────────────────────────────┘ ║
|
|
827
|
+
║ ║
|
|
828
|
+
╚═════════════════════════════════════════════════════════════════════════════╝
|
|
829
|
+
```
|
|
830
|
+
|
|
831
|
+
---
|
|
832
|
+
|
|
833
|
+
## 9. FASE 7: VALIDACAO E MANIFEST
|
|
834
|
+
|
|
835
|
+
```
|
|
836
|
+
╔═════════════════════════════════════════════════════════════════════════════╗
|
|
837
|
+
║ FASE 7: VALIDACAO + PIPELINE MANIFEST [★ NOVO v4.0] ║
|
|
838
|
+
╠═══════════════════════════════════════════════════════════════════════════╣
|
|
839
|
+
║ ║
|
|
840
|
+
║ REGRA #26: "So marca como completo se validacao passar." ║
|
|
841
|
+
║ ║
|
|
842
|
+
║ Apos todos os 5 MODOs executarem, o sistema: ║
|
|
843
|
+
║ ║
|
|
844
|
+
║ 1. VALIDATE: Verifica integridade do cascateamento ║
|
|
845
|
+
║ - Destinos declarados existem fisicamente? ║
|
|
846
|
+
║ - Referencias estao corretas? ║
|
|
847
|
+
║ - Se FALHA: NAO marca como completo, retorna com erro ║
|
|
848
|
+
║ ║
|
|
849
|
+
║ ★ 2. PIPELINE MANIFEST: Registra TODOS os steps ║
|
|
850
|
+
║ Cada batch gera um manifest com 13 steps rastreados: ║
|
|
851
|
+
║ ║
|
|
852
|
+
║ ┌──────────────────────────────────────────────────────────────────┐ ║
|
|
853
|
+
║ │ PIPELINE MANIFEST — BATCH-045 │ ║
|
|
854
|
+
║ │ ════════════════════════════════ │ ║
|
|
855
|
+
║ │ │ ║
|
|
856
|
+
║ │ Step Status Resultado │ ║
|
|
857
|
+
║ │ ────────────────────── ───────── ─────────────────────── │ ║
|
|
858
|
+
║ │ modo1_explicit completed agents=2, dossiers=1 │ ║
|
|
859
|
+
║ │ modo2_inferred completed agents=3, dossiers=2 │ ║
|
|
860
|
+
║ │ modo3_triggers completed new_agents=1 │ ║
|
|
861
|
+
║ │ merge completed total=4 agents │ ║
|
|
862
|
+
║ │ cascade completed 4 agents, 2 dossiers │ ║
|
|
863
|
+
║ │ ★ modo4_business_model completed 3 departments detected │ ║
|
|
864
|
+
║ │ ★ modo4_sow completed 22 SOWs generated │ ║
|
|
865
|
+
║ │ ★ modo4_skills completed 530 skills │ ║
|
|
866
|
+
║ │ ★ modo5_quality_gates completed 4 checked, 0 blocked │ ║
|
|
867
|
+
║ │ ★ modo5_viability completed 50 persons scored │ ║
|
|
868
|
+
║ │ ★ modo5_tool_discovery completed 37 roles with tools │ ║
|
|
869
|
+
║ │ validation completed PASSED │ ║
|
|
870
|
+
║ │ ★ review_queue completed 17 pending items │ ║
|
|
871
|
+
║ │ ────────────────────── ───────── ─────────────────────── │ ║
|
|
872
|
+
║ │ COVERAGE: 13/13 (100%) │ ║
|
|
873
|
+
║ │ │ ║
|
|
874
|
+
║ └──────────────────────────────────────────────────────────────────┘ ║
|
|
875
|
+
║ ║
|
|
876
|
+
║ Se qualquer step falhar ou for pulado, o manifest registra: ║
|
|
877
|
+
║ "ATENCAO: 2 steps pulados" no feedback do hook. ║
|
|
878
|
+
║ ║
|
|
879
|
+
║ Gravado em: logs/pipeline_manifests.jsonl ║
|
|
880
|
+
║ (Auditavel. Apos 50 batches, basta ler o log.) ║
|
|
881
|
+
║ ║
|
|
882
|
+
║ 3. MARK: Adiciona secao "Cascateamento Executado" ao batch ║
|
|
883
|
+
║ Batch fica marcado como processado. Nao roda de novo. ║
|
|
884
|
+
║ ║
|
|
885
|
+
╚═════════════════════════════════════════════════════════════════════════════╝
|
|
886
|
+
```
|
|
887
|
+
|
|
888
|
+
---
|
|
889
|
+
|
|
890
|
+
## 10. HUMAN CHECKPOINTS E REVIEW QUEUE
|
|
891
|
+
|
|
892
|
+
```
|
|
893
|
+
╔═════════════════════════════════════════════════════════════════════════════╗
|
|
894
|
+
║ HUMAN CHECKPOINTS & REVIEW QUEUE [★ NOVO v4.0] ║
|
|
895
|
+
╠═══════════════════════════════════════════════════════════════════════════╣
|
|
896
|
+
║ ║
|
|
897
|
+
║ Script: review_dashboard.py ║
|
|
898
|
+
║ "Nem tudo deve ser automatico. Humano decide nos pontos criticos." ║
|
|
899
|
+
║ ║
|
|
900
|
+
║ 4 CHECKPOINTS: ║
|
|
901
|
+
║ ║
|
|
902
|
+
║ ┌─────────────────────────────────────────────────────────────────────┐ ║
|
|
903
|
+
║ │ │ ║
|
|
904
|
+
║ │ HC-1: AGENT CREATION APPROVAL │ ║
|
|
905
|
+
║ │ ══════════════════════════════ │ ║
|
|
906
|
+
║ │ Trigger: Role com ws >= 10, pronto pra virar agente │ ║
|
|
907
|
+
║ │ Pergunta: "Este cargo deve virar agente?" │ ║
|
|
908
|
+
║ │ Opcoes: [Aprovar] [Rejeitar] [Adiar] │ ║
|
|
909
|
+
║ │ Contexto mostrado: SOW, weighted_score, sources, executor_type │ ║
|
|
910
|
+
║ │ │ ║
|
|
911
|
+
║ │ Exemplo: COPYWRITER (ws=11.9, 2 sources, executor=Agent) │ ║
|
|
912
|
+
║ │ ──► Humano decide se cria o agente ou espera mais dados │ ║
|
|
913
|
+
║ │ │ ║
|
|
914
|
+
║ │ ───────────────────────────────────────────────────────── │ ║
|
|
915
|
+
║ │ │ ║
|
|
916
|
+
║ │ HC-2: BUSINESS MODEL VALIDATION │ ║
|
|
917
|
+
║ │ ════════════════════════════════ │ ║
|
|
918
|
+
║ │ Trigger: Business model com role_chain >= 4 niveis │ ║
|
|
919
|
+
║ │ Pergunta: "Hierarquia organizacional correta?" │ ║
|
|
920
|
+
║ │ Opcoes: [Aprovar] [Editar] [Rejeitar] │ ║
|
|
921
|
+
║ │ Contexto: role_chain visual, evidence, consolidation │ ║
|
|
922
|
+
║ │ │ ║
|
|
923
|
+
║ │ Exemplo: Alex Hormozi: CEO→COO→Sales Mgr→Closer (4 niveis) │ ║
|
|
924
|
+
║ │ ──► Humano valida se a hierarquia faz sentido │ ║
|
|
925
|
+
║ │ │ ║
|
|
926
|
+
║ │ ───────────────────────────────────────────────────────── │ ║
|
|
927
|
+
║ │ │ ║
|
|
928
|
+
║ │ HC-3: SKILLS REVIEW │ ║
|
|
929
|
+
║ │ ════════════════════ │ ║
|
|
930
|
+
║ │ Trigger: >= 5 skills geradas para um persona │ ║
|
|
931
|
+
║ │ Pergunta: "Skills refletem os frameworks reais?" │ ║
|
|
932
|
+
║ │ Opcoes: [Aprovar todas] [Aprovar por skill] [Rejeitar] │ ║
|
|
933
|
+
║ │ Contexto: lista de skills, quotes originais, nomes dos frameworks │ ║
|
|
934
|
+
║ │ │ ║
|
|
935
|
+
║ │ Exemplo: Alex Hormozi com 262 skills geradas │ ║
|
|
936
|
+
║ │ ──► Humano revisa se as skills fazem sentido │ ║
|
|
937
|
+
║ │ │ ║
|
|
938
|
+
║ │ ───────────────────────────────────────────────────────── │ ║
|
|
939
|
+
║ │ │ ║
|
|
940
|
+
║ │ HC-4: ENTITY MERGE REVIEW │ ║
|
|
941
|
+
║ │ ══════════════════════════ │ ║
|
|
942
|
+
║ │ Trigger: Entidades na review_queue com fuzzy match │ ║
|
|
943
|
+
║ │ Pergunta: "Sao a mesma entidade?" │ ║
|
|
944
|
+
║ │ Opcoes: [Merge] [Manter separado] │ ║
|
|
945
|
+
║ │ Contexto: nomes, similarity score, tipo de entidade │ ║
|
|
946
|
+
║ │ │ ║
|
|
947
|
+
║ │ Exemplo: "Sam oven" (score 0.92) <-> "Sam Ovens" │ ║
|
|
948
|
+
║ │ ──► Humano confirma se e a mesma pessoa │ ║
|
|
949
|
+
║ │ │ ║
|
|
950
|
+
║ └─────────────────────────────────────────────────────────────────────┘ ║
|
|
951
|
+
║ ║
|
|
952
|
+
║ Dashboard CLI: ║
|
|
953
|
+
║ ┌──────────────────────────────────────────────────────────────────┐ ║
|
|
954
|
+
║ │ $ python3 scripts/review_dashboard.py │ ║
|
|
955
|
+
║ │ │ ║
|
|
956
|
+
║ │ ══════════════════════════════════════════ │ ║
|
|
957
|
+
║ │ MEGA BRAIN - REVIEW DASHBOARD │ ║
|
|
958
|
+
║ │ 2026-02-26 12:00:00 │ ║
|
|
959
|
+
║ │ Total pending: 17 │ ║
|
|
960
|
+
║ │ ══════════════════════════════════════════ │ ║
|
|
961
|
+
║ │ │ ║
|
|
962
|
+
║ │ AGENTS PENDENTES (HC-1): 10 │ ║
|
|
963
|
+
║ │ ────────────────────────────── │ ║
|
|
964
|
+
║ │ [1] CLOSER ws=21.6 src=3 exec=Hybrid SOW │ ║
|
|
965
|
+
║ │ [2] BDR ws=14.2 src=2 exec=Hybrid SOW │ ║
|
|
966
|
+
║ │ [3] COPYWRITER ws=11.9 src=2 exec=Agent SOW │ ║
|
|
967
|
+
║ │ ... │ ║
|
|
968
|
+
║ │ │ ║
|
|
969
|
+
║ │ SKILLS PENDENTES (HC-3): 3 │ ║
|
|
970
|
+
║ │ ────────────────────────────── │ ║
|
|
971
|
+
║ │ [11] alex-hormozi 262 skills geradas │ ║
|
|
972
|
+
║ │ [12] cole-gordon 251 skills geradas │ ║
|
|
973
|
+
║ │ ... │ ║
|
|
974
|
+
║ │ │ ║
|
|
975
|
+
║ │ MERGES PENDENTES (HC-4): 4 │ ║
|
|
976
|
+
║ │ ────────────────────────────── │ ║
|
|
977
|
+
║ │ [14] "Sam oven" <-> "Sam Ovens" (score: 0.92) │ ║
|
|
978
|
+
║ │ ... │ ║
|
|
979
|
+
║ │ │ ║
|
|
980
|
+
║ └──────────────────────────────────────────────────────────────────┘ ║
|
|
981
|
+
║ ║
|
|
982
|
+
╚═════════════════════════════════════════════════════════════════════════════╝
|
|
983
|
+
```
|
|
984
|
+
|
|
985
|
+
---
|
|
986
|
+
|
|
987
|
+
## 11. MAPA COMPLETO DE SCRIPTS
|
|
988
|
+
|
|
989
|
+
```
|
|
990
|
+
╔═════════════════════════════════════════════════════════════════════════════╗
|
|
991
|
+
║ INVENTARIO DE SCRIPTS ║
|
|
992
|
+
╠═══════════════════════════════════════════════════════════════════════════╣
|
|
993
|
+
║ ║
|
|
994
|
+
║ scripts/ ║
|
|
995
|
+
║ ├── FUNDACAO (Sprints 1-3, ja existiam) ║
|
|
996
|
+
║ │ ├── entity_normalizer.py ···· Canonicaliza entidades (fuzzy match) ║
|
|
997
|
+
║ │ ├── role_detector.py ········ Detecta cargos em 3 niveis ║
|
|
998
|
+
║ │ ├── theme_analyzer.py ······· Extrai temas multi-formato ║
|
|
999
|
+
║ │ ├── bootstrap_registry.py ··· Popula registry inicial ║
|
|
1000
|
+
║ │ ├── dossier_trigger.py ······ Avalia thresholds de dossiers ║
|
|
1001
|
+
║ │ ├── agent_trigger.py ········ Triggers tiered de agentes (3 tiers) ║
|
|
1002
|
+
║ │ └── org_chain_detector.py ··· Hierarquia e KPIs ║
|
|
1003
|
+
║ │ ║
|
|
1004
|
+
║ ├── CONFIGURACAO ║
|
|
1005
|
+
║ │ ├── trigger_config.yaml ····· Thresholds + pesos + KPIs ║
|
|
1006
|
+
║ │ ├── _ROLE_PATTERNS.yaml ····· 33+ cargos com regex PT-BR + EN ║
|
|
1007
|
+
║ │ └── ★ quality_gates.yaml ···· 6 gates + 8 vetos [NOVO v4.0] ║
|
|
1008
|
+
║ │ ║
|
|
1009
|
+
║ └── ★ INTELLIGENCE LAYER v4.0 (Sprints 5-10) [TODOS NOVOS] ║
|
|
1010
|
+
║ ├── ★ business_model_detector.py · Detecta org/hierarquia/revenue ║
|
|
1011
|
+
║ ├── ★ sow_generator.py ··········· SOW dual-purpose + Executor DT ║
|
|
1012
|
+
║ ├── ★ skill_generator.py ·········· Framework DNA → SKILL.md ║
|
|
1013
|
+
║ ├── ★ viability_scorer.py ········· APEX 5D scoring + quality check║
|
|
1014
|
+
║ ├── ★ tool_discovery.py ··········· Tools por cargo + Command Load ║
|
|
1015
|
+
║ └── ★ review_dashboard.py ········· 4 Human Checkpoints + CLI ║
|
|
1016
|
+
║ ║
|
|
1017
|
+
║ TOTAL: 16 scripts + 3 configs = 19 arquivos ║
|
|
1018
|
+
║ ★ = Novo na v4.0 (7 scripts + 1 config = 8 novos) ║
|
|
1019
|
+
║ ║
|
|
1020
|
+
╚═════════════════════════════════════════════════════════════════════════════╝
|
|
1021
|
+
```
|
|
1022
|
+
|
|
1023
|
+
---
|
|
1024
|
+
|
|
1025
|
+
## 12. MAPA COMPLETO DE HOOKS
|
|
1026
|
+
|
|
1027
|
+
```
|
|
1028
|
+
╔═════════════════════════════════════════════════════════════════════════════╗
|
|
1029
|
+
║ INVENTARIO DE HOOKS (.claude/hooks/) ║
|
|
1030
|
+
╠═══════════════════════════════════════════════════════════════════════════╣
|
|
1031
|
+
║ ║
|
|
1032
|
+
║ CICLO DE SESSAO ║
|
|
1033
|
+
║ ├── session_start.py ········ Carrega personalidade, DNA, briefing ║
|
|
1034
|
+
║ ├── session_autosave_v2.py ·· Auto-save a cada 30min (REGRA #11) ║
|
|
1035
|
+
║ ├── session_end.py ·········· Cleanup + save final ║
|
|
1036
|
+
║ └── session-source-sync.py ·· Sync source files ║
|
|
1037
|
+
║ ║
|
|
1038
|
+
║ VALIDACAO & QUALIDADE ║
|
|
1039
|
+
║ ├── creation_validator.py ··· Valida antes de criar (REGRA #22) ║
|
|
1040
|
+
║ ├── claude_md_guard.py ······ Protege estrutura CLAUDE.md ║
|
|
1041
|
+
║ ├── quality_watchdog.py ····· Monitora violacoes de regras ║
|
|
1042
|
+
║ └── stop_hook_completeness.py Verifica @stop hook ║
|
|
1043
|
+
║ ║
|
|
1044
|
+
║ GESTAO DE CONHECIMENTO ║
|
|
1045
|
+
║ ├── continuous_save.py ······ Persistencia de sessao ║
|
|
1046
|
+
║ ├── memory_hints_injector.py Injeta snippets de memoria ║
|
|
1047
|
+
║ ├── memory_updater.py ······· Atualiza JARVIS-MEMORY ║
|
|
1048
|
+
║ ├── ledger_updater.py ······· Registra acoes no ACTION-LEDGER ║
|
|
1049
|
+
║ └── agent_memory_persister.py Persiste estado interno do agente ║
|
|
1050
|
+
║ ║
|
|
1051
|
+
║ EXECUCAO & CONTROLE ║
|
|
1052
|
+
║ ├── skill_router.py ········· Roteia prompt para skill correta ║
|
|
1053
|
+
║ ├── skill_indexer.py ········· Indexa skills disponiveis ║
|
|
1054
|
+
║ ├── enforce_plan_mode.py ···· Exige plano antes de executar ║
|
|
1055
|
+
║ └── enforce_dual_location.py Arquivo em 2 locais (REGRA #19) ║
|
|
1056
|
+
║ ║
|
|
1057
|
+
║ MONITORAMENTO & ALERTAS ║
|
|
1058
|
+
║ ├── inbox_age_alert.py ······ Alerta inbox items antigos ║
|
|
1059
|
+
║ ├── pending_tracker.py ······ Reporta tarefas pendentes ║
|
|
1060
|
+
║ ├── notification_system.py ·· Envia notificacoes ║
|
|
1061
|
+
║ └── ralph_wiggum.py ········· Humor + insights aleatorios ║
|
|
1062
|
+
║ ║
|
|
1063
|
+
║ PIPELINE (O CORACAO) ║
|
|
1064
|
+
║ ├── ★ post_batch_cascading.py ORQUESTRADOR v4.0 (5 MODOs, 2441 ln) ║
|
|
1065
|
+
║ ├── post_tool_use.py ········· Cleanup pos-execucao ║
|
|
1066
|
+
║ └── user_prompt_submit.py ···· Validacao pre-execucao ║
|
|
1067
|
+
║ ║
|
|
1068
|
+
║ TOTAL: 24 hooks ║
|
|
1069
|
+
║ ★ = Atualizado na v4.0 ║
|
|
1070
|
+
║ ║
|
|
1071
|
+
╚═════════════════════════════════════════════════════════════════════════════╝
|
|
1072
|
+
```
|
|
1073
|
+
|
|
1074
|
+
---
|
|
1075
|
+
|
|
1076
|
+
## 13. TODOS OS THRESHOLDS E GATILHOS
|
|
1077
|
+
|
|
1078
|
+
```
|
|
1079
|
+
╔═════════════════════════════════════════════════════════════════════════════╗
|
|
1080
|
+
║ TABELA MESTRA DE THRESHOLDS ║
|
|
1081
|
+
╠═══════════════════════════════════════════════════════════════════════════╣
|
|
1082
|
+
║ ║
|
|
1083
|
+
║ CRIACAO DE DOSSIER ║
|
|
1084
|
+
║ ┌────────────────────────────────────────────────────────────┐ ║
|
|
1085
|
+
║ │ Occurrences >= 15 (tema aparece 15+ vezes) │ ║
|
|
1086
|
+
║ │ Sources >= 2 (em 2+ fontes distintas) │ ║
|
|
1087
|
+
║ │ Frameworks >= 2 (2+ frameworks associados) │ ║
|
|
1088
|
+
║ │ Relevance >= 25.0 (score composto) │ ║
|
|
1089
|
+
║ │ NAO alias (canonicalizacao) │ ║
|
|
1090
|
+
║ │ Domain match (no DOMAINS-TAXONOMY) │ ║
|
|
1091
|
+
║ └────────────────────────────────────────────────────────────┘ ║
|
|
1092
|
+
║ ║
|
|
1093
|
+
║ ATUALIZACAO DE DOSSIER ║
|
|
1094
|
+
║ ┌────────────────────────────────────────────────────────────┐ ║
|
|
1095
|
+
║ │ Stale >= 30 dias (dossier nao atualizado em 30+ dias) │ ║
|
|
1096
|
+
║ │ New elements >= 5 (5+ novos insights disponiveis) │ ║
|
|
1097
|
+
║ └────────────────────────────────────────────────────────────┘ ║
|
|
1098
|
+
║ ║
|
|
1099
|
+
║ CRIACAO DE AGENTE (3 TIERS) ║
|
|
1100
|
+
║ ┌────────────────────────────────────────────────────────────┐ ║
|
|
1101
|
+
║ │ ESTABLISHED: ws >= 10 E sources >= 2 ──► CRIAR │ ║
|
|
1102
|
+
║ │ EMERGING: ws >= 5 E sources >= 1 ──► MONITORAR │ ║
|
|
1103
|
+
║ │ EMERGENT: ws >= 3 E sources >= 1 ──► OBSERVAR │ ║
|
|
1104
|
+
║ │ │ ║
|
|
1105
|
+
║ │ Promocao: ws >= 15 E sources >= 2 ──► Sobe de tier │ ║
|
|
1106
|
+
║ └────────────────────────────────────────────────────────────┘ ║
|
|
1107
|
+
║ ║
|
|
1108
|
+
║ ★ VIABILITY SCORING (APEX) [NOVO v4.0] ║
|
|
1109
|
+
║ ┌────────────────────────────────────────────────────────────┐ ║
|
|
1110
|
+
║ │ APEX >= 7.0 ──► GO (criar agente completo) │ ║
|
|
1111
|
+
║ │ APEX 5.0-6.9 ──► CONDICIONAL (criar com ressalvas) │ ║
|
|
1112
|
+
║ │ APEX < 5.0 ──► NO-GO (apenas tracking) │ ║
|
|
1113
|
+
║ │ AUTO-REJECTION: < 5.0 ──► tracking automatico │ ║
|
|
1114
|
+
║ └────────────────────────────────────────────────────────────┘ ║
|
|
1115
|
+
║ ║
|
|
1116
|
+
║ CANONICALIZACAO (Fuzzy Match) ║
|
|
1117
|
+
║ ┌────────────────────────────────────────────────────────────┐ ║
|
|
1118
|
+
║ │ Score >= 0.95 ──► Auto-merge (VETO VC-006) │ ║
|
|
1119
|
+
║ │ Score >= 0.85 ──► Review queue (merge manual) │ ║
|
|
1120
|
+
║ │ Score < 0.85 ──► Entidade nova │ ║
|
|
1121
|
+
║ └────────────────────────────────────────────────────────────┘ ║
|
|
1122
|
+
║ ║
|
|
1123
|
+
║ PESOS DE DETECCAO ║
|
|
1124
|
+
║ ┌────────────────────────────────────────────────────────────┐ ║
|
|
1125
|
+
║ │ Role Direto: 1.0x ("The closer handles...") │ ║
|
|
1126
|
+
║ │ Role Inferido: 0.7x ("handles objections" → CLOSER) │ ║
|
|
1127
|
+
║ │ Role Emergente: 0.5x ("hired a copywriter" → novo) │ ║
|
|
1128
|
+
║ │ │ ║
|
|
1129
|
+
║ │ Dossier cross_source: 3.0 (bonus por fonte extra) │ ║
|
|
1130
|
+
║ │ Dossier framework: 2.0 (bonus por framework) │ ║
|
|
1131
|
+
║ │ Dossier methodology: 2.0 (bonus por metodologia) │ ║
|
|
1132
|
+
║ │ Dossier heuristic: 1.5 (bonus por heuristica) │ ║
|
|
1133
|
+
║ │ Dossier philosophy: 1.0 (bonus por filosofia) │ ║
|
|
1134
|
+
║ └────────────────────────────────────────────────────────────┘ ║
|
|
1135
|
+
║ ║
|
|
1136
|
+
║ ★ HUMAN CHECKPOINTS [NOVO v4.0] ║
|
|
1137
|
+
║ ┌────────────────────────────────────────────────────────────┐ ║
|
|
1138
|
+
║ │ HC-1: ws >= 10 + pronto pra agente ──► Humano aprova │ ║
|
|
1139
|
+
║ │ HC-2: role_chain >= 4 niveis ──► Humano valida │ ║
|
|
1140
|
+
║ │ HC-3: skills >= 5 por persona ──► Humano revisa │ ║
|
|
1141
|
+
║ │ HC-4: entidades no review_queue ──► Humano decide │ ║
|
|
1142
|
+
║ └────────────────────────────────────────────────────────────┘ ║
|
|
1143
|
+
║ ║
|
|
1144
|
+
╚═════════════════════════════════════════════════════════════════════════════╝
|
|
1145
|
+
```
|
|
1146
|
+
|
|
1147
|
+
---
|
|
1148
|
+
|
|
1149
|
+
## 14. ESTRUTURA DE DIRETORIOS
|
|
1150
|
+
|
|
1151
|
+
```
|
|
1152
|
+
╔═════════════════════════════════════════════════════════════════════════════╗
|
|
1153
|
+
║ ARVORE DO PROJETO ║
|
|
1154
|
+
╠═══════════════════════════════════════════════════════════════════════════╣
|
|
1155
|
+
║ ║
|
|
1156
|
+
║ mega-brain/ ║
|
|
1157
|
+
║ │ ║
|
|
1158
|
+
║ ├── .claude/ ║
|
|
1159
|
+
║ │ └── hooks/ 24 hooks (ciclo de vida da sessao) ║
|
|
1160
|
+
║ │ └── ★ post_batch_cascading.py ORQUESTRADOR v4.0 ║
|
|
1161
|
+
║ │ ║
|
|
1162
|
+
║ ├── scripts/ 19 arquivos (Intelligence Layer) ║
|
|
1163
|
+
║ │ ├── entity_normalizer.py Fundacao: canonicalizacao ║
|
|
1164
|
+
║ │ ├── role_detector.py Fundacao: deteccao 3 niveis ║
|
|
1165
|
+
║ │ ├── theme_analyzer.py Fundacao: extracao multi-formato ║
|
|
1166
|
+
║ │ ├── agent_trigger.py Fundacao: triggers tiered ║
|
|
1167
|
+
║ │ ├── dossier_trigger.py Fundacao: triggers de dossier ║
|
|
1168
|
+
║ │ ├── org_chain_detector.py Fundacao: hierarquia ║
|
|
1169
|
+
║ │ ├── bootstrap_registry.py Fundacao: populacao inicial ║
|
|
1170
|
+
║ │ ├── ★ business_model_detector.py [NOVO] Detecta org/revenue ║
|
|
1171
|
+
║ │ ├── ★ sow_generator.py [NOVO] SOW dual-purpose ║
|
|
1172
|
+
║ │ ├── ★ skill_generator.py [NOVO] Framework → Skill ║
|
|
1173
|
+
║ │ ├── ★ viability_scorer.py [NOVO] APEX 5D scoring ║
|
|
1174
|
+
║ │ ├── ★ tool_discovery.py [NOVO] Tools + Command Loader ║
|
|
1175
|
+
║ │ ├── ★ review_dashboard.py [NOVO] Human Checkpoints ║
|
|
1176
|
+
║ │ ├── trigger_config.yaml Config de thresholds + KPIs ║
|
|
1177
|
+
║ │ ├── _ROLE_PATTERNS.yaml 33+ cargos com regex ║
|
|
1178
|
+
║ │ └── ★ quality_gates.yaml [NOVO] 6 gates + 8 vetos ║
|
|
1179
|
+
║ │ ║
|
|
1180
|
+
║ ├── processing/ Pipeline de dados ║
|
|
1181
|
+
║ │ ├── chunks/ 96 chunks semanticos (JSON) ║
|
|
1182
|
+
║ │ ├── insights/ 8 insights curados ║
|
|
1183
|
+
║ │ ├── canonical/ ║
|
|
1184
|
+
║ │ │ ├── ENTITY-REGISTRY.json ★ v16, 734 entidades (SSOT) ║
|
|
1185
|
+
║ │ │ └── review_queue.jsonl ★ Fila de merge manual [NOVO] ║
|
|
1186
|
+
║ │ ├── dna/ DNA narrativas por persona ║
|
|
1187
|
+
║ │ └── narratives/ Narrativas consolidadas ║
|
|
1188
|
+
║ │ ║
|
|
1189
|
+
║ ├── knowledge/ Base de conhecimento ║
|
|
1190
|
+
║ │ ├── dna/ ║
|
|
1191
|
+
║ │ │ ├── DOMAINS-TAXONOMY.yaml 19 dominios (atualizado v2.0) ║
|
|
1192
|
+
║ │ │ ├── ★ _dna-skills-registry.yaml [NOVO] Inventario skills ║
|
|
1193
|
+
║ │ │ ├── ★ skills/ [NOVO] 530 SKILL.md gerados ║
|
|
1194
|
+
║ │ │ │ ├── alex-hormozi/ 262 skills ║
|
|
1195
|
+
║ │ │ │ ├── cole-gordon/ (via persona) ║
|
|
1196
|
+
║ │ │ │ └── .../ ║
|
|
1197
|
+
║ │ │ ├── aggregated/ Conhecimento consolidado ║
|
|
1198
|
+
║ │ │ ├── maps/ Mapeamentos ║
|
|
1199
|
+
║ │ │ └── persons/ DNA por persona ║
|
|
1200
|
+
║ │ ├── dossiers/ Dossiers tematicos ║
|
|
1201
|
+
║ │ │ ├── themes/ Temas (vendas, objecoes, etc.) ║
|
|
1202
|
+
║ │ │ ├── persons/ Dossiers por pessoa ║
|
|
1203
|
+
║ │ │ └── system/ Dossiers de sistema ║
|
|
1204
|
+
║ │ └── playbooks/ 37 playbooks operacionais ║
|
|
1205
|
+
║ │ ║
|
|
1206
|
+
║ ├── agents/ Agentes inteligentes ║
|
|
1207
|
+
║ │ ├── cargo/ Agentes de cargo ║
|
|
1208
|
+
║ │ │ ├── sales/ CLOSER, BDR, SDS, SETTER, LNS... ║
|
|
1209
|
+
║ │ │ │ └── closer/ ║
|
|
1210
|
+
║ │ │ │ ├── AGENT.md ║
|
|
1211
|
+
║ │ │ │ ├── ★ SOW.md [NOVO] Statement of Work ║
|
|
1212
|
+
║ │ │ │ └── ★ SOW.json [NOVO] Config do agente ║
|
|
1213
|
+
║ │ │ ├── c-level/ CRO, CFO, CMO, COO ║
|
|
1214
|
+
║ │ │ ├── marketing/ Agentes de marketing ║
|
|
1215
|
+
║ │ │ └── design/ Designer ║
|
|
1216
|
+
║ │ ├── persons/ Mind-clones (Cole Gordon, etc.) ║
|
|
1217
|
+
║ │ ├── council/ Conclave multi-agente ║
|
|
1218
|
+
║ │ └── protocols/ Protocolos operacionais ║
|
|
1219
|
+
║ │ ║
|
|
1220
|
+
║ └── logs/ Rastreabilidade ║
|
|
1221
|
+
║ ├── cascading.jsonl Log de cascateamento ║
|
|
1222
|
+
║ ├── ★ pipeline_manifests.jsonl [NOVO] Manifests por batch ║
|
|
1223
|
+
║ ├── ★ sow_generation.jsonl [NOVO] Log de SOWs gerados ║
|
|
1224
|
+
║ ├── ★ viability_scoring.jsonl [NOVO] Log de scores APEX ║
|
|
1225
|
+
║ └── .../ Outros logs operacionais ║
|
|
1226
|
+
║ ║
|
|
1227
|
+
╚═════════════════════════════════════════════════════════════════════════════╝
|
|
1228
|
+
```
|
|
1229
|
+
|
|
1230
|
+
---
|
|
1231
|
+
|
|
1232
|
+
## 15. KPIs DE SUCESSO
|
|
1233
|
+
|
|
1234
|
+
```
|
|
1235
|
+
╔═════════════════════════════════════════════════════════════════════════════╗
|
|
1236
|
+
║ KPIs DE SUCESSO DA PIPELINE ║
|
|
1237
|
+
╠═══════════════════════════════════════════════════════════════════════════╣
|
|
1238
|
+
║ ║
|
|
1239
|
+
║ DETECCAO ║
|
|
1240
|
+
║ ┌────────────────────────────────────────────────────────────┐ ║
|
|
1241
|
+
║ │ Roles detectados: Target: 33+ (antes: 18) │ ║
|
|
1242
|
+
║ │ Dominios cobertos: Target: 7+ (antes: 1) │ ║
|
|
1243
|
+
║ │ Precisao de inferencia: Target: > 80% │ ║
|
|
1244
|
+
║ │ Roles emergentes: Target: 5 por 100 batches │ ║
|
|
1245
|
+
║ └────────────────────────────────────────────────────────────┘ ║
|
|
1246
|
+
║ ║
|
|
1247
|
+
║ TRIGGERS ║
|
|
1248
|
+
║ ┌────────────────────────────────────────────────────────────┐ ║
|
|
1249
|
+
║ │ Novos dossiers / 100 batches: Target: 3-5 │ ║
|
|
1250
|
+
║ │ Novos agentes / 100 batches: Target: 1-2 │ ║
|
|
1251
|
+
║ │ Taxa de falso positivo: Target: < 10% │ ║
|
|
1252
|
+
║ │ Latencia do trigger: Target: < 30 segundos │ ║
|
|
1253
|
+
║ └────────────────────────────────────────────────────────────┘ ║
|
|
1254
|
+
║ ║
|
|
1255
|
+
║ REGISTRY ║
|
|
1256
|
+
║ ┌────────────────────────────────────────────────────────────┐ ║
|
|
1257
|
+
║ │ Taxa de deduplicacao: Target: > 95% │ ║
|
|
1258
|
+
║ │ Entidades orfas (sem fonte): Target: < 5% │ ║
|
|
1259
|
+
║ │ Cobertura weighted_score: Target: 100% │ ║
|
|
1260
|
+
║ └────────────────────────────────────────────────────────────┘ ║
|
|
1261
|
+
║ ║
|
|
1262
|
+
║ ★ QUALIDADE [NOVO v4.0] ║
|
|
1263
|
+
║ ┌────────────────────────────────────────────────────────────┐ ║
|
|
1264
|
+
║ │ Dossier min frameworks: Target: >= 2 │ ║
|
|
1265
|
+
║ │ Agente min responsibilities: Target: >= 3 │ ║
|
|
1266
|
+
║ │ Role chain max depth: Target: <= 6 │ ║
|
|
1267
|
+
║ │ Skills com workflow 3+ steps: Target: 100% │ ║
|
|
1268
|
+
║ │ Pipeline manifest coverage: Target: 13/13 (100%) │ ║
|
|
1269
|
+
║ └────────────────────────────────────────────────────────────┘ ║
|
|
1270
|
+
║ ║
|
|
1271
|
+
║ BASELINES (melhoria mensuravel) ║
|
|
1272
|
+
║ ┌────────────────────────────────────────────────────────────┐ ║
|
|
1273
|
+
║ │ Roles pre-v2: 18 ──► Pos-v4: 236 │ ║
|
|
1274
|
+
║ │ Dominios pre-v2: 1 ──► Pos-v4: 19 │ ║
|
|
1275
|
+
║ │ SOWs pre-v4: 0 ──► Pos-v4: 44 │ ║
|
|
1276
|
+
║ │ Skills pre-v4: 0 ──► Pos-v4: 530 │ ║
|
|
1277
|
+
║ │ Quality gates pre-v4: 0 ──► Pos-v4: 6 gates + 8 vetos│ ║
|
|
1278
|
+
║ │ Human checkpoints: 0 ──► Pos-v4: 4 checkpoints │ ║
|
|
1279
|
+
║ │ Pipeline manifest: nao ──► Pos-v4: 13 steps tracked │ ║
|
|
1280
|
+
║ └────────────────────────────────────────────────────────────┘ ║
|
|
1281
|
+
║ ║
|
|
1282
|
+
╚═════════════════════════════════════════════════════════════════════════════╝
|
|
1283
|
+
```
|
|
1284
|
+
|
|
1285
|
+
---
|
|
1286
|
+
|
|
1287
|
+
```
|
|
1288
|
+
╔═════════════════════════════════════════════════════════════════════════════╗
|
|
1289
|
+
║ ║
|
|
1290
|
+
║ FIM DO DOCUMENTO ║
|
|
1291
|
+
║ ║
|
|
1292
|
+
║ ★ = Implementado na v4.0 (esta sessao) ║
|
|
1293
|
+
║ ║
|
|
1294
|
+
║ Este documento cobre a maquina completa do Mega Brain: ║
|
|
1295
|
+
║ - 5 MODOs de processamento (3 existentes + 2 novos) ║
|
|
1296
|
+
║ - 19 scripts de Intelligence Layer (7 existentes + 8 novos + 4 configs) ║
|
|
1297
|
+
║ - 24 hooks de ciclo de vida ║
|
|
1298
|
+
║ - 6 quality gates + 8 veto conditions ║
|
|
1299
|
+
║ - 5 dimensoes APEX de viability scoring ║
|
|
1300
|
+
║ - 4 human checkpoints com review dashboard ║
|
|
1301
|
+
║ - 13 steps rastreados no pipeline manifest ║
|
|
1302
|
+
║ - 734 entidades no ENTITY-REGISTRY (50 persons, 236 roles, 448 themes) ║
|
|
1303
|
+
║ - 530 skills geradas, 44 SOWs dual-purpose ║
|
|
1304
|
+
║ ║
|
|
1305
|
+
║ Para executar o review dashboard: ║
|
|
1306
|
+
║ $ python3 scripts/review_dashboard.py ║
|
|
1307
|
+
║ ║
|
|
1308
|
+
║ Para ver o manifest do ultimo batch: ║
|
|
1309
|
+
║ $ tail -1 logs/pipeline_manifests.jsonl | python3 -m json.tool ║
|
|
1310
|
+
║ ║
|
|
1311
|
+
║ Mega Brain Intelligence Layer v4.0 ║
|
|
1312
|
+
║ Documentado por JARVIS (Chronicler) — 2026-02-26 ║
|
|
1313
|
+
║ ║
|
|
1314
|
+
╚═════════════════════════════════════════════════════════════════════════════╝
|
|
1315
|
+
```
|