Answer architecture round 1: 1 🔴, 21 🟡 (0 misread); skip the routing call where no development clone exists, name the judge's rules the setup's, record two accepted trade-offs, and update stale plan paths
This commit is contained in:
@@ -4,7 +4,7 @@ import dataclasses
|
||||
from chunk_driver.drivers import BUILD_EPIC
|
||||
from build_epic.backend.protocol import EpicIssue
|
||||
from build_epic import findings
|
||||
from chunk_driver.project.records import HUMAN_RULE_NAMES, RECORD_FILES
|
||||
from chunk_driver.project.records import SETUP_RULE_NAMES, RECORD_FILES
|
||||
from build_epic.repo_pick import LabelRepos
|
||||
from text_files.markdown_text import listed
|
||||
import pathlib
|
||||
@@ -57,11 +57,11 @@ def fresh(task: str, premises: str, route: Route, project: ProjectRung | None, f
|
||||
|
||||
|
||||
# The worker names no plan items: the chunk's one item is its issue.
|
||||
# The epic's records come first, as its goals do; a chunk without a repo is handed only those and the human's rules, so the names that mention a repo's then name nothing it reads.
|
||||
# The epic's records come first, as its goals do; a chunk without a repo is handed only those and the setup's rules, so the names that mention a repo's then name nothing it reads.
|
||||
NAMES = prompts.RecordNames(
|
||||
quote_sources=listed(("the epic's description", "the repo's goals file's Goals and Audience", *RECORD_FILES, *HUMAN_RULE_NAMES), "or"),
|
||||
quote_sources=listed(("the epic's description", "the repo's goals file's Goals and Audience", *RECORD_FILES, *SETUP_RULE_NAMES), "or"),
|
||||
answer_destinations="the epic's description under ## Decisions, the repo's goals file's Goals or Audience, " + ", ".join(RECORD_FILES) + ", the repo's plan or a comment",
|
||||
records_named="the epic's scoring and decisions, then the repo's working rules and decisions, then the human's rules for every project",
|
||||
records_named="the epic's scoring and decisions, then the repo's working rules and decisions, then the setup's rules for every project",
|
||||
)
|
||||
WORKER = prompts.worker_prompts(DRIVER, fresh, "", NAMES)
|
||||
|
||||
|
||||
@@ -548,7 +548,7 @@ def repoless_models(epic: EpicRun) -> Models:
|
||||
|
||||
|
||||
def records_read(root: str | None, epic: EpicRun) -> str | Failure:
|
||||
"""The epic's Scoring and Decisions, from its description, then the records of the repo checked out at root, where the chunk has one, then the human's rules."""
|
||||
"""The epic's Scoring and Decisions, from its description, then the records of the repo checked out at root, where the chunk has one, then the setup's rules."""
|
||||
sections: list[tuple[str, str]] = []
|
||||
for name in ("Scoring", "Decisions"):
|
||||
body = epic.record.section(name)
|
||||
|
||||
@@ -628,7 +628,7 @@ class AChunksRun(BuildEpicTest):
|
||||
self.assertIn("add one bullet to `## Unreleased` in `CHANGELOG.md`", prompt)
|
||||
self.assertIn("the chunk finished; started ABC-12\n", out)
|
||||
judge_prompt = [what[1] for seam, what in fake.calls if seam == "claude"][0]
|
||||
self.assertIn("The records: the epic's scoring and decisions, then the repo's working rules and decisions, then the human's rules for every project:\nFrom the epic ABC-12's description, ## Decisions:\nKeep the v1 endpoints.\n\nFrom AGENTS.md:\nSquash every merge.", judge_prompt)
|
||||
self.assertIn("The records: the epic's scoring and decisions, then the repo's working rules and decisions, then the setup's rules for every project:\nFrom the epic ABC-12's description, ## Decisions:\nKeep the v1 endpoints.\n\nFrom AGENTS.md:\nSquash every merge.", judge_prompt)
|
||||
self.assertIn("writing it into the epic's description under ## Decisions, the repo's goals file's Goals or Audience, AGENTS.md, docs/decisions.md, the repo's plan or a comment", judge_prompt)
|
||||
|
||||
def test_a_chunk_without_a_repo_reads_no_forge(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user