feat: formation consolidation + headless mission mode#89
Merged
Conversation
Consolidate the multi-step formation phase into a single `form` composite command and add a `headless` subcommand for CI/CD integration. This reduces formation from ~10 sequential Bash calls to 1-2. New commands: - `nelson-data.py form` — registers tasks, records squadron, computes DAG metrics, and runs conflict scan in one step - `nelson-data.py headless` — combines init + form, reads sailing orders and battle plan from JSON files Also: - Extract core logic from cmd_task/cmd_squadron/cmd_plan_approved into reusable functions (_build_task_record, _register_tasks, _register_squadron, _finalize_plan, _do_init) - Fix conflict scan file_ownership key mismatch (files → file_ownership) - Add 15 new tests (10 for form, 4 for headless, 1 for conflict scan fix) Closes #79
harrymunro
added a commit
that referenced
this pull request
Apr 10, 2026
Integrate six PRs merged to main since this branch diverged: - PR #89: formation consolidation (form, headless commands) - PR #90: path-scoped auto-discovery - PR #91: typed handoff packet - PR #92: hook enforcement layer - PR #93: deterministic phase engine - PR #96: task list visibility Port new commands (form, headless, handoff, recover) into the modular architecture. Add phase field support to lifecycle commands for compatibility with the phase engine. All 234 tests pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements #79 — consolidates the multi-step formation phase into composite commands.
nelson-data.py form— single command that registers tasks, records squadron, computes DAG metrics, and runs conflict scan. Replaces 4-8+ sequential Bash calls with one.nelson-data.py headless— combinesinit+form, reads sailing orders and battle plan from JSON files. Enables CI/CD pipeline integration.cmd_task,cmd_squadron,cmd_plan_approvedinto reusable functions (_build_task_record,_register_tasks,_register_squadron,_finalize_plan,_do_init). Existing commands are now thin wrappers — backward compatible.nelson_conflict_scan.pynow readsfile_ownership(matching battle-plan.json) withfilesfallback.structured-data.mddocuments new commands; SKILL.md Step 3 recommendsform; Step 4 headless note updated.Test plan
TestForm, 4TestHeadless, 1TestConflictScan)pytest skills/nelson/scripts/ -v)formwith a real plan JSONheadlessend-to-end