Skip to content

perf(sync): render all skills in one bash process per adapter - #155

Merged
danielvm-git merged 1 commit into
mainfrom
fix/srp-engine-single-pass-render-rebased
Oct 25, 2026
Merged

danielvm-git merged 1 commit into
mainfrom
fix/srp-engine-single-pass-render-rebased

Conversation

@danielvm-git

Copy link
Copy Markdown
Owner

Fixes #138. Rebased on top of #137 (merged).

What

  • _write_ir_stream(records) — serialises all skill IRs once to a NUL-delimited temp file
  • render_all(records, adapters, repo_root) — spawns one bash per adapter (uses resolve_bash() from fix(srp): resolve bash via PATH so adapters run on Windows #137, not a re-implementation)
  • scripts/lib/adapter-render-all.sh — bash driver that sources an adapter and calls render_skill() per IR record
  • main() refactored: collect records list → render_all() → OKF loop if needed
before: 1,539 bash + ~4,600 jq  →  after: 19 bash + 0 jq

Changes from original #139

Uses resolve_bash() (added by #137) inside render_all() instead of inlining the same PATH-resolution logic.

Tests

30 tests, all passing (python3 tests/test_srp_engine.py). New coverage: _write_ir_stream field layout, render_all batching (1 process per adapter, not per skill×adapter), failure/missing-adapter exits, bash driver end-to-end.

Co-authored-by: panesofglass [email protected]

🤖 Generated with Claude Code

Fixes #138.

before: 1,539 bash + ~4,600 jq  →  after: 19 bash + 0 jq

Rebased on top of fix/srp-engine-bash-path (#137): render_all() uses
resolve_bash() rather than inlining the same PATH-resolution logic.

Co-authored-by: panesofglass <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@danielvm-git
danielvm-git merged commit 1b56463 into main Oct 25, 2026
3 checks passed
@danielvm-git
danielvm-git deleted the fix/srp-engine-single-pass-render-rebased branch October 25, 2026 11:19
github-actions Bot pushed a commit that referenced this pull request Oct 25, 2026
## [2.88.11](v2.88.10...v2.88.11) (2026-10-25)

### Bug Fixes

* **guard:** resolve git branch per command target, not process cwd ([#154](#154)) ([07c7498](07c7498))
* **lockfile:** add missing slash in skill path + self-contained resolve_repo_root ([#156](#156)) ([04bda15](04bda15))
* **omp-hooks:** inGitRepo bail-early, accept type!(scope) form, echo subject ([#157](#157)) ([9e1b11a](9e1b11a)), closes [#147](#147) [#151](#151) [#151](#151)

### Performance Improvements

* **sync:** render all skills in one bash process per adapter ([#155](#155)) ([1b56463](1b56463)), closes [#137](#137)
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.88.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

danielvm-git added a commit that referenced this pull request Oct 30, 2026
…lit oversized files (#171)

* fix(compliance): restore akita.feature to 0 FAIL — dedupe helpers, split oversized files

akita.feature sat at PASS 17 / FAIL 2 on main. The 94% global gate
(97% overall) hid it. Root cause: duplicate bash function names
(pass/fail/run_fixture/run_verify_cmd) added in #118, #123/#125 and #161,
and two files over the 300-line cap (srp-engine.py via #155,
run-story-verify.sh via #161). The checks were right, so the code is fixed:

- lib/test-assertions.sh gains ta_err/ta_ok; the validate-*.sh gates and
  two test scripts use the shared ta_* helpers.
- run_fixture -> ggr_run_fixture; run-story-verify's run_verify_cmd ->
  run_memoized_chain, moved with its memo helpers to lib/story-verify-memo.sh.
- render_okf_concept moves to lib/srp_engine_okf.py.

Compliance is now 98 PASS / 0 FAIL (100%). Exit-code policy is unchanged.

BUG-2026-10-30-compliance-akita-masked

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(mcp): default OMP_PLUGIN_ROOT so bigpowers-mcp starts outside OMP (#168) (#169)

The shipped .mcp.json used ${OMP_PLUGIN_ROOT} with no default. omp
injects it, but Claude Code project scope does not and leaves an unset
${VAR} literal, so it spawned node '${OMP_PLUGIN_ROOT}/...' and the
server failed with CONNECTION_CLOSED. Both references now use
${OMP_PLUGIN_ROOT:-.}, which omp ignores and other hosts resolve from
the project root.

mcp-smoke.ts now expands the manifest per host profile (omp, claude-code)
instead of hard-coding the entry, and validate-mcp-package.sh rejects a
reference without a :- default.

The failures reported in #168 (bare node ENOENT, missing SDK) were the
pre-2.88.4 manifest; re-verified fixed on a packed 2.88.16 install, so
BUG-2026-09-10-pi-mcp-omp-startup is marked fixed.

Closes #168

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
github-actions Bot pushed a commit that referenced this pull request Oct 30, 2026
## [2.88.17](v2.88.16...v2.88.17) (2026-10-30)

### Bug Fixes

* **compliance:** restore akita.feature to 0 FAIL — dedupe helpers, split oversized files ([#171](#171)) ([4ed9a26](4ed9a26)), closes [#118](#118) [123/#125](#125) [#161](#161) [#155](#155) [#161](#161) [#168](#168) [#169](#169) [#168](#168) [#168](#168)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sync-skills --all spawns ~1,539 bash + ~4,600 jq processes; exhausts resources and hangs on constrained Windows sessions

1 participant