{
    "last_updated": "2026-06-04 10:10:20",
    "source": "STATE_PACK_PUBLIC.md",
    "data": [
        {
            "title": "STATE_PACK \u2014 Estado Can\u00f4nico Operacional (v0.1)",
            "level": 2,
            "content": "\ndocument_id: state-pack\nversion: 0.1.0-rc+2026-06-02\nstatus: active\nowner: CEO\nscope: canonical-state\ngovernance: no-regression\n\n> [!IMPORTANT]\n> **REGRA DE ESTADO CAN\u00d4NICO (DEC-026):** Mem\u00f3ria de chat tempor\u00e1ria N\u00c3O \u00e9 fonte de verdade para alinhamento operacional. Toda decis\u00e3o t\u00e9cnica e progress\u00e3o de tarefas devem basear-se unicamente nas premissas registradas neste documento e nos arquivos locais.\n\n",
            "items": []
        },
        {
            "title": "1. Estado Atual do Failsafe ECO",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "**Fase**: Phase 0.9 Discovery / Readiness do Piloto."
                },
                {
                    "type": "bullet",
                    "text": "**Status do Portal**: Importa\u00e7\u00e3o est\u00e9tica e reconcilia\u00e7\u00e3o visual do `failsafe01` conclu\u00eddas com sucesso. O linter e os testes de login/redirecionamento Playwright est\u00e3o passando com 100% de sucesso. Hotfix de tela branca dev:hub conclu\u00eddo e testado."
                }
            ]
        },
        {
            "title": "2. ALPHA Vigente",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "**Anti-Manual**: Todo fluxo deve priorizar empacotamento de automa\u00e7\u00f5es (checks, lints, assun\u00e7\u00f5es) locais e na esteira de CI/CD."
                },
                {
                    "type": "bullet",
                    "text": "**Blindagem de Taxonomia**: Proibido qualquer nome real de cliente comercial nos diret\u00f3rios, rotas, tabelas ou caminhos ativos."
                },
                {
                    "type": "bullet",
                    "text": "**Desambigua\u00e7\u00e3o sem\u00e2ntica**:"
                },
                {
                    "type": "bullet",
                    "text": "`HERMES`: LLM local que roda na VPS."
                },
                {
                    "type": "bullet",
                    "text": "`GERENTE`: Conselho operacional do Control Plane."
                },
                {
                    "type": "bullet",
                    "text": "`Antigravity`: Executor autorizado."
                }
            ]
        },
        {
            "title": "3. Reposit\u00f3rio Soberano",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "**Caminho F\u00edsico**: [hbrasilia/failsafe](file:///[REDACTED_LOCAL_PATH])"
                }
            ]
        },
        {
            "title": "4. Control Plane",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "**Caminho F\u00edsico**: [ops/control-plane/](file:///[REDACTED_LOCAL_PATH])"
                }
            ]
        },
        {
            "title": "5. App Real Servido por dev:hub",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "**Workspace**: `@failsafe/hub-web-staging` na pasta [apps/hub-web-staging](file:///[REDACTED_LOCAL_PATH])."
                }
            ]
        },
        {
            "title": "6. Workspaces Reais que devem ficar sincronizados",
            "level": 2,
            "content": "1. [apps/hub-web-staging](file:///[REDACTED_LOCAL_PATH]) (Workspace ativo de Staging)\n2. [apps/hub-web](file:///[REDACTED_LOCAL_PATH]) (Workspace ativo de Produ\u00e7\u00e3o)\n",
            "items": []
        },
        {
            "title": "7. Pasta `apps/failsafe-hub`",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "A pasta `apps/failsafe-hub` atua apenas como staging inativo ou arquivo. Altera\u00e7\u00f5es nela **N\u00c3O** refletem no runtime local e s\u00e3o consideradas insuficientes/inv\u00e1lidas para homologa\u00e7\u00e3o visual."
                }
            ]
        },
        {
            "title": "8. Lovable/failsafe01 como Refer\u00eancia Visual (Bridge UI)",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "**Projeto Fonte**: [failsafe01](file:///[REDACTED_LOCAL_PATH])"
                },
                {
                    "type": "bullet",
                    "text": "**Papel**: Atua estritamente como a refer\u00eancia visual homologada para wow-factor e reconcilia\u00e7\u00e3o est\u00e9tica. Backend, l\u00f3gica, persist\u00eancia local e dados sint\u00e9ticos do reposit\u00f3rio soberano `hbrasilia/failsafe` prevalecem integralmente."
                }
            ]
        },
        {
            "title": "9. Taxonomia ALPHA",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "**Ecossistema**: `Failsafe ECO`"
                },
                {
                    "type": "bullet",
                    "text": "**Hub/base**: `Failsafe Central`"
                },
                {
                    "type": "bullet",
                    "text": "**Vertical priorit\u00e1rio**: `Failsafe Gest\u00e3o de Ativos e Servi\u00e7os`"
                },
                {
                    "type": "bullet",
                    "text": "**Nome t\u00e9cnico**: `Failsafe Asset & Service Management Cloud`"
                },
                {
                    "type": "bullet",
                    "text": "**Pacotes/Capabilities**: OEM, Maintenance, Field Service, AT, Client, Parts, Billing, BI, Cortex e Bridge (N\u00e3o s\u00e3o verticais)."
                },
                {
                    "type": "bullet",
                    "text": "**Nome real de cliente**: Nunca entra em produto, m\u00f3dulo, branch, rota, tabela, seed, packet, dashboard, script, release, config ou doc can\u00f4nica."
                }
            ]
        },
        {
            "title": "10. Slices 001\u2013005 Implementados e Preservados",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "**Slice 001**: CRUD local de Ativos e OSs em `localStorage`."
                },
                {
                    "type": "bullet",
                    "text": "**Slice 002**: Fluxo de pe\u00e7as, requisi\u00e7\u00f5es de estoque e Pedidos de Compra Internos."
                },
                {
                    "type": "bullet",
                    "text": "**Slice 003**: Or\u00e7amento consolidado fixo (m\u00e3o de obra R$ 250) e faturamento mock com chave `failsafe_invoices`."
                },
                {
                    "type": "bullet",
                    "text": "**Slice 004**: Fila offline com chave `failsafe_offline_queue`, sensor nativo de GPS e anexos multilaterais (laudos t\u00e9cnicos)."
                },
                {
                    "type": "bullet",
                    "text": "**Slice 005**: Matriz de 52 Semanas e agendamento preventivo de OSs."
                }
            ]
        },
        {
            "title": "11. Staging F\u00edsico",
            "level": 2,
            "content": "\n\n",
            "items": [
                {
                    "type": "bullet",
                    "text": "**Status**: `BLOCKED_WAITING_GATES` (Avalia\u00e7\u00e3o de provimento de gates FS-INFRA-017-GATE-PROVISION realizada; pendente segredos e snapshot Contabo)."
                }
            ]
        },
        {
            "title": "12. Gates F\u00edsicos Pendentes",
            "level": 2,
            "content": "1. Comprova\u00e7\u00e3o de Snapshot na VPS Contabo (BLOCKED_BY_ACCESS).\n2. Provisionamento das chaves GitHub Secrets (`FAILSAFE_SSH_VPS_KEY`, `STAGING_DB_PASSWORD`, `STAGING_DATABASE_URL`) (BLOCKED_BY_CREDENTIAL).\n3. Aprova\u00e7\u00e3o f\u00edsica formalizada pelo CEO em `NEXT_ACTIONS_QUEUE.md` / `DECISIONS.md`.\n\n",
            "items": []
        },
        {
            "title": "13. \u00daltimos PRs Aceitos",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "**PR #176 (Mesclado)**: Importa\u00e7\u00e3o visual Lovable e fus\u00e3o com l\u00f3gica dos Slices 001-004."
                },
                {
                    "type": "bullet",
                    "text": "**PR #180 (Mesclado)**: Resolu\u00e7\u00e3o de incidentes de renderiza\u00e7\u00e3o reais nos hubs ativos."
                },
                {
                    "type": "bullet",
                    "text": "**PR #184 (Mesclado)**: Hotfix definitivo de tela branca (plugin Vite SWC, children Failsafe.tsx e Login.tsx redirect)."
                },
                {
                    "type": "bullet",
                    "text": "**PR #185 (Mesclado)**: Enforce do Estado Can\u00f4nico e Cria\u00e7\u00e3o do STATE_PACK.md sob a DEC-026."
                },
                {
                    "type": "bullet",
                    "text": "**PR #205 (Mesclado)**: Unifica\u00e7\u00e3o documental (G1) e DOC_REGISTRY.yml \u00fanico."
                },
                {
                    "type": "bullet",
                    "text": "**PR #208 (Mesclado)**: Status p\u00fablico failsafe.com.br operacional (G2)."
                },
                {
                    "type": "bullet",
                    "text": "**PR #209 (Mesclado)**: Gate-reconcile bifurca\u00e7\u00e3o A validada (G3)."
                }
            ]
        },
        {
            "title": "14. PRs Pendentes",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "Nenhum PR pendente no momento."
                }
            ]
        },
        {
            "title": "15. \u00daltimo GCRC Aceito",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "**Status**: COMPLETED (PRs #208 e #209 mesclados. G1+G2+G3 conclu\u00eddos. Gate CEO 1 aprovado)."
                }
            ]
        },
        {
            "title": "16. GCRCs Rebaixados / Falsos Positivos",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "Declara\u00e7\u00f5es anteriores de paridade visual baseadas em build verde sem DOM renderizado ativamente na porta 8080."
                },
                {
                    "type": "bullet",
                    "text": "Declara\u00e7\u00e3o de \"COMPLETED\" para a DEC-026 sem PR remoto mesclado ou com commit local apenas (rebaixado para NEEDS_COMPLETION no in\u00edcio do packet CONTROL-PLANE-GCRC-GATE-001)."
                }
            ]
        },
        {
            "title": "17. Pr\u00f3ximo Packet Autorizado",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "**\u00daltimas Conclus\u00f5es**:"
                },
                {
                    "type": "bullet",
                    "text": "**OPS-DOCS-UNIFICATION-001** (G1): Conclu\u00eddo (PR #205 mesclado)."
                },
                {
                    "type": "bullet",
                    "text": "**OPS-PUBLIC-OBSERVABILITY-001** (G2): Conclu\u00eddo (PR #208 mesclado)."
                },
                {
                    "type": "bullet",
                    "text": "**GATE-RECONCILE-001** (G3): Conclu\u00eddo (PR #209 mesclado)."
                },
                {
                    "type": "bullet",
                    "text": "**Atividade Ativa**: Gate CEO 1 APROVADO. Pr\u00f3ximo: G4 CONTROL-CENTER-SETUP-001 + Issues Registry em paralelo."
                }
            ]
        },
        {
            "title": "18. A\u00e7\u00f5es Proibidas",
            "level": 2,
            "content": "",
            "items": [
                {
                    "type": "bullet",
                    "text": "N\u00e3o fazer push direto ou altera\u00e7\u00e3o na branch `main` sem aprova\u00e7\u00e3o do CI/CD."
                },
                {
                    "type": "bullet",
                    "text": "N\u00e3o manipular secrets de produ\u00e7\u00e3o ou dados confidenciais de clientes."
                },
                {
                    "type": "bullet",
                    "text": "N\u00e3o executar comandos de deploy ou provisionamento f\u00edsico sem comprova\u00e7\u00e3o de gates."
                },
                {
                    "type": "bullet",
                    "text": "N\u00e3o presumir dados de conex\u00e3o (falta de credencial = `BLOQUEADO POR ACESSO`)."
                }
            ]
        },
        {
            "title": "19. Crit\u00e9rio de COMPLETED",
            "level": 2,
            "content": "Para qualquer tarefa t\u00e9cnica ser considerada finalizada, exige-se:\n1. PR remoto correspondente aberto.\n2. Checks e esteiras de CI remotos do GitHub Actions verdes.\n3. Merge ou status de ready-for-merge comprovado no reposit\u00f3rio.\n4. Evid\u00eancia documental versionada sob a pasta `ops/control-plane/evidence/`.\n5. Prova f\u00edsica de runtime e DOM via testes automatizados (quando aplic\u00e1vel).\n6. Atualiza\u00e7\u00e3o de `NEXT_ACTIONS_QUEUE.md` e metadados.\n",
            "items": []
        },
        {
            "title": "20. Regra de Inicializa\u00e7\u00e3o de Execu\u00e7\u00e3o",
            "level": 2,
            "content": "  1. [STATE_PACK.md](file:///[REDACTED_LOCAL_PATH])\n  2. [NEXT_ACTIONS_QUEUE.md](file:///[REDACTED_LOCAL_PATH])\n  3. [DECISIONS.md](file:///[REDACTED_LOCAL_PATH])\n  4. \u00daltimo GCRC aceito (conforme registrado no [AI_LOG.md](file:///[REDACTED_LOCAL_PATH])).\n",
            "items": [
                {
                    "type": "bullet",
                    "text": "Toda e qualquer execu\u00e7\u00e3o de agente ou IA deve come\u00e7ar obrigatoriamente pela leitura e verifica\u00e7\u00e3o dos seguintes arquivos locais:"
                }
            ]
        },
        {
            "title": "21. Ponte de Controle P\u00fablica",
            "level": 2,
            "content": "\n",
            "items": [
                {
                    "type": "bullet",
                    "text": "**Reposit\u00f3rio**: [failsafe-control-bridge](https://github.com/hbrasilia/failsafe-control-bridge)"
                },
                {
                    "type": "bullet",
                    "text": "**Script de Sincroniza\u00e7\u00e3o**: [publish-public-bridge.ps1](file:///[REDACTED_LOCAL_PATH])"
                },
                {
                    "type": "bullet",
                    "text": "**Reparo do Bridge**: `CONCLU\u00cdDO` (PUBLIC-BRIDGE-REPAIR-001 mesclado no PR #2, removendo mojibake e alinhando decis\u00f5es)."
                }
            ]
        },
        {
            "title": "22. IssueOps Control Board",
            "content": "\n",
            "items": [
                {
                    "type": "bullet",
                    "text": "**Status**: `ACTIVE` (Issue #190 FS-CONTROL-BOARD active with labels and validation workflows)."
                },
                {
                    "type": "bullet",
                    "text": "**Template**: `.github/ISSUE_TEMPLATE/failsafe-control-command.md`"
                },
                {
                    "type": "bullet",
                    "text": "**Workflow**: `.github/workflows/failsafe-issueops-gcrc-gate.yml`"
                },
                {
                    "type": "bullet",
                    "text": "**Validators**: `ops/control-plane/scripts/gcrc/validate-issueops-gcrc.*`"
                }
            ]
        }
    ]
}