agent: bounded autonomy — scope boundary + observe-vs-act
navi_code had unwanted "free flight": an observe request ("look at a
directory") triggered the full Phase 3 plan with milestones + auto-todo,
and goal_anchoring then drove the agent to finish those steps, climbing
into sibling projects and executing milestone docs it found.

Two toggleable, default-off profile flags (on for navi_code):

- scope_boundary_enabled: injects a standing system message keeping the
  agent within the literally requested scope; forbids acting on
  discovered TODO/roadmap/milestone docs (report only).
- observe_skips_plan_enabled: Phase 1 classifies MODE: observe|act; an
  observe request skips Phase 2/3 — no multi-step plan, no auto-todo, no
  "execute step by step" prompt. The agent just gathers info and answers.
  Independent of force_plan (observe on the first message still skips).

Free flight stays reproducible by flipping both flags off.

Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ad1946b commit 2e06b02b1cb7bed84c6585489384a3dd73119d34
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 22 hours ago
Showing 9 changed files
View
navi/api/routes/admin.py
View
navi/core/context_builder.py
View
navi/core/planning.py
View
navi/profiles/base.py
View
navi/profiles/loader.py
View
navi/profiles/navi_code/config.json
View
tests/unit/core/test_context_builder.py
View
tests/unit/core/test_planning.py
View
tests/unit/profiles/test_base.py