Tell an epic chunk's worker how its repo ships a change, and bound the interrupt test's helper shell
CI / tests (pull_request) Failing after 5m1s

This commit is contained in:
2026-11-19 02:17:33 +01:00
parent 3d4de11a95
commit b845d80ac7
5 changed files with 30 additions and 6 deletions
+12 -3
View File
@@ -7,6 +7,7 @@ from loop_claude.project.records import HUMAN_RULE_NAMES, RECORD_FILES
from text_files.markdown_text import listed
import pathlib
from model_routing.ladder import ProjectRung
from project_config.settings import ProjectConfig
from loop_claude.cycle import prompts
from model_routing.route import Route
from agent_cycle.worker_prompts import WorkerPrompts
@@ -15,10 +16,18 @@ from agent_cycle.worker_prompts import WorkerPrompts
DRIVER = "do-epic"
def task(issue: EpicIssue, epic: str, checkout: str | None, launcher: pathlib.Path, language: str) -> str:
"""The task of the chunk that works issue, of the epic with the key epic: in checkout, or without a repo where it is None. launcher is the do-epic that runs the chunk, and language the one the epic's Jira text is in."""
def shipping(config: ProjectConfig) -> str:
"""How a chunk in the repo that config names ships its change. An epic's issue is no item of the repo's plan, so the worker finishes none: its bullet, where the repo has a changelog to put one in, is its own to write (docs/decisions.md → `do-epic: drives one Jira epic …`, "Releases")."""
opening = "The issue is no item of the repo's plan, so give `chunk-pr merge` no `--finish`."
if config.epic:
return f"{opening} The repo's plan is a Jira epic, whose issues' history is its changelog, so write no changelog bullet."
return f"{opening} Where the repo publishes something others consume, ship the change with one bullet for its users under `## Unreleased` in {config.places['changelog']}, added in the branch; otherwise write none."
def task(issue: EpicIssue, epic: str, checkout: str | None, launcher: pathlib.Path, language: str, shipped: str) -> str:
"""The task of the chunk that works issue, of the epic with the key epic: in checkout, or without a repo where it is None. launcher is the do-epic that runs the chunk, language the one the epic's Jira text is in, and shipped how the chunk ships its change, which `shipping` words for a chunk in a repo and is empty without one."""
where = f"in the checkout {checkout}, on the branch {issue.key}" if checkout else "which changes no repo: work in the folder you start in"
return f"Work the Jira issue {issue.key} of the epic {epic} as one chunk, {where}. {findings.instructions(epic, launcher, language)} Its summary: {issue.summary}" + (f"\n\nIts description:\n\n{issue.detail}" if issue.detail else "")
return f"Work the Jira issue {issue.key} of the epic {epic} as one chunk, {where}. {findings.instructions(epic, launcher, language)}{f' {shipped}' if shipped else ''} Its summary: {issue.summary}" + (f"\n\nIts description:\n\n{issue.detail}" if issue.detail else "")
CODE_HEALTH = '~/.claude/CLAUDE.md → "Shared goal"'