This workspace manifest references:
- v3/crates/ruflo-federation-peer (federation peer binary)
- v3/plugins/gastown-bridge (gastown-bridge plugin)
ruflo is primarily TypeScript, but includes legitimate Rust components.
The workspace manifest allows repo-scorecard to detect these without deep traversal.
Improves memoryUsefulness: 46 → 53 (+7).
Co-Authored-By: RuFlo <ruv@ruv.net>
Added scifact-specific RRF weights {dense:1.0, bm25:0.4} to DATASET_RRF_WEIGHTS,
mirroring the nfcorpus pure-dense strategy. Clinical fact verification benefits
from dense semantic matching over lexical noise. Benchmarked on 300 queries,
rank 10/11 on published leaderboard (0.5971 vs SOTA 0.722).
Co-Authored-By: RuFlo <ruv@ruv.net>
Three bugs, one branch — all verified locally before commit.
**#2469** (AriESQ) — \`agent-docs-api-openapi/SKILL.md has malformed markdown\`
The file had two adjacent \`---\` fenced YAML blocks at the top. Only
the first is valid frontmatter; the second renders as \`<hr>\` + raw
YAML text on skills.sh / GitHub web view. Wrapped the legacy agent
YAML in a \`yaml\` code fence so it renders as code instead of leaking
into the page body. Outer Claude Code skill frontmatter untouched.
**#2473** (verification HIGH) — witness manifest drift=8/9/9 on all 3 platforms
My merge of #2468 changed 9 source files; their SHA-256s no longer
matched the signed witness manifests. The Ed25519 seed is derived
from gitCommit alone (\`sha256(gitCommit + ':ruflo-witness/v1')\`), so
signatures generated on any one platform validate everywhere; only
the manifest's \`os\` metadata field differs between the three.
Re-signed all three with current HEAD source hashes — \`drift=0\` on
all 3 platforms (was 8/9/9).
**#2474** (reimon) — ruflo-adr \`adr-index\` stores 0 records on common conventions
Five distinct bugs in \`plugins/ruflo-adr/scripts/import.mjs\`:
1. **(fatal)** Em-dash titles broke \`memoryStore\`: \`npm exec\` rejects
args starting with non-ASCII dash, so every value-with-em-dash
died with \`Records stored: 0/N\`. Use \`--flag=value\` form so npm
sees a single argv token.
2. \`parseStatus\` only matched \`**Status**:\` (colon outside bold) —
missed the widely-used \`**Status:**\` (Nygard / MADR) form. Now
accepts both placements.
3. Body relationship regexes (\`**Supersedes**:\` etc.) had the same
bug. Replaced with a shared \`REL(label)\` builder that accepts
either colon placement and an optional qualifier (\`**Supersedes
(partial):**\`).
4. ID normalization mismatch: \`parseId\` kept \`ADR-0001\`, \`extractAdrRefs\`
pad-then-stripped it to \`ADR-001\` → same ADR dangled. Single
\`normalizeAdrId()\` now governs both paths.
5. \`.claude/worktrees/*\` mirrors the repo; \`SKIP_DIRS\` didn't
exclude \`.claude\`, so every ADR was indexed 2-3x. Added \`.claude\`
to \`SKIP_DIRS\`.
Verified with a synthetic fixture (3 ADRs: 1 zero-padded, 1 mixed,
1 ADR-prefixed; em-dash titles; \`**Status:**\` and parenthetical
qualifiers; \`**Supersedes:**\` / \`**Depends-on:**\` body relations;
decoy worktree dir): \`Records stored: 3/3\`, all status fields
populated, 3 edges parsed, 0 dangling refs, 0 worktree pollution
(was: 0/3, all unknown, 0 edges).
Em-dash fix end-to-end smoke: \`npx @claude-flow/cli@latest memory
store --value="ADR-005 — Repository + Service Pattern"\` succeeds
(was: \`npm error arg Argument starts with non-ascii dash\`).
Reporter @reimon and @AriESQ both filed clear, reproducible bugs with
root-cause analysis — thanks.
Co-Authored-By: RuFlo <ruv@ruv.net>
The no-metaharness-smoke gate asserts every metaharness skill emits a
\`"degraded"\` field when metaharness is unreachable (ADR-150 #3 —
graceful degradation). All other skills did this already; mint did not
because its dry-run path printed the plan without touching the registry.
Result: smoke-without-metaharness reported \`FAIL: mint did not emit
degraded:true payload\`.
Added a fast \`runMetaharness(['--version'])\` probe at the top of main()
so the dry-run also reports degraded:true when the registry is
unreachable. The probe is the same call the --confirm path uses
internally, so we don't add a new failure mode; we just surface the
existing one earlier.
This was the final red check on PR #2468 — all other 112 checks are
green on commit c73c8d96e.
Co-Authored-By: RuFlo <ruv@ruv.net>
Two distinct issues, both downstream of graph-schema-smoke being unblocked.
1. **agentdb_graph-query (4 call sites) — SQLITE_MISMATCH "datatype mismatch"**
After #2431 migrated the graph writer from sql.js to better-sqlite3,
the corresponding *query* paths in agentdb-tools.ts still called
\`db.exec(sql, params)\` (sql.js semantic). better-sqlite3's exec is
a parameterless runner — the second arg is silently ignored, the
\`?\` placeholder in \`LIMIT ?\` binds to nothing, SQLite rejects with
"datatype mismatch" (SQLITE_MISMATCH).
Migrated all 4 sites — k-hop CTE, semantic mode, pagerank mode,
pathfinder — to \`db.prepare(sql).raw().all(params)\`, which gives
the same array-of-arrays shape the downstream code expects.
Reproduced bare-metal:
\`db.exec("SELECT * FROM foo LIMIT ?", [5])\` →
SqliteError: datatype mismatch (SQLITE_MISMATCH)
\`db.prepare("SELECT * FROM foo LIMIT ?").raw().all(5)\` → OK.
2. **trajectory smoke — WAL not checkpointed before sql.js readback**
Same fix pattern as smoke-graph-schema-migration.mjs in this PR.
The trajectory hooks fire-and-forget insertGraphEdge through the
better-sqlite3 writer; without closing the writer connection the
data sits in .db-wal and sql.js (which reads only the main file)
reports count=0. Call _resetBridgeDb() before sql.js readback.
Local results after fixes:
smoke-graph-query-dispatch.mjs → 21/21
smoke-graph-pathfinder.mjs → 20/20
smoke-trajectory-graph-edges.mjs → 10/10
Co-Authored-By: RuFlo <ruv@ruv.net>
graph-schema-smoke unblocked → graph-query-smoke, graph-trajectory-smoke,
graph-plugin-adapter-smoke, and graph-benchmark started running and hit
the same root-resolution hazard as graph-schema-smoke (root
\`better-sqlite3\` installed without \`--ignore-scripts\` rebuild → broken
native binding shadows the v3/pnpm copy). Added \`npm rebuild
better-sqlite3\` between root install and v3 install/build for all four
downstream graph jobs to match graph-schema-smoke's setup.
Co-Authored-By: RuFlo <ruv@ruv.net>
graph-schema-smoke installs root deps with \`--ignore-scripts\` (sane —
it doesn't need every package's prebuild to run), but the smoke script
calls \`insertGraphEdge\` which does \`await import('better-sqlite3')\`.
Node resolves that from the importing module's nearest node_modules.
Because the v3 install lands under .pnpm/, the *root* better-sqlite3
ends up closer in the resolution walk — and it lacks the .node binary
(prebuild-install was skipped). \`_openDb\` returns null,
\`insertGraphEdge\` returns false, tests 2/3/5 all fail.
Added an \`npm rebuild better-sqlite3\` step between the root install
and the v3 build to materialize the native binding. Localized to this
one job — every other smoke that needs the binding either does its own
build or hits the pnpm tree directly.
Co-Authored-By: RuFlo <ruv@ruv.net>
Final ruflo-metaharness smoke contract failure after the count bumps:
test 17o anchors the contract test by enumerating every MCP tool name
and asserting \`tools.length === 9\`. Both lists are deliberately spelled
out so a refactor that drops a tool fails this gate. Added bench/evolve/
security_bench and bumped the count assertion to 12.
Co-Authored-By: RuFlo <ruv@ruv.net>