Wrap overlay text instead of cutting it; the project check is a regression check, renamed check.sh; concrete Headroom steps; Mouse-1 measured

This commit is contained in:
Sam
2026-11-11 16:35:44 +11:00
parent c50c1efa22
commit 70e1f55486
7 changed files with 150 additions and 56 deletions

Binary file not shown.

View File

@@ -126,9 +126,11 @@ def verify_command(issue, worktree):
m = VERIFY_RE.search(issue.get("description") or "")
if m:
return m.group("cmd").strip(), "from the task description"
project_script = os.path.join(worktree, ".harness", "verify.sh")
if os.path.isfile(project_script):
return ".harness/verify.sh", "the project's .harness/verify.sh"
# The project's own check. check.sh is the current name; verify.sh is what
# the earlier project wrote, and is still honoured.
for name in (".harness/check.sh", ".harness/verify.sh"):
if os.path.isfile(os.path.join(worktree, name)):
return name, "the project's " + name
return None, "none"

View File

@@ -49,23 +49,27 @@ def scaffold(folder, name):
harness = os.path.join(folder, ".harness")
os.makedirs(harness, exist_ok=True)
verify = os.path.join(harness, "verify.sh")
if not os.path.exists(verify):
with open(verify, "w") as f:
check = os.path.join(harness, "check.sh")
if not os.path.exists(check):
with open(check, "w") as f:
f.write("""#!/bin/sh
# The command that decides a task in this project is finished.
# This project's own check, run by bin/merge before and after it puts a task's
# work on the base branch. Exit 0 means "the project still passes".
#
# Leave it as it is to accept that there is no agreed command: bin/merge will
# say so and let the review decide. Replace the body with the real one when the
# project has tests, for example:
# It does not decide that a task is finished: an agent sets a task's status, and
# the review decides whether the change is good. This is the regression check,
# the same thing a CI pipeline would run.
#
# Leave it as it is while the project has no tests. bin/merge will say there is
# no check and let the review decide. Replace the body when tests exist:
#
# exec go test ./...
# exec make test
echo "no verify command agreed for this project"
echo "this project has no check yet"
exit 0
""")
os.chmod(verify, 0o755)
written.append(verify)
os.chmod(check, 0o755)
written.append(check)
notes = os.path.join(harness, "NOTES.md")
if not os.path.exists(notes):