Skip to content

feat: P0/P1/P2 levers — LSP backend, bench harness, skills compiler, policy/audit, cache, opencode plugin, CI#21

Merged
Delqhi merged 2 commits into
mainfrom
feat/generators-v2
May 30, 2026
Merged

feat: P0/P1/P2 levers — LSP backend, bench harness, skills compiler, policy/audit, cache, opencode plugin, CI#21
Delqhi merged 2 commits into
mainfrom
feat/generators-v2

Conversation

@Delqhi
Copy link
Copy Markdown
Contributor

@Delqhi Delqhi commented May 30, 2026

Implements all P0/P1/P2 improvements from the SOTA gap analysis.

P0 — Adoption & Erzwingbarkeit

  • .opencode/plugin/sin.ts — lifecycle hooks auto-run semantic_diff + architectural_debt after file edit, block 'done' when Oracle is red.
  • bench.py + sin bench — SWE-bench-Lite A/B harness (control vs sin); supports dry/opencode/codex/hermes runners.

P1 — Functional SOTA Parity

  • lsp_backend.py — multilspy LSP (pyright/gopls/rust-analyzer/…) + tree-sitter fallback + incremental cache.
  • skills.py + skills/*.md — portable skill compiler (opencode/codex/claude native formats).

P2 — Maturity

  • policy.py — risk-gating + hash-chain audit log + path sandboxing.
  • cache.py — content-hash graph cache under .sin/cache/.
  • lsp_bootstrap.py — language detection + LSP server status.
  • safety.py — hardened subprocess + prompt sanitization.
  • budget.py — output trimming (MAX_LIST/MAX_STR).
  • CI workflows — PyPI Trusted Publishing, PR merge gate.
  • BENCHMARKS.md — reproducible methodology.

New CLI

sin bench, sin skills, sin policy, sin doctor

Tests

45 new tests, all green (Python 3.13).

SIN-Code Bot and others added 2 commits May 30, 2026 07:51
…ss, policy/audit, cache, safety, budget, opencode plugin, CI

Hebel 1 (P0): .opencode/plugin/sin.ts — enforced SIN workflow via opencode hooks
Hebel 2 (P0): bench.py + sin bench CLI — SWE-bench-Lite A/B harness
Hebel 3 (P1): lsp_backend.py — multilspy LSP + tree-sitter fallback + cache layer
Hebel 4 (P1): skills.py + skills/*.md — portable skill compiler (opencode/codex/claude)

New modules: policy.py (risk-gating + hash-chain audit log + path sandbox)
             cache.py (incremental graph cache under .sin/cache/)
             lsp_bootstrap.py (language detection + LSP server status for sin doctor)
             safety.py (hardened subprocess + prompt injection sanitization)
             budget.py (trim() caps all MCP tool outputs)

CLI: sin bench, sin skills, sin policy, sin doctor
Infra: pyproject.toml -> hatchling + full optional-deps matrix
       .github/workflows/release.yml + sin-verify.yml
       BENCHMARKS.md (reproducible benchmark docs)
Tests: 45 new tests, all green (Python 3.13)
# Conflicts:
#	pyproject.toml
#	src/sin_code_bundle/cli.py
@Delqhi Delqhi merged commit 800556d into main May 30, 2026
1 check failed
@Delqhi Delqhi deleted the feat/generators-v2 branch May 30, 2026 08:18
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