neon-sprawl/docs/reviews/2026-05-25-NEO-87.md

4.6 KiB
Raw Blame History

Code review — NEO-87 prototype NpcBehaviorDef catalog + CI

Date: 2026-05-25
Scope: Branch NEO-87-e5m2-npc-behavior-catalog-schemas-ci · commits 846da906fd9694 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 MatchesNEO-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 Matchesnpc-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

  1. Missing third catalog row — CI fails. content/npc-behaviors/prototype_npc_behaviors.json contains only prototype_melee_pressure and prototype_ranged_control. The E5M2 three-id gate requires prototype_elite_mini_boss as well. Running validation: Done. Restored prototype_elite_mini_boss row per kickoff freeze table; validate_content.py exits 0 with 3 unique npc behavior id(s) (24cbd9b).

Suggestions

  1. 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.

  2. Optional: one-row-per-archetypeKind gate — 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.