Skip to content

feat: intelligent task selection, learnings index, meta layer vision#48

Merged
fazxes merged 1 commit intomainfrom
feat/task-selection-intelligence
Apr 5, 2026
Merged

feat: intelligent task selection, learnings index, meta layer vision#48
fazxes merged 1 commit intomainfrom
feat/task-selection-intelligence

Conversation

@fazxes
Copy link
Copy Markdown
Member

@fazxes fazxes commented Apr 5, 2026

Summary

  • 5-agent audit identified task selection as mesa-optimization (Goodhart's Law)
  • 5 more agents audited the fix, found 7 issues, all resolved
  • 731 lines added across 27 files

Phase 1: Prompt fixes

  • Removed "smaller in scope" incentive
  • Queue order authoritative, handoff advisory
  • Skip accountability in every handoff
  • Tracker delta required

Phase 2: Task queue

  • environment: internal | integration tags
  • .next-id for atomic ID allocation (no more collisions)
  • archive/ for done tasks (daemon auto-archives)
  • Tagged 4 integration/blocked tasks

Phase 3: Overseer avoidance detection

  • 6 new checks for stale tasks, cherry-picking, weak blocks

Learnings index

  • INDEX.md with 31 categorized entries, replaces "read all files"

Meta layer vision (8 new tasks)

Test plan

  • Shell scripts validated (bash -n all 4 daemons)
  • Learnings index cross-referenced (31/31 matched)
  • 5 sub-agent audits passed

5-agent audit identified task selection as mesa-optimization: agent
optimizes session success over project progress. 5 more agents audited
the fix and found 7 issues, all resolved.

Phase 1 — Prompt fixes:
- Remove "smaller in scope" incentive from evolve-auto.md
- Queue order authoritative, handoff advisory
- "Tasks I Did NOT Pick and Why" in every handoff
- Tracker delta required in session reports
- Staleness multiplier (5+ sessions = 2x priority)
- All-integration-tasks edge case handled

Phase 2 — Task queue:
- environment: internal | integration tags
- blocked_reason subtypes: environment, dependency, design
- .next-id for atomic task ID allocation
- archive/ for done tasks (daemon auto-archives)
- Tagged #12, #28, #29 blocked-environment
- Fixed #43 broken frontmatter (duplicate of #40)

Phase 3 — Overseer avoidance detection:
- 6 new checks: stale tasks, cherry-picking, stuck integration,
  weak blocks, max attempts, skip accountability

Learnings index:
- INDEX.md with categorized one-line summaries (31/31 matched)
- Agent reads index, opens files only when relevant
- Updated CLAUDE.md, evolve.md Step 1 and Step 6l

Meta layer vision (8 new tasks #46-#53):
- #46 Healer — between-session trend observer
- #47 Multi-agent PR review panel
- #48 Human escalation (gh issue create + webhook)
- #49 Self-evaluation loop against real repos
- #50 Prompt self-refinement via strategist
- #51 Cross-session cost intelligence
- #52 Codebase world model (MODULE_MAP.md)
- #53 Agent generates its own tasks across all dimensions

Also: OPERATIONS.md stale task queue + --squash example fixed
@fazxes fazxes merged commit 6566bfe into main Apr 5, 2026
2 checks passed
@fazxes fazxes deleted the feat/task-selection-intelligence branch April 5, 2026 04:34
fazxes added a commit that referenced this pull request Apr 5, 2026
…ok config

When the daemon hits a situation requiring human attention (circuit breaker
tripped, budget exceeded, healer critical pattern), it now creates a GitHub
issue with the needs-human label and optionally fires a webhook.

- notify_human() in lib-agent.sh: creates GH issue + optional webhook POST
- notification_webhook added to NightshiftConfig/DEFAULT_CONFIG/config.py
- Wired into all 3 looping daemon circuit breakers + builder budget stop
- Healer prompt Step 5: escalate on critical system health patterns
- needs-human label created on repo
- Documented in DAEMON.md Human Escalation section
- 4 new tests, 663 total passing

Task #48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant