Repository navigation
sync-skill: adopt new lint rules automatically, and make the post-merge ancestry check load-bearing - #83
Merged
Conversation
v1.4.205 left .oxlintrc.json byte-identical and added its eight new rules in config/oxlint-anti-slop.json, behind a new audit:anti-slop step in package.json's lint script. The documented diagnostic diffs only .oxlintrc.json, so it answers "no new rules" when there are eight, and the run reads the lint failure as merge damage instead. Diff every config/oxlint-*.json and the lint script too. The lint script matters twice over: package.json is a whole-file fork exception, so a new sub-step only reaches the fork's tree if the ours.txt audit three-way-merges it. Also record two hard limits the run had to derive under pressure: a rule family can be entirely un-fixable, so "only what --fix rewrites" can leave no legal move at all; and a violation in a file identical to the tag is upstream's release failing its own rule, which is a different decision from the fork-side ones and has to be named separately or the rerun re-escalates on it alone.
… resolution Four rules this run had to derive, each in the step that owns it. Step 2: check that $PREV_TAG is still an ancestor of main. #82 was squash-merged, so v1.4.204's content is on main but its commit is not in the lineage, and `git merge` silently resolved v1.4.205 against a v1.4.203-era base — 2,536 differing paths and 287 conflicted files for a one-release step. Nothing else reports it. Step 11: count the parents of the merged tip. That is the only check a squash fails; `merge-base --is-ancestor $UPSTREAM_TARGET origin/main` passes either way, which is why #82 went unnoticed for a day. Step 8: tag the resolution before the abort reset. An escalating run has usually produced a complete resolution that only a human decision blocks, and the tag outlives the worktree, so the rerun starts from it. Step 4: the ambient-pnpm lockfile rewrite is machine noise, not someone's work. package.json's packageManager pin is not self-enforcing here, so the setup install can rewrite the pnpm-12 lockfile with pnpm 10; restore that one file and run behind a corepack shim rather than stopping the day. Also repairs a contradiction the lint-rule commit before this one left in place: that section's own get-ahead rehearsal still swapped only .oxlintrc.json, the thing it had just finished saying is not the question. And records that an upstream-side violation can be proved deterministic from three byte-identical inputs, without checking out the tag.
A stable tag can enable a whole rule family that `oxlint --fix` cannot rewrite. v1.4.206's anti-slop plugin turned on eight such rules; not one is auto-fixable, so the previous "only what --fix rewrites on its own" limit left a run with no legal move and stalled the v1.4.205 sync with every other check green. Adopting a new rule in fork-owned files is now in scope and is never an escalation by itself. The guardrail is upstream's own adoption commit for that rule, which the run has to read first — it ran the same rule over its own tree in the same release, so its renames are the reference answer for what the rule wants. v1.4.206 gave the whole vocabulary that way: isSkillsCliAgentKeyShaped -> isUsableSkillsCliAgentKey, RootShape -> RootLayout, and typed property access in place of Reflect.get. The limits now bound how the fix is written rather than whether it happens: names and types only, never a branch or a message; no --fix-suggestions or --fix-dangerously; never a config edit or a suppression entry. Two cases still need a person, and both are one file rather than the run — a rule upstream's own release violates in its own file (retarget to a newer stable tag first, which usually dissolves it), and a violation that cannot be cleared without changing what the code does. Also make Step 11's is-ancestor check load-bearing. PR #82 was squash-merged, so v1.4.204's commit is not in main's ancestry; the fork ownership guard falls back to the newest tag it can reach and has been comparing every PR against v1.4.203, reporting ~25 false residual drifts on PRs that touch nothing.
…-lessons/v1.4.205 # Conflicts: # .claude/skills/sync-upstream/SKILL.md # .claude/skills/sync-upstream/references/file-ownership.md
# Conflicts: # .claude/skills/sync-upstream/SKILL.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What misled the run
The v1.4.205 sync failed its lint gate on eleven
anti-slopfindings. The reference's"When upstream tightens the linter" section says to diagnose that with:
At
86dc3caa11against tagv1.4.205(11aba8bdc5) that prints nothing:Eight rules had in fact been enabled. They live in a config the check never looks at, added by
11180fa532(stablyai#20726) and turned on acrossb79206533e,c9ae17fe3d,49e5fa597a,775a932651,22ce8d69a1,f107499e44,bfdec26352,231e805b1e:and they run through a new
pnpm lintsub-step rather than the rootoxlintinvocation:Answering the documented check and stopping there points the next run at
-X oursdamage for afailure that is toolchain tightening.
What the edit changes
The diagnosis block now diffs every
config/oxlint-*.jsonandpackage.json'slintscriptalongside
.oxlintrc.json. Thelint-script diff earns its place twice:package.jsonis awhole-file fork exception, so a new sub-step only reaches the fork's tree if the
ours.txtauditthree-way-merges it — otherwise the local gate passes while PR CI, which runs the step from its own
workflow, fails.
Two hard limits are also written down, both derived under pressure by this run:
oxlint --config config/oxlint-anti-slop.json --fixrewrote none of the eleven findings, so "only what
--fixrewrites on its own" left no legalmove. The existing text reads as though
--fixis the normal outcome. A rename is tempting tocall mechanical; the boundary written after v1.4.184 is a human's answer to exactly that.
src/shared/agent-status-legacy-adapter.ts:95isbyte-identical to the tag, as are
config/oxlint-anti-slop.jsonandpnpm-lock.yaml, sov1.4.205 fails the rule it shipped. Upstream fixed it on trunk already
(
Reflect.get→Object.getOwnPropertyDescriptor), which the reference forbids backporting, andit cannot be pre-fixed on
mainbecause the file does not exist there. Unless the escalationnames it separately, a rerun re-escalates on that one file after the fork-side ones are fixed.
Scope
.claude/skills/sync-upstream/references/file-ownership.mdonly. No change toSKILL.md's## Hard safety rulesor to the fix policy's never-list; the two additions here tighten thereference's own
Hard limitslist rather than relaxing anything.The v1.4.205 sync itself did not land —
origin/mainis unchanged at86dc3caa11, backup atorigin/backup/main-20260917-140138Z. Ledger:bug-137(upstream's violation),bug-138(the six fork-side ones),
test-gap-139.Second run, same tag: three more rules (
e8ac295d3a)A second run against
v1.4.205reached the same escalation and hit three further things the skilldid not warn about. Each edit lands in the step that owns it; nothing here changes what a gate checks.
A squashed predecessor moved the merge base back a release — Step 2, Step 11
One parent, and
v1.4.204is not in the lineage.mainstill carries that release's content, sonothing looks wrong — but
git merge v1.4.205resolved its base to a v1.4.203-era commit andproduced 2,536 differing paths and 287 conflicted files for what should have been a one-release
step.
No existing check reports it. Step 11's
merge-base --is-ancestor "$UPSTREAM_TARGET" origin/mainpasses either way, because a squash carries content forward while dropping the commit — which is why
#82 went unnoticed until the next day's merge. Step 2 now checks
$PREV_TAGbefore merging; Step 11now counts the merged tip's parents, the only check a squash fails.
allow_merge_commitistrueon the repo, so this was a UI choice rather than a settings block andStep 11's
--mergestill works.An escalating run threw away a complete resolution — Step 8
Step 8's abort path resets to
$ORIGIN_MAIN_OLD. On a lint-tightening escalation the resolution isalready finished and correct — only a human decision blocks it — so the reset costs hours the rerun
has to redo. The edit tags it first; a tag in the shared
.gitoutlives the run's worktree. Thisrun's is
sync-resolved/v1.4.205-20260917at647ab0aac9, carrying the merge, the ownershipresolution, six
-X oursrepairs, nineours.txtthree-way merges, the tier-2 replay and there-baselined residuals.
The worktree arrived dirty with something that was not work — Step 4
packageManageris not self-enforcing here (orca ledgerbug-3), so the worktree setup installedunder ambient pnpm 10 and rewrote the pnpm-12 lockfile in place — that one file, its
packageManagerDependenciesblock dropped and the rest reflowed. Step 4's empty-porcelain checkreads that as "the workspace holds someone's work" and stops the day.
It is machine noise, and the very next line of Step 4 would discard it anyway.
git checkout -- pnpm-lock.yamlplus acorepack pnpmshim onPATHgave a cleanpnpm install --frozen-lockfileand a clean tree, and every later step ran normally. The shim has to be on
PATHrather than onlyin the run's own calls, because repo scripts invoke bare
pnpminternally. Anything else dirty isstill a stop.
Two repairs to the section above
The lint-rule commit left its own section self-contradictory: the "get ahead of the next release"
rehearsal still swapped only
.oxlintrc.json— the thing the same section had just finished sayingis not the question. Replaced with the two diffs, plus a note that the rehearsal must then run
whatever they name; for
v1.4.205that meant installing the pinned plugin and runningaudit:anti-slop.And one line on the upstream-side-violation limit: it can be proved deterministic from three
git diff --quietcalls — lint config, plugin pin inpackage.json, and the violating file allbyte-identical to the tag — rather than by checking the tag out, which the vitest case above it
requires but lint does not.
Not changed
## Hard safety rulesand the fix policy's "Never, on either gate" list are untouched. Theescalation both runs took is what those rules are for. The outstanding decision is
decision-5inthe orca ledger, and none of these edits would have changed it.