Skip to content

emrg: dual-compatible rant project matching in task prompts (open-source + evolution) - #816

Merged
argszero merged 2 commits into
masterfrom
fix/os-rant-project-match
Aug 17, 2026
Merged

emrg: dual-compatible rant project matching in task prompts (open-source + evolution)#816
argszero merged 2 commits into
masterfrom
fix/os-rant-project-match

Conversation

@argszero

Copy link
Copy Markdown
Owner

Host bug report (rant 2026-08-17T12:09:57): the open-source task for aitokenpool repeatedly reported rant scan 0 actionable despite 10 pending rants with project: aitokenpool. Root cause: the 0.5 Rant scan section matched rant.project against config.project only, but never rendered the actual config.project value — the agent hardcoded the owner/repo form (argszero/aitokenpool) which mismatched tasks.yml's aitokenpool, silently leaving rants stuck pending forever with no hint.

Changes:

  • open_source_prompt.md §0.5 — match rant.project against either {{ task.project }} (config.project, e.g. aitokenpool) or {{ owner }}/{{ repo }} (e.g. argszero/aitokenpool) — both rendered with real values; explicit example; "ignore rants without a project field" kept.
  • New Unmatched-rant hint — after the scan, if rants with pending/in_progress status have a project starting with either form but were NOT matched, record the count in state/reflection ("N rants with a project resembling this repo were not matched") — never silently skip.
  • evolution_prompt.md — same dual-match rule for symmetry (EMRG's own task).
  • Tests — open_source render test asserts task.project + owner/repo values and the unmatched-hint render; new evolution template render test asserts both forms. Agent.md 834→835.

pytest 835 green (834 passed + 1 skipped), import + CLI OK.

…6-08-17T12:09:57)

Host bug report: the open-source task for aitokenpool repeatedly reported
'rant scan 0 actionable' despite 10 pending rants with project=aitokenpool.
Root cause: the 0.5 Rant scan section matched the rant project field
against config.project only, but the prompt never rendered the actual
config.project value — the agent hardcoded owner/repo form
('argszero/aitokenpool') which mismatched tasks.yml's 'aitokenpool',
silently leaving rants stuck pending forever with no hint.

- open_source_prompt.md 0.5: match rant.project against EITHER
  {{ task.project }} (config.project) OR {{ owner }}/{{ repo }}
  (owner/repo form) — both rendered with real values; explicit example;
  'ignore rants without a project field' kept.
- New 'Unmatched-rant hint': after the scan, if rants with
  pending/in_progress status have a project starting with either form but
  were NOT matched, record the count in state/reflection — never silently
  skip.
- evolution_prompt.md (EMRG's own task) same dual-match rule for symmetry.
- Tests: open_source render test now asserts task.project + owner/repo
  values and the unmatched hint render; new evolution template render test
  asserts both forms. Agent.md 834→835.

@argszero argszero left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle (self-review): dual-compatible project match (config.project OR owner/repo) rendered with actual values in both open_source_prompt.md and evolution_prompt.md; unmatched-rant hint added so nothing silently stalls; tests assert both forms render. pytest 835 green (834 passed + 1 skipped), import + CLI OK.

…67→868)

Master advanced with #811-#814 (851→867); this branch adds 1 evolution
template render test → 868. Resolved the Agent.md pytest-count conflict.

@argszero argszero left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle (post-conflict-resolution): merged master (a5136f2) resolved the Agent.md count to 868 (867 + 1); test_scheduler.py auto-merged cleanly. CI test + test-windows PASS on head. Merging.

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