Skip to content

feat(skills): add requires.anyEnv alternate credentials (sag accepts SAG_API_KEY) - #147455

Closed
Navras98 wants to merge 1 commit into
openclaw:mainfrom
Navras98:feat/sag-anyenv
Closed

Navras98 wants to merge 1 commit into
openclaw:mainfrom
Navras98:feat/sag-anyenv

Conversation

@Navras98

@Navras98 Navras98 commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Skill/hook requirements have all-of env with no any-of equivalent: a skill accepting either of two credential env vars cannot declare it, so eligibility is either too strict (all-of) or credential-blind (bins-only). This PR adds a generic requires.anyEnv contract (eval, manifest, runtime eligibility + credential injection, doctor/CLI/UI rendering, snapshot carry) with optional injection for alternate keys.

Note: #147346 (sag readiness) is already CLOSED completed by canonical #147685 (binary-only). This PR no longer claims it — sag stays binary-only here (P1 fix below). Generic sponsorship decision remains with the maintainer.

Changes

  • Generic requires.anyEnv plumbing: src/shared/requirements.ts (any-of eval), frontmatter.ts, config-eval.ts, doctor-skills-core.ts, CLI/hook formatters, UI skills-shared, workspace-skill-prompt.ts snapshot + SkillSnapshot/OpenClawSkillMetadata types, env-overrides.ts propagation on both direct + snapshot paths.
  • skills/sag/SKILL.md: readiness restored to binary-only { bins: ["sag"] } (matches upstream/main), preserving file-key setups (--api-key-file, *_API_KEY_FILE per SKILL.md:34). primaryEnv + SAG_API_KEY docs kept for optional injection only — no env gate. P1 regression withdrawn.
  • Docs: creating-skills.md + skills.md generic contract.

Evidence

P1 fix proof from this head (02cfc06e1), branch source:

sag requires now: { "bins": ["sag"] }
eligible binary-only zero-env: true
missing: {"bins":[],"anyBins":[],"env":[],"anyEnv":[],"config":[],"os":[]}

isEnvSatisfied (requirements.ts:31) checks env only, never key files — so the removed gate was the failure path; binary-only restores canonical behavior. Verified upstream/main sag is also bins-only (fetch 43d413bd).

Gates on this push:

  • requirements + frontmatter + env-overrides: 39/39 pass
  • oxlint: 0 errors; git diff --check: clean
  • Author: Navras98 <[email protected]> (amended before push)

Honest gaps (not claimed)

  • Maintainer decision on generic sponsorship is OPEN — happy to split, defer, or close on guidance.
  • Snapshot carry is proven at unit level, not via a fresh-session resume run.
  • UI screenshots exist locally (before/after) but are not embedded — no image-upload path from CLI.
  • Full CI: runs on push, not claimed green here.

Related #147346 (closed by #147685); supersedes #147381 (closed unmerged).

Generic proof (non-sag) from this head (02cfc06e1), real CLI entrypoints

Workspace skill proof-anyenv (generic, not sag) with
metadata.openclaw.requires.anyEnv: [PROOF_KEY_A, PROOF_KEY_B], isolated
OPENCLAW_HOME, branch source, run from source:

Neither key set — skills check lists it under missing with the alternates group:

proof-anyenv (anyEnv: PROOF_KEY_A, PROOF_KEY_B)

(Eligible 44, Missing 22.)

Only the alternate PROOF_KEY_B set — it moves to "Ready and visible to model";
skills info proof-anyenv --json returns "eligible": true with
"anyEnv": ["PROOF_KEY_A","PROOF_KEY_B"] and "missing": {"anyEnv": [], ...}.
(Eligible 44→45, Missing 22→21.)

Injection + snapshot-carry: env-overrides.test.ts covers the direct path, the
snapshot path (applySkillEnvOverridesFromSnapshot), and the always-blocked guard;
335/335 touched-area tests pass locally (see comments).

UI: computeSkillMissing renders env:any of (A, B); covered by
skills-shared.test.ts + page view.test.ts. Before/after screenshots of the real
Skills page were captured in headless Chromium (missing-requirements box absent
before, env:any of (PROOF_KEY_A, PROOF_KEY_B) shown after) — held locally, can be
drag-dropped into the thread on request.

CI shard-failure attribution (finished run 34825094814, head 02cfc06e1)

  • checks-node-compact-small-12 — test/scripts/docker-build-helper.test.ts expects clawhub:@openclaw/kitchen-sink in the Docker plugin sweep; area this PR never touches (no docker files in scope). Upstream-broken candidate.
  • checks-node-compact-large-12 — src/state/openclaw-agent-db-module-identity.test.ts timed out at 45s; src/state ownership/reclamation, outside this PR's scope. Flake candidate, passes locally on clean main per comment.
  • Touched-area gates green locally: 335/335 + oxlint 0 errors + git diff --check clean. These two shards need a maintainer re-run, not a code fix.

Proof 2026-09-14 (head 02cfc06e1, fork-only, log redacted /tmp/proof-147455.log)

Real proof from this head, worktree pinned detached 02cfc06e1 (fork Navras98/openclaw), no push to upstream:

sag accepts SAG_API_KEY alternate (sag 0.3.0 binary):

  • strings /usr/local/bin/sag | grep -o: ELEVENLABS_API_KEY, ELEVENLABS_API_KEY_FILE, SAG_API_KEY, SAG_API_KEY_FILE all present.
  • No keys => Error: missing ElevenLabs API key (set --api-key, --api-key-file, or ELEVENLABS_API_KEY).
  • SAG_API_KEY=[REDACTED] dummy only => Error: list voices failed: 401 Unauthorized (missing-key gate GONE => alternate accepted; dummy value never printed, log contains no secret).

requires.anyEnv resolves (src/shared/requirements.ts, this head):

neither eligible=false missing.anyEnv=["ELEVENLABS_API_KEY","SAG_API_KEY"]
alt-only eligible=true missing.anyEnv=[]
primary-only eligible=true missing.anyEnv=[]

sag readiness binary-only (skills/sag/SKILL.md, this head):

sag requires now: { "bins": ["sag"] }
eligible binary-only zero-env: true
missing: {"bins":[],"anyBins":[],"env":[],"anyEnv":[],"config":[],"os":[]}

Local tests green (canonical scripts/test-projects.mts):

  • requirements + frontmatter: 20/20 pass (unit-fast)
  • env-overrides anyEnv (direct + snapshot + always-blocked guard): 3/3 pass
  • skills-cli.formatting + hooks-cli.toggle: 143/143 pass
  • doctor-skills: 10/10 pass
  • Total touched: 176 passed, 0 failed
  • oxlint: 0 warnings, 0 errors · git diff --check: clean

Merge-risk/compatibility: sag stays { bins: ["sag"] } (canonical, no env gate); generic anyEnv is opt-in per-skill, defaults to empty (no behavior change for existing skills). No upstream push — fork branch only.

Runtime proof: fresh + cold-resumed delivery, old snapshots, guard (head f942a4d, fork-only, redacted)

Real entrypoint applySkillEnvOverridesFromSnapshot in separate fresh OS processes (no shared memory), snapshots reloaded from disk JSON after the same JSON round-trip the session store performs (stripRuntimeOnlySessionSkillsFields drops only resolvedSkills; skills[].anyEnv survives persistence — store-entry-shape.ts:190). Config values were synthetic dummies, never printed; output below is booleans only.

  • FRESH — new-format snapshot (skillKey/primaryEnv/requiredEnv/anyEnv, as buildSkillSnapshot emits), only the alternate PROOF_KEY_B configured:
    {"expectKey":"PROOF_KEY_B","hadBefore":false,"delivered":true,"alwaysBlockedHeld":true,"reverted":true}
  • COLD RESUME — same persisted JSON reloaded by a different fresh process (simulates restart: disk → parse → apply), only alternate configured:
    {"expectKey":"PROOF_KEY_B","hadBefore":false,"delivered":true,"alwaysBlockedHeld":true,"reverted":true}
  • OLD SNAPSHOT (pre-change format, no anyEnv field) — requiredEnv: ["LEGACY_KEY"] still delivered, no crash:
    {"expectKey":"LEGACY_KEY","hadBefore":false,"delivered":true,"alwaysBlockedHeld":true,"reverted":true}
  • GUARD — with anyEnv declared, always-blocked host key (OPENSSL_CONF) configured alongside the alternate: alternate delivered, host key refused (Blocked skill env overrides for proof-anyenv: OPENSSL_CONF in log):
    {"expectKey":"PROOF_KEY_B","hadBefore":false,"delivered":true,"alwaysBlockedHeld":true,"reverted":true}

So: alternate-key delivery works fresh and after cold resume through the real snapshot path; pre-change snapshots load unchanged; the sanitizer allow-list still refuses host-dangerous keys.

Generic Skills UI screenshots (real rendering, headless Chromium 153)

Real Skills page (renderSkills from ui/src/pages/skills/view.ts + app styles.css, served by vite from this head) with a generic non-sag skill proof-anyenv missing anyEnv: [PROOF_KEY_A, PROOF_KEY_B], detail dialog open. Same harness, only computeSkillMissing differs:

Before (base 61fe467c): the dialog shows no Missing-requirements box — the alternate-credential need is invisible.

before: no missing-requirements box

After (this PR): Missing requirements — env:any of (PROOF_KEY_A, PROOF_KEY_B).

after: env any-of group shown

Why generic (maintainer decision on deferral)

  • Concrete any-of credential reality, in-repo: the sag binary itself accepts SAG_API_KEY or ELEVENLABS_API_KEY (plus *_FILE variants — verified via strings/runtime in this thread). All-of env cannot express that without marking single-key users ineligible; bins-only cannot name the credential at all. File-key setups stay bins-only (P1 lesson kept); anyEnv is opt-in metadata for key-based setups, never a gate.
  • Symmetry with anyBins: the codebase already solved the identical any-of problem for binaries (anyBins, rendered as bin:any of (...) in CLI/hooks/UI). anyEnv is the missing half — same evaluator shape, same render pattern, same snapshot carry.
  • Additive and safe to land: optional field, defaults to empty (zero behavior change for existing skills); old snapshots load (proven above); the P2 propagation bug this PR fixed (eligible-but-keyless) already demonstrated the trap is real — deferring leaves it for the next alternate-credential skill. Happy to add a first in-repo consumer annotation if the maintainer prefers.

CI attribution (run 34877456462, head f942a4d)

  • preflight fails in Build CI manifest: Error: split timing generation repeats files for core-runtime-infra-storage-state (scripts/lib/vitest-shard-metadata.mts:79 via ci-node-test-plan.mts:2740) — harness shard-planning bug on upstream main, unrelated to this PR (touches no CI/shard files).
  • openclaw/ci-gate fails in 3s as the aggregation gate consequence.
  • Touched-area gates stay green locally (unit + oxlint + git diff --check, see thread). Needs a maintainer re-run after the harness fix, not a code change here.

@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui cli CLI command changes commands Command implementations size: M triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Adds optional any-of environment requirements for skills and hooks, with eligibility checks, credential propagation, saved snapshots, and diagnostics.

Example: A skill declares anyEnv: [PROOF_KEY_A, PROOF_KEY_B], with only PROOF_KEY_B configured.

  • Before: Metadata cannot express that either credential satisfies readiness.
  • After: Readiness accepts PROOF_KEY_B, but this patch still fails to inject sensitive alternate keys.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Partial shipped-entry-point evidence supports the idea, but credential propagation and test defects prevent readiness, and product sponsorship remains unresolved.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) 4 actionable review findings remain.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Skill and hook authors cannot declare that either of two environment credentials satisfies readiness.
Reason: The capability is coherent, but the original bundled consumer no longer needs it and generic-contract sponsorship remains explicitly unresolved.

Merge readiness

⛔ Blocked before merge - 7 items remain

Keep open: the generic capability is distinct from the merged sag fix, but this PR has credential-delivery and test defects and still needs a product decision.

Priority: P2
Reviewed head: c04d1aa3a5623281addb8aac5bdc51b768cfab65
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should OpenClaw add a generic requires.anyEnv metadata contract without a current bundled consumer?
  • Recommendation: Defer pending a concrete consumer: Keep the existing credential contract until an owner-backed skill or hook demonstrates the need for alternate-environment readiness.
  • Why: The original sag bug is fixed separately, and no recorded owner approval sponsors the remaining generic capability.

Before merge

  • Add real behavior proof - Historical CLI output supports generic eligibility and inspected screenshots show the warning, but constructed-snapshot injection traces bypass session creation and persistence and do not establish delivery through the re-ported implementation; provide redacted fresh-session and cold-resume execution output, excluding keys, IPs, phone numbers, and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Complete alternate-key injection in the shared owner and snapshot caller (P2) - With only skills.entries.demo.env.SAG_API_KEY configured and requires.anyEnv declaring that key, readiness succeeds but injection rejects SAG_API_KEY as sensitive. The new property is passed to applySkillConfigEnvOverrides, whose parameter type and allowlist builder do not accept or consume it; this also causes an excess-property type error. applySkillEnvOverridesFromSnapshot likewise never forwards skill.anyEnv. Extend the existing owner and both callers while preserving the hard-blocked variable checks.
  • Finish migrating requirement fixtures and exact expectations (P2) - Making anyEnv required leaves existing fixtures and expectations incomplete. Doctor fixtures at doctor-skills.test.ts:109 and :161 omit missing.anyEnv, so the updated summary formatter accesses undefined.length; entry-status.test.ts:109 still expects objects without the emitted field. In onboard-skills.test.ts:84 the new property is absent from the helper's explicit requirements return type, causing an excess-property error. Complete these remaining migrations; the prior fixture finding is only partially resolved.
  • Remove the broken duplicate formatting test (P2) - The added test calls skill with an object, but the helper accepts skill(name: string, overrides). Type checking rejects the call; at runtime the object becomes the name and the eligibility/missing overrides are ignored, so formatting fails instead of testing missing requirements. The existing readiness-formatting case already covers these assertions, so remove this duplicate.
  • Remove the new test's unresolved helper reference (P2) - collectUnavailableAgentSkills is neither imported nor declared in this module. The added test therefore raises ReferenceError and fails type checking. Remove this unrelated restored test, or import the actual owner if retaining a distinct contract.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P2] Complete alternate-key injection in the shared owner and snapshot caller — src/skills/runtime/env-overrides.ts:211
  • [P2] Finish migrating requirement fixtures and exact expectations — src/shared/requirements.ts:6
  • [P2] Remove the broken duplicate formatting test — src/cli/skills-cli.test.ts:126-129

Tests

  • Low-value test src/cli/skills-cli.test.ts: The added missing-requirements test duplicates the existing readiness-formatting case and never supplies a nonempty anyEnv group; remove it.
  • Low-value test src/shared/requirements.test.ts: The added empty-metadata inventory test does not exercise alternate-environment behavior and overlaps the new entry-status empty-metadata test; consolidate at one owner.
  • Low-value test src/skills/discovery/status.test.ts: The restored full-object OS/install assertion exercises existing platform behavior with anyEnv empty; remove the unrelated case.
  • Low-value test src/commands/doctor-skills.test.ts: The added filtering and GitHub-hint cases exercise existing behavior with anyEnv empty; remove these unrelated additions.
  • Missing end-to-end proof: Supply redacted alternate-key delivery through actual fresh and cold-resumed agent sessions, including a saved session upgraded from the latest stable release; no base-fail/head-pass run is shown for the re-ported implementation.
Agent review details

How this fits together

Skill and hook metadata feeds shared eligibility checks; selected skills become session snapshots, while configured credentials pass through the environment-injection owner before agent execution.

flowchart TD
  A[Skill and hook metadata] --> B[Shared requirements evaluation]
  B --> C[CLI Doctor and UI diagnostics]
  B --> D[Selected skill snapshot]
  D --> E[Credential injection owner]
  F[Configured skill credentials] --> E
  E --> G[Agent execution]
Loading

Technical review

Best possible solution:

If sponsored, complete alternate-key delivery through the existing injection owner while preserving sag’s binary-only readiness and existing credential safeguards.

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

Source establishes that an anyEnv-only sensitive credential can satisfy readiness while being rejected during injection; no target code or tests were run during this read-only review.

Is this the best way to solve the issue?

The shared requirements owner is the appropriate location, but the implementation must complete credential propagation and avoid restoring unrelated, broken tests.

Full review comments:

  • [P2] Complete alternate-key injection in the shared owner and snapshot caller — src/skills/runtime/env-overrides.ts:211
    With only skills.entries.demo.env.SAG_API_KEY configured and requires.anyEnv declaring that key, readiness succeeds but injection rejects SAG_API_KEY as sensitive. The new property is passed to applySkillConfigEnvOverrides, whose parameter type and allowlist builder do not accept or consume it; this also causes an excess-property type error. applySkillEnvOverridesFromSnapshot likewise never forwards skill.anyEnv. Extend the existing owner and both callers while preserving the hard-blocked variable checks.
    Confidence: 1
  • [P2] Finish migrating requirement fixtures and exact expectations — src/shared/requirements.ts:6
    Making anyEnv required leaves existing fixtures and expectations incomplete. Doctor fixtures at doctor-skills.test.ts:109 and :161 omit missing.anyEnv, so the updated summary formatter accesses undefined.length; entry-status.test.ts:109 still expects objects without the emitted field. In onboard-skills.test.ts:84 the new property is absent from the helper's explicit requirements return type, causing an excess-property error. Complete these remaining migrations; the prior fixture finding is only partially resolved.
    Confidence: 1
  • [P2] Remove the broken duplicate formatting test — src/cli/skills-cli.test.ts:126-129
    The added test calls skill with an object, but the helper accepts skill(name: string, overrides). Type checking rejects the call; at runtime the object becomes the name and the eligibility/missing overrides are ignored, so formatting fails instead of testing missing requirements. The existing readiness-formatting case already covers these assertions, so remove this duplicate.
    Confidence: 1
  • [P2] Remove the new test's unresolved helper reference — src/commands/doctor-skills.test.ts:152
    collectUnavailableAgentSkills is neither imported nor declared in this module. The added test therefore raises ReferenceError and fails type checking. Remove this unrelated restored test, or import the actual owner if retaining a distinct contract.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f2478e569a15.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 857f470 adds src/shared/requirements.ts:53 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 857f470c8490; files: src/shared/requirements.ts)
  • Shadow: Raw commit 8c9f35c adds src/agents/skills/env-overrides.ts:77 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 8c9f35cdb516; files: src/agents/skills/env-overrides.ts)

PR surface

Source +36, Tests +375, Docs +5. Total +416 across 33 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 12 44 8 +36
Tests 19 383 8 +375
Docs 2 7 2 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 33 434 18 +416

Review metrics

Metric Value Why it matters
New metadata option requires.anyEnv Adds one optional any-of environment requirement shared by skills and hooks, plus an optional saved-snapshot field.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The proposed capability has limited scope and no urgent current-main regression; its implementation and test defects block this PR.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (12 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-14T09:23:47.191Z sha 02cfc06 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-14T10:44:58.955Z sha 02cfc06 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-14T17:38:08.492Z sha 02cfc06 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-14T18:04:49.522Z sha f942a4d :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-14T19:56:36.409Z sha f942a4d :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-22T08:21:45.798Z sha f942a4d :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-26T10:09:14.426Z sha 8d714231b72bc3f555565a8c4e9aa58af2513556 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-05T15:19:06.802Z sha 8d714231b72bc3f555565a8c4e9aa58af2513556 :: needs real behavior proof before merge. :: [P2] [P2] Complete the anyEnv migration in typed CLI fixtures

Reviewed October 16, 2026, 2:06 PM ET / 18:06 UTC (Revision 13).

@Navras98

Copy link
Copy Markdown
Contributor Author

P2 propagation fixed in 8913f07 (rebased on current main). Verified in-tree:

  • Direct path dropped anyEnv: applySkillEnvOverrides passed only primaryEnv + requires.env (src/skills/runtime/env-overrides.ts:246), and the allow-list builder accepted only those two (:150-162).
  • Snapshot path dropped it twice: producer wrote only requiredEnv (src/skills/loading/workspace-skill-prompt.ts:81) and the SkillSnapshot skill shape had no anyEnv field (src/skills/types.ts:139).

So skills.entries.sag.env.SAG_API_KEY with an anyEnv-only declaration was eligible (readiness already any-of) but the key was blocked at runtime — eligible but keyless, exactly as you described.

Fix: applySkillConfigEnvOverrides now also allows anyEnv names; both callers pass them through; snapshot type + producer carry anyEnv; OpenClawSkillMetadata.requires gains the optional anyEnv field. No change to requires.env semantics. New src/skills/runtime/env-overrides.test.ts covers direct injection, snapshot injection, and that unrelated keys stay blocked. Local gates green (oxfmt --check, oxlint 0 errors, git diff --check); watching CI for the full suite.

On scope: kept the generic anyEnv propagation rather than a sag-only carve-out — the PR's direction is generic alternates, and a sag-only exception would leave the same trap for the next skill. Happy to narrow if you prefer.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. labels Sep 14, 2026
@Navras98

Copy link
Copy Markdown
Contributor Author

P1 conceded and fixed in 02cfc06e1 — verified in-tree:

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@Navras98

Copy link
Copy Markdown
Contributor Author

Generic (non-sag) proof added to the body from this head (02cfc06e1), all through real entrypoints:

  • skills check with neither key: proof-anyenv (anyEnv: PROOF_KEY_A, PROOF_KEY_B) under missing
  • skills check / skills info --json with only the alternate PROOF_KEY_B: eligible, missing.anyEnv: []
  • Injection (direct + snapshot) and always-blocked guard: unit-covered; 335/335 touched-area tests green locally
  • UI: before/after screenshots of the real Skills page captured in headless Chromium — Missing requirements: env:any of (PROOF_KEY_A, PROOF_KEY_B) appears after the one-line change, absent before. Files held locally (no CLI upload path); will drag-drop on request.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 14, 2026
@Navras98

Copy link
Copy Markdown
Contributor Author

Shard-failure attribution from finished CI logs (no code change):

  • small-12 (docker-build-helper.test.ts expects clawhub:@openclaw/kitchen-sink in the Docker plugin sweep): reproduced failing on clean upstream/main (1 failed / 355 skipped, zero of this PR involved) — broken upstream, unrelated to skills/config.
  • large-12 (openclaw-agent-db-module-identity.test.ts): passes locally on clean main (28s run); failure is in src/state ownership/reclamation, an area this PR never touches — flake candidate.

Touched-area gates stay green locally (335/335 + lint/format, see above). These two shards need a maintainer re-run, not a code fix.

@Navras98

Copy link
Copy Markdown
Contributor Author

Body updated with the missing proof (head f942a4d): fresh + cold-resumed alternate-key delivery via the real snapshot entrypoint (separate processes, redacted), pre-change snapshot compatibility, always-blocked guard, before/after generic Skills UI screenshots (real headless-Chromium rendering), generic-consumer case for the deferral question, and CI attribution (preflight fails on the upstream shard-harness bug, run 34877456462). No code changed.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@Navras98

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Re-requesting review — 7 days since the last re-review request (14 Sep) with no follow-up review posted. The PR body already carries the requested real-behavior proof plus CI shard-failure attribution (failing lanes are upstream harness breakage, reproduced on clean upstream/main, untouched by this diff). No code change since last request; asking for a fresh review pass.

@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. label Sep 26, 2026
@barnacle-openclaw

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@barnacle-openclaw barnacle-openclaw Bot added the stale Marked as stale due to inactivity label Oct 15, 2026
Rebase the alternate-credentials capability onto the refactored requirements architecture (shared formatCliRequirements helper, generic eligibility, worker-side snapshot projection): anyEnv flows through evaluation, metadata, frontmatter, env-overrides, snapshot and CLI/UI rendering, with fixtures carrying anyEnv: [].
@Navras98

Copy link
Copy Markdown
Contributor Author

Re-ported onto current main as a single commit (c04d1aa, 36 files, MERGEABLE). What changed vs the September base:

  • Requirements evaluation moved with main's refactored architecture: anyEnv flows through the shared Requirements type, metadata pick, evaluator (with missing.anyEnv), generic eligibility, and evaluateRuntimeEligibility.
  • Rendering centralized: the shared formatCliRequirements helper now covers anyEnv (one place, skills + hooks CLIs) instead of duplicated inline blocks; skill/hook requirement groups list the Any-environment row; UI computeSkillMissing renders env:any of (...).
  • Snapshot projection carries anyEnv through main's worker-side projector (cold-resumed sessions keep the field — pre-change snapshots simply omit it, evaluation treats absent as []).
  • P2 fixture migration done: shared fixtures plus skills-cli.commands, hooks-status, and onboard fixtures carry anyEnv: []; pinned oxfmt 0.72.0 + repo config clean locally on touched files.

Still open (flagged honestly, needs others not me):

  1. Fresh/resumed-session lifecycle proof with real agent execution — no session harness here; will run it where one exists.
  2. Owner decision on the generic-contract sponsorship question.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 16, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Oct 17, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale after 7 days without qualifying human activity.
Without new human activity, Barnacle may close it as not planned 7 days after this message was posted. This is administrative inactivity cleanup, not a claim that the problem is fixed.
A human update restarts the inactivity clock; a new PR head also restarts it. A maintainer can add no-stale for a durable hold, or bad-barnacle to suppress Barnacle. Remove the hold when work can resume.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Oct 24, 2026
@openclaw-barnacle

Copy link
Copy Markdown

Closing due to inactivity.
If you believe this PR should be revived, post in #clawtributors on Discord to talk to a maintainer.
That channel is the escape hatch for high-quality PRs that get auto-closed.

@openclaw-barnacle openclaw-barnacle Bot closed this Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui cli CLI command changes commands Command implementations docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M stale Marked as stale due to inactivity status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant