Let prepare-scoring read claude-config's scoring-run values from seat-prompts.md where docs/decisions.md holds none
CI / tests (pull_request) Successful in 3m53s
CI / tests (pull_request) Successful in 3m53s
This commit is contained in:
@@ -157,6 +157,17 @@ class PrepareScoring(unittest.TestCase):
|
||||
self.assertIn("Your background: ~2 years in Go,", junior)
|
||||
self.assertIn("every non-test tracked file: `bin/**`, `AGENTS.md` and `README.md`. Do NOT open plan/todo.md, docs/decisions.md or docs/reading-cost.md (the plan, the decision log and past chunks' reading cost), nor any review output.", junior)
|
||||
|
||||
def test_takes_the_values_from_seat_prompts_where_the_working_rules_hold_none_and_the_repo_keeps_them_there(self):
|
||||
self.commit("# Working rules, with no values\n")
|
||||
self.assertIsInstance(failed := self.prepare(), Failure, failed)
|
||||
panel = self.checkout / "skills" / "comprehension-panel"
|
||||
panel.mkdir(parents=True)
|
||||
(panel / "seat-prompts.md").write_text("# Seats\n\n## The repo's values\n\n- `{language}`: Go\n- `{kind}`: a CLI\n- `{domain}`: parsing\n- `{domain docs}`: the spec\n- `{3am question}`: the parse hangs\n")
|
||||
self.commit()
|
||||
ran = self.prepare()
|
||||
assert isinstance(ran, str), ran
|
||||
self.assertIn("Your background: ~2 years in Go,", pathlib.Path(ran.splitlines()[2]).read_text())
|
||||
|
||||
def test_forbids_any_record_of_a_past_panel_where_the_config_puts_every_record_outside_the_checkout(self):
|
||||
self.config.write_text(self.config.read_text().replace('"checkout:', '"folder:').replace('"folder:README.md"', '"checkout:README.md"'))
|
||||
(self.config.parent / "AGENTS.md").write_text("# A\n\n## Scoring run\n\n- Language: Go\n- Kind: a CLI\n- Domain: parsing\n- Domain docs: the spec\n- 3am question: the parse hangs\n")
|
||||
|
||||
Reference in New Issue
Block a user