Skip to content

feat: auto-load marketplace skills in opencode config - #199

Merged
atrawog merged 1 commit into
mainfrom
feat/opencode-marketplace-skills
Sep 12, 2026
Merged

atrawog merged 1 commit into
mainfrom
feat/opencode-marketplace-skills

Conversation

@atrawog

@atrawog atrawog commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Wire the umbrella opencode config to auto-load the full marketplace skill corpus. opencode.json gains:

"skills": {
  "paths": ["marketplace"]
}

so opencode's skill loader recursively discovers all 319 SKILL.md files directly from the marketplace/ submodule checkout — no copies, no symlinks, no edits inside any submodule. Previously the project config declared no skill source, so an opencode session surfaced only the built-in skill and agents had to read SKILL.md files by path as a fallback.

How tested

task verify (exit 0, run on the final tree with the change in place):

task: [verify] bash scripts/verify-pins.sh
check-policy-b: OK — 6 distro pins equal charly's gitlinks
verify-pins: OK — 400 submodules, policy B holds

task harness (exit 0):

task: [harness] bash scripts/check-harness-parity.sh
check-harness-parity: OK — 5 shared harness files identical to charly/

Live changed-path execution — opencode debug config (exit 0, no ConfigInvalidError; opencode hard-fails on invalid config), merged config contains:

"skills": {
  "paths": [
    "marketplace"
  ]
}

Live changed-path execution — opencode debug skill (exit 0): 320 skills loaded (319 from marketplace/... + 1 built-in customize-opencode), all with descriptions, including git-workflow and root-cause-analyzer.

Skill-corpus pre-scan (same **/SKILL.md walk the loader performs): 319 files found, 0 unloadable (every file carries name + description frontmatter with name matching its folder, so none is filtered out).

Post-commit check: git status --short clean on the branch, git show --stat HEAD lists exactly opencode.json | 3 +++.

N/A — harness-config change, no runtime target: no disposable bed and no fresh rebuild apply.

Rulebook compliance

  • Rule 1 (never edit inside a submodule): only umbrella-root opencode.json changed; marketplace/ entered read-only (git status inside it clean).
  • Rule 2 (git op rule): all git driven from the umbrella root; no worker rooted in a submodule.
  • Rule 8 (harness parity): opencode.json is a fork by design (not in the shared diff list); task harness still green, no silent fork.
  • R3 (no duplication): one skill source (the marketplace checkout), no copied/symlinked farm.
  • R6 (git safety): status checked before acting; feat/ branch, no force-push, no direct push to main, PR-only landing.
  • R7 (prove the gate): task verify + task harness outputs pasted above, run on the final tree; the changed path executed live via opencode debug.
  • Cross-PR sweep: only other open PR at the time was chore: sync gitlinks #198 (chore: sync gitlinks, gitlink-only paths) — zero file overlap, no coordination needed.

Change classification

  • Change class: harness-config only (opencode.json at the umbrella root; no code, no pins, no submodule content, no permission-rule changes).
  • Verification gate: task verify (pinning gate) + task harness (parity) + live opencode debug config / opencode debug skill runs against the changed path.
  • Attribution tier: fully tested and validated (task verify passed on the final tree; changed path executed live).

Assisted-by: opencode opencode-go/deepseek-v4.1-flash (fully tested and validated)

Point skills.paths at the marketplace/ submodule checkout so opencode discovers all 319 SKILL.md files automatically. No copies, no submodule edits.

Assisted-by: opencode opencode-go/muse-spark-1.3-contributor (fully tested and validated)
@github-actions

Copy link
Copy Markdown
Contributor

validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)

The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.

Root cause. A NON-STREAMING request under a WHOLE-GENERATION deadline: plugin-review POSTs with no stream:true (candy/plugin-review/llm.go:92), so response headers arrive only when the ENTIRE generation finishes, all under one http.Client{Timeout} (llm.go:80) whose built-in default is 5 minutes (review.go:28). The review runs in a 20-turn tool loop that APPENDS the tool results of every turn (the PR diff/files) to the context and retries the whole loop 3 times: turn 1 completes, and turn 2 — carrying the enlarged context — fails in ONE OF TWO OBSERVED ways: it returns EMPTY content (turn 2: final content len=0, observed on 2 of the 3 attempts in run 34682776608) or it exceeds the 5-minute cap (observed on the third). Both are one defect class — an unbounded, non-streaming request whose context grew. The endpoint answered 405 in 0.18s in the same window — there is no throttled egress.

Durable remedy.

  1. this workflow now PASSES the cap through — AI_REVIEW_ATTEMPT_TIMEOUT (org-settable, 900s default) — raise it if a large context still exceeds it;
  2. plugin-review: stream the completion, set an explicit http.Transport, bound the tool-result payloads, and retry the FAILED TURN rather than the whole loop (owner: plugin-review).

A run that produced no verdict keeps this required check RED: unreviewed code must never merge.

Diagnostics (tail of the review log)
Downloading github.com/opencharly/plugin-review:main...
plugin-review: attempt 1/3 — provider=ollama model=deepseek-v4.1-flash base_url=https://ollama.com/v1
plugin-review: turn 1: 4 tool call(s)
plugin-review: attempt 1 failed: Post "https://ollama.com/v1/chat/completions": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
plugin-review: attempt 2/3 — provider=ollama model=deepseek-v4.1-flash base_url=https://ollama.com/v1
plugin-review: turn 1: 4 tool call(s)
plugin-review: attempt 2 failed: Post "https://ollama.com/v1/chat/completions": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
plugin-review: attempt 3/3 — provider=ollama model=deepseek-v4.1-flash base_url=https://ollama.com/v1
plugin-review: turn 1: 4 tool call(s)
plugin-review: attempt 3 failed: LLM 503: upstream connect error or disconnect/reset before headers. reset reason: connection termination
review: [step: review] all 3 attempts failed to produce a Verdict line

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 9f4fde3dc9af059e63a7bdef803ee83ccb577907 (branch: feat/… — branch name not returned by the tools)

Security screen: PASS — diff is 3 added lines in umbrella-root opencode.json (skills.paths); no secrets, no egress, no new deps, no permission-rule change, no touch to the pre-push/pre-commit gates, branch protection, this validator's spec, or the rulebook's landing/attribution rules. No embedded directive aimed at the reviewer (T2 clean).
Checklist: All applicable rules PASS or NA. Change class = harness-config only (no code/config-gate, no candy, no CUE/proto, no Go) → ADE/SDD/R8/R9/B18 NA. Placement: CORRECT (umbrella harness config, not charly core/sdk/candy). Body accounts for the diff exactly (opencode.json | 3 +++), pastes task verify / task harness output, states live changed-path execution (opencode debug config / debug skill → 320 = 319 marketplace + 1 built-in, internally consistent), and ends with the required *Assisted-by: …* line.
Comment intake: 1 comment — github-actions[bot] INCONCLUSIVE (engine-defective, no verdict produced): verified-non-blocking — it explicitly reports no code finding and is not a BLOCK; it concerns the review engine's non-streaming timeout, not this diff, and per ground rule 5 a prior/absent verdict is not my gate.

Verdict: PASS


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 9f4fde3dc9af059e63a7bdef803ee83ccb577907 (branch: feat/… — branch name not returned by the tools)

Security screen: PASS — diff is 3 added lines in umbrella-root opencode.json (skills.paths); no secrets, no egress, no new deps, no permission-rule change, no touch to the pre-push/pre-commit gates, branch protection, this validator's spec, or the rulebook's landing/attribution rules. No embedded directive aimed at the reviewer (T2 clean).
Checklist: All applicable rules PASS or NA. Change class = harness-config only (no code/config-gate, no candy, no CUE/proto, no Go) → ADE/SDD/R8/R9/B18 NA. Placement: CORRECT (umbrella harness config, not charly core/sdk/candy). Body accounts for the diff exactly (opencode.json | 3 +++), pastes task verify / task harness output, states live changed-path execution (opencode debug config / debug skill → 320 = 319 marketplace + 1 built-in, internally consistent), and ends with the required *Assisted-by: …* line.
Comment intake: 1 comment — github-actions[bot] INCONCLUSIVE (engine-defective, no verdict produced): verified-non-blocking — it explicitly reports no code finding and is not a BLOCK; it concerns the review engine's non-streaming timeout, not this diff, and per ground rule 5 a prior/absent verdict is not my gate.

Verdict: PASS


ollama/deepseek-v4.1-flash — action-review.

View action run

github-actions Bot pushed a commit to opencharly/.github that referenced this pull request Sep 12, 2026
… 20) (#98)

* validator: fail-hard wall clock on the validate job (timeout-minutes: 20)

Caps a provider-unanswered review at 20 minutes instead of burning the full 3x900s attempt budget (or the 360-minute GitHub default) with zero interim output. RCA: opencharly/opencharly#199.

Assisted-by: opencode opencode-go/muse-spark-1.3-contributor (syntax check only)

* validator: zero retries by default, 300s attempt cap

Wire AI_REVIEW_MAX_ATTEMPTS=1 (opencharly/plugin-review#5, engine PR opencharly/plugin-review#6; inert until the knob-carrying engine release is welded and TAG bumped) and restore the 300s attempt default. Also corrects the PR attribution tier to analysed on a live system.

Assisted-by: opencode opencode-go/muse-spark-1.3-contributor (analysed on a live system)

* validator: reconcile evidence claims, update harness to fail-fast intent

Fixes the round-2 verdict blocks: cumulative stat correction, 15-min current worst case (5-6 min post-activation), 13m19s reconciliation, knob-aware echo. Updates the offline harness pins (900s->300s defaults) and adds wall-clock + attempts coverage. Local harness: 107/107 PASS.

Assisted-by: opencode opencode-go/muse-spark-1.3-contributor (analysed on a live system)

* validator: harden harness attempt assertions (own namespace)

The new AI_REVIEW_MAX_ATTEMPTS assertions reused ns_unset bound inside the preceding ATTEMPT_TIMEOUT guard; bind their own empty namespace so a missing TIMEOUT entry can never surface as NameError. Harness still 107/107 local.

Assisted-by: opencode opencode-go/muse-spark-1.3-contributor (analysed on a live system)

* validator: align cap-justification comment with observed evidence

Distinguish observed REVIEWS (38s-13m19s) from the single 43m54s provider-unanswered burn the cap exists to kill (run 34688719317, INCONCLUSIVE). Fixes the R1 comment-vs-paste divergence.

Assisted-by: opencode opencode-go/muse-spark-1.3-contributor (analysed on a live system)

---------

Co-authored-by: atrawog <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 9f4fde3dc9af059e63a7bdef803ee83ccb577907 (branch: not returned by the tools)

Security screen: PASS — diff is 3 added lines in umbrella-root opencode.json (skills.paths: ["marketplace"]); no secrets, no egress, no new deps/pins, no CI-script edit, and the adjacent permission allowlist is untouched (T3/T4 preserve the gate). No embedded directive aimed at the reviewer (T2 clean); the PR does not touch this validator's spec or the rulebook (T1).
Checklist: All applicable rules PASS or NA. Class = harness-config only (no Go, no candy, no CUE/proto, no generation, no runtime target) → ADE/SDD/R8/R9/B18 NA; R10 NA with stated reason (no disposable bed / rebuild applies) and the changed path executed live (opencode debug config / debug skill, 320 = 319 marketplace + 1 built-in, internally consistent with the 319-file pre-scan). Body accounts for the diff exactly (opencode.json | 3 +++), pastes task verify + task harness output, states git status checked, and ends with the required *Assisted-by: …* line. Placement: CORRECT (umbrella harness config, not charly core/sdk/candy). One atomic commit.
Comment intake: (1) github-actions[bot] INCONCLUSIVE — verified-non-blocking: explicitly reports no code finding, concerns the review engine's non-streaming timeout, not this diff; per ground rule 5 a prior/absent verdict is not my gate. (2)–(3) prior github-actions[bot] PASS (duplicate) — no authority; independently re-derived against the current diff/body and reached the same result.

Verdict: PASS


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 9f4fde3dc9af059e63a7bdef803ee83ccb577907 (branch: not returned by the tools)

Security screen: PASS — diff is 3 added lines in umbrella-root opencode.json (skills.paths: ["marketplace"]); no secrets, no egress, no new deps/pins, no CI-script edit, and the adjacent permission allowlist is untouched (T3/T4 preserve the gate). No embedded directive aimed at the reviewer (T2 clean); the PR does not touch this validator's spec or the rulebook (T1).
Checklist: All applicable rules PASS or NA. Class = harness-config only (no Go, no candy, no CUE/proto, no generation, no runtime target) → ADE/SDD/R8/R9/B18 NA; R10 NA with stated reason (no disposable bed / rebuild applies) and the changed path executed live (opencode debug config / debug skill, 320 = 319 marketplace + 1 built-in, internally consistent with the 319-file pre-scan). Body accounts for the diff exactly (opencode.json | 3 +++), pastes task verify + task harness output, states git status checked, and ends with the required *Assisted-by: …* line. Placement: CORRECT (umbrella harness config, not charly core/sdk/candy). One atomic commit.
Comment intake: (1) github-actions[bot] INCONCLUSIVE — verified-non-blocking: explicitly reports no code finding, concerns the review engine's non-streaming timeout, not this diff; per ground rule 5 a prior/absent verdict is not my gate. (2)–(3) prior github-actions[bot] PASS (duplicate) — no authority; independently re-derived against the current diff/body and reached the same result.

Verdict: PASS


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 9f4fde3dc9af059e63a7bdef803ee83ccb577907 (branch: not returned by the tools)

Security screen: PASS — diff is exactly 3 added lines in umbrella-root opencode.json (skills.paths: ["marketplace"]); no secrets, no egress, no new deps/pins, no CI-script edit, adjacent permission allowlist untouched, no touch to the pre-push/pre-commit gates, branch protection, this validator's spec, or the rulebook's landing/attribution rules (T1/T3/T4 clean). No embedded directive aimed at the reviewer (T2 clean).
Checklist: All applicable rules PASS or NA. Class = harness-config only (no Go, no candy, no CUE/proto, no generation, no runtime target) → ADE/SDD/R8/R9/B18 NA; R10 NA with stated reason (no disposable bed / rebuild applies) and the changed path executed live (opencode debug config / debug skill → 320 = 319 marketplace + 1 built-in, internally consistent with the 319-file pre-scan). Body accounts for the diff exactly (opencode.json | 3 +++), pastes task verify + task harness output, states git status checked, and ends with the required *Assisted-by: …* line. Placement: CORRECT (umbrella harness config, not charly core/sdk/candy). One atomic commit.
Comment intake: (1) github-actions[bot] INCONCLUSIVE — verified-non-blocking: explicitly reports no code finding, concerns the review engine's non-streaming timeout, not this diff; per ground rule 5 a prior/absent verdict is not my gate. (2)–(5) prior github-actions[bot] PASS (duplicated pairs) — no authority; independently re-derived against the current diff/body and reached the same result.

Verdict: PASS


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 9f4fde3dc9af059e63a7bdef803ee83ccb577907 (branch: not returned by the tools)

Security screen: PASS — diff is exactly 3 added lines in umbrella-root opencode.json (skills.paths: ["marketplace"]); no secrets, no egress, no new deps/pins, no CI-script edit, adjacent permission allowlist untouched, no touch to the pre-push/pre-commit gates, branch protection, this validator's spec, or the rulebook's landing/attribution rules (T1/T3/T4 clean). No embedded directive aimed at the reviewer (T2 clean).
Checklist: All applicable rules PASS or NA. Class = harness-config only (no Go, no candy, no CUE/proto, no generation, no runtime target) → ADE/SDD/R8/R9/B18 NA; R10 NA with stated reason (no disposable bed / rebuild applies) and the changed path executed live (opencode debug config / debug skill → 320 = 319 marketplace + 1 built-in, internally consistent with the 319-file pre-scan). Body accounts for the diff exactly (opencode.json | 3 +++), pastes task verify + task harness output, states git status checked, and ends with the required *Assisted-by: …* line. Placement: CORRECT (umbrella harness config, not charly core/sdk/candy). One atomic commit.
Comment intake: (1) github-actions[bot] INCONCLUSIVE — verified-non-blocking: explicitly reports no code finding, concerns the review engine's non-streaming timeout, not this diff; per ground rule 5 a prior/absent verdict is not my gate. (2)–(5) prior github-actions[bot] PASS (duplicated pairs) — no authority; independently re-derived against the current diff/body and reached the same result.

Verdict: PASS


ollama/deepseek-v4.1-flash — action-review.

View action run

@atrawog
atrawog merged commit 6a12cd4 into main Sep 12, 2026
1 of 2 checks passed
@atrawog
atrawog deleted the feat/opencode-marketplace-skills branch September 12, 2026 12:09
charly-auto-merge Bot added a commit that referenced this pull request Sep 12, 2026
github-actions Bot pushed a commit that referenced this pull request Nov 19, 2026
… layer-strata -> marketplace chain (#1192)

`./charly/bin/charly task sync` — this repo's ONE sanctioned advance, which moves
EVERY pin it declares — advanced 13 pins and re-derived the harness skill
bindings from the corpus it advanced:

    charly            0e2ade1e458f -> 679f6245c6f2  (charly main; the tree the distro-* EDGES are judged from)
    distro-cachyos    7f0c6c15fe5d -> ba2c187a1626  (distro-cachyos#209's CDI VM-driver drop, #199, #211, #212)
    distro-fedora     01887aee5c9a -> e9696d3e85f8  (distro-fedora#129, #131 — the same drop on the Fedora side)
    layer-cdi         53c2e2674195 -> 3da14b8bf168
    layer-cuda        219f643b404a -> 9873b0249e8a
    layer-nvidia      c5378193bddc -> cb44d7f40662
    layer-python-ml   d9c224db3df2 -> 2bf43b5ed830
    layer-strata      3639a7cd003e -> d4008fd642c0
    marketplace       4eadbbb04049 -> 2f26c440ca18
    plugin-deploy-pod 68274c012361 -> 95c65da1f71a
    pod-cdi           78791938640d -> b979dd79a7ff
    pod-comfyui       fdb344dc09fa -> e09c84e26043
    pod-wayvnc        69cfd3832123 -> e44602e95594

plus `.dsh/skills/cdi` and `.dsh/skills/cdi-layer`, the two bindings the advanced
corpus now publishes.

The producer-first chain the umbrella's own currency reading named —
`layer-strata -> marketplace -> distro-cachyos -> distro-fedora` — is the same
chain the wave walked in that order, and the `distro-*` edges are now re-pinned
from charly's NEW tree (679f6245), which records `box/cachyos` =
`ba2c187a1626b2e584190a5daa57a7a7768000c6` and `box/fedora` =
`e9696d3e85f841ba32c7ea7aa6955197406fb806`. That is the hop that could not be
made before: the edge is judged by the `pinned_from: charly` checkout, so the
`charly` gitlink has to move with the distro ones (#1182).

The `plugin-deploy-pod` advance moved the bytes under one affirmed line citation
(`design/cite-baseline.tsv`, row `containerd namespace per deployment` ->
`plugin-deploy-pod/candy/plugin-deploy-pod/engine_ops.go:139-146`), which the
pre-push design-cite control caught. The range still shows the SAME construct it
was affirmed against (`engineDefaultRuntime`) — the anchor is unchanged and only
the digest moves (`932fc1ea7283e693` -> `4038322045b955e6`) — so the row is
re-affirmed to the new bytes, and `--emit-baseline` differs from the committed
file in exactly that one line (181 rows before and after: the census is neither
raised nor lowered).

Agent: `edge-1182` · DeepSeek Harness session `a8d6ae4d-d0e0-4b37-8e6c-58081b9e6040`
Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)
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.

1 participant