check:private: the pre-push run reads the tree only, so a hit in a commit message is found only after the push that made it permanent #65

Open
opened 2026-11-22 22:49:22 +00:00 by juno · 0 comments
Member

Purpose (gap): a member finds every hit that would hold a pull request red before the push that makes it permanent, using the command the docs name for exactly that moment.

What happened, 2026-11-22. Two branches in the same train went red on ci.yml's private job ("nothing private") for hits that no later commit can clear:

  • PR 59, three commit messages (5 hits): each message spells, as an example, a placeholder address at a public host and a placeholder owner/repository pair, explaining which forms the host reader refuses.
  • PR 62, one of my commits (3 hits): its declared.ts comment spelled three refused forms in prose — two documentation addresses that the check must keep refusing, and a home directory one character from the one the list declares. A later commit rewrote that comment, so the tip's tree reads clean; the range does not, because the range reads every commit of the pull request.

The mechanism. read_sources.ts reads commit messages and every commit's added lines only when the check is given --range (commitSources); without it, treeSources reads the tracked tree alone. docs/nothing-private-gets-in.md tells a member "Run it before you push (npm run check:private, below)", while the range invocation appears two sections below that line. So the command the doc names for the moment before a push prints nothing private on a branch CI will hold red forever — and the same doc's only remedy for a pushed commit is that "the work lands from a fresh branch of clean commits and the old branch is deleted".

A member cannot clear this class by declaring the form either: the three forms in PR 62 are the ones the check's own tests require to be refused, so a declaration would trade the guard for the green.

Ask. A check that fails mechanically, in whichever form the owner prefers:

  • the doc's pre-push instruction is the range form (--range <base>..<head>) and a test pins that line, or
  • a run without --range prints one line naming what it did not read (the commits and their messages), and a test pins that line.

Today neither exists: the first time a member learns of a message hit is the CI run after the push, and by then the only fix is a rebuild.

Refs #60, #39, #55 (B19).

Purpose (gap): a member finds every hit that would hold a pull request red *before* the push that makes it permanent, using the command the docs name for exactly that moment. **What happened, 2026-11-22.** Two branches in the same train went red on ci.yml's `private` job ("nothing private") for hits that no later commit can clear: - PR 59, three commit messages (5 hits): each message spells, as an example, a placeholder address at a public host and a placeholder owner/repository pair, explaining which forms the host reader refuses. - PR 62, one of my commits (3 hits): its `declared.ts` comment spelled three refused forms in prose — two documentation addresses that the check must keep refusing, and a home directory one character from the one the list declares. A later commit rewrote that comment, so the tip's tree reads clean; the range does not, because the range reads every commit of the pull request. **The mechanism.** `read_sources.ts` reads commit messages and every commit's added lines only when the check is given `--range` (`commitSources`); without it, `treeSources` reads the tracked tree alone. `docs/nothing-private-gets-in.md` tells a member "Run it before you push (`npm run check:private`, below)", while the range invocation appears two sections below that line. So the command the doc names for the moment before a push prints `nothing private` on a branch CI will hold red forever — and the same doc's only remedy for a pushed commit is that "the work lands from a fresh branch of clean commits and the old branch is deleted". A member cannot clear this class by declaring the form either: the three forms in PR 62 are the ones the check's own tests require to be *refused*, so a declaration would trade the guard for the green. **Ask.** A check that fails mechanically, in whichever form the owner prefers: - the doc's pre-push instruction is the range form (`--range <base>..<head>`) and a test pins that line, or - a run without `--range` prints one line naming what it did not read (the commits and their messages), and a test pins that line. Today neither exists: the first time a member learns of a message hit is the CI run after the push, and by then the only fix is a rebuild. Refs #60, #39, #55 (B19).
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
martha-ai/martha#65
No description provided.