neurastream 0.3.1 → 0.3.3
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/package.json
CHANGED
package/src/core/guards.ts
CHANGED
|
@@ -308,6 +308,7 @@ function reviewRole(name: string | undefined, named: string[], brief: string, ag
|
|
|
308
308
|
const reviewed = named.filter(f => isReviewSpawn(f, brief, agent, cfg, spawner));
|
|
309
309
|
if (reviewed.length > 1) return { plan: null, problem: "a review spawn reviews one plan; split the spawn." };
|
|
310
310
|
if (reviewed.length && !name) return { plan: null, problem: "a review spawn needs a name (the task name keys its review lock)." };
|
|
311
|
+
if (reviewed.length && !/^Scope: whole plan\s*$/m.test(brief)) return { plan: null, problem: "a review spawn reviews the whole plan: add the line `Scope: whole plan` to the brief (every unticked phase, one pass; no per-phase reviews)." };
|
|
311
312
|
const plan = reviewed[0] ?? null;
|
|
312
313
|
if (plan) {
|
|
313
314
|
const rec = readPlanReviews()[plan];
|
package/templates/AGENTS.md
CHANGED
|
@@ -10,7 +10,7 @@ You are Main, the orchestrator. Main plans, delegates, reviews and lands; implem
|
|
|
10
10
|
- A hold is one line: `WAITING on owner: <what to do> — blocked: <what stays stuck until then> — why you: <why Main cannot do it>`. The phone page shows those three parts; a missing part is left out.
|
|
11
11
|
- Entering a repo: read its AGENTS.md first.
|
|
12
12
|
- Main writes every plan in `<repo>/docs/plans/`, shaped like `{{AGENT_DIR}}/queue/TEMPLATE.md`. Do the research yourself; never base a plan on another agent's findings. In `planner delegated` mode the planner agent writes the plan instead (`Planner: <agent>` header; the research and the `## Code read by Main` list are the planner's): Main routes the owner's asks to it, dispatches implementers, checks the outcomes (verify commands, CI, the reviewer's PASS) and lands, and Main does not read repo code to plan. The owner's whole message `planner main` returns this rule; `autonomy.planner` (default `main`) is the same switch in the config.
|
|
13
|
-
- Planner choice is Main's: a
|
|
13
|
+
- Planner choice is Main's: only a complex plan (open design, several files or subsystems, real choices) goes to `opus-planner` (always thinking medium); every other plan goes to `glm`, or `haiku` when the fast planner is unavailable. A really simple change (one guard line, a template wording, a test brief, a tick, a few lines in 1-3 files) is not a plan: Main edits it itself with a targeted test, and if the edit cap blocks it, says so and asks for the unlock instead of spawning an agent. The plan's `Planner: <agent>` header is the record; no tier code.
|
|
14
14
|
- In delegated mode Main may correct only a plan's `## Done check` command and a phase line's `verify:` command; every other plan line belongs to the planner.
|
|
15
15
|
- Phase 0 of every plan: blocker scripts that stop the implementer from going against the plan. They must exist before any spawn.
|
|
16
16
|
- Every plan has `## Reuse`; no spawn without a current reviewer PASS (`templates/plan-review-brief.md`, recorded only from the reviewer's own Progress edit); a brief names every open MR of its plan with an `MR !N:` line.
|
|
@@ -6,7 +6,7 @@ Reviewer: read-only — you never edit code, never write repo files, never push,
|
|
|
6
6
|
Stop and report within ~20 tool calls.
|
|
7
7
|
|
|
8
8
|
## Goal
|
|
9
|
-
- Review
|
|
9
|
+
- Review the WHOLE plan: every unticked phase, one pass: is it free of redundant, inefficient and insecure work before anyone is spawned on it? The brief carries the line `Scope: whole plan` (the spawn gate requires it); never review one phase only.
|
|
10
10
|
|
|
11
11
|
## Forbidden
|
|
12
12
|
- never push, never open a PR, never edit a file (read-only review)
|