4.6 KiB
Code review — NEO-87 prototype NpcBehaviorDef catalog + CI
Date: 2026-05-25
Scope: Branch NEO-87-e5m2-npc-behavior-catalog-schemas-ci · commits 846da90–6fd9694 vs origin/main
Base: origin/main
Follow-up: Restored missing prototype_elite_mini_boss row; validate_content.py passes with 3 npc behavior ids.
Verdict
Approve with nits
Summary
NEO-87 lands E5M2-01 content-only work: npc-behavior-def.schema.json, NPC behavior validation in scripts/validate_content.py (mirroring NEO-76 ability pattern), and thorough doc updates (E5.M2 freeze table, content/README.md, CT.M1, alignment register, backlog checkboxes). Schema shape, CI gate constants, and Python validation helpers align with the kickoff plan. Follow-up: the initial commit shipped a two-row catalog (elite row dropped before commit); restored per freeze table — CI now passes with all three ids.
Documentation checked
| Document | Result |
|---|---|
docs/plans/NEO-87-implementation-plan.md |
Matches — reconciliation and AC align with three-row catalog after follow-up fix. |
docs/plans/E5M2-prototype-backlog.md · E5M2-01 |
Matches — AC and “Landed” note accurate once catalog is complete. |
docs/decomposition/modules/E5_M2_NpcAiAndBehaviorProfiles.md |
Matches — freeze table, catalog file, and CI rules line aligned. |
docs/decomposition/modules/CT_M1_ContentValidationPipeline.md |
Matches — NPC behavior PR gate paragraph added. |
docs/decomposition/modules/documentation_and_implementation_alignment.md · E5.M2 |
Matches — NEO-87 landed accurate after catalog fix. |
docs/decomposition/modules/module_dependency_register.md |
Matches — E5.M2 note cites NEO-87 landed with passing CI. |
content/README.md |
Matches — npc-behaviors/ row + E5 Slice 2 freeze paragraph (ids and rules). |
docs/decomposition/modules/client_server_authority.md |
N/A — no runtime authority changes; content-only. |
| Full-stack epic decomposition | Matches — E5M2-01 is server/content + CI only; kickoff explicitly defers Godot to E5M2-04+ / NEO-97 / NEO-98. No docs/manual-qa/NEO-87.md required. |
Blocking issues
Missing third catalog row — CI fails.Done. Restoredcontent/npc-behaviors/prototype_npc_behaviors.jsoncontains onlyprototype_melee_pressureandprototype_ranged_control. The E5M2 three-id gate requiresprototype_elite_mini_bossas well. Running validation:prototype_elite_mini_bossrow per kickoff freeze table;validate_content.pyexits 0 with3 unique npc behavior id(s)(24cbd9b).
Suggestions
-
Defer “landed” doc claims until CI is green — After fixing the catalog, re-run validation and confirm plan reconciliation, E5M2-01 backlog “Landed” note, alignment register, and module register accurately reflect a passing gate (same pattern as NEO-76 review follow-up).Done. Validation green; existing doc claims now accurate — no further doc edits required. -
Optional: one-row-per-
archetypeKindgate — The three-id frozenset already implies one row per archetype for E5M2-01. If the roster grows in a follow-up issue, consider an explicit archetype coverage check; not required for this slice.
Nits
Nit: Commit subject “ship prototype … catalog” reads complete while the catalog file is incomplete — minor messaging; resolved when elite row lands.Done. Elite row restored in follow-up commit.
Verification
# From repo root
python3 -m venv .venv-content && .venv-content/bin/pip install -r scripts/requirements-content.txt
.venv-content/bin/python scripts/validate_content.py
# Expect: content OK … 1 npc behavior catalog file(s) … 3 unique npc behavior id(s)
# Negative smokes (optional, after fix)
# — duplicate id across rows → non-zero exit
# — remove one frozen id → gate error
# — leashRadius <= aggroRadius → numeric gate error
PR gate (.github/workflows/pr-gate.yml) runs the same script; no additional workflow changes needed for this story.