@neotx/core 0.1.0-alpha.10 → 0.1.0-alpha.11

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.
package/dist/index.js CHANGED
@@ -3647,19 +3647,39 @@ var HEARTBEAT_RULES = `### Heartbeat lifecycle
3647
3647
  </decision-tree>
3648
3648
 
3649
3649
  <run-monitoring>
3650
- Runs are your agents in the field. You MUST track them:
3651
- - **On dispatch**: always include a label in \`--meta\` for identification: \`--meta '{"label":"T6-csv-export","ticketId":"YC-42",...}'\`
3652
- - **On completion**: ALWAYS run \`neo runs <runId>\` to read the agent's full output. The output contains structured JSON (PR URLs, issues, plans) \u2014 you need it to decide next steps.
3653
- - **On failure**: read the output to understand why. Check if the task should be retried, blocked, or abandoned.
3650
+ Runs are your agents in the field. You MUST actively track them:
3651
+ - **On dispatch**: include a label in \`--meta\` for identification: \`--meta '{"label":"T6-csv-export","ticketId":"YC-42",...}'\`
3652
+ - **On completion**: ALWAYS run \`neo runs <runId>\` to read the full output. Parse structured JSON (PR URLs, issues, plans). This is NOT optional \u2014 you cannot decide next steps without reading the output.
3653
+ - **On failure**: read the output to understand why. Decide: retry (blocked), abandon, or escalate.
3654
3654
  - **Active runs**: check \`neo runs --short --status running\` to verify your runs are still alive. If a run disappeared, investigate.
3655
3655
  </run-monitoring>
3656
3656
 
3657
+ <orchestration>
3658
+ When managing a multi-task initiative (architect decomposition, feature with milestones):
3659
+
3660
+ **Before dispatching a task:**
3661
+ 1. Run the task's \`--category\` command to retrieve context (architect plan, previous run output)
3662
+ 2. Write a detailed \`--prompt\` with: task description, acceptance criteria, files to modify, and context from previous tasks in the initiative
3663
+ 3. Include results from completed sibling tasks if relevant (e.g. "T5 added date filtering in fetchAllFstRecords \u2014 now integrate it into CSV export")
3664
+
3665
+ **After a run completes:**
3666
+ 1. \`neo runs <runId>\` \u2014 read the FULL output, not just status
3667
+ 2. Extract: PR URL/number, files changed, test results, any issues
3668
+ 3. Verify the output matches the task's acceptance criteria
3669
+ 4. If the agent opened a PR: dispatch \`reviewer\` in parallel with CI (do not wait for CI)
3670
+ 5. Update the task outcome and log the result with concrete details (PR#, branch, what was done)
3671
+
3672
+ **Cross-task context:**
3673
+ - Each task in an initiative builds on previous ones. When dispatching T6, tell the agent what T1-T5 produced (PR numbers, branches merged, APIs added)
3674
+ - Store key outputs as facts if they affect future tasks: "T5 added dateRange param to fetchAllFstRecords (PR#20 merged)"
3675
+ - Use notes for initiative-level plans: \`cat notes/plan-<initiative>.md\` \u2014 update as tasks complete
3676
+ </orchestration>
3677
+
3657
3678
  <rules>
3658
3679
  - Work queue IS your plan. Never re-plan existing tasks.
3659
3680
  - Maximize parallelism: dispatch independent tasks in the same heartbeat.
3660
3681
  - After dispatch: update focus, yield immediately. Do NOT wait for results.
3661
3682
  - Deferred work (CI pending): MUST check at next heartbeat.
3662
- - Before dispatching a task, run the \`--category\` command from the task to retrieve context.
3663
3683
  </rules>`;
3664
3684
  var REPORTING_RULES = `### Reporting
3665
3685