Commit 620eff1
feat(cartridges): sync bug-filing-mcp adapter/ into the bundled snapshot (#286)
<!--
SPDX-License-Identifier: CC-BY-SA-4.0
-->
## Summary
Syncs the bundled `bug-filing-mcp` cartridge to match the canonical
cartridge's new `adapter/` completion (companion PR in
`boj-server-cartridges`), and documents the
ABI=Idris2/FFI=Zig/Adapter=Zig baseline in `.claude/CLAUDE.md`.
## Changes
- `cartridges/bug-filing-mcp/adapter/` (new) — verbatim sync of the
unified protocol-bridge adapter (ADR-0004 internal-only,
transaction-gated, REST/SSE/GraphQL/gRPC-compat).
- `cartridges/bug-filing-mcp/abi/BugFilingMcp/SafeBugFiling.idr` —
synced exposure-gate proof.
- `cartridges/bug-filing-mcp/ffi/bug_filing_mcp_ffi.zig` — synced `pub
export` fix (Zig 0.15 cross-module import requirement).
- `.claude/CLAUDE.md` — the baseline documented, grounded in this repo's
own cartridge conventions.
## RSR Quality Checklist
### Required
- [x] Tests pass (`idris2 --typecheck` clean; `zig build test` green for
ffi + adapter; `boot_smoke` still OK — 68 tools)
- [x] Code is formatted
- [x] Linter is clean (no new warnings or errors)
- [x] No banned language patterns (no TypeScript, no npm/bun, no
Go/Python)
- [x] No `unsafe` blocks without `// SAFETY:` comments
- [x] No banned functions (`believe_me`, `unsafeCoerce`, `Obj.magic`,
`Admitted`, `sorry`) — `SafeBugFiling.idr` remains `%default total` with
zero escape hatches
- [x] SPDX license headers present on all new/modified source files
- [x] No secrets, credentials, or `.env` files included
### As Applicable
- [ ] `.machine_readable/STATE.a2ml` — no project-state change
(catalogue content only)
- [ ] `.machine_readable/ECOSYSTEM.a2ml` — no integration change
- [ ] `TOPOLOGY.md` — no architecture change
- [ ] `CHANGELOG` — deferring to the squash-merge summary
- [x] New dependencies reviewed — none added
- [x] ABI/FFI changes validated (`src/abi/` and `ffi/zig/` consistent) —
this PR only touches the bundled cartridge snapshot, not the server's
own core ABI/FFI
## Testing
Verified independently, not just copied: `idris2 --typecheck` clean
(0.7.0); `zig build test` green for both `ffi/` and `adapter/` (0.15.2);
`deno run mcp-bridge/tests/boot_smoke.js` still `OK:
serverInfo.name=boj-server, tools=68, exit=0`.
## Refs
Companion PR in `boj-server-cartridges` (canonical adapter completion,
extends #85). Part of #274.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_017LDhR8gtnittEWSafunnrq
---
_Generated by [Claude
Code](https://claude.ai/code/session_017LDhR8gtnittEWSafunnrq)_
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 42fec37 commit 620eff1
6 files changed
Lines changed: 481 additions & 5 deletions
File tree
- .claude
- cartridges/bug-filing-mcp
- abi/BugFilingMcp
- adapter
- ffi
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
37 | 80 | | |
38 | 81 | | |
39 | 82 | | |
| |||
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 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 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments