Skip to content

fix(packaging): keep tracked skills visible without a brittle global ignore list - #116766

Merged
steipete merged 2 commits into
mainfrom
codex/auto-qa-skill-visibility
Jul 31, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/auto-qa-skill-visibility

Conversation

@steipete

@steipete steipete commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Remove the brittle repository-wide .agents/skills/* denylist and its 45 duplicated, manually maintained allowlist exceptions.
  • Keep generated skill scratch artifacts ignored while leaving every tracked or future skill visible to Git-aware packaging and remote synchronization.
  • Replace per-skill ignore-text assertions with a direct ownership test over the actual tracked inventory and git check-ignore --no-index behavior.
  • Format the already-tracked skill file newly exposed to the repository-wide formatter; the follow-up changes only one blank line and preserves every nonempty line.

Root cause

A newly tracked skill was omitted from the hard-coded allowlist, causing the package-acceptance ownership test and required CI to fail across otherwise unrelated pull requests. Root policy already places optional machine-local .agents exclusions in .git/info/exclude, not the committed repository ignore file.

Verification

  • Reproduced the existing owner test red against frozen current main.
  • Focused packaging/synchronization owner suite: 2 tests passed; all 46 tracked skills and a previously unknown future skill are visible; .orig, __pycache__, and .pyc scratch artifacts remain ignored.
  • Independent complete-owner review inspected root policy, every ignore layer, npm package allowlists, Docker release contents, adjacent sync metadata, and all tracked skills; no blockers.
  • Targeted Markdown/TypeScript formatting and git diff --check pass.
  • Automated autoreview is unavailable because the mandatory TruffleHog binary is missing; independent manual diff and secret review completed.

Root causes fixed

1 systemic Git-aware skill visibility and package-acceptance invariant.

@steipete
steipete requested a review from a team as a code owner July 31, 2026 10:22
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Jul 31, 2026
@github-actions

github-actions Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Security-sensitive changes noted

This PR includes security-sensitive file changes. The guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: 7260503dfa7e8e0b2afe56719247da863784244f
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Changed files:

  • .gitignore: Controls ignored secret and local files, including common .env files, before they can be accidentally committed.

Security review is still recommended before merge when the change is intentional.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 6:42 AM ET / 10:42 UTC.

ClawSweeper review

What this changes

The branch removes the repository-wide .agents/skills ignore-and-allowlist scheme, retains ignores for generated scratch artifacts, and updates package-acceptance coverage to require every tracked skill file to remain visible to Git-aware synchronization.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for maintainer review: the proposed cleanup replaces a brittle per-skill allowlist with an inventory-based Git visibility check, but removing the committed ignore rule changes how locally installed skill files are protected from accidental staging. The protected maintainer and security-sensitive context requires an explicit owner decision before merge.

Priority: P3
Reviewed head: 7260503dfa7e8e0b2afe56719247da863784244f
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and its invariant is well targeted, but the changed ignore boundary still needs explicit maintainer acceptance.
Proof confidence 🌊 off-meta tidepool Not applicable: The latest review records protected trusted maintainer context rather than the external-contributor proof gate; the PR body additionally reports focused Git-command behavior checks for the changed invariant.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The latest review records protected trusted maintainer context rather than the external-contributor proof gate; the PR body additionally reports focused Git-command behavior checks for the changed invariant.
Evidence reviewed 4 items PR intent and changed surface: The supplied PR body and diff remove 95 lines of .agents/skills denylist/allowlist rules, retain generated-artifact ignores, and replace per-directory text assertions with tracked-inventory checks.
Direct ownership invariant: The changed test enumerates tracked .agents/skills/*/SKILL.md files and passes them to git check-ignore --no-index, so it verifies the actual packaging/synchronization visibility invariant rather than a duplicated textual allowlist.
Security-sensitive review context: The supplied GitHub security guard identifies .gitignore as security-sensitive because it governs whether local and secret-adjacent files can be accidentally committed; the change is intentional but still calls for security review.
Findings None None.
Security Needs attention Confirm protection for local installed skills: Deleting the committed .agents/skills/* ignore rule makes untracked local skill files visible unless every affected clone uses a local exclusion rule; confirm that this is the supported security boundary before merge.

How this fits together

Repository packaging and remote synchronization use Git’s tracked-file and ignore rules to determine which repository-owned skills are included or visible. The package-acceptance test reads the tracked skill inventory and checks ignore behavior so a new skill cannot be silently omitted by a manually maintained allowlist.

flowchart LR
  A[Tracked repository skills] --> B[Git ignore rules]
  B --> C[Git-aware packaging and sync]
  A --> D[Package-acceptance inventory test]
  D --> E[Visibility decision]
  B --> E
  E --> F[Included repository skills]
  G[Generated scratch artifacts] --> B
Loading

Decision needed

Question Recommendation
Should repository-wide .agents/skills ignore protection be removed in favor of per-clone local exclusions for machine-local skills, so all tracked and future repository skills remain visible automatically? Accept the local-exclusion boundary: Merge the inventory-based approach and treat .git/info/exclude as the supported per-clone location for optional local skill exclusions.

Why: This is a deliberate tradeoff between eliminating the brittle tracked-skill allowlist and retaining a committed safety net against accidental staging of local skill installs; source-level tests cannot decide the intended operator security boundary.

Before merge

  • Add real behavior proof - Not applicable: The latest review records protected trusted maintainer context rather than the external-contributor proof gate; the PR body additionally reports focused Git-command behavior checks for the changed invariant.
  • Resolve security concern: Confirm protection for local installed skills - Deleting the committed .agents/skills/* ignore rule makes untracked local skill files visible unless every affected clone uses a local exclusion rule; confirm that this is the supported security boundary before merge.
  • Resolve merge risk (P1) - Removing the committed .agents/skills/* ignore means a clone without a correctly maintained local .git/info/exclude can expose locally installed or experimental skill files to git status and accidental staging; this is an intentional policy tradeoff that needs explicit maintainer acceptance.

Findings

  • [medium] Confirm protection for local installed skills — .gitignore:134
Agent review details

Security

Needs attention: The .gitignore cleanup is intentional and narrowly scoped, but it changes the accidental-staging boundary for local skill files and needs explicit security-owner confirmation.

PR surface

Tests -4, Docs +1, Other -93. Total -96 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 7 -4
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 95 -93
Total 3 6 102 -96

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Confirm the local exclusion contract (recommended)
    Before merge, explicitly confirm that optional local skills belong in each clone’s local exclusion file and that no supported workflow relies on the removed committed ignore rule.
  2. Pause for a narrower ownership design
    Keep the PR open if maintainers want repository-level protection for untracked local skills, then choose a packaging design that does not depend on a manual allowlist.

Technical review

Best possible solution:

Adopt the inventory-based visibility invariant only after the owning maintainer confirms that machine-local skill installs are intentionally excluded through each clone’s local Git exclusion mechanism, while generated scratch artifacts remain committed-ignore protected.

Do we have a high-confidence way to reproduce the issue?

Yes, at source level: the prior review and PR body describe a tracked skill omitted from the manual allowlist, which the changed git ls-files plus git check-ignore --no-index invariant directly covers. I could not independently execute the read-only checkout inspection because the command sandbox was unavailable.

Is this the best way to solve the issue?

Unclear: validating visibility from the tracked inventory is a more maintainable solution than manual exceptions, but the removal of committed protection for local skills is a policy decision rather than a purely mechanical fix.

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against 27fa5a8950f1.

Labels

Label justifications:

  • P3: This is a low-risk packaging and repository-hygiene improvement, not an active user-facing runtime regression.
  • merge-risk: 🚨 compatibility: Existing contributor or operator workflows may rely on the committed ignore rule to keep locally installed skill files out of Git status and staging.
  • merge-risk: 🚨 security-boundary: The diff changes a committed ignore policy that controls whether local files are exposed to accidental inclusion in repository changes.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The latest review records protected trusted maintainer context rather than the external-contributor proof gate; the PR body additionally reports focused Git-command behavior checks for the changed invariant.

Evidence

Security concerns:

  • [medium] Confirm protection for local installed skills — .gitignore:134
    Deleting the committed .agents/skills/* ignore rule makes untracked local skill files visible unless every affected clone uses a local exclusion rule; confirm that this is the supported security boundary before merge.
    Confidence: 0.86

What I checked:

  • PR intent and changed surface: The supplied PR body and diff remove 95 lines of .agents/skills denylist/allowlist rules, retain generated-artifact ignores, and replace per-directory text assertions with tracked-inventory checks. (.gitignore:134, 7260503dfa7e)
  • Direct ownership invariant: The changed test enumerates tracked .agents/skills/*/SKILL.md files and passes them to git check-ignore --no-index, so it verifies the actual packaging/synchronization visibility invariant rather than a duplicated textual allowlist. (test/scripts/package-acceptance-workflow.test.ts:4501, 7260503dfa7e)
  • Security-sensitive review context: The supplied GitHub security guard identifies .gitignore as security-sensitive because it governs whether local and secret-adjacent files can be accidentally committed; the change is intentional but still calls for security review. (.gitignore:134, 7260503dfa7e)
  • Prior review continuity: The latest completed ClawSweeper cycle at a7f0a437638e6c5a97eb52d7878759f0b4b968ae found no code findings and recorded the trusted maintainer context as exempt from the external-contributor proof gate; the current head adds only formatting to the newly visible skill file. (.agents/skills/openclaw-autonomous-issue-sweep/SKILL.md:68, 7260503dfa7e)

Likely related people:

  • steipete: The supplied security guard identifies this actor as an OpenClaw SecOps member, and the PR’s protected maintainer context makes them the strongest available routing candidate for the intended ignore-policy boundary. (role: repository-admin and security-context reviewer; confidence: medium; commits: eaaac38c8cf7, 7260503dfa7e; files: .gitignore, test/scripts/package-acceptance-workflow.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm the intended per-clone exclusion path for local skill installs before merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-07-31T10:26:17.935Z sha c9e8816e48b3e16eae8980089b4d619152c58807 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-31T10:34:28.778Z sha a7f0a437638e6c5a97eb52d7878759f0b4b968ae :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 31, 2026
@steipete
steipete force-pushed the codex/auto-qa-skill-visibility branch from a7f0a43 to 7260503 Compare July 31, 2026 10:38
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 31, 2026
@steipete
steipete merged commit 25bb1da into main Jul 31, 2026
233 of 242 checks passed
@steipete
steipete deleted the codex/auto-qa-skill-visibility branch July 31, 2026 11:05
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
…ignore list (openclaw#116766)

* fix(ci): keep tracked repository skills visible without allowlists

* style(skills): format newly visible issue sweep skill

---------

Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant