Repository navigation
Commit 0fbe82b
authored
feat(plugin): synapse-coder-reporter learning-loop integration + companion plugins (#1)
* feat(plugin): add synapse-coder-reporter learning-loop plugin
Detects LSP diagnostics after edit/write/apply_patch, holds the failing
edit as pending, and reports an original->corrected pair to the Synapse
Coder staging MCP (coder_report_correction) only when a follow-up
same-file edit lands clean — the live schema requires non-empty
original/corrected, so one-sided detections are dropped after 30 min.
- Env-var opt-in gate (SYNAPSE_CODER_REPORTER_ENABLED, default off)
with first-use TUI toast (once-per-project marker)
- Offline queue (.opencode/synapse-coder-queue.json) with retry on
load + 5-min timer; fire-and-forget hooks (no await on report path)
- MCP wiring for synapse-coder + Alterspective servers in
.opencode/opencode.jsonc (local entries fixed to schema shape)
- 28 tests covering detection, pairing rules, opt-in, queue, model
tracking, fire-and-forget, first-use toast
- Plan/evidence docs under docs/implementation/current/SYN-001-*
* feat(plugin): add alterspective-rag-standards system-prompt plugin
Statically injects Alterspective standards awareness (rule-ID citation,
RAG-first routing via rag_search/rag_ask, standards index pointers) into
the chat system prompt via the experimental.chat.system.transform hook.
Opt-out via ALTERSPECTIVE_STANDARDS_INJECTION_DISABLED=true or
ALTERSPECTIVE_STANDARDS_INJECTION_ENABLED=false. 6 tests.
* feat(scripts): add health/version sidecar for the opencode server
Standalone HTTP sidecar exposing /health and /version (upstream probe
optional via OPENCODE_SERVER_URL) — the fork-local fallback for
operational visibility, since adding routes would touch high-churn
upstream server files. 5 tests.
* docs: mark ISS-002 resolved (global payload doc corrected + deployed)1 parent a90c2b8 commit 0fbe82b
31 files changed
Lines changed: 2557 additions & 1 deletion
File tree
- .opencode
- plugin
- scripts
- docs/implementation/current/SYN-001-synapse-coder-reporter
- evidence
- modules/synapse-coder-reporter
- packages/opencode/test/plugin
- alterspective-rag-standards
- synapse-coder-reporter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
16 | 59 | | |
17 | 60 | | |
18 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments