Commit Graph
15 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 8740a96113 ci: spec trace counts runner scenarios as tests
A scenario under testops/scenarios/*.yaml is a test definition, so a PR that
changes only scenarios (and tests) passes as kind TEST. Production Go next to
a scenario still fails TEST, as do a script beside the scenarios and a yaml
outside testops/scenarios.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 04:13:18 -08:00
pingqiuandClaude Fable 5.2 2cf83f5922 ci: public-text check self-test: a failing grep refuses
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 06:53:20 -08:00
pingqiuandClaude Fable 5.2 eba1949fb1 ci: public-text check: header-like added lines, backslash paths, unreadable inputs
An added line that begins with '++ ' is an added line, not a diff header;
the share path is matched with either slash; a missing title or
description file, an unknown commit or a failing grep is an error (exit 2),
never 'clean'. Controls for each in the self-test; each fails on the
previous script.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 06:32:48 -08:00
pingqiuandClaude Fable 5.2 abff195976 ci: refuse internal names in a pull request's public text
A check on the lines a pull request adds, its commit messages, its title
and its description: internal seat names and internal file-share paths
are refused, each hit printed with file and line. Runs beside the spec
trace check from the base branch; no pull request code is run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 06:27:33 -08:00
pingqiuandClaude Opus 5.5 d11c418451 ci: build sametokens once and tell a failed check from differing tokens
Review fold. The check ran the tool with go run, which takes the .go
arguments as more source files, so in CI every DOCS PR touching Go would
have been refused; the self-test hid it by building the tool itself. The
check now builds the tool into a temporary directory, the self-test runs
that same path, and a build or tool failure exits 2 (the check did not
run) instead of reporting changed tokens. In a file that uses cgo every
comment counts (the grouped import ("C") form dropped the preamble).
The template says DOCS may still change contract text, with the reviewer
as the gate; the script header names the go:embed limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 00:25:13 -08:00
pingqiuandClaude Opus 5.5 46db22aa42 ci: kind DOCS compares Go tokens, not lines; CI covers .github/ only
Review fold. The line-multiset comparison let reordered statements,
directive comments (//go:build, //go:linkname, the cgo preamble), a //
inside a string after a rune quote, a line inside a multi-line raw
string and spacing inside a string all pass as comment-only. A small Go
program (sametokens.go, go/scanner) now requires the old and new token
sequences of each changed non-test Go file to be identical, comments
dropped except directives and the cgo preamble; gofmt realignment passes
by construction. The workflow passes old/new blobs instead of a diff.
DOCS no longer covers docs/spec (the models); CI no longer covers
scripts/, which holds shipped install and deploy scripts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 00:16:40 -08:00
pingqiuandClaude Opus 5.5 49fdfc52b4 ci: spec-trace accepts DOCS, TEST and CI kinds, each checked against its files
A PR that changes no behaviour names one of three kinds instead of
IMPL, FIX or CHANGE. TEST may touch only tests, testdata and test
helpers; CI only .github/ and scripts/; DOCS docs, tests and Go whose
hunks change only comments. For DOCS the workflow passes the diff of the
non-test Go files, and the check compares removed and added lines with
line comments (outside strings) and spacing dropped; every changed Go
file must appear in that diff. Ten self-test cases added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:56:34 -08:00
pingqiuandClaude Opus 5.5 3065a81238 ci: spec-trace check refuses a trace line declared twice
A second Machine/INV line (plain, list or bold form) could carry a second
kind past the check; every trace key must now be declared once. Three
self-test cases added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:56:31 -08:00
pingqiuandClaude Opus 5.5 8dd3669b1d ci: spec-trace check refuses mixed kinds, placeholders and cut-off change lists
Review fold: Machine/INV must carry exactly one kind token that ends at a
space, comma, slash or the line end; trace keys count only at the start of
a line; a value still holding the template placeholder fails; deleting
non-test Go under core/ or cmd/ also needs Simplest; an unknown status or a
record cut off before its NUL is a malformed change list (exit 2). The
self-test grows to 31 cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:53:15 -08:00
pingqiuandClaude Opus 5.5 e82d04f5ac ci: spec-trace check on every PR description
The PR template now carries the five trace lines (Feature, Machine/INV,
Model, Red-first, Simplest). A pull_request_target workflow checks the
description from the base branch's script: the four trace lines are
present, NONE carries a reason, Machine/INV starts with the PR kind
(IMPL <machine>.<transition>, FIX <INV-ID> or CHANGE <machine>), and
Simplest is present when non-test Go under core/ or cmd/ changes.
The self-test runs before the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:46:13 -08:00
pingqiuandClaude Opus 5.5 45b3ec7c81 ci: post-merge-review: read an allow list's unterminated last line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 15:43:02 -08:00
pingqiuandClaude Opus 5.5 d8ffd2e629 ci: post-merge-review: fail closed on a malformed change record
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:45:03 -08:00
pingqiuandClaude Opus 5.5 30219b0ea8 ci: post-merge-review: deny test gates, test deletes and every old protected path; status server out
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:37:39 -08:00
pingqiuandClaude Opus 5.5 c1d556bf48 ci: post-merge-review check as an allow list, over raw paths, rerun on retarget
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:30:52 -08:00
pingqiuandClaude Opus 5.5 ae1c2c0a25 ci: fail a post-merge-review PR that touches a denied path
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:20:56 -08:00