Skip to content

chore(skills): regenerate cli-backup-sync SKILL.md to match catalog - #8657

Merged
diegosouzapw merged 2 commits into
diegosouzapw:release/v3.8.49from
MumuTW:fix/agent-skills-cli-backup-sync-stale
Jul 27, 2026
Merged

diegosouzapw merged 2 commits into
diegosouzapw:release/v3.8.49from
MumuTW:fix/agent-skills-cli-backup-sync-stale

Conversation

@MumuTW

@MumuTW MumuTW commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Merge integrity (changelog + generated skills) has been failing on every PR→release/v3.8.49 with:

check:agent-skills-sync
Generated: 1 · … + cli-backup-sync

Tip's skills/cli-backup-sync/SKILL.md was stale vs the catalog: it still listed backup status flags (--name, --cloud, --encrypt, …) the generator no longer emits.

Fix

node --import tsx/esm scripts/skills/generate-agent-skills.mjs --apply

Diff is −9 lines in skills/cli-backup-sync/SKILL.md only. After apply, dry-run is Generated: 0 · Unchanged: 45.

Why this matters

Unblocks Merge integrity for the whole queue (including #8424, #8580, #8589, #8604, #8605, #8619).

Test plan

  • npm run check:agent-skills-sync green on this branch
  • Diff limited to generated skill file

check:agent-skills-sync was failing on release/v3.8.49 tip because the
generated SKILL.md still documented backup-status flags the catalog no
longer exposes. Re-run generate-agent-skills --apply (9-line delete only).
@MumuTW
MumuTW requested a review from diegosouzapw as a code owner July 26, 2026 09:41
@MumuTW

MumuTW commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

Root-cause tracking (parser + process, not this regenerate-only PR): #8658

MumuTW added a commit to MumuTW/OmniRoute that referenced this pull request Jul 26, 2026
Same tip fix as diegosouzapw#8657 so Merge integrity is green without waiting for
that PR to land. Regenerated via generate-agent-skills --apply.
MumuTW added a commit to MumuTW/OmniRoute that referenced this pull request Jul 26, 2026
Same tip fix as diegosouzapw#8657 so Merge integrity is green without waiting for
that PR to land. Regenerated via generate-agent-skills --apply.
MumuTW added a commit to MumuTW/OmniRoute that referenced this pull request Jul 26, 2026
Same tip fix as diegosouzapw#8657 so Merge integrity is green without waiting for
that PR to land. Regenerated via generate-agent-skills --apply.
MumuTW added a commit to MumuTW/OmniRoute that referenced this pull request Jul 26, 2026
Same tip fix as diegosouzapw#8657 so Merge integrity is green without waiting for
that PR to land. Regenerated via generate-agent-skills --apply.
MumuTW added a commit to MumuTW/OmniRoute that referenced this pull request Jul 26, 2026
Same tip fix as diegosouzapw#8657 so Merge integrity is green without waiting for
that PR to land. Regenerated via generate-agent-skills --apply.
MumuTW added a commit to MumuTW/OmniRoute that referenced this pull request Jul 26, 2026
Same tip fix as diegosouzapw#8657 so Merge integrity is green without waiting for
that PR to land. Regenerated via generate-agent-skills --apply.
MumuTW added a commit to MumuTW/OmniRoute that referenced this pull request Jul 26, 2026
Regenerate file-size-baseline.json with --update after the merge train.
Includes skills SKILL.md sync (diegosouzapw#8657 equivalent) so Merge integrity is green.
@diegosouzapw

Copy link
Copy Markdown
Owner

Hi @MumuTW — the SKILL regen is welcome. The catalog-vs-SKILL drift on backup status was already failing check:agent-skills-sync for every PR against release/v3.8.49, so this unblocks the gate.

Approved as merge-ready (★3). /merge-prs will pick it up.

MumuTW added a commit to MumuTW/OmniRoute that referenced this pull request Jul 27, 2026
Regenerate file-size-baseline.json with --update after the merge train.
Includes skills SKILL.md sync (diegosouzapw#8657 equivalent) so Merge integrity is green.
@diegosouzapw
diegosouzapw merged commit cf66338 into diegosouzapw:release/v3.8.49 Jul 27, 2026
11 checks passed
diegosouzapw pushed a commit that referenced this pull request Jul 28, 2026
…nly (#8619)

* test(quality): fail loudly when a source-scanning guard is negative-only

A negative guard — assert.doesNotMatch(src, /x/) or src.includes(x) === false —
passes against an empty string. Once the code it guards is extracted into another
file the parent no longer contains the string, so the assertion keeps passing while
protecting nothing. The regression coverage is deleted with no test turning red,
which is exactly the failure mode the god-file decomposition campaign (#8617) is
about to trigger 90-odd times.

Adds tests/unit/source-scanner-guards.test.ts: a hard gate (no baseline, no
allowlist) requiring every test variable bound to project source to carry at least
one positive anchor. Classification runs on logical statements with strings, regexes
and comments blanked out, so a guard wrapped across lines cannot slip past — that
folding is what exposed 3 of the 7 violations.

Fixes all 7 violations across 6 files with one stable top-level export anchor each.
Two were security scope guards held only by multi-line negative assertions: the SSRF
guards on /api/sync/initialize (#323) and the proxy-bypass guards on chatHelpers.ts
and chatCore.ts (#3226) — the latter anchored on handleChatCore precisely because
that file is a decomposition target.

Adds tests/_helpers/readSrc.ts, a repo-root-relative reader that throws on a missing
or empty file instead of returning "".

Refs #8617

* docs(changelog): number the fragment for #8619

* chore(skills): sync cli-backup-sync SKILL.md with catalog

Same tip fix as #8657 so Merge integrity is green without waiting for
that PR to land. Regenerated via generate-agent-skills --apply.
@diegosouzapw diegosouzapw mentioned this pull request Jul 28, 2026
HouMinXi pushed a commit to HouMinXi/OmniRoute that referenced this pull request Aug 2, 2026
…iegosouzapw#8657)

* chore(skills): regenerate cli-backup-sync SKILL.md to match catalog

check:agent-skills-sync was failing on release/v3.8.49 tip because the
generated SKILL.md still documented backup-status flags the catalog no
longer exposes. Re-run generate-agent-skills --apply (9-line delete only).

* docs(changelog): add fragment for diegosouzapw#8657 agent-skills sync
@MumuTW
MumuTW deleted the fix/agent-skills-cli-backup-sync-stale branch August 27, 2026 01:47
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…iegosouzapw#8657)

* chore(skills): regenerate cli-backup-sync SKILL.md to match catalog

check:agent-skills-sync was failing on release/v3.8.49 tip because the
generated SKILL.md still documented backup-status flags the catalog no
longer exposes. Re-run generate-agent-skills --apply (9-line delete only).

* docs(changelog): add fragment for diegosouzapw#8657 agent-skills sync
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…nly (diegosouzapw#8619)

* test(quality): fail loudly when a source-scanning guard is negative-only

A negative guard — assert.doesNotMatch(src, /x/) or src.includes(x) === false —
passes against an empty string. Once the code it guards is extracted into another
file the parent no longer contains the string, so the assertion keeps passing while
protecting nothing. The regression coverage is deleted with no test turning red,
which is exactly the failure mode the god-file decomposition campaign (diegosouzapw#8617) is
about to trigger 90-odd times.

Adds tests/unit/source-scanner-guards.test.ts: a hard gate (no baseline, no
allowlist) requiring every test variable bound to project source to carry at least
one positive anchor. Classification runs on logical statements with strings, regexes
and comments blanked out, so a guard wrapped across lines cannot slip past — that
folding is what exposed 3 of the 7 violations.

Fixes all 7 violations across 6 files with one stable top-level export anchor each.
Two were security scope guards held only by multi-line negative assertions: the SSRF
guards on /api/sync/initialize (diegosouzapw#323) and the proxy-bypass guards on chatHelpers.ts
and chatCore.ts (diegosouzapw#3226) — the latter anchored on handleChatCore precisely because
that file is a decomposition target.

Adds tests/_helpers/readSrc.ts, a repo-root-relative reader that throws on a missing
or empty file instead of returning "".

Refs diegosouzapw#8617

* docs(changelog): number the fragment for diegosouzapw#8619

* chore(skills): sync cli-backup-sync SKILL.md with catalog

Same tip fix as diegosouzapw#8657 so Merge integrity is green without waiting for
that PR to land. Regenerated via generate-agent-skills --apply.
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.

2 participants