feat: intelligent task selection, learnings index, meta layer vision#48
Merged
feat: intelligent task selection, learnings index, meta layer vision#48
Conversation
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
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
4 tasks
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
Phase 1: Prompt fixes
Phase 2: Task queue
environment: internal | integrationtags.next-idfor atomic ID allocation (no more collisions)archive/for done tasks (daemon auto-archives)Phase 3: Overseer avoidance detection
Learnings index
Meta layer vision (8 new tasks)
Test plan
bash -nall 4 daemons)