Skip to content

docs: align tier tables, LSP membership, and ADR-0031 variant across docs#243

Merged
kyaulabs-bot merged 7 commits into
developfrom
docs/kyau-70ae-model-tier-doc-parity
Jul 23, 2026
Merged

docs: align tier tables, LSP membership, and ADR-0031 variant across docs#243
kyaulabs-bot merged 7 commits into
developfrom
docs/kyau-70ae-model-tier-doc-parity

Conversation

@kyaulabs-bot

@kyaulabs-bot kyaulabs-bot commented Jul 23, 2026

Copy link
Copy Markdown
Member

📋 Summary

Seven commits that together fix model/tier/LSP documentation drift across README, CODING_HARNESS, and AGENTS.md — model strings were swapped, agent-per-tier lists predated ADR-0031's reassignments, and LSP agent counts/membership were stale. Includes the deferred ADR-0031 §2 planner/design variant bump (highmax) and grants @explore the lsp: allow permission its own prompt already expects. New parity guard tests anchor the docs to the shipped config so future drift fails CI.

📦 Changes by Phase

Phase A — Config (behavior)

  • Modified: .opencode/setup.json — planner/design variant highmax (ADR-0031 §2)
  • Modified: .opencode/agents/explore.md — added lsp: allow permission
  • Tests: ModelConfigTest — flipped variant assertion to max; ExploreAgentTest — new test for lsp: allow

Phase B — AGENTS.md LSP section

  • Modified: AGENTS.md — LSP count → 8, membership includes design + explore, stale deny-list replaced
  • Tests: New lsp_enabled_agents() parity test in ModelConfigTest

Phase C — README + CODING_HARNESS tier tables

  • Modified: README.md — tier table regenerated from setup.json, verify comment fixed
  • Modified: CODING_HARNESS.md — tier table with variant column (max for planner/design, medium for judge/utility); also fixed a stale high prose reference
  • Tests: 3 new parity tests in ModelConfigTest

Phase D — LSP docs sweep

  • Modified: .opencode/docs/lsp.md — added missing design row to permissions table

Phase E — Code-review fixes

  • Modified: ModelConfigTest — guarded glob() false-return and unsafe array-key access
  • Modified: ExploreAgentTest — normalized excess blank lines after RCS header

📜 ADRs

ADR Action
ADR-0031 §2 Implemented — variant bump was accepted but never applied to setup.json or test; no amendment needed

✅ Verification

Gate Result
Pest suite 340 passed, 8 pre-existing environmental failures (RunnerTest git-worktree + Browser smoke test)
php-cs-fixer 0 files need fixing
Coverage No production PHP changes (test/doc-only branch); coverage gate skips
@code-review GO — all 4 acceptance criteria covered, 0 security findings, 2 medium bugs fixed
GPG signatures All 7 commits signed (Good signature from kyau)

🏗️ Architect Conditions

Not applicable — the changes were validated against an Accepted ADR (ADR-0031) and the issue was triaged via @from-issue with three grilling rounds. No separate architect review was needed.

📝 Commits (7)

SHA Type Description
4026e89 docs(plan) Implementation plan
50909b9 chore(config) Bump planner/design variant → max per ADR-0031
04d2897 fix(explore) Grant @explore lsp: allow
3cc0d63 docs(agents) AGENTS.md LSP count → 8, correct membership
226f436 docs README + CODING_HARNESS tier table parity
8953333 docs(lsp) LSP doc sweep
555a03c test Fix PHP warnings + blank lines

🧪 Test Plan

  • cd prism && php vendor/bin/pest --filter 'ModelConfigTest|ExploreAgentTest' — all 35 pass
  • php vendor/bin/php-cs-fixer fix --dry-run --diff — clean
  • echo $OPENCODE_MODEL_PRIMARYzai-coding-plan/glm-5.2
  • Open CODING_HARNESS.md — verify planner/design variant column shows max

Fixes: #186

kyau added 7 commits July 23, 2026 00:18
Five-task TDD plan addressing stale model strings, swapped tier
tables, LSP agent counts/membership, and ADR-0031 variant bump
across README, CODING_HARNESS, and AGENTS.md.

Refs: #186

Authored-by: glm-5.2
Tested-by: deepseek-v4-pro
Signed-off-by: kyau <git@kyaulabs.com>
ADR-0031 §2 mandates variants.planner/design = max (abundant GLM quota;
planning/design quality feeds downstream coding). The bump was never
applied to setup.json; the guard test enforced the stale high value.

Refs: #186

Authored-by: glm-5.2
Tested-by: deepseek-v4-pro
Signed-off-by: kyau <git@kyaulabs.com>
explore's prompt already directs an "LSP workflow" and AGENTS.md/CONTEXT.md
describe it navigating code semantically, yet its frontmatter omitted
lsp: allow so it inherited the top-level deny. LSP is read-only
(go-to-definition, find-references), consistent with ADR-0006.

Refs: #186

Authored-by: glm-5.2
Tested-by: deepseek-v4-pro
Signed-off-by: kyau <git@kyaulabs.com>
AGENTS.md said "seven" in one paragraph and "six" in another, listed
explore (now correctly lsp-enabled) but omitted design. Replace the
stale enumerated deny-list with a non-enumerated form; a new
lsp_enabled_agents() parity test is now the authoritative guard.

Refs: #186

Authored-by: glm-5.2
Tested-by: deepseek-v4-pro
Signed-off-by: kyau <git@kyaulabs.com>
README/CODING_HARNESS showed Primary/Judge models swapped, used the stale
openrouter/z-ai provider prefix, and listed pre-ADR-0031 agent assignments.
Regenerated both tables from setup.json models/variants and opencode.jsonc
tier membership; fixed the README install verify comment. Added parity
tests anchoring the docs to setup.json.

Refs: #186

Authored-by: glm-5.2
Tested-by: deepseek-v4-pro
Signed-off-by: kyau <git@kyaulabs.com>
Refs: #186

Authored-by: glm-5.2
Tested-by: deepseek-v4-pro
Signed-off-by: kyau <git@kyaulabs.com>
guard glob() false-return and unsafe permission array-key access
in lsp_enabled_agents(); normalize blank lines after RCS header
in ExploreAgentTest.

Refs: #186

Authored-by: glm-5.2
Tested-by: deepseek-v4-pro
Signed-off-by: kyau <git@kyaulabs.com>

@kyau kyau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️ Approved by: @kyau

@kyaulabs-bot
kyaulabs-bot merged commit 4c28135 into develop Jul 23, 2026
6 checks passed
@kyaulabs-bot
kyaulabs-bot deleted the docs/kyau-70ae-model-tier-doc-parity branch July 23, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Model / Tier Documentation Stale

2 participants