Take the scoring run's values from seat-prompts.md where the working rules hold none #646

Merged
lilleman merged 6 commits from item-461 into main 2026-11-19 23:39:06 +01:00
Showing only changes of commit a357cc7b18 - Show all commits
+1 -2
View File
@@ -61,7 +61,6 @@ def score_bullets(skill: str) -> tuple[list[str], list[str]] | Failure:
return anchors, [line.replace("**", "") for _, line in dimensions]
# The heading of the section that holds a project's values: `Scoring run`, numbered or not, or `<name>'s values`.
VALUES_HEADING = r"(\d+\.\s+)?Scoring run|.+'s values"
@@ -145,7 +144,7 @@ def prepare_scoring(worktree: str, home: pathlib.Path, run: Git = git) -> str |
rules = read(source) if source.is_file() else ""
if isinstance(rules, Failure):
return rules
# Where the working rules hold no values, this repo keeps them in seat-prompts.md: .claude/rules/this-repo-keeps-no-agents-md.md.
# This repo keeps the values in seat-prompts.md, so its working rules hold none: .claude/rules/this-repo-keeps-no-agents-md.md.
if section(rules, VALUES_HEADING) is None and (own := pathlib.Path(worktree) / "skills" / "comprehension-panel" / "seat-prompts.md").is_file():
source, rules = own, read(own)
if isinstance(rules, Failure):