Skip to content

skills/setup-override-upstream: trim frontmatter to fit metadata budget - #128

Merged
potiuk merged 1 commit into
apache:mainfrom
choo121600:trim-setup-override-upstream-skill
May 11, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
choo121600:trim-setup-override-upstream-skill

Conversation

@choo121600

Copy link
Copy Markdown
Member

Summary

Trims setup-override-upstream frontmatter (description + when_to_use) from 1,096 → 892 characters.

Same principle as #103 and the rest of #118's audit pass: frontmatter is the routing layer. The body covers the generalisability test, the design-decision example list, and the pre-commit step.

Tracking: #118

Before / after

before after Δ
description 736 532 -204
when_to_use 360 360 0
total 1,096 892 -204
budget margin 440 644 +204
budget 1,536 1,536

when_to_use is untouched — every line is either a literal trigger phrase or a routing skip cue ("typically after running the override locally for a while") and has to stay verbatim.

What moved where

Detail Where it lives now
(some overrides encode project-specific decisions and should stay local) (rationale parenthetical) Body's generalisability discussion
(configurable parameter, optional step, changed default, etc.) (abstraction-example list) Body's design-decision section
runs the framework's pre-commit (implementation detail) Body Walk-through / standard project workflow

The post-merge override-removal flow ("After the PR merges and the adopter runs /setup-steward upgrade, the override file is no longer needed and the skill prompts for its removal") is kept in the frontmatter — it is the only routing signal that tells the agent this skill cleans up after itself.

Trigger-phrase preservation

Every literal trigger phrase from the original when_to_use is preserved verbatim:

  • "upstream my override"
  • "promote this override to the framework"
  • "convert my local modification into a steward feature"
  • "make this override a framework feature"
  • "open a PR to apache-steward for this override"

Routing skip cue preserved:

  • "typically after running the override locally for a while and deciding the change is worth contributing back"

Routing recall does not regress.

Trims setup-override-upstream frontmatter from 1,096 → 892 chars
(margin 440 → 644). Drops the parenthetical rationale "(some overrides
encode project-specific decisions and should stay local)" (covered by
the body's generalisability discussion), the abstraction-example list
"(configurable parameter, optional step, changed default, etc.)"
(body's design-decision section enumerates these), and the
implementation detail "runs the framework's pre-commit" (standard
project workflow, covered in body).

The when_to_use is untouched — every line is a literal trigger
phrase or a routing skip cue. All five literal trigger phrases
preserved verbatim. The post-merge override-removal flow stays in
the frontmatter as a routing signal.

Tracking: #118

@choo121600 choo121600 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trim is clean and the body accounting checks out.

A few observations:

Budget note: the pre-change total (1,096 chars) was already 440 chars under the 1,536 limit, so this PR was not required by the validator. It is a legitimate style improvement — the post-trim description is more concise — but worth flagging so the tracking issue (#118) records that this file was never a compliance failure.

runs the framework's pre-commit: removed from the description chain. Confirmed still present in the body at Walk-through Step 5 §3 (prek run --all-files). No information loss — it is an implementation detail, not a routing signal, and belongs in the body.

Trigger phrases: all five literals in when_to_use are unchanged. Routing recall does not regress.

/setup-steward upgrade cross-reference: kept in the frontmatter description (post-merge cleanup flow). Correct placement — that sentence is a routing signal telling the agent this skill self-cleans after upgrade.

Everything else the description previously contained (generalisability parenthetical, abstraction-example list) is accounted for in the body. Approving.

🤖 This review was drafted by an AI-assisted tool. An apache-steward maintainer has read and confirmed it before posting; mistakes are still possible — point them out and the maintainer will sort it. See CONTRIBUTING.md for what an apache-steward maintainer review covers.

@potiuk
potiuk merged commit 83f57b8 into apache:main May 11, 2026
12 checks passed
@potiuk potiuk added capability:platform Framework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap) family:setup setup-* skills labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:platform Framework / agent substrate skills (install, verify, doctor, override, status, setup bootstrap) family:setup setup-* skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants