pantheon-opencode 1.6.0-beta.9 β†’ 1.6.1

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.
Files changed (140) hide show
  1. package/AGENTS.global.md +118 -0
  2. package/AGENTS.md +18 -168
  3. package/CHANGELOG.md +144 -365
  4. package/README.md +124 -607
  5. package/README.pt-BR.md +120 -345
  6. package/bin/pantheon-init.mjs +504 -141
  7. package/commands/pantheon-deepwork.md +14 -3
  8. package/commands/pantheon-vision.md +61 -12
  9. package/package.json +22 -13
  10. package/plugin.json +1 -1
  11. package/pyproject.toml +6 -2
  12. package/scripts/_pantheon_paths.py +24 -0
  13. package/scripts/build-agents-md.mjs +368 -69
  14. package/scripts/changelog-merge.mjs +161 -0
  15. package/scripts/check-plugin-v2-coverage.mjs +11 -8
  16. package/scripts/docs-check-changelog.mjs +204 -0
  17. package/scripts/docs-link-check.mjs +314 -0
  18. package/scripts/docs-media.mjs +157 -0
  19. package/scripts/doctor.mjs +850 -45
  20. package/scripts/install/agents-md.mjs +2 -2
  21. package/scripts/install/backup.mjs +648 -0
  22. package/scripts/install/cli-ui.mjs +303 -72
  23. package/scripts/install/component-selection.mjs +61 -0
  24. package/scripts/install/config-migration.mjs +583 -27
  25. package/scripts/install/exit-codes.mjs +26 -0
  26. package/scripts/install/file-inventory.mjs +555 -0
  27. package/scripts/install/health-check.mjs +31 -25
  28. package/scripts/install/interactive.mjs +99 -383
  29. package/scripts/install/interrupt.mjs +78 -0
  30. package/scripts/install/migrate.mjs +49 -25
  31. package/scripts/install/model-picker.mjs +218 -250
  32. package/scripts/install/opencode-state.mjs +91 -0
  33. package/scripts/install/opencode-version.mjs +83 -21
  34. package/scripts/install/opencode.mjs +1675 -187
  35. package/scripts/install/plan-artifact.mjs +517 -0
  36. package/scripts/install/plan.mjs +475 -0
  37. package/scripts/install/plugin.mjs +214 -27
  38. package/scripts/install/prompt-result.mjs +2 -0
  39. package/scripts/install/run-record.mjs +115 -0
  40. package/scripts/install/shared.mjs +256 -99
  41. package/scripts/install/state.mjs +63 -8
  42. package/scripts/install/strings.mjs +93 -8
  43. package/scripts/install/v2-capabilities.mjs +205 -0
  44. package/scripts/install/venv.mjs +90 -47
  45. package/scripts/install/verify.mjs +128 -0
  46. package/scripts/install/vision-prompt.mjs +173 -0
  47. package/scripts/install-mcp.mjs +2 -2
  48. package/scripts/manifest-inventory.mjs +49 -3
  49. package/scripts/mcp_persistence.py +1535 -1050
  50. package/scripts/memory_mcp.py +12 -843
  51. package/scripts/node-engine-policy.mjs +85 -0
  52. package/scripts/package-evidence.mjs +10 -2
  53. package/scripts/postinstall.mjs +26 -26
  54. package/scripts/probe-pantheon-cost.mjs +118 -19
  55. package/scripts/prune.mjs +9 -3
  56. package/scripts/reconcile.mjs +325 -0
  57. package/scripts/release-gates.mjs +687 -0
  58. package/scripts/restore.mjs +222 -0
  59. package/scripts/run-node-tests.mjs +24 -8
  60. package/scripts/sync-artifacts.mjs +19 -7
  61. package/scripts/sync-tui.mjs +5 -1
  62. package/scripts/test-opencode-v2-sandbox.sh +36 -123
  63. package/scripts/uninstall.mjs +369 -34
  64. package/scripts/update.mjs +164 -0
  65. package/scripts/validate-node-engine-policy.mjs +13 -0
  66. package/scripts/version-check.mjs +34 -1
  67. package/scripts/versioning.mjs +23 -3
  68. package/scripts/vision-status.mjs +682 -0
  69. package/skills-lock.json +8 -8
  70. package/src/agents/aphrodite.md +13 -10
  71. package/src/agents/apollo.md +4 -5
  72. package/src/agents/athena.md +74 -46
  73. package/src/agents/demeter.md +10 -7
  74. package/src/agents/gaia.md +0 -1
  75. package/src/agents/hephaestus.md +4 -3
  76. package/src/agents/hermes.md +10 -9
  77. package/src/agents/iris.md +6 -1
  78. package/src/agents/mnemosyne.md +10 -4
  79. package/src/agents/nyx.md +4 -4
  80. package/src/agents/prometheus.md +12 -11
  81. package/src/agents/talos.md +6 -0
  82. package/src/agents/zeus.md +84 -56
  83. package/src/instructions/agent-return-format.instructions.md +12 -41
  84. package/src/instructions/memory-protocol.instructions.md +5 -11
  85. package/src/instructions/test-economy.instructions.md +12 -0
  86. package/src/instructions/yagni.instructions.md +6 -15
  87. package/src/instructions/zeus-anti-stall.instructions.md +6 -6
  88. package/src/instructions/zeus-communication-rules.instructions.md +6 -6
  89. package/src/instructions/zeus-council-synthesis.instructions.md +11 -12
  90. package/src/instructions/zeus-memory-operations.instructions.md +13 -7
  91. package/src/instructions/zeus-timeout-retry.instructions.md +36 -10
  92. package/src/mcp/_pantheon_paths.py +24 -0
  93. package/src/mcp/mcp_codemap_module.py +86 -18
  94. package/src/mcp/mcp_persistence.py +1535 -1050
  95. package/src/mcp/memory_mcp.py +444 -94
  96. package/src/mcp/pantheon_vision.py +285 -41
  97. package/src/mcp/requirements-mcp.txt +6 -1
  98. package/src/mcp/requirements-vision.txt +1 -1
  99. package/src/pantheon/context-pruner.ts +541 -0
  100. package/src/pantheon/cost-command.ts +901 -60
  101. package/src/pantheon/delegation-enforce.ts +160 -23
  102. package/src/pantheon/goal-loop.ts +11 -8
  103. package/src/pantheon/guard-path.ts +162 -0
  104. package/src/pantheon/memory-context.ts +1017 -0
  105. package/src/pantheon/model-agents.ts +19 -0
  106. package/src/pantheon/model-command.ts +218 -56
  107. package/src/pantheon/model-pricing.ts +536 -0
  108. package/src/pantheon/presets.mjs +2 -0
  109. package/src/pantheon/task-result-guard.ts +50 -14
  110. package/src/pantheon/v2-bounded-read.ts +654 -0
  111. package/src/pantheon/v2-bridge.ts +27 -0
  112. package/src/pantheon/v2-delegation-enforce.ts +133 -6
  113. package/src/pantheon/v2-execute-after.ts +135 -24
  114. package/src/pantheon/v2-model-overrides.ts +275 -0
  115. package/src/pantheon/v2-shell-hooks.ts +260 -0
  116. package/src/pantheon/v2-tools.ts +89 -35
  117. package/src/pantheon/v2-unsupported.mjs +34 -7
  118. package/src/pantheon/v2-vision.ts +622 -0
  119. package/src/pantheon/vision-local.ts +531 -0
  120. package/src/pantheon/vision.ts +1166 -116
  121. package/src/plugin-v2.ts +1039 -171
  122. package/src/plugin.ts +37 -13
  123. package/src/plugins/tui/dist/tui-v2.d.ts +1029 -2
  124. package/src/plugins/tui/dist/tui-v2.d.ts.map +1 -1
  125. package/src/plugins/tui/dist/tui-v2.js +3742 -85
  126. package/src/plugins/tui/dist/tui.js +1 -1
  127. package/src/plugins/tui/package-lock.json +15 -15
  128. package/src/plugins/tui/package.json +7 -5
  129. package/src/plugins/tui/src/index-v2.tsx +4314 -50
  130. package/src/plugins/tui/tsconfig.typecheck.json +5 -0
  131. package/src/routing.yml +50 -5
  132. package/src/skills/agent-coordination/SKILL.md +7 -2
  133. package/src/skills/artifact-management/SKILL.md +5 -1
  134. package/src/skills/auto-continue/SKILL.md +14 -6
  135. package/src/skills/codemap/SKILL.md +1 -1
  136. package/src/skills/memory-bank/SKILL.md +21 -13
  137. package/src/skills/session-goal/SKILL.md +12 -22
  138. package/src/skills/spec-driven-development/SKILL.md +3 -1
  139. package/src/skills/worktrees/SKILL.md +30 -11
  140. package/scripts/probe-context-rehydrate.mjs +0 -263
package/CHANGELOG.md CHANGED
@@ -10,317 +10,96 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
10
10
  <!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
11
11
  move this section to a versioned entry and reset the template below. -->
12
12
 
13
- ## πŸ†• What's New
13
+ ## [v1.6.1] - 2026-10-24
14
14
 
15
- ## 🐞 Fixed
16
-
17
- ## ⚠️ Known Issues
18
-
19
- ## βœ… Closed Issues
20
-
21
- ## [v1.6.0-beta.9] - 2026-10-12
22
-
23
- &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
24
- move this section to a versioned entry and reset the template below. --&gt;
25
-
26
- ## πŸ†• What's New
27
-
28
- - **Entry point TUI dedicado ao OpenCode V2.** O pacote agora compila e instala
29
- separadamente os loaders V1/V2, e adiciona `/pantheon-focus` para foco de
30
- sessΓ£o sem depender das goal-tools ausentes no host V2.
31
-
32
- ## 🐞 Fixed
33
-
34
- - **InstalaΓ§Γ£o V2:** agentes e slash commands de projeto sΓ£o instalados nos
35
- diretΓ³rios descobertos pelo host; o TUI seleciona o bundle da geraΓ§Γ£o correta
36
- e o estado dos componentes sΓ³ Γ© marcado como instalado apΓ³s sucesso.
37
- - **`/pantheon-audit`:** inclui o scanner heurΓ­stico no pacote e localiza a cΓ³pia
38
- instalada antes de executar a primeira camada.
39
- - **`/pantheon-consolidate`:** delega a consolidaΓ§Γ£o ao agente Mnemosyne, dono
40
- da qualidade do banco de memΓ³ria.
41
-
42
- ## ⚠️ Known Issues
43
-
44
- - **Sidebar V2 na sessΓ£o inicial:** a captura do TUI recΓ©m-aberto ainda nΓ£o
45
- mostra o conteΓΊdo Pantheon antes do primeiro prompt; validar o render inicial
46
- interativo continua sendo um gate aberto para a beta.
47
- - **Goal persistente no OpenCode V2:** as goal-tools nΓ£o fazem parte da
48
- superfΓ­cie V2 suportada; `/pantheon-focus` nΓ£o substitui uma goal-tool
49
- persistente/removΓ­vel do host.
50
-
51
- ## [v1.6.0-beta.8] - 2026-10-11
52
-
53
- &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
54
- move this section to a versioned entry and reset the template below. --&gt;
55
-
56
- ## 🐞 Fixed
57
-
58
- - **opencode-v2** β€” repair session lookup and beta sandbox reuse
59
- - **scripts** β€” isolate beta background service port
60
- ## [v1.6.0-beta.7] - 2026-10-10
61
-
62
- &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
63
- move this section to a versioned entry and reset the template below. --&gt;
64
-
65
- ## πŸ†• What's New
66
-
67
- - **PermissΓ΅es MCP nativas por agente no OpenCode V1 e V2.** O instalador
68
- converte a allowlist `mcp_tools` de cada agente em regras nativas: nega por
69
- padrΓ£o os servidores Pantheon omitidos, libera apenas as ferramentas
70
- declaradas e preserva MCPs de terceiros. O V2 mantΓ©m os servidores
71
- conectados; as regras limitam quais ferramentas cada agente vΓͺ.
72
- - **Guarda V2 de delegaΓ§Γ£o alinhada ao contrato de permissΓ΅es.** Os hooks de
73
- permissΓ£o e de sessΓ£o aplicam as restriΓ§Γ΅es de sessΓ£o somente-leitura e a
74
- matriz caller→target sem conceder acesso além do configurado pelo host.
75
- - **Menos chamadas automΓ‘ticas de memΓ³ria e compressΓ£o.** A busca de contexto
76
- do Zeus reutiliza o resultado de inΓ­cio de tarefa, e o protocolo de
77
- compressΓ£o deixa de recomendar pipelines automΓ‘ticos extensos.
78
- - **Prova de identidade da instalaΓ§Γ£o do sandbox.** O teste global compara a
79
- versΓ£o e arquivos do pacote instalado com este checkout e rejeita referΓͺncias
80
- npm antigas nas configuraΓ§Γ΅es ativas antes de validar o runtime.
81
- - O `--prepare` agora gera `start-pantheon.sh` para abrir o TUI interativo com o
82
- beta instalado e HOME, configuraΓ§Γ£o XDG, projeto e banco de dados isolados do
83
- sandbox. O launcher fixa a porta do serviΓ§o gerenciado em `49376` e falha sem
84
- parar serviΓ§os existentes se a porta dedicada jΓ‘ estiver ocupada.
85
-
86
- ## 🐞 Fixed
87
-
88
- - ReferΓͺncias versionadas/alias do pacote Pantheon que sobravam na lista
89
- `plugins` agora sΓ£o reconhecidas pelo instalador e substituΓ­das pelo caminho
90
- do plugin local correto, sem afetar plugins de terceiros com nomes parecidos.
91
- - A suΓ­te CI foi separada do caminho crΓ­tico de instalaΓ§Γ£o/empacotamento para
92
- reduzir o tempo atΓ© o resultado das verificaΓ§Γ΅es do pacote.
93
- - O `run-test.sh` gerado agora define seu timeout do `mcp list` antes do uso
94
- sob `set -u`; antes, a variΓ‘vel ausente interrompia o teste antes de chamar
95
- o CLI. A saΓ­da do comando tambΓ©m fica disponΓ­vel quando o gate falha.
96
-
97
- ## ⚠️ Known Issues
98
-
99
- - **A delegaΓ§Γ£o real ainda precisa de confirmaΓ§Γ£o nesta beta.** O teste manual
100
- anterior de `HERMES-PONG` foi negado com
101
- `Pantheon delegation denied: authoritative caller session is unavailable`;
102
- a correΓ§Γ£o de permissΓ΅es e a instalaΓ§Γ£o isolada precisam ser verificadas no
103
- TUI OpenCode V2 antes de considerar a delegaΓ§Γ£o validada.
104
- ## [v1.6.0-beta.6] - 2026-10-05
105
-
106
- &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
107
- move this section to a versioned entry and reset the template below. --&gt;
15
+ ### Added
108
16
 
109
- ## πŸ†• What's New
17
+ - **docs** β€” Corrected code-mode tool signatures and agent grants, polished 1.6.x docs with translations/evidence links, and fixed the docs-site entry point (#270).
110
18
 
111
- - **PolΓ­tica de suporte documentada: a linha 1.6.x Γ© a ÚLTIMA compatΓ­vel com OpenCode 1.X.** A partir de **1.7, toda release Γ© breaking change com alvo em OpenCode 2.** O limite estΓ‘ escrito no `README.md` (seΓ§Γ£o "Compatibility and support policy", com matriz de suporte) e em `docs/INSTALLATION.md` (seΓ§Γ£o "OpenCode V1/V2 β€” contrato de plugin"), nΓ£o duplicado em um documento novo: os dois arquivos jΓ‘ eram o ponto de entrada do contrato de plugin, e um terceiro documento seria um terceiro lugar para divergir. O texto distingue as duas cΓ©lulas da linha 1.6.x β€” a cΓ©lula 1.X Γ© o contrato V1 (6 tools, lifecycle do board, hooks V1, compaction V1) e a cΓ©lula OpenCode 2 Γ© o contrato V2, que Γ© real porΓ©m **menor**: 3 tools, sem as `pantheon_goal_*` e sem a matriz de delegaΓ§Γ£o callerβ†’target. **O suporte a OpenCode 2 na linha 1.6 Γ© documentado como parcial, e nΓ£o como completo**, por duas razΓ΅es verificadas: (a) o canΓ‘rio de ferramentas V2 foi escrito contra `opencode 2.0.22`, host que nΓ£o Γ© publicado em nenhum canal npm β€” contra o `@opencode-ai/cli` instalΓ‘vel o mesmo canΓ‘rio falha 12/12, porque `/api/experimental/session/{id}/wait` foi promovido para `/api/session/{id}/wait` (404 no caminho antigo) e `ctx.tool.list` nΓ£o existe mais; corrigindo apenas a rota, 10/12 passam no mesmo host, o que caracteriza descasamento canΓ‘rio/host e nΓ£o regressΓ£o medida do plugin (issue #216, PR #213); (b) nΓ£o existe perna V1 de validaΓ§Γ£o end-to-end β€” `scripts/test-opencode-v2-sandbox.sh` Γ© V2-only e rejeita `--run v1` β€” portanto a versΓ£o exata de host 1.X exercitada end-to-end pela linha 1.6 fica registrada como **nΓ£o verificada**, e o caminho 1.X Γ© sustentado pelo pin de dependΓͺncia (`@opencode-ai/plugin` / `@opencode-ai/sdk` `1.18.33`), pelos testes unitΓ‘rios do gate de geraΓ§Γ£o e pelos testes end-to-end do installer sobre a config emitida.
19
+ ### Changed
112
20
 
113
- ## 🐞 Fixed
21
+ - **plugin** β€” V2 wires the read guard and bridge and restores supported context, image-history, formatter, and delegation-audit behavior (#264–#267).
22
+ - **plugin** β€” V2 reports host gaps `idle-todo-enforcer`, `todo-restore`, `tool-ceiling`, and `board-transitions` instead of claiming full parity.
23
+ - **install** β€” V2 notices report the resolved state path and shared V1/V2 state, not database isolation or a service port; capability output distinguishes the static seed and includes it in `--json`.
24
+ - **install** β€” SIGINT during blocking `spawnSync` may still be swallowed; cancellation is deterministic during awaited phases.
114
25
 
115
- - **Os exemplos de chamada MCP nos arquivos de prompt ensinavam um contrato que nΓ£o existe no schema real.** Um `pantheon-persistence.kv_get` ao vivo foi rejeitado com `namespace: Missing key`; a linha que o produziu foi `src/agents/zeus.md:189` (`depth = kv_get("deleg:depth") ?? 0`), cuja cΓ³pia instalada em `~/.config/opencode/agents/zeus.md` Γ© a que executou. A causa nΓ£o era o servidor MCP: os arquivos de agente e de instruΓ§Γ£o ensinavam chamadas posicionais sem `namespace`, enquanto o schema real Γ© `kv_get({ namespace /* obrigatΓ³rio, sem default */, key, scope? })` β€” `kv_store.namespace` Γ© igualmente obrigatΓ³rio e `kv_store.value` Γ© `str`. **A correΓ§Γ£o estΓ‘ nos docs, e nΓ£o em adicionar um `namespace` default:** um default escreveria estado de coordenaΓ§Γ£o no namespace errado silenciosamente, entΓ£o *obrigatΓ³rio* Γ© o desenho correto. A mesma classe de defeito foi corrigida em `context_save` (posicional, com um helper `json()` inexistente e sem o `session_id` obrigatΓ³rio β†’ forma por palavra-chave com `content=JSON.stringify(...)`), em `memory_store` (`value` precisa ser uma string JSON codificada β†’ agora iguala o padrΓ£o jΓ‘ correto de `metadata`, o que resolveu uma aut contradiΓ§Γ£o no mesmo arquivo), na aritmΓ©tica de profundidade (envolvida em `String(...)`, porque `kv_store.value` Γ© `str` e nΓ£o `int`) e em `memory_search(query, ...)` β†’ `query=` em todas as instΓ’ncias. `AGENTS.md` Γ© artefato gerado e foi reconstruΓ­do, nunca editado Γ  mΓ£o.
116
- - **Um bypass de permissΓ£o vivo: `edit: deny` nΓ£o cobria `hashline_edit`.** A regra `edit: deny` Γ© avaliada por nome de ferramenta, e `hashline_edit` nΓ£o Γ© `edit` β€” entΓ£o os agentes restritos a `edit: deny` (`zeus`, `athena`, `iris`, `nyx`, `themis`) podiam editar arquivos assim mesmo, escrevendo no disco por um caminho que a negaΓ§Γ£o nΓ£o cobria. `hashline_edit: deny` foi adicionado a esses cinco agentes. **NΓ£o era uma condiΓ§Γ£o de corrida nem um erro de configuraΓ§Γ£o: era uma tabela de permissΓ΅es incompleta**, o que significa que a negaΓ§Γ£o nunca esteve de fato aplicada a quem sΓ³ deveria ler.
117
- - **`test:node` reportava sucesso tendo coletado zero testes.** `node --test <glob>` sai com 0 quando o glob nΓ£o expande (Node >= 22), e foi exatamente o que aconteceu: um glob que nunca expandiu produziu um gate verde que nΓ£o executou nada. Pior, `tests/` estava ausente da allow-list `files` do pacote, entΓ£o um consumidor que rodasse `npm test` recebia esse verde. Agora os scripts de teste falham em voz alta quando a coleta Γ© zero, e a guarda tem teste prΓ³prio (`tests/run-node-tests.test.mjs`) que a dirige como subprocesso β€” o contrato Γ© o cΓ³digo de saΓ­da, entΓ£o testΓ‘-la em processo nΓ£o provaria nada.
118
- ## [v1.6.0-beta.5] - 2026-10-05
26
+ ### Fixed
119
27
 
120
- &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
121
- move this section to a versioned entry and reset the template below. --&gt;
28
+ - **plugin** β€” V1/V2 Zeus read guards normalize paths, resolve symlink targets, deny resolution failures, and align code-root checks with `pantheon_bounded_read` (#282).
29
+ - **plugin** β€” `pantheon_cost` sums per-model prices for multi-model agents and reconciles partial/unpriced usage with model totals (#260).
30
+ - **install** β€” Cancel/decline names the stopped step and records the run; Ctrl-C exits 130 during awaited phases (#261, #262).
31
+ - **install** β€” Fresh V2 installs write options-bearing plugin entries; migration moves only loadable entries and warns about sibling `opencode.jsonc` (#268, #269).
122
32
 
123
- ## πŸ†• What's New
33
+ ### Security
124
34
 
125
- - **O gate de geraΓ§Γ£o do plugin passa a ler a versΓ£o do host β€” e a superfΓ­cie de ferramentas deixa de desaparecer num host OpenCode 2.x.** O seletor de geraΓ§Γ£o tinha trΓͺs defaults `'v1'` (`bin/pantheon-init.mjs`, `scripts/install/opencode.mjs` e a assinatura do resolver em `scripts/install/opencode-version.mjs`). Nesse ramo, o installer grava caminhos de arquivo `.ts` na chave singular `plugin`; um host 2.x rejeita caminhos de arquivo ali (`configured plugin path must be a directory`), **descarta** as entradas e, ao fazer isso, **remove** a entrada de diretΓ³rio V2 que jΓ‘ estava registrada e funcionando. O sintoma era um host aparentemente saudΓ‘vel β€” a frota MCP subia normalmente β€” com um ΓΊnico WARN no log e **nenhuma** ferramenta do plugin no catΓ‘logo: sem `pantheon_cost`, sem `hashline_edit`, sem `pantheon_model`, sem BackgroundJobBoard e sem hooks. Os trΓͺs defaults passam a `'auto'`, e `auto` consulta a versΓ£o do host. PrecedΓͺncia: flag explΓ­cita > `OPENCODE_VERSION` > basename `opencode2` > probe de `--version` > aviso e fallback `v1`. Isto restaura as **3** ferramentas que o contrato V2 registra (`hashline_edit`, `pantheon_cost`, `pantheon_model`); nΓ£o Γ© paridade com o V1 β€” ver **Issues Conhecidas**.
126
- - **Uma instalaΓ§Γ£o na geraΓ§Γ£o V2 e o `doctor` agora declaram a superfΓ­cie reduzida em vez de deixΓ‘-la ser descoberta.** A lista de recursos nΓ£o suportados no V2 (`getUnsupportedFeatures()`) nΓ£o tinha nenhum consumidor em produΓ§Γ£o β€” sΓ³ testes a liam. O installer passa a imprimi-la ao lado do aviso de destino V2, e o `doctor` a reporta como um achado prΓ³prio, sem alterar o cΓ³digo de saΓ­da (uma instalaΓ§Γ£o V2 Γ© uma configuraΓ§Γ£o suportada, nΓ£o quebrada). A V2 registra 3 ferramentas, nΓ£o 6, e nΓ£o tem BackgroundJobBoard; as 3 ferramentas de goal nΓ£o sΓ£o registradas na V2 por desenho. O texto agora Γ© ΓΊnico, vindo de `src/pantheon/v2-unsupported.mjs`.
127
- - **RenomeaΓ§Γ£o dos entrypoints MCP (issue #198).** Os cinco entrypoints Python deixaram de compartilhar o token `server.py`, entΓ£o um `pkill -f server.py` amplo nΓ£o derruba mais a frota inteira como efeito colateral. Inclui uma migraΓ§Γ£o em tempo de instalaΓ§Γ£o para que as instalaΓ§Γ΅es existentes nΓ£o fiquem Γ³rfΓ£s.
128
- - **O pacote npm deixou de versionar e distribuir a configuraΓ§Γ£o pessoal de desenvolvimento do OpenCode.** `opencode.json` e `.opencode/` (comandos, plugins e skills) saΓ­ram do controle de versΓ£o: a config carregava um endpoint MCP privado e overrides de permissΓ£o por desenvolvedor, e o harness V1 de comandos/plugins foi substituΓ­do por `src/plugin-v2.ts`. O `init` continua gerando a config do projeto do usuΓ‘rio, entΓ£o instalaΓ§Γ΅es nΓ£o sΓ£o afetadas; para contribuidores, um `opencode.json` pessoal deve ir em `.git/info/exclude`.
129
- - **DocumentaΓ§Γ£o: `ROADMAP.md` reescrito e um novo documento de fronteira.** O roadmap foi reescrito com as causas-raiz verificadas, e um novo documento β€” `docs/PERMISSIONS-QUALITY-DELEGATION.md` β€” mapeia os gates de qualidade, as quatro camadas de permissΓ£o e a delegaΓ§Γ£o num sΓ³ lugar, marcando explicitamente o que ainda nΓ£o foi verificado.
35
+ - **deps** β€” Patched `zod` 4.6.6, `fastmcp` 4.1.2, `undici` 6.29.1/8.12.3, and `fast-uri` 3.1.9 to clear reported advisories (#275; PR #283).
36
+ - The guard does not pin an inode or make check/open atomic, so concurrent workspace writers can race it; it is a policy boundary, not isolation from hostile local processes.
130
37
 
131
- ## 🐞 Fixed
38
+ ### Deprecated
132
39
 
133
- - **A leitura do banner de versΓ£o do host era quadrΓ‘tica.** Um banner longo custava **11,1 s** para ser interpretado, contra o timeout de **5 s** do spawn de `--version`; o timeout guarda o processo, nΓ£o a leitura, entΓ£o um host verboso conseguia estourΓ‘-lo. A interpretaΓ§Γ£o passou a ser **linear**.
134
- - **O `readOnlyRegistry` do V2 nΓ£o era podado no `session.deleted`.** O registro Γ© global ao processo e nunca era limpo quando uma sessΓ£o do V2 terminava, entΓ£o entradas de sessΓ΅es encerradas acumulavam. O `session.deleted` do V2 passa a podar o registro, como a V1 jΓ‘ fazia.
40
+ ### Removed
135
41
 
136
- ## ⚠️ Known Issues
42
+ ## [v1.6.0] - 2026-10-22
137
43
 
138
- - **AΓ§Γ£o necessΓ‘ria: re-executar o `init` numa instalaΓ§Γ£o afetada.** O `postinstall` **nΓ£o** roda o `init`. Quem teve a configuraΓ§Γ£o corrompida por uma instalaΓ§Γ£o `v1` anterior **nΓ£o** Γ© auto-corrigido apenas por atualizar o pacote β€” Γ© preciso rodar o installer de novo (`npx pantheon-opencode init`). Uma escolha correta de geraΓ§Γ£o **auto-corrige** a configuraΓ§Γ£o (o ramo V2 jΓ‘ remove as referΓͺncias `.ts` do V1), mas sΓ³ quando o installer roda. O mesmo vale para a renomeaΓ§Γ£o dos entrypoints: instalaΓ§Γ΅es existentes continuam funcionando porque os arquivos antigos sΓ£o mantidos, mas os caminhos sΓ³ sΓ£o corrigidos numa nova execuΓ§Γ£o do installer; atΓ© lΓ‘, esses usuΓ‘rios permanecem nos entrypoints antigos e sujeitos ao efeito colateral do `server.py`.
139
- - **A superfície V2 é menor que a V1 por desenho.** A V2 registra 3 ferramentas (`hashline_edit`, `pantheon_cost`, `pantheon_model`), não 6, e não tem BackgroundJobBoard; as 3 `pantheon_goal_*` são V1-only e a matriz de delegação caller→target não é replicada. O installer e o `doctor` agora **dizem** isso (ver What's New), mas a funcionalidade ausente não é restaurada.
140
- - **O fallback continua a ser `v1`.** Quando o probe do host falha, nΓ£o consegue ser interpretado, ou traz versΓ΅es contraditΓ³rias, o resolver avisa **uma vez** e cai para `v1`, em vez de arriscar um host 1.x com uma entrada `plugins` que ele ignoraria. Γ‰ um erro alto e visΓ­vel, mas ainda Γ© uma queda para a configuraΓ§Γ£o V1.
44
+ ### Added
141
45
 
142
- ## βœ… Closed Issues
46
+ - OpenCode 1.19.x and 2.x support with `auto` generation detection; OpenCode 2.0.22 is known broken.
47
+ - Per-agent MCP permissions on both generations; omitted servers and undeclared tools are denied by default.
48
+ - `pantheon_cost` now reports USD by agent, model and session, accepts `session` scope, and has a hard offline gate that refuses `refreshPricing`.
49
+ - Opt-in V2 memory injection can add the most relevant entries to the request context; it is off by default.
50
+ - V2 compaction prunes repeated tool output before summarization, keeping the newest result and recent turns.
51
+ - The V2 sidebar aggregates child work in a `Dispatch` block, and `/dispatch` opens a full-width panel over the same data.
52
+ - The installer previews each file before apply, detects drift, keeps an exact backup, and provides `restore`, `reconcile` and `uninstall`.
53
+ - A pristine project database now starts with both checkpoint and goal schemas; startup never adds goal DDL to an existing database.
54
+ - Migrating an existing database for the manual goal tools is an explicit step: dry-run first, server stopped, target confirmed, verified `0600` backup.
55
+ - When the goal schema is absent, the goal tools return the exact migration command.
143
56
 
144
- - **A justificativa da matriz de delegaΓ§Γ£o V1β†’V2 foi corrigida.** O texto dizia que o V2 "nΓ£o expΓ΅e esse caminho de semeadura"; os tipos do SDK refutam isso. A causa real da matriz nΓ£o replicada nΓ£o Γ© a ausΓͺncia de um caminho de semeadura (`session.created` do V2 traz `properties.info: Session` com `parentID?`, o mesmo campo que a V1 semeia), mas a *segunda* fonte da V1 β€” o seed de `client.session.list()` para sessΓ΅es anteriores ao carregamento do plugin β€” porque o `PluginContext` do V2 nΓ£o expΓ΅e `client`. Se um host 2.0.22 ao vivo popula `info.parentID` nesse evento continua **nΓ£o verificado** (nenhum canΓ‘rio lΓͺ payload de evento). A linha publicada em `v1.6.0-beta.4` fica como registro.
145
- ## [v1.6.0-beta.4] - 2026-10-03
57
+ ### Changed
146
58
 
147
- &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
148
- move this section to a versioned entry and reset the template below. --&gt;
59
+ - V2 installs no longer duplicate global and project instruction context, reducing the first-request payload.
60
+ - Memory entries are capped at 64 KiB, can expire via `ttl_seconds`, and `memory_search` returns typed errors when the store is unreadable.
61
+ - Node.js 26.4.0 is the package floor; the `node:sqlite` cost backend keeps its separate >=22.5 threshold.
62
+ - Plan approval always shows the full plan in the main conversation, never a pointer into a child session.
149
63
 
150
- ## πŸ†• What's New
64
+ ### Deprecated
151
65
 
152
- - **CanΓ‘rio host-backed que dirige `hashline_edit` end-to-end** (`tests/canary/plugin-v2-tool-canary.test.mjs`, 12 casos): carrega `src/plugin-v2.ts` pelo loader real do host `opencode 2.0.22` e registra `Object.keys(ctx)` de dentro do host β€” medidos, `tool`/`event`/`permission`/`session` existem e `catalog` nΓ£o. Γ‰ o primeiro gate que dirige uma ferramenta do Pantheon por um host real. O canΓ‘rio existente sΓ³ dirige o `read` embutido, e foi por isso que `draft.add()` sem `output` sobreviveu 26 dias com todos os testes verdes.
153
- - **Os quatro domΓ­nios que o SDK `@opencode-ai/plugin` nΓ£o tipa** (`tool`, `event`, `permission`, `session`) passaram a uma declaraΓ§Γ£o estrutural local (`HostPluginContext`) e **um** cast documentado (`hostDomains()`), no lugar de seis `as unknown as Record<string, unknown>` que nΓ£o verificavam tipo nenhum. Todo membro continua opcional e todo chamador reconferir antes de usar. A linha estΓ‘vel do SDK Γ© `1.18.x` e nΓ£o carrega o contrato do host β€” `1.18.34` (`latest`) Γ© idΓͺntica a `1.18.33`, entΓ£o seguir o `dev` diΓ‘rio resolveria pior, nΓ£o melhor.
66
+ - V1 `pantheon_goal_create`, `pantheon_goal_update` and `pantheon_goal_get` are soft-deprecated; stored goals no longer continue a session automatically.
154
67
 
155
- ## 🐞 Fixed
68
+ **Upgrade required:** `npm install -g pantheon-opencode@beta && pantheon-opencode update` β€” see [UPGRADING.md](docs/UPGRADING.md).
156
69
 
157
- - `pantheon_cost` respondia `CORRUPT_DATA` em **toda** chamada contra o host 2.0.22: exigia a tabela `message`, que nΓ£o existe nesse banco. Os tokens de assistant **estΓ£o** legΓ­veis em `session_message`. **NΓ£o Γ© renomeaΓ§Γ£o:** `session_message` tem coluna `data`, mas nΓ£o tem a chave `role` dentro dela β€” `json_type(data,'$.role')` Γ© nulo em **0 de 40 307** linhas vΓ‘lidas. O V1 marca turnos de assistant com `data.role`; o V2 marca pela **coluna** `type`. Trocar apenas o nome da tabela casaria com nada e devolveria `status: OK` em silΓͺncio. A detecΓ§Γ£o passa a ser por **presenΓ§a de tabela**, porque as duas famΓ­lias coexistem em bancos migrados.
158
- - `PANTHEON_OPENCODE_VERSION` nunca selecionou o schema: sΓ³ mudava o **nome do arquivo**, e `opencode-v2.db` Γ© o isolamento do sandbox via `OPENCODE_DB`, nΓ£o um banco de host 2.x. A distinΓ§Γ£o v1/v2 Γ© o **schema detectado**; a variΓ‘vel agora apenas restringe um conjunto jΓ‘ detectado e falha rΓ‘pido quando pede uma famΓ­lia ausente.
159
- - `scripts/cost.mjs` duplicava o mesmo bug literal, com o mesmo assert β€” o fallback continuava morto. `probe-pantheon-cost.mjs` acompanha.
160
- - O report agora **declara a cobertura temporal** que ele mediu (janela varrida, linha mais antiga), em vez de apresentar totais como se cobrissem meses.
70
+ ### Removed
161
71
 
162
- ## ⚠️ Known Issues
72
+ - Twelve Persistence KV and context-management tools are unregistered; checkpoints and manual goals remain.
73
+ - The legacy vector/embedding memory path is removed; SQLite FTS5/BM25 search and the `code_*` tools remain.
74
+ - The V2 goal tools are removed and replaced by the manual Persistence `goal_*` tools.
75
+ - `steps` is no longer written into managed agents; the host applies no native step ceiling by default.
76
+ - The maintainer's `opencode.json` and `.opencode/` are no longer shipped in the package.
163
77
 
164
- - O canΓ‘rio **host-backed pula no CI**: o runner nΓ£o tem binΓ‘rio `opencode`. O skip Γ© **visΓ­vel** no log (`::notice`), e os dois casos sem host rodam incondicionalmente, com `PANTHEON_TOOL_CANARY_BIN` apontado para um caminho inexistente. Rodar de verdade exige um modo no script de sandbox β€” **nΓ£o feito**.
165
- - A cobertura de custo do banco v2 Γ© de **~8,3 dias** nesta mΓ‘quina (primeiro registro em 2026-09-25). O histΓ³rico v1 (~96 dias) fica num diretΓ³rio irmΓ£o com nome de epoch, que **nΓ£o** Γ© contrato e por isso nΓ£o Γ© descoberto automaticamente. Quem quiser aponta `PANTHEON_COST_DB`.
166
- - `metadata.phase` nunca existiu em v1 nem em v2 β€” medido: 0 linhas de `session_message` tΓͺm `$.metadata.phase` nem `$.phase`. A coluna Phase sempre foi `unknown`. NΓ£o Γ© regressΓ£o, Γ© feature que nunca funcionou.
167
- ## [v1.6.0-beta.3] - 2026-10-03
78
+ **Upgrade required:** `npm install -g pantheon-opencode@beta && pantheon-opencode update` β€” see [UPGRADING.md](docs/UPGRADING.md).
168
79
 
169
- &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
170
- move this section to a versioned entry and reset the template below. --&gt;
80
+ ### Fixed
171
81
 
172
- ## πŸ†• What's New
173
- - **TrΓͺs ferramentas V2 agora executam de verdade**: `hashline_edit`,
174
- `pantheon_cost` e `pantheon_model` rodam no host `opencode v2.0.x`. Antes
175
- eram placeholders que declaravam sucesso sem fazer nada.
176
- - **Enforcement de sessΓ£o read-only no caminho V2**: `apollo` e `gaia` voltam
177
- a ter escrita bloqueada, com o guard registrado no prΓ³prio plugin V2 β€” sem
178
- depender de uma ponte que a instalaΓ§Γ£o V2 nΓ£o monta.
179
- - **Varredura de segredos de alta confianΓ§a no caminho V2**: o ΓΊnico hard block
180
- de seguranΓ§a que a V1 tinha, e que estava inerte por viver num plugin que a
181
- instalaΓ§Γ£o V2 nΓ£o carrega, passa a rodar.
182
-
183
- ## 🐞 Fixed
184
- - **As 6 ferramentas de plugin do V2 falhavam em 100% das chamadas**:
185
- `hashline_edit`, `pantheon_cost` e `pantheon_model` lanΓ§avam
186
- `Tool result declared output without an output schema` em toda invocaΓ§Γ£o. A
187
- causa era assimetria local β€” `draft.add()` nΓ£o declarava `output` enquanto o
188
- `execute` resolvia `{ output: string }`. O host exige simetria nos dois
189
- sentidos: resultado com `output` e nenhuma declaraΓ§Γ£o lanΓ§a, assim como
190
- declaraΓ§Γ£o sem `output` no resultado. `output` passou a ser **obrigatΓ³rio** na
191
- interface `V2ToolDef`, entΓ£o o compilador exige a declaraΓ§Γ£o daqui em diante.
192
- - **A suΓ­te exigia o defeito**: `tests/pantheon/plugin-v2-contract.test.ts`
193
- afirmava que o resultado carregava `.output` string β€” literalmente a condiΓ§Γ£o
194
- de falha, contra um mock que nΓ£o reproduzia a exigΓͺncia do host. O teste foi
195
- reescrito para o invariante de simetria, contra um mock que constrΓ³i o
196
- `outputSchema` a partir de `def.output` como o host faz
197
- (`output: I.outputSchema ?? {}`), cobrindo as duas direΓ§Γ΅es do bicondicional.
198
- - **A imposiΓ§Γ£o read-only nΓ£o existia na superfΓ­cie V2**: `createEnforcementGuard`
199
- sΓ³ era instanciado em `src/plugin.ts`, que o `opencode.json` da release nΓ£o
200
- declara β€” V2 nunca carrega V1. Com `hashline_edit` funcional, uma sessΓ£o
201
- somente-leitura podia escrever arquivos. O guard passou a ser registrado no
202
- hook `execute.before` do V2, e `pantheon_model` β€” que escreve
203
- `active-preset.json` em escopo project e global β€” foi acrescentado a
204
- `DEFAULT_BLOCKED_TOOLS`, o que corrige tambΓ©m a V1. `pantheon_cost` ficou de
205
- fora de propΓ³sito: sΓ³ lΓͺ `opencode.db`.
206
- - **O ΓΊnico hard block de seguranΓ§a da V1 estava inerte**: o scan de segredos de
207
- alta confianΓ§a vivia em `src/plugins/pantheon-hooks.ts`, um plugin que a
208
- instalaΓ§Γ£o V2 nΓ£o carrega β€” inerte por construΓ§Γ£o, nΓ£o por mΓ‘ configuraΓ§Γ£o.
209
- Passou a rodar dentro do `execute.before` do V2
210
- (`scripts/hooks/scan-secrets.sh`; exit 2 bloqueia, exit 1 Γ© advisory e sΓ³
211
- registra). O caminho do script foi verificado a partir do tarball instalado,
212
- nΓ£o sΓ³ do repo.
213
- - **Cinco comentΓ‘rios afirmavam cobertura que nΓ£o existe** ("wired through the
214
- V1…"). Corrigidos β€” Γ© o defeito "anunciado como vivo, morto no caminho", a
215
- mesma classe do bug original, transferida do tool para o controle de seguranΓ§a.
216
-
217
- ## ⚠️ Known Issues
218
- - **A release entrega 3 ferramentas V2 funcionais, nΓ£o 6**:
219
- `pantheon_goal_create`, `pantheon_goal_get` e `pantheon_goal_update` foram
220
- **removidos** da superfΓ­cie V2. `GoalLoopDeps` exige `store`, `client` e
221
- `board`, que nΓ£o existem no `PluginContext` V2, e a bridge V1 resolve para
222
- `null` fora da V1. RegistrΓ‘-las como placeholders nΓ£o funcionais seria pior
223
- que a ausΓͺncia: anunciΓ‘-las seria mentira silenciosa. Marcador `goal-tools`
224
- em `V2_UNSUPPORTED_FEATURES`. **Breaking** para quem usava esses tools no
225
- host V2 β€” o contrato V1 permanece disponΓ­vel para o goal loop.
226
- - **A matriz de delegaΓ§Γ£o nativa da V1 nΓ£o Γ© replicada na V2**: o guard V2 cobre
227
- a lista de ferramentas bloqueadas, mas não a matriz caller→target nem a negação
228
- de `task` em sessΓ£o filha. A matriz precisa de uma hierarquia de sessΓ΅es
229
- semeada a partir dos metadados de sessΓ£o, e o V2 nΓ£o expΓ΅e esse caminho de
230
- semeadura β€” `SessionHierarchyRegistry.isRoot` reporta `true` para sessΓ΅es
231
- desconhecidas enquanto nΓ£o semeada, entΓ£o semeΓ‘-la pela metade negaria todo
232
- `task()`. O branch Γ© pulado em vez de negado indiscriminadamente. Marcador
233
- `delegation-matrix`. `task` continua negada em sessΓ£o somente-leitura pela
234
- lista de ferramentas bloqueadas, entΓ£o a profundidade 2 se sustenta; o que
235
- nΓ£o existe Γ© a matriz. Coberto por `experimental.subagent_depth` nesta
236
- configuraΓ§Γ£o, mas a garantia do plugin nΓ£o existe.
237
- - **O log do scan de segredos escreve sΓ³ em `.pantheon/logs/hooks.log`**: o
238
- `PluginContext` V2 nΓ£o expΓ΅e `client` nem `directory`, entΓ£o os canais de log
239
- estruturado e de toast da V1 nΓ£o existem nessa superfΓ­cie. Γ‰ menos
240
- observabilidade, nΓ£o menos bloqueio.
241
- - **Falha de infraestrutura do scanner Γ© fail-open por decisΓ£o**: script ausente
242
- ou timeout nΓ£o bloqueiam. `runHook` nunca rejeita e um erro de infraestrutura
243
- nΓ£o deve negar chamadas nΓ£o relacionadas. AusΓͺncia do script nΓ£o bloqueia.
244
-
245
- ## βœ… Closed Issues
246
- - **Drift de documentaΓ§Γ£o no `README.pt-BR.md`**: a tabela de contrato de
247
- runtime e o parΓ‘grafo de superfΓ­cie listavam 6 ferramentas V2 e as 3 de goal,
248
- que nΓ£o estΓ£o registradas. Corrigido para 3 ferramentas, com a razΓ£o da
249
- ausΓͺncia e o ponto de imposiΓ§Γ£o read-only.
250
- - **Cinco comentΓ‘rios de falsa cobertura** sobre a imposiΓ§Γ£o read-only e o scan
251
- de segredos.
252
- - **Shim do loader JSON do ajv elevado a bootstrap de mΓ³dulo**: o patch de
253
- `Module._extensions['.json']` era aplicado de dentro de `loadAjv()` e ficava
254
- vivo durante todo o run, podendo vazar entre arquivos de teste e se manifestar
255
- longe da causa. Agora instala, carrega e restaura em nΓ­vel de mΓ³dulo, antes de
256
- qualquer corpo de teste, com `finally`.
257
- ## [v1.6.0-beta.2] - 2026-10-02
258
-
259
- ## πŸ†• What's New
260
- - **`steps` nΓ£o Γ© mais definido pelo Pantheon**: removido dos 14 agentes em
261
- `src/agents/`. No OpenCode 2 o campo Γ© opcional e **sem default** β€” ausente
262
- significa **sem teto nativo**. O host nΓ£o impΓ΅e teto; o Pantheon estava
263
- escrevendo um.
264
- - **Instalador v2 remove `steps` residual**: configs jΓ‘ instalados passam a ter
265
- o `steps` apagado dos agentes gerenciados. Escopo restrito aos agentes que o
266
- Pantheon gerencia β€” um agente definido pelo usuΓ‘rio nunca Γ© tocado. O bloco V1
267
- singular `agent` Γ© deliberadamente intocado (V1 em retirada).
268
- - **Substitutos ao teto**: `task(background=true)` para trabalho fora da
269
- foreground, `experimental.subagent_depth` para aninhamento de subagentes e
270
- paralelismo entre delegaΓ§Γ΅es independentes.
271
- - **Limpeza**: `max_steps` e `max_compaction_items` removidos de
272
- `src/routing.yml`. `loadRoutingMaxSteps` nunca teve um ΓΊnico import β€” 2
273
- matches no repo (definiΓ§Γ£o e typedef), ambos removidos.
274
-
275
- ## 🐞 Fixed
276
- - **`migrateV1toV2` descartava campos gerenciados**: com os blocos `agent` (V1)
277
- e `agents` (V2) coexistindo β€” o caso de qualquer config jΓ‘ instalado β€” o
278
- spread raso fazia um substituir o outro por inteiro. Na ordem de chaves do
279
- `opencode.json` real, o lado perdedor era o do usuΓ‘rio. Agora **mescla**: a
280
- base Γ© o bloco V2, os campos gerenciados do V1 sobrescrevem, e os campos do
281
- usuΓ‘rio sΓ£o preservados. Mesma semΓ’ntica jΓ‘ usada em `install/opencode.mjs`.
282
- - **`docs/platforms/README.md` tinha tabela de step limits errada**: 14 linhas
283
- listando limites por agente, **nenhum valor batendo** com `src/agents/`.
284
- Tabela removida e a seΓ§Γ£o reescrita.
285
-
286
- ## ⚠️ Known Issues
287
- - **PermissΓ΅es de agente**: V1 usa `permission` e V2 usa `permissions`; ao mesclar esses blocos, a chave legada `permission` pode permanecer inerte ao lado de `permissions`.
288
- - **MigraΓ§Γ£o β€” rode o init uma vez**: `npx pantheon-opencode init
289
- --opencode-version=v2` **uma ΓΊnica vez** limpa o `steps` residual. Sem isso o
290
- config instalado continua carregando o teto antigo.
291
- - **O `.md` de agente instalado Γ© sobrescrito no prΓ³ximo sync**: editar
292
- `~/.config/opencode/agents/*.md` esperando persistΓͺncia **nΓ£o funciona**.
293
- Comportamento **prΓ©-existente**, nΓ£o Γ© regressΓ£o desta mudanΓ§a β€” mas agora
294
- estΓ‘ documentado para nΓ£o ser reportado como uma.
295
- - **`steps` definido Γ  mΓ£o num agente gerenciado Γ© removido a cada install v2**:
296
- o instalador nΓ£o distingue um valor que ele escreveu de um valor que vocΓͺ
297
- escreveu (mesma chave, mesmo valor). Workaround: definir no frontmatter do
298
- agente β€” e lembrar que ele **tambΓ©m** Γ© sobrescrito no prΓ³ximo sync.
299
- ## [v1.6.0-beta.1] - 2026-09-30
82
+ - V2 plugin tools now execute instead of reporting a false success, and every tool declares the `output` schema the host requires.
83
+ - An empty child dispatch result is surfaced as an error instead of a silent completed call.
84
+ - Scoped `pantheon_cost` reports with no matching rows render an empty report instead of `UNSUPPORTED`.
85
+ - Sub-cent costs render as `< $0.0001`; a real zero stays `$0.00`.
86
+ - Cache-only assistant turns count as readable cost usage.
87
+ - A session-scoped cost request on the CLI fallback returns `UNSUPPORTED` instead of an unscoped total.
300
88
 
301
- <!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
302
- move this section to a versioned entry and reset the template below. -->
89
+ ### Security
303
90
 
304
- ## πŸ†• What's New
305
- - **OpenCode 2** β€” first Pantheon beta compatible with the OpenCode 2 plugin
306
- contract.
307
- - **memory** β€” preserve SQLite FTS5/BM25 keyword search and the `code_*` codemap
308
- tools.
91
+ - Three permission holes are closed: `hashline_edit` no longer bypasses `edit: deny`, and the V2 read-only guard and secret scan are active.
309
92
 
310
- ## 🐞 Fixed
311
- - **memory** β€” remove the legacy vector-memory scripts and embedding/KNN/RRF
312
- path.
313
- - **CI/release** β€” keep validation fail-closed; expand `doctor` checks and add
314
- the OpenCode 2 V2-only sandbox validator.
93
+ Pre-release history (1.6.0-beta.*) is archived in [docs/internal/changelog-prereleases.md](docs/internal/changelog-prereleases.md).
315
94
 
316
95
  ## [v1.5.2] - 2026-09-22
317
96
 
318
- ## 🐞 Fixed
97
+ ## Fixed
319
98
  - **install** β€” guard undefined collection in init (#174)
320
99
  - **release** β€” compare Zenodo file checksum in the format the API returns (#173)
321
100
  ## [v1.5.1] - 2026-09-22
322
101
 
323
- ## 🐞 Fixed
102
+ ## Fixed
324
103
  - **agents** β€” declare explicit read: allow for zeus
325
104
  - **ci** β€” drop fastembed from CI, keep pytest collection green (#163)
326
105
  - **plugin** β€” detect registered-plugin version drift after pantheon_delegate removal (#169)
@@ -330,7 +109,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
330
109
  - **tui** β€” remove dead pantheon_delegate refs after v1.5.0 V1 removal (#166)
331
110
  - **mnemosyne** β€” grant scoped write to memory-bank and deepwork paths (#164)
332
111
 
333
- ## βœ… Closed Issues
112
+ ## Closed Issues
334
113
  - #94 - drop fastembed from CI, keep pytest collection green (#163)
335
114
  - #158 - detect registered-plugin version drift after pantheon_delegate removal (#169)
336
115
  - #114 - correct node floor and warn on unsupported runtime (#168)
@@ -342,7 +121,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
342
121
 
343
122
  ## [v1.5.0] - 2026-09-16
344
123
 
345
- ### πŸ†• What's New
124
+ ### Added
346
125
 
347
126
  - **DelegaΓ§Γ£o nativa**: `task()` Γ© agora o ΓΊnico canal de delegaΓ§Γ£o β€” motor legado
348
127
  de dispatch removido por completo, simplificando o fluxo de subagents.
@@ -354,7 +133,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
354
133
  - **CI/CD**: Dependabot alerts, CodeQL analysis, SHA pins em actions, gitleaks
355
134
  v3 para detecΓ§Γ£o de secrets, e workflow de release dispatch-only.
356
135
 
357
- ### 🐞 Fixed
136
+ ### Fixed
358
137
 
359
138
  - **Painel Delegations vazio (crΓ­tico)**: canal `session.children` da TUI
360
139
  chamava API com shape v1 num cliente v2 β€” placeholder `{sessionID}` nΓ£o era
@@ -367,7 +146,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
367
146
  - **Signal leak**: timer independente do spinner separado do poll de dados,
368
147
  evitando bloqueio visual durante operaΓ§Γ΅es longas.
369
148
 
370
- ### βœ… Closed Issues
149
+ ### Closed Issues
371
150
 
372
151
  - 38% dos testes consolidados (de ~1200 para ~744) com cobertura mantida.
373
152
  - 17 mΓ³dulos mortos removidos, reduzindo superfΓ­cie de manutenΓ§Γ£o.
@@ -378,7 +157,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
378
157
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
379
158
  move this section to a versioned entry and reset the template below. --&gt;
380
159
 
381
- ## 🐞 Fixed
160
+ ## Fixed
382
161
 
383
162
  - **Fixed β€” painel Delegations**: children com status `busy` stale (>30min sem
384
163
  atualizaΓ§Γ£o) agora sΓ£o classificadas como `completed` (nΓ£o `running`). O
@@ -389,7 +168,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
389
168
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
390
169
  move this section to a versioned entry and reset the template below. --&gt;
391
170
 
392
- ## πŸ†• What's New
171
+ ## Added
393
172
 
394
173
  - **Improved β€” painel Delegations**: status ausente de children antigas agora Γ©
395
174
  `done` (nΓ£o `running`); grace 60s para sessΓ΅es recΓ©m-criadas; janela de
@@ -403,7 +182,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
403
182
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
404
183
  move this section to a versioned entry and reset the template below. --&gt;
405
184
 
406
- ## 🐞 Fixed
185
+ ## Fixed
407
186
 
408
187
  - **Painel Delegations voltou a funcionar (crΓ­tico):** o canal
409
188
  `session.children` da TUI chamava a API com a shape v1 (`{ path: { id } }`)
@@ -423,7 +202,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
423
202
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
424
203
  move this section to a versioned entry and reset the template below. --&gt;
425
204
 
426
- ## πŸ†• What's New
205
+ ## Added
427
206
 
428
207
  - **DelegaΓ§Γ£o nativa no host:** o motor `pantheon_delegate` foi removido
429
208
  (~3,9k linhas) junto com as tools `pantheon_delegate`,
@@ -437,7 +216,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
437
216
  - **Camada fina preservada:** `task-result-guard` (verified completion de child
438
217
  vazio), `native-task-status` e guards de enforcement.
439
218
 
440
- ## 🐞 Fixed
219
+ ## Fixed
441
220
 
442
221
  - **Read-only enforcement re-apontado para sessΓ΅es nativas:** aplicado no
443
222
  pΓΊblico via hook `chat.params` e `hashline_edit` bloqueado para `apollo`/`gaia`,
@@ -451,7 +230,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
451
230
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
452
231
  move this section to a versioned entry and reset the template below. --&gt;
453
232
 
454
- ## πŸ†• What's New
233
+ ## Added
455
234
 
456
235
  - **ModernizaΓ§Γ£o CI/supply-chain:** 22 actions SHA-pinadas; `gitleaks-action` v3
457
236
  (fix crΓ­tico β€” a v2 morria com Node 20 em 2026-09-16) com CLI 8.30.1; cache
@@ -465,7 +244,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
465
244
  - **Instructions:** deduplicaΓ§Γ£o das instruΓ§Γ΅es compartilhadas β€” contexto menor
466
245
  sem perder nenhuma regra.
467
246
 
468
- ## 🐞 Fixed
247
+ ## Fixed
469
248
 
470
249
  - **2 flakes determinΓ­sticos eliminados:** TTL do MCP persistence
471
250
  (`test_ttl_expiry_real_time`) e `logger.test.mjs` deixaram de depender de
@@ -478,7 +257,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
478
257
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
479
258
  move this section to a versioned entry and reset the template below. --&gt;
480
259
 
481
- ## πŸ†• What's New
260
+ ## Added
482
261
 
483
262
  - **Delegation `read` devolve o relatΓ³rio completo:** o retorno de `read` passa a
484
263
  ler o relatΓ³rio integral do disco (com cap configurΓ‘vel e marker explΓ­cito de
@@ -491,7 +270,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
491
270
  ser pintada pelo estado β€” vermelho = falha, verde = concluΓ­do, amarelo = em
492
271
  andamento β€” com o glyph mantido como canal redundante para acessibilidade.
493
272
 
494
- ## 🐞 Fixed
273
+ ## Fixed
495
274
 
496
275
  - **TUI β€” painel Delegations sΓ³ da sessΓ£o ativa:** o painel deixa de renderizar
497
276
  rows cross-session/Γ³rfΓ£s que causavam "Session not found" ao clicar; a lista
@@ -516,19 +295,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
516
295
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
517
296
  move this section to a versioned entry and reset the template below. --&gt;
518
297
 
519
- ## πŸ†• What's New
298
+ ## Added
520
299
 
521
300
  - **OrdenaΓ§Γ£o active-first:** delegaΓ§Γ΅es ativas aparecem antes das concluΓ­das,
522
301
  falhas e canceladas no painel TUI.
523
302
  - **Overflow active:** quando hΓ‘ mais delegaΓ§Γ΅es ativas que o teto visΓ­vel, o
524
303
  excedente ativo permanece representado na linha de overflow.
525
304
 
526
- ## 🐞 Fixed
305
+ ## Fixed
527
306
 
528
307
  - **RetenΓ§Γ£o visual:** concluΓ­das permanecem visΓ­veis por 2 min e falhas por
529
308
  10 min antes de saΓ­rem do painel; canceladas seguem a retenΓ§Γ£o configurada.
530
309
 
531
- ## ⚠️ Known Issues
310
+ ## Known Issues
532
311
 
533
312
  - **Stale running warning:** jobs em estado `running` alΓ©m do limite esperado
534
313
  recebem um aviso visual de stale no painel.
@@ -537,7 +316,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
537
316
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
538
317
  move this section to a versioned entry and reset the template below. --&gt;
539
318
 
540
- ## πŸ†• What's New
319
+ ## Added
541
320
 
542
321
  - **TUI status-only β€” rows simplificadas:** cada linha do painel Delegations passa
543
322
  a ser `{glyph} {alias} {elapsed}` + `desc` muted β€” um glyph de status, uma ΓΊnica
@@ -555,7 +334,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
555
334
  118/118 passando, cobrindo rows status-only, header active/done/failed, ceiling
556
335
  e board read cross-session.
557
336
 
558
- ## 🐞 Fixed
337
+ ## Fixed
559
338
 
560
339
  - **SanitizaΓ§Γ£o de dead code:** removidos helpers, tipos e estado Γ³rfΓ£os do
561
340
  painel Delegations (toggle de escopo `[SessΓ£o]`/`[Tudo]`, prefixos curtos
@@ -568,7 +347,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
568
347
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
569
348
  move this section to a versioned entry and reset the template below. --&gt;
570
349
 
571
- ## πŸ†• What's New
350
+ ## Added
572
351
 
573
352
  - **TUI lΓͺ o board (4ΒΊ canal):** o painel Delegations passa a ler o
574
353
  BackgroundJobBoard via `readBoardState()` β€” jobs `pantheon_delegate` de todas
@@ -584,7 +363,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
584
363
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
585
364
  move this section to a versioned entry and reset the template below. --&gt;
586
365
 
587
- ## πŸ†• What's New
366
+ ## Added
588
367
 
589
368
  - **Glyphs da FSM real no painel Delegations:** cada estado do BackgroundJobBoard
590
369
  tem agora um glifo Unicode geomΓ©trico prΓ³prio β€” `β ‹` running (spinner 1s),
@@ -599,7 +378,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
599
378
  - **104 testes TUI delegations:** `tests/pantheon/tui-delegations.test.ts` com
600
379
  104/104 passando, cobrindo glifos/marker/tone dos estados reais da FSM.
601
380
 
602
- ## 🐞 Fixed
381
+ ## Fixed
603
382
 
604
383
  - **Doctor F.2 (`hasUsableScripts`):** a resoluΓ§Γ£o do diretΓ³rio code-mode agora
605
384
  exige um `.py`/`.sh` regular (paridade com `_has_usable_scripts` do MCP), entΓ£o
@@ -612,7 +391,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
612
391
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
613
392
  move this section to a versioned entry and reset the template below. --&gt;
614
393
 
615
- ## πŸ†• What's New
394
+ ## Added
616
395
 
617
396
  - **TUI delegations com prefixos curtos `nat:` / `pan:`:** cada linha do painel passa
618
397
  a usar `nat:<agent>` para child nativo do `task()` (sem report no board) ou
@@ -628,7 +407,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
628
407
  - **100 testes TUI delegations:** `tests/pantheon/tui-delegations.test.ts` com 100/100
629
408
  passando (tsc + biome OK), acima dos 93 da beta.9.
630
409
 
631
- ## 🐞 Fixed
410
+ ## Fixed
632
411
 
633
412
  - **`appendFile` sem import (log do painel volta a escrever):** o log em arquivo do
634
413
  painel parou de escrever silenciosamente porque `appendFile` era chamado sem import
@@ -649,13 +428,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
649
428
  <!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
650
429
  move this section to a versioned entry and reset the template below. -->
651
430
 
652
- ## πŸ†• What's New
431
+ ## Added
653
432
 
654
433
  - **TUI delegations nativas (gated):** painel Delegations renderiza N delegaΓ§Γ΅es native + M pantheon com tag [native], live task em tempo real, click navega para sessΓ£o. Implementado em `src/plugins/tui/src/index.tsx` com dist rebuildado.
655
434
  - **93 testes TUI delegations:** suite `tests/pantheon/tui-delegations.test.ts` com 93/93 passando (tsc + biome OK).
656
435
  - **E2E beta.8 PASS (referΓͺncia):** baseline E2E da beta.8 mantido como referΓͺncia de estabilidade para beta.9.
657
436
 
658
- ## 🐞 Fixed
437
+ ## Fixed
659
438
 
660
439
  - Removido diretΓ³rio `testyes/` (artefato de teste).
661
440
  - Truncado `hooks.log` para baseline limpo de beta.9.
@@ -665,7 +444,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
665
444
  <!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
666
445
  move this section to a versioned entry and reset the template below. -->
667
446
 
668
- ## 🐞 Fixed
447
+ ## Fixed
669
448
 
670
449
  - **Board persistence is corruption- and concurrency-safe:** state writes now go
671
450
  through a UNIQUE temp file (per-process, per-write counter + random suffix), are
@@ -697,7 +476,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
697
476
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
698
477
  move this section to a versioned entry and reset the template below. --&gt;
699
478
 
700
- ## πŸ†• What's New
479
+ ## Added
701
480
 
702
481
  - **Cost CLI fallback + `PANTHEON_NODE`:** `pantheon_cost` falls back to a
703
482
  read-only `node scripts/cost.mjs` subprocess when `node:sqlite` is
@@ -711,7 +490,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
711
490
  experimental via `PANTHEON_DELEGATE_MODE=native` until v1.6. See
712
491
  [ADR-0011](https://github.com/ils15/pantheon-opencode/pull/126) (Proposed).
713
492
 
714
- ## 🐞 Fixed
493
+ ## Fixed
715
494
 
716
495
  - **Legacy read-only bypass on retry (P0):** a retried delegation now
717
496
  re-applies read-only enforcement (the same rule as the initial child) and
@@ -742,7 +521,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
742
521
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
743
522
  move this section to a versioned entry and reset the template below. --&gt;
744
523
 
745
- ## πŸ†• What's New
524
+ ## Added
746
525
 
747
526
  - **Delegation panel v2:** live tool activity per running delegation
748
527
  (`↳ bash npm test` β€” what the child is doing right now), a paginated
@@ -750,7 +529,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
750
529
  distinct `retry` state (⟳ marker, RETRYING label) instead of lumping
751
530
  retries into running.
752
531
 
753
- ## 🐞 Fixed
532
+ ## Fixed
754
533
 
755
534
  - **Stale plugin refs from old installs:** the installer now prunes
756
535
  `pantheon-opencode` plugin references pointing at other installed copies of
@@ -767,7 +546,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
767
546
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
768
547
  move this section to a versioned entry and reset the template below. --&gt;
769
548
 
770
- ## πŸ†• What's New
549
+ ## Added
771
550
 
772
551
  - **Native background tasks in the delegation panel:** tasks dispatched via
773
552
  the native `task(background=true)` tool are now mirrored onto the shared
@@ -791,7 +570,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
791
570
  nunca implementados dos planos v1.0/v1.0+ foram removidos; o contrato atual
792
571
  passou a documentar o code-mode (manifest SHA-256, resoluΓ§Γ£o project-first).
793
572
 
794
- ## 🐞 Fixed
573
+ ## Fixed
795
574
 
796
575
  - **Code-mode project resolution (#112):** the MCP now resolves project code-mode
797
576
  scripts before global scripts, honors `PANTHEON_PROJECT`, and fails closed on
@@ -803,7 +582,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
803
582
  &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
804
583
  move this section to a versioned entry and reset the template below. --&gt;
805
584
 
806
- ## πŸ†• What's New
585
+ ## Added
807
586
 
808
587
  - **Native delegation contract (B3-05):** adds the nine-code `NativeTaskStatus` contract, a session-lazy cached capability probe, atomic board registration for native children, strict `PANTHEON_DELEGATE_MODE=native` without fallback/failover/retry, and status in delegation receipts.
809
588
 
@@ -813,7 +592,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
813
592
 
814
593
  - **Code-mode explicit installation (B3-08):** `pantheon-code-mode` no longer executes scripts implicitly. A script runs only when listed in `.pantheon/code-mode/manifest.json` with a matching SHA-256; the installer seeds the manifest for bundled scripts and a new `approve_code_script` tool opts in or refreshes a script. Missing manifest reports `INVALID_STATE`, unlisted scripts `CONFLICT`, and hash mismatches `CORRUPT_DATA`.
815
594
 
816
- ## 🐞 Fixed
595
+ ## Fixed
817
596
 
818
597
  - **ECIGLOBAL fix (sync-tui):** `npm install -g` no longer fails with ECIGLOBAL β€” `scripts/sync-tui.mjs` now sanitizes `npm_config_*` global-context vars (case-insensitive) from the nested `npm ci` environment.
819
598
  - **npm tarball inclusion:** CHANGELOG.md is now included in the npm tarball
@@ -1003,7 +782,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1003
782
 
1004
783
  ## [1.3.6-beta] - 2026-08-21
1005
784
 
1006
- ## πŸ†• What's New
785
+ ## Added
1007
786
 
1008
787
  - **Recency decay in `memory_search` (src/mcp/memory_mcp_server.py)** β€” new `decay_days` param (default `None`, backward compatible) applies a freshness half-life `2^(-days_since_created/decay_days)` to RRF-fused scores, so older memories rank lower when enabled. `_rrf_fuse` accepts an optional `created_at_map`; tool description and docs updated (docs/MEMORY.md, docs/MCP.md, docs/mcp-tools.md).
1009
788
  - **Themis Comment Checker (src/agents/themis.md)** β€” Layer 1 review now flags generated code that is indistinguishable from human-written: excessive/obvious comments (`// increment i`, `# set x to 5`), commented-out dead code, and boilerplate headers.
@@ -1022,7 +801,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1022
801
  - **O5 permission.task globs (src/pantheon/permission-globs.ts)** β€” allow/deny glob rules controlling which subagents may be delegated; deny rules remove the target from Zeus's task tool entirely (`delegation-enforce`), with matching filtering in finalize and the agent-list description.
1023
802
  - **plugin-eval certification suite (.pantheon/code-mode/)** β€” `eval-static.py` (structural checks: frontmatter/secrets/file refs), `eval-llm-judge.py` (LLM quality layer), `eval-monte-carlo.py` (simulated-run reliability, exits 1 below 75%), `eval-run.py` (orchestrator emitting one report JSON; below-threshold layers still score), plus `eval_store` persistence and `pantheon://eval` resources exposing latest certification scores.
1024
803
 
1025
- ## 🐞 Fixed
804
+ ## Fixed
1026
805
 
1027
806
  - memory_search doc drift: freshness decay was documented but not implemented β€” now real via `decay_days`.
1028
807
  - scripts/ copies stale vs src/mcp/ canonical sources (missing routing project fallback, stale comments).
@@ -1030,12 +809,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1030
809
 
1031
810
  ## [1.3.5] - 2026-08-21
1032
811
 
1033
- ## πŸ†• What's New
812
+ ## Added
1034
813
 
1035
814
  - **PT patterns para delegaΓ§Γ£o (routing.yml)** β€” adiciona 5 padrΓ΅es PT (`procure`/`busque`/`encontre`/`localize`/`pesquise`) ao `intent_gate` research β†’ apollo, corrigindo detecΓ§Γ£o de intenΓ§Γ£o para prompts em portuguΓͺs (PR #61).
1036
815
  - **Zeus read guard (delegation-enforce.ts + plugin.ts)** β€” `ZEUS_READ_DENY_PATTERNS` bloqueia `src`/`tests`/`scripts`/`glob`/`grep` por Zeus via `tool.execute.before` (primeiro guard da cadeia); `ALLOWED_PATHS` libera `.md` e `.pantheon/memories`; 10 casos de teste em `tests/pantheon/delegation-enforce.test.ts`; `apollo.md`/`gaia.md` com `visible:false` e `tools.task:false` para depth-1 (PR #61).
1037
816
 
1038
- ## 🐞 Fixed
817
+ ## Fixed
1039
818
 
1040
819
  - **session-guard + retry helper (session-guard.ts + zeus-delegate-with-retry.ts)** β€” guard de `session_id` e helper `zeusDelegateWithRetry` com retry/backoff para delegaΓ§Γ΅es; `goal-loop.ts`/`todo-enforcer.ts`/`todo-preserve.ts`/`delegation.ts` ajustados (PR #61).
1041
820
  - **validate doctor filter (scripts/doctor.mjs)** β€” `isValidAgentFile` verifica frontmatter YAML (`name`/`description`/`mode`) para filtrar `README.md` e docs nΓ£o-agente de `getCanonicalAgentNames`/`deriveInstalledAgentFiles`; evita contagem espΓΊria no `doctor` (PR #61).
@@ -1046,7 +825,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1046
825
 
1047
826
  ## [v1.3.4] - 2026-08-11
1048
827
 
1049
- ## πŸ†• What's New
828
+ ## Added
1050
829
 
1051
830
  - **Compaction summary V2** (preservation directive + mission/todo/delegation sections): `buildCompactionContext` is now async and accepts goal/todo sources β€” `PANTHEON_COMPACTION_DIRECTIVE` prefix section (emitted before any other section, skipped on totally-empty state), `<mission_context>` with active goals (id/objective/status), `<todo_context>` with pending (not completed/cancelled) todos; delegation blocks byte-for-byte unchanged; failing/disabled sources are skipped fail-open (logged to hooks.log)
1052
831
  - **Post-compaction todo preservation**: TodoPreserver captures the session's todo list on `experimental.session.compacting`, activates the snapshot on `session.compacted`, and rewrites the first post-compaction `todowrite` with the exact pre-compaction list β€” additive + fail-open (every step degrades to a logged warn, never throws in a hook)
@@ -1058,7 +837,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1058
837
  - **README docs**: 1.3.4 compaction + delegation features documented
1059
838
  - **Zero chat-notification policy**: removed the `chat.message` injection channel for delegation signals β€” completion visibility lives in the board `[unread]` marker, `pantheon_delegation_read`, TUI toasts and compaction carry-forward, never in the chat transcript
1060
839
 
1061
- ## 🐞 Fixed
840
+ ## Fixed
1062
841
 
1063
842
  - **Delegate dispatch with missing provider API key** (P1): `resolveChildModel` never checked whether the resolved model's provider had a configured API key β€” a child dispatched to a keyless provider (e.g. gpt-5.6-luna/opencode-go) died instantly with `AI_LoadAPIKeyError`. Auto-resolved models (agentModels/preset) whose provider key is missing now fall back to `opencode/deepseek-v4-flash-free`; explicit caller models are respected (warned); when nothing is usable the tool returns a clear error TEXT and registers NO job on the board
1064
843
  - **delegations.log typing**: `task_id` was always `""` (now omitted when empty) and `duration_ms` was logged as a STRING (now parsed to a number, null when unset), breaking downstream aggregation
@@ -1072,17 +851,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1072
851
 
1073
852
  ## [v1.3.3] - 2026-08-11
1074
853
 
1075
- ## πŸ†• What's New
854
+ ## Added
1076
855
 
1077
856
  - **Todo continuation enforcer**: auto-continues sessions with incomplete todos on `session.idle` (4 guards: board-running, in-flight, exponential cooldown, max-failures cap) + kill-switch `PANTHEON_TODO_ENFORCER=off`
1078
857
  - **Hashline hash-anchored edits**: `hashline_edit` tool with sha256-truncated line tags, additive read enhancer, validate-before-write with `>>>` mismatch hints + Did-you-mean suggestions; blocked in read-only sessions
1079
- - **Full-auto goal loop** (opt-in `full_auto.enabled: false`): `pantheon_goal_create/update/get` tools, atomic GoalStore, priority idle dispatcher (goal suppresses enforcer), max 25 continuations
858
+ - **Full-auto goal loop:** `pantheon_goal_create/update/get` tools, atomic GoalStore, priority idle dispatcher (active goal suppresses enforcer), max 25 continuations. The loop is disabled by the hard-coded plugin defaults; `routing.yml` documents defaults and guards but does not enable it.
1080
859
  - **Dispatch retry-on-empty**: classifies empty results (mode 1: 0 tokens; mode 2: reasoning without text) with cap-1 automatic retry
1081
860
  - **Cost tracking**: JSONL ledger + `pantheon_cost` command reading opencode.db (zero-dep, node:sqlite β†’ scripts/cost.mjs fallback)
1082
861
  - **Themis phase reviews** route to deepseek-v4-flash (pro reserved for final release gate); Athena stays premium (council red-line)
1083
862
  - **Routing config**: `background_delegation`, `todo_enforcer`, `hashline`, `full_auto` sections
1084
863
 
1085
- ## 🐞 Fixed
864
+ ## Fixed
1086
865
 
1087
866
  - **Delegation killer**: chat.message hook injected reminders with empty messageID on the subagent promptAsync path β€” opencode schema rejected it, killing every background delegation in ~20ms (found by live E2E smoke)
1088
867
  - **Delegation child model routing**: child sessions now inherit the routed model (explicit arg β†’ routing.yml agent entry β†’ active preset) instead of falling back to the key-gated default (E2E: AI_LoadAPIKeyError without an active preset)
@@ -1092,13 +871,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1092
871
 
1093
872
  ## [v1.3.2] - 2026-08-09
1094
873
 
1095
- ## πŸ†• What's New
874
+ ## Added
1096
875
 
1097
876
  - **Sandbox validation**: added the `sandbox` doctor profile and regression coverage for npm tarball contents, installed hook resolution, doctor status handling, MCP runtime smoke checks, and related CLI/install contracts.
1098
877
  - **Package portability**: distributed configuration no longer retains checkout-specific machine paths; managed hooks are resolved from the installed package during install/sync.
1099
878
  - **Doctor contract**: exit statuses now distinguish success (`0`), advisory warnings (`1`), and blocking errors (`>=2`).
1100
879
 
1101
- ## 🐞 Fixed
880
+ ## Fixed
1102
881
 
1103
882
  - **Global installation diagnostics**: clarified the distinction between advisory doctor warnings and blocking failures.
1104
883
 
@@ -1106,14 +885,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1106
885
 
1107
886
  ## [v1.3.1] - 2026-08-08
1108
887
 
1109
- ## πŸ†• What's New
888
+ ## Added
1110
889
 
1111
890
  - **Release validation coverage**: hook-runner spawn/timeout/SIGKILL handling with process-group cleanup; scanner fixtures that avoid accidental false positives; doctor `global`, `lite`, and `sandbox` profiles with explicit PASS/WARN/ERROR/SKIP statuses; `run-test.sh` exit semantics; and sandbox validation coverage.
1112
891
  - Local validation logs are ignored via `logs/` because they are generated diagnostics, not release artifacts or source files.
1113
892
 
1114
893
  ## [v1.3.0] - 2026-08-06
1115
894
 
1116
- ## πŸ†• What's New
895
+ ## Added
1117
896
 
1118
897
  - **Non-invasive TUI notifications**: hook failures no longer write to `console.error` (TUI pollution) β€” non-zero exits route to three non-TUI channels: deduped TUI toast (`client.tui.showToast`), structured `client.app.log` entry (service `pantheon-hooks`), and `.pantheon/logs/hooks.log` file append; `PANTHEON_HOOKS_LOG=1` opt-in preserved, routed to log channels only
1119
898
  - **Delegation lifecycle toasts**: πŸš€ `<agent> em execuΓ§Γ£o` / βœ… `<agent> concluiu` with anti-spam (2000ms rate limiter + 3-agents-in-6s aggregation into a single summary toast)
@@ -1128,20 +907,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1128
907
  - Secret-scan hygiene: wildcard notation for credential references (no literal keys in versioned docs/comments)
1129
908
  - README: hooks testing docs + `PANTHEON_TOASTS` table with council; AGENTS.md adds "PRs always update the README" convention
1130
909
 
1131
- ## 🐞 Fixed
910
+ ## Fixed
1132
911
 
1133
912
  - Council toast idle-flush race condition
1134
913
 
1135
914
  ## [v1.2.2] - 2026-08-05
1136
915
 
1137
- ## πŸ†• What's New
916
+ ## Added
1138
917
 
1139
918
  - **`pantheon prune`** (#22): legacy cleanup command β€” XDG-aware config resolution, `--dry-run` default (list only), `--apply` removes stale `opencode.json.bak*` backups (age threshold), `--apply --remove-dirs` for legacy dirs with dead configs; old global `pantheon` installs are suggested for manual `npm uninstall -g pantheon`, never removed (npm-managed)
1140
919
  - **Release pipeline standardization** (PR #28): single source of truth for version in `scripts/versioning.mjs` (sem-tag aware); CHANGELOG repair (normalized broken `[5.0.0]` heading β†’ `[1.0.0]`, stripped `[v` prefixes across 3.x history, added `[Unreleased]`); `release.yml` redesigned with idempotent gates (skips publish when version already exists); new `scripts/changelog-extract.mjs` and `scripts/version-check.mjs` (+ test suites) so release bodies use real changelog sections; commitlint extended to cover pushes; pre-commit gate added; `cliff.toml` (git-cliff) removed; `docs/RELEASING.md` added; ADR-0007
1141
920
  - **Test wiring + install docs** (PR #31): `test:security` extended with `test_doctor_layers`; Node test suite wired via `npm run test:node` (`node --test tests/*.mjs` β€” prune, hook-runner, plugin-log-policy, install/vision contracts, changelog/version checks) into CI; global-install sandbox documented in AGENTS.md / INSTALLATION.md
1142
921
  - Dead `src/mcp/requirements-mcp-core.txt` catalog duplicate (YAGNI β€” the installer uses `requirements-mcp.txt`)
1143
922
 
1144
- ## 🐞 Fixed
923
+ ## Fixed
1145
924
 
1146
925
  - **Reliable global install** (PR #26): hooks plugin recreated (`pantheon-hooks.ts` + `hook-runner.ts` with stdin JSON protocol, version-proof); MCP install made hermetic (absolute paths); packaging fix (`files[]` += `src/plugins/**`, `scripts/hooks/**`, self-reference removed, pinned `@opencode-ai/plugin` 1.18.11); `import uuid` hotfix in `scripts/mcp_persistence_server.py`
1147
926
  - **Installer/plugin packaging paths** (PR #31): hooks plugin registered via `resolveInstalledPlugin` so the config points at the INSTALLED package path, never the developer's absolute path (#30); TUI registered with absolute dist path in `tui.json` (#32 β€” relative path caused NpmInstallFailedError); TUI reads its installed package version via `import.meta.url` (works from any cwd)
@@ -1152,7 +931,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1152
931
 
1153
932
  ## [v1.2.1] - 2026-08-03
1154
933
 
1155
- ## πŸ†• What's New
934
+ ## Added
1156
935
 
1157
936
  - **Model routing presets + interactive picker**: 4 presets (go-deepseek, go-premium, go-fast, go-free), zero-mutation default (injects only when `active-preset.json` exists), `set-tier` CLI in `bin/pantheon-init.mjs` with API-key fail-fast, interactive picker in `scripts/install/model-picker.mjs` (atomic write + .bak), `validate-routing.mjs` preset validation, packaging fix so `src/pantheon/**` ships in the tarball
1158
937
  - 4 new provider families β€” go-claude (Anthropic), go-openai, go-olympus, go-muses presets + `CAPABILITY_TABLE` (+11 entries: glm-5.1/5.2, kimi-k2.6, qwen3.7-max/plus, minimax-m2.7/m2.5, bare deepseek-v4-pro/flash, big-pickle, nemotron-3-ultra-free, north-mini-code-free)
@@ -1172,7 +951,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1172
951
  - TUI todo-progress bar (redundant with native TODO + sidebar), v1.1.1
1173
952
  - Duplicate `scripts/scrub_secrets.py` (canonical is `scrub-secrets.py`)
1174
953
 
1175
- ## 🐞 Fixed
954
+ ## Fixed
1176
955
 
1177
956
  - Plugin export as function for opencode 1.18.11 API (object export failed to load; hooks.config mutates config in place)
1178
957
  - Vision pipeline: plugin boot failure (legacy loader), MCP tool ID (`pantheon_vision_vision_describe`), gateway 401 (provider prefix stripped from model ID), temp-file race (age-guarded cleanup, dir never removed), image stripping at source (deepseek-v4-flash declared image-capable), gateway-aware qwen interception, MCP availability verified, refcounted shared temp images, file URLs decoded via `fileURLToPath`, temp image permissions restricted
@@ -1187,7 +966,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1187
966
 
1188
967
  ## [v1.2.0] - 2026-07-30
1189
968
 
1190
- ## πŸ†• What's New
969
+ ## Added
1191
970
 
1192
971
  - **Fallback chains + auto CI retry**: per-agent fallback chains (hermesβ†’talosβ†’athena, apolloβ†’athenaβ†’hermes, etc.), CI retry 1 β†’ 2 with exponential backoff + fallback agent, token tracking in `subtask_summary`, `fallback_chains` section in routing.yml
1193
972
  - Zeus Fusion-style delegation enforced β€” `edit:deny`, `bash:deny`, never touches files
@@ -1200,7 +979,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1200
979
  - Persistence docs updated for new tools and auto-purge behavior
1201
980
  - commitlint scopes completed; auto-release skipped when version already exists
1202
981
 
1203
- ## 🐞 Fixed
982
+ ## Fixed
1204
983
 
1205
984
  - Council fixes: UUID session isolation in context checkpoints, pre-compaction state save trigger, flash summary quality floor (<10 chars β†’ fallback to Zeus), agents recall `context_get(slug, 'latest')` on startup
1206
985
  - CI: push triggers removed β€” validation workflows (CI, commitlint, CodeQL, hotfix, docs) now run on `pull_request` only, eliminating perma-pending duplicate checks
@@ -1209,7 +988,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1209
988
 
1210
989
  ## [v1.0.0] - 2026-07-24
1211
990
 
1212
- ## πŸ†• What's New
991
+ ## Added
1213
992
 
1214
993
  - **OpenCode-only**: Removed all multi-platform support (Claude Code, Cursor, Windsurf, Cline, Continue.dev, VS Code Copilot). Pantheon v1.0 is exclusively for OpenCode.
1215
994
  - **Global installation**: `npx pantheon-opencode init` installs agents globally to `~/.config/opencode/agents/`. Optional `--project` flag for project-local install.
@@ -1235,14 +1014,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1235
1014
 
1236
1015
  ## [v1.1.1] - 2026-07-30
1237
1016
 
1238
- ## πŸ†• What's New
1017
+ ## Added
1239
1018
 
1240
1019
  - New release system β€” beta releases from PR labels, stable from main push (auto-release and beta-release workflows unified)
1241
1020
  - Interactive TUI mode for installer (Fases 1+2) β€” redesigned sidebar with context progress bar, live session data via events + API
1242
1021
  - Session-scoped context checkpoints in persistence (index, stats, auto-purge, `delete_namespace`); fallback chains, auto CI retry (2x), token tracking
1243
1022
  - Slash commands consolidated from 16 to 5; redundant model configs removed (agents inherit the default model)
1244
1023
 
1245
- ## 🐞 Fixed
1024
+ ## Fixed
1246
1025
 
1247
1026
  - Council: UUID session isolation in context checkpoints, pre-compaction state save, flash summary quality floor, agents recall `context_get(slug, 'latest')` on startup
1248
1027
  - TUI plugin/CI: OpenCode crash from missing plugin deps, version detection with git fallback, commitlint scopes, workflow YAML/MCP path repairs; `datetime.UTC` β†’ `timezone.utc` for Python < 3.11
@@ -1251,7 +1030,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1251
1030
 
1252
1031
  ## [v1.1.0] - 2026-07-26
1253
1032
 
1254
- ## πŸ†• What's New
1033
+ ## Added
1255
1034
 
1256
1035
  - Council synthesis Fase 1+2 β€” Modo Desempate com EvidΓͺncia + BackgroundJobBoard (#2)
1257
1036
  - Beta release workflow added (from develop)
@@ -1260,7 +1039,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1260
1039
 
1261
1040
  ## [v1.0.7] - 2026-07-26
1262
1041
 
1263
- ## 🐞 Fixed
1042
+ ## Fixed
1264
1043
 
1265
1044
  - Installer: fixed `writeFileSync` not defined error
1266
1045
 
@@ -1268,13 +1047,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1268
1047
 
1269
1048
  ## [v1.0.6] - 2026-07-26
1270
1049
 
1271
- ## πŸ†• What's New
1050
+ ## Added
1272
1051
 
1273
1052
  - 7 new skills (codemap, simplify, reflect, worktrees, verification-planning, loop-engineering, clonedeps) + 7 matching commands; `background_subagents` enabled by default in canonical config
1274
1053
  - Release pipeline: quality gates, tag creation, pre-release, hotfix support
1275
1054
  - CI simplified from 10 to 6 workflows; agent/skill restructuring β€” 12 redundant instructions removed, unused commands dropped, gaia archived then restored
1276
1055
 
1277
- ## 🐞 Fixed
1056
+ ## Fixed
1278
1057
 
1279
1058
  - CI/commitlint config (YAML syntax, header-max-length, ignores function, scopes); 45 stale references cleaned across 18 files; invalid `opencode.json` fields removed; installer copies `routing.yml`; YAML frontmatter regenerated for 9 agents
1280
1059
 
@@ -1282,7 +1061,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1282
1061
 
1283
1062
  ## [v1.0.5] - 2026-07-26
1284
1063
 
1285
- ## 🐞 Fixed
1064
+ ## Fixed
1286
1065
 
1287
1066
  - CI auto-release with OIDC trusted publisher + npm v12 (Node 22 upgrade, clean publish)
1288
1067
  - `doctor.mjs` paths + simplified `prepublishOnly`
@@ -1291,12 +1070,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1291
1070
 
1292
1071
  ## [v1.0.2] - 2026-07-25
1293
1072
 
1294
- ## πŸ†• What's New
1073
+ ## Added
1295
1074
 
1296
1075
  - TUI plugin: copy logic, stale skill cleanup, `tui.json` dedup; advanced plugin with version detection and 14 commands
1297
1076
  - Agents migrated from deprecated `tools:` to OpenCode `permission:` model; legacy multi-platform tests removed (OpenCode-only conformance); docs modernized (OpenCode-only, unified commands)
1298
1077
 
1299
- ## 🐞 Fixed
1078
+ ## Fixed
1300
1079
 
1301
1080
  - Hardcoded version fallback replaced with package.json version; routing aligned with actual skills (vscode platform removed)
1302
1081
 
@@ -1304,7 +1083,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1304
1083
 
1305
1084
  ## [v1.0.1] - 2026-07-24
1306
1085
 
1307
- ## πŸ†• What's New
1086
+ ## Added
1308
1087
 
1309
1088
  - Installer: unified setup flow, removed lifecycle install, fixed entry points
1310
1089
 
@@ -1312,7 +1091,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1312
1091
 
1313
1092
  ## [v3.19.2] - 2026-07-21
1314
1093
 
1315
- ## πŸ†• What's New
1094
+ ## Added
1316
1095
 
1317
1096
  - `_pantheon_paths.py` β€” shared path resolution (`PANTHEON_HOME`, `PANTHEON_PROJECT`)
1318
1097
  - `pantheon-persistence` MCP β€” KV store with SQLite FTS5, TTL, namespaces, 6 tools
@@ -1337,7 +1116,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1337
1116
  - 9 duplicate instructions (now skills on-demand)
1338
1117
  - `multi-model-routing` from prometheus (deleted skill)
1339
1118
 
1340
- ## 🐞 Fixed
1119
+ ## Fixed
1341
1120
 
1342
1121
  - 157 dangling instruction references across 6 platforms
1343
1122
  - YAML frontmatter in all 14 agents (broken by previous sed edits)
@@ -1345,7 +1124,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1345
1124
 
1346
1125
  ## [v3.19.0] - 2026-07-21
1347
1126
 
1348
- ## πŸ†• What's New
1127
+ ## Added
1349
1128
 
1350
1129
  - Memory Persistence Protocol (ADR-006) β€” agents now have mandatory `memory_recall()` pre-work (top_k=3, skip if score<0.3) and `memory_store()` post-work (2 lines max, importance 0.4-0.9)
1351
1130
  - Session-end auto-save script (`.pantheon/code-mode/session-end-save.py`) β€” exports Vector DB entries with importance β‰₯0.4 at session close (ChromaDB direct read + client-side filtering)
@@ -1381,7 +1160,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1381
1160
  - Memory Persistence Protocol documented as ADR-006
1382
1161
  - `.config/opencode/` fully synced from canonical Pantheon (14 agents + 10 instructions)
1383
1162
 
1384
- ## 🐞 Fixed
1163
+ ## Fixed
1385
1164
 
1386
1165
  - 33 dangling `docs/memory-bank/` references fixed across platform configs (`.claude/`, `.cursor/`, `.windsurf/`, `.continue/`, `.clinerules/`, `.github/`, `memories/`, `platform/`, `template/`, `.opencode/skills/`, `.tests/`)
1387
1166
  - `.pantheon/memory-bank/.tmp/` added to `.gitignore`
@@ -1403,7 +1182,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1403
1182
 
1404
1183
  ## [v3.17.1] - 2026-07-14
1405
1184
 
1406
- ## πŸ†• What's New
1185
+ ## Added
1407
1186
 
1408
1187
  - Inline compression triggers (C8/C9/C11): implementation agents (Hermes, Aphrodite, Demeter, Hephaestus, Prometheus) now declare `context-compression` skill and have a concise `## Inline Compression` section covering CRITICAL/HIGH subtask summaries, pre-delegation large blocks, and phase boundaries/handoffs
1409
1188
  - `tests/test_code_mode_args.py`: TDD coverage for the new `args` parameter forwarding
@@ -1411,7 +1190,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1411
1190
  - Agent `.md` files: `context-compression` added to `skills:` frontmatter for all 5 implementation agents
1412
1191
  - `instructions/artifact-protocol.instructions.md`: scrub documented as automatic via MCP layer
1413
1192
 
1414
- ## 🐞 Fixed
1193
+ ## Fixed
1415
1194
 
1416
1195
  - `execute_code_script` now forwards CLI arguments to subprocess β€” `compress-inline.py` is reachable via MCP (fixes argparse code 2 error)
1417
1196
  - Unified scrubber: 3 divergent implementations consolidated into single canonical `scripts/scrub-secrets.py`, imported by both `memory_mcp_server.py` and `compress-inline.py` via `importlib` (hyphenated filename cannot be statically imported)
@@ -1419,7 +1198,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1419
1198
 
1420
1199
  ## [v3.17.0] - 2026-07-11
1421
1200
 
1422
- ## πŸ†• What's New
1201
+ ## Added
1423
1202
 
1424
1203
  - Pantheon TUI Plugin overhaul: sidebar modernization, clickable commands, dynamic Python version
1425
1204
  - MCP Config section in TUI: list active plugins, MCP status, auto-compaction toggle
@@ -1437,7 +1216,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1437
1216
  - Updated 65+ source files with new .pantheon/ paths
1438
1217
  - `docs/memory-bank/` from git history (fully purged via filter-repo)
1439
1218
 
1440
- ## 🐞 Fixed
1219
+ ## Fixed
1441
1220
 
1442
1221
  - TUI plugin path in tui.json (was pointing to non-existent file)
1443
1222
  - OpenCode MCP config format (command must be array + cwd)
@@ -1446,7 +1225,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1446
1225
 
1447
1226
  ## [v3.16.0] - 2026-07-10
1448
1227
 
1449
- ## πŸ†• What's New
1228
+ ## Added
1450
1229
 
1451
1230
  - MCP Resources Support: pantheon://agents, skills, routing, deepwork, memory-bank
1452
1231
  - Code Mode MCP Adapter: confined script execution from .pantheon/code-mode/
@@ -1465,7 +1244,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1465
1244
  - memory_export: restricted to ~/.pantheon/exports/ with path traversal check
1466
1245
  - Content size limit: 100KB max, 500 char category
1467
1246
 
1468
- ## 🐞 Fixed
1247
+ ## Fixed
1469
1248
 
1470
1249
  - memory_sessions dead code (always returned empty results)
1471
1250
  - install-mcp.mjs filename: dash β†’ underscore
@@ -1474,7 +1253,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1474
1253
 
1475
1254
  ## [v3.15.0] - 2026-06-26
1476
1255
 
1477
- ## πŸ†• What's New
1256
+ ## Added
1478
1257
 
1479
1258
  - **Level 3 Vector Memory:** 5 scripts (`schema.py`, `index.py`, `query.py`, `rebuild.py`, `cli.py`) with dual indexing (FTS5 + optional sqlite-vec embeddings), 8/8 tests passing, 120 entries indexed from memory bank
1480
1259
  - **Two-Tier Persistence Model:** Tier 1 auto-index (`quick_index()`) saves background agent results instantly into Vector Memory; Tier 2 full compression (ZZ artifact + memory bank update) only on Themis APPROVED
@@ -1491,27 +1270,27 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1491
1270
  - **TASK-016:** Level 3 Implementation Plan β€” 24 tasks across 5 phases
1492
1271
  - **01-active-context.md:** Updated with deepwork v3.15 changes and Two-Tier model
1493
1272
 
1494
- ## 🐞 Fixed
1273
+ ## Fixed
1495
1274
 
1496
1275
  - **Import Path in Vector Memory Scripts:** `sys.path` now correctly points to parent of `vector_memory/` package, enabling both direct execution and `python -m` usage
1497
1276
 
1498
1277
  ## [v3.14.1] - 2026-06-21
1499
1278
 
1500
- ## πŸ†• What's New
1279
+ ## Added
1501
1280
 
1502
1281
  - **Pantheon-Context MCP Experiment:** Removed entire `scripts/pantheon-context-mcp/` directory (server.py, scoring.py, summarizer.py, tests β€” 12 files, ~1,200 lines)
1503
1282
  - **Stale Agent References:** Stripped `pantheon-context` tool references from all 14 agent files, `.mcp.json`, `opencode.json`, `ROADMAP.md`
1504
1283
  - **Auto-Release CI:** Removed `.github/workflows/auto-release.yml` (triggered broken v3.14.0 release on every push to main)
1505
1284
  - **TUI Sidebar Plugin:** Rewrote from flat file to npm-style directory (`plugins/pantheon-tui/` with `index.tsx`, `package.json`, `dist/tui.tsx`). New features: real context usage bar (color thresholds 70%/90%), collapsible command guide (16 `/pantheon` commands), manual compress button, Python version display, collapsible agent registry
1506
1285
 
1507
- ## 🐞 Fixed
1286
+ ## Fixed
1508
1287
 
1509
1288
  - **Install Script:** `scripts/install/opencode.mjs` now correctly copies npm-style plugin directory and registers in `tui.json` (not `opencode.json` β€” TUI plugins use separate registration)
1510
1289
  - **CI Release Pipeline:** Added `dry_run` input to manual release workflow, removed auto-merge from release PRs, fixed duplicate steps
1511
1290
 
1512
1291
  ## [v3.14.0] - 2026-06-20
1513
1292
 
1514
- ## πŸ†• What's New
1293
+ ## Added
1515
1294
 
1516
1295
  - **Codebase Audit:** Comprehensive 5-agent scan β€” 48 issues found, all resolved
1517
1296
  - **Mermaid Diagrams:** 5 new diagrams β€” TDD Cycle (stateDiagram-v2), Artifact Lifecycle (flowchart), Council Synthesis (sequenceDiagram), Architecture (flowchart), Delegation Flow (flowchart)
@@ -1523,7 +1302,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1523
1302
  - **Database Standards:** Async SQLAlchemy 2.0 patterns, connection pooling, migration testing, disaster recovery + 2 Mermaid diagrams
1524
1303
  - **Documentation Quality:** "When NOT to Use" sections on all 7 main agents, English-only throughout, ROADMAP.md updated
1525
1304
 
1526
- ## 🐞 Fixed
1305
+ ## Fixed
1527
1306
 
1528
1307
  - **Dead Agent Purge:** Removed ~150+ references to Echo, Chiron, Argus, Agora across 67+ files (agents, platforms, instructions, skills)
1529
1308
  - **Portugueseβ†’English:** `docs/platforms/README.md` fully translated, `agents/prometheus.agent.md` mixed-language fixed
@@ -1537,7 +1316,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1537
1316
 
1538
1317
  ## [v3.13.0] - 2026-06-20
1539
1318
 
1540
- ## πŸ†• What's New
1319
+ ## Added
1541
1320
 
1542
1321
  - **Level 2 Context Compression** β€” priority scoring engine (5 deterministic dimensions: Impact, Risk, Novelty, Blockers, Downstream relevance), semantic summarization templates per agent-pair, budget allocation (100-line cap, priority-greedy), cross-reference mechanism (D/E/M/C IDs with auto-generated `_xref/index.md`), ZZ artifact format for phase-to-phase context injection, `context-compression` skill (Level 2)
1543
1322
  - **New prompts**: `prompts/semantic-summarize.md` for agent-pair aware semantic summarization
@@ -1562,7 +1341,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1562
1341
  - **Sync Check** β€” passing
1563
1342
  - **Auto Release** β€” published at v3.13.0
1564
1343
 
1565
- ## 🐞 Fixed
1344
+ ## Fixed
1566
1345
 
1567
1346
  - **CHANGELOG.md** β€” removed 4 duplicate v3.12.1 entries and empty v3.12.2 section
1568
1347
  - **Frontmatter consistency** β€” all 14 agents now parse cleanly with OpenCode YAML frontmatter
@@ -1584,14 +1363,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1584
1363
 
1585
1364
  [compare changes](https://github.com/ils15/pantheon/compare/v3.11.0...v3.12.0)
1586
1365
 
1587
- ## πŸ†• What's New
1366
+ ## Added
1588
1367
 
1589
1368
  - **agents:** Add anti-stall resilience and orchestration improvements ([7a61b69](https://github.com/ils15/pantheon/commit/7a61b69))
1590
1369
  - **agents:** Add /pantheon-status command with version badge + agent registry ([984ec65](https://github.com/ils15/pantheon/commit/984ec65))
1591
1370
  - **platform:** Add Pantheon TUI sidebar plugin for OpenCode ([09253c1](https://github.com/ils15/pantheon/commit/09253c1))
1592
1371
  - **release:** Sync version to v3.11.0 ([1a9fb64](https://github.com/ils15/pantheon/commit/1a9fb64))
1593
1372
 
1594
- ## 🐞 Fixed
1373
+ ## Fixed
1595
1374
 
1596
1375
  - **ci:** Sync platform files and add mcp-security skill to pass CI ([a27a245](https://github.com/ils15/pantheon/commit/a27a245))
1597
1376
 
@@ -1599,12 +1378,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1599
1378
 
1600
1379
  [compare changes](https://github.com/ils15/pantheon/compare/v3.8.4...v3.9.0)
1601
1380
 
1602
- ## πŸ†• What's New
1381
+ ## Added
1603
1382
 
1604
1383
  - Setup changelogen + git-cliff for auto-releases ([ce4ee22](https://github.com/ils15/pantheon/commit/ce4ee22))
1605
1384
  - Cleanup commands, fix subtask agent, add Context7 tools, improve sync script ([da6ed7c](https://github.com/ils15/pantheon/commit/da6ed7c))
1606
1385
 
1607
- ## 🐞 Fixed
1386
+ ## Fixed
1608
1387
 
1609
1388
  - Add missing closing brace for github configuration in opencode.json ([a63c522](https://github.com/ils15/pantheon/commit/a63c522))
1610
1389
  - Address PR review sync and mapping feedback ([c550049](https://github.com/ils15/pantheon/commit/c550049))