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:
@@ -137,17 +137,18 @@ def prepare_scoring(worktree: str, home: pathlib.Path, run: Git = git) -> str |
|
||||
config = located(worktree, home, run)
|
||||
if isinstance(config, Failure):
|
||||
return config
|
||||
# Where AGENTS.md is missing, this repo keeps the values in seat-prompts.md: .claude/rules/this-repo-keeps-no-agents-md.md.
|
||||
source = config.paths["working-rules"]
|
||||
if not source.is_file() and (own := pathlib.Path(worktree) / "skills" / "comprehension-panel" / "seat-prompts.md").is_file():
|
||||
source = own
|
||||
rules = read(source) if source.is_file() else ""
|
||||
if isinstance(rules, Failure):
|
||||
return rules
|
||||
values = project_values(rules, source.name)
|
||||
# Where the working rules hold no values, as with AGENTS.md missing or this repo's decisions.md head, this repo keeps them in seat-prompts.md: .claude/rules/this-repo-keeps-no-agents-md.md.
|
||||
if isinstance(values, Failure) and (own := pathlib.Path(worktree) / "skills" / "comprehension-panel" / "seat-prompts.md").is_file():
|
||||
own_text = read(own)
|
||||
values = own_text if isinstance(own_text, Failure) else project_values(own_text, own.name)
|
||||
skill = read(PANEL / "SKILL.md")
|
||||
if isinstance(skill, Failure):
|
||||
return skill
|
||||
values = project_values(rules, source.name)
|
||||
if isinstance(values, Failure):
|
||||
return values
|
||||
parts = prompt_parts()
|
||||
|
||||
Reference in New Issue
Block a user