Repository navigation
v1.3.0
A minor rather than a patch: action.yml is untouched, so nothing changes for
consumers pinned to @v1, but bin/open-backmerge-pr.sh is renamed to
bin/backmerge.sh and its behaviour changes, which matters to anyone calling it
by path rather than through just backmerge.
The post-release back-merge is a fast-forward (#64)
Every back-merge this repository had done was a pure fast-forward carrying an
empty diff: four for four. Delivering that through a pull request bought nothing
and cost a merge commit on develop per release, plus two workflow runs per
release that GitHub held for approval, never ran, and recorded as failures.
Those runs were misdiagnosed three separate times before anyone read the actor
on them.
bin/backmerge.sh pushes instead. It opens a pull request only when a
fast-forward is impossible, which means develop has moved on since the release
and levelling the two needs a merge commit somebody authors. A hotfix that landed
on main rides in either path and is named in the output rather than carried
silently.
The push uses a deploy key scoped to this repository, stored as
BACKMERGE_DEPLOY_KEY and named as a bypass actor on develop's ruleset.
GitHub only accepts the Actions app as a bypass actor inside an organisation, and
a deploy key is narrower than a personal access token.
With no routine back-merge pull request there is nothing to exempt, so the
coverage skip and the CodeRabbit title skip are both deleted along with the
comments that justified them.
Four checks that could report success without measuring
- The secret linter's allowlist disagreed with the scan it was exempting, in
two independent ways: asedglobal substitution consumed the boundary
character so two adjacent fake values left the second unscrubbed, and the scrub
was case-sensitive while the scan was not. Either could block a
documentation-only change over values the linter had been told to ignore
(#56, #63). - The stale-skill prune in
setup.shmatchedreadlink's raw string against
one literal prefix, so a dangling link that resolves into the owned tree
without being spelled that way, stored relative or reached through another
symlink, was never removed. Both ends now share one ownership predicate (#57). - The kcov cache key ended in a hand-written image codename that cannot
change when the runner image does, and a cache hit was accepted on nothing more
than an executable file existing. The key is derived now, a hit is verified by
running it, the build deps go through the bounded apt wrapper, and the source
is pinned by commit rather than by a checksum of an on-demand archive (#60). - The coverage comment gave up when its input sat one directory down, stripped
a path prefix that is wrong in any consumer, and could fail to find a comment
it had written itself when the repository had more than one page of them (#61).
The prompt-injection defence says something true (#65)
Both eval prompts told the evaluator the scored-content token was "stated above".
It is appended below. Nothing scored wrongly, but that sentence is the one the
defence rests on: it is how the evaluator tells the harness's marker from one a
scored file wrote for itself.
Also
ShellCheck now covers .github/*.sh, previously the only scripts in the
repository nothing linted, and they run on every coverage job.
Every fix in this batch was run red against the unfixed code first, and several
carry a control test that passes before and after, to catch a fix that works by
doing nothing.
Full inventory: #66.