Skip to content

Refuse a round registered after its first trial - #69

Merged
braboj merged 2 commits into
mainfrom
feat/registration-order-14
Oct 28, 2026
Merged

braboj merged 2 commits into
mainfrom
feat/registration-order-14

Conversation

@braboj

@braboj braboj commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Nothing in the code checked that a round's hypotheses were committed before its first trial. The report now refuses a round-5 run that breaks that order.

earliest started_at in run-*.json   vs   last commit of docs/rounds/round-5.md
          (first trial)                        (committer date)

commit <= first trial, file clean  -> report runs
commit >  first trial              -> refused
uncommitted change / never committed / no run record -> refused
File Change
tests/efficacy/report.py registration_problem(), called from main() for a round-5 run; registration_checks() in the self-test
docs/architecture/08-crosscutting-concepts.md Ch. 8.1.1 states the check
docs/journeys/prepare/register-a-hypothesis.md Finding 1 is settled

Notes:

  • It uses the committer date, so a registration counts from when it landed on main.
  • Only round 5 is checked. Rounds 1 to 4 were registered elsewhere, before this repository existed.
  • Round 5's registration last landed 2026-10-28 07:41 (+02:00). No trial has run, so it passes.

Checks:

  • A self-test plants both orders, plus uncommitted, changed and unrecorded cases
  • report.py --self-test passes 124/124; pyflakes clean

Closes #14

🤖 Generated with Claude Code

https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX

braboj and others added 2 commits October 28, 2026 09:51
The report refuses a round-5 run whose registration was last committed
after the first trial started, by committer date, or carries uncommitted
changes. A self-test plants both orders, an uncommitted registration, a
changed one, and a root with no run record.

Closes #14

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX
… trials by UTC

- The check reads main's first-parent history, so a merge counts at the
  merge, and refuses a registration that differs from main's copy
- Trials record started_at with the machine's UTC offset; the check
  refuses a start with none rather than read it in the reporter's zone
- The self-test plants a merge after the trial, an unmerged branch, a
  UTC trial against a +02:00 commit and a zoneless start

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX
@braboj

braboj commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Both review findings are fixed in the latest commit.

Finding Fix
1. Last commit on the current branch, not when it reached main Reads git log main --first-parent, so a merge counts at the merge; refuses a registration that differs from main's copy
2. Zoneless trial times read in the reporter's zone harness.py records started_at with its UTC offset (now()); the check refuses a start with none

New self-test cases:

  • Branch commit 11:00, trial 12:00, merge 13:00 → refused, read at 13:00
  • Amendment on an unmerged branch → refused
  • Trial 10:30 UTC vs commit 12:00 +02:00 (10:00 UTC) → passes
  • Trial start with no offset → refused

One limit, stated in ch. 8.1.1: a fast-forward pushed from a clone keeps the branch commit's date. GitHub's squash and rebase merges stamp the merge time.

Every module's self-test passes; report 126/126.

@braboj
braboj merged commit d8aa94c into main Oct 28, 2026
2 checks passed
@braboj
braboj deleted the feat/registration-order-14 branch October 28, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check a hypothesis is registered before its round's first trial

1 participant