Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a375604
A1: factor CypherParse feature detection, correct misleading TODO
AdaWorldAPI May 5, 2026
49f64a2
A1: dedupe plan_auto feature detection — call cypher_parse::extract_f…
AdaWorldAPI May 5, 2026
49bcf1f
A1 revert: restore original plan_auto inline feature-detection
AdaWorldAPI May 5, 2026
9399ccb
A1 revert+additive: restore original CypherParse, keep extract_featur…
AdaWorldAPI May 5, 2026
31b8291
A1.alpha: spo_bridge — canonical 3D SPO→BindSpace reducer (additive)
AdaWorldAPI May 5, 2026
4c0a727
A1.alpha: declare spo_bridge in canonical surface + re-export public API
AdaWorldAPI May 5, 2026
cc1cceb
Revert A1.alpha: drop spo_bridge.rs
AdaWorldAPI May 5, 2026
d72800c
Revert A1.alpha: restore lib.rs canonical surface (drop spo_bridge mo…
AdaWorldAPI May 5, 2026
c8b161a
Revert: restore cypher_parse.rs byte-for-byte to original
AdaWorldAPI May 5, 2026
0eeb72d
docs(board): pin Single-Binary Topology — three layers, four invarian…
AdaWorldAPI May 6, 2026
0d9c3de
docs(board): cross-ref SINGLE_BINARY_TOPOLOGY.md from INTEGRATION_PLANS
AdaWorldAPI May 6, 2026
5eb8f90
docs(board): add CROSS_REPO_PRS.md tracking external-repo PRs that to…
AdaWorldAPI May 6, 2026
75744de
docs(board): append Q2 cockpit-server reference section to topology doc
AdaWorldAPI May 6, 2026
fe86406
docs(board): track MedCareV2#8 in CROSS_REPO_PRS (placeholder; out of…
AdaWorldAPI May 6, 2026
19a1521
refactor(callcenter): WATCHER-1 — replace tokio::sync::watch with std…
AdaWorldAPI May 6, 2026
29daedc
refactor(callcenter): WATCHER-1 — wire LanceMembrane Subscription to …
AdaWorldAPI May 6, 2026
bd61758
feat(contract): add CycleAccumulator — per-cadence speed-ratio absorb…
AdaWorldAPI May 6, 2026
502b849
feat(contract): wire cycle_accumulator module into lib.rs
AdaWorldAPI May 6, 2026
929a743
docs(board): finding — MedCare Policy Scaffolding Gap (A1 cannot be a…
AdaWorldAPI May 6, 2026
f41180f
docs(board): init sprint-log/ scaffolding for medcare scaffolding spr…
AdaWorldAPI May 6, 2026
f4ea4ba
[W1-log] sprint-log: agent W1 commit log + self-review
AdaWorldAPI May 6, 2026
c1b6233
[W2-log] sprint-log: agent W2 (lib.rs + access.rs) commit log + self-…
AdaWorldAPI May 6, 2026
ad7c4ae
[W3-log] sprint-log: agent W3 (permission.rs + role.rs) commit log + …
AdaWorldAPI May 6, 2026
3218936
[W4-log] sprint-log: agent W4 (policy.rs) commit log + Round 1 closur…
AdaWorldAPI May 6, 2026
dfad204
[M1] sprint-log: brutally honest review of Round 1 medcare-rbac (2 CR…
AdaWorldAPI May 6, 2026
67e0da4
[W5-log] sprint-log: agent W5 commit log + self-review
AdaWorldAPI May 6, 2026
8b525f4
[W6-log] sprint-log: agent W6 commit log + self-review
AdaWorldAPI May 6, 2026
b12e33e
[W7-log] sprint-log: agent W7 commit log + self-review (StepDomain::M…
AdaWorldAPI May 6, 2026
b9a1233
[W8-log] sprint-log: agent W8 commit log + Round 2 closure summary
AdaWorldAPI May 6, 2026
42c9888
[M2] sprint-log: brutally honest review of Round 2 medcare-realtime (…
AdaWorldAPI May 6, 2026
8923d7c
[W9-log] sprint-log: agent W9 commit log + self-review
AdaWorldAPI May 6, 2026
238d85c
[W10-log] sprint-log: agent W10 commit log + self-review
AdaWorldAPI May 6, 2026
4f17941
[W11-log] sprint-log: agent W11 commit log + self-review
AdaWorldAPI May 6, 2026
5560235
[W12-log] sprint-log: agent W12 commit log + Round 3 closure + sprint…
AdaWorldAPI May 6, 2026
a757635
[M3] sprint-log: brutally honest review of Round 3 MedCareMembraneGat…
AdaWorldAPI May 6, 2026
c1fc1e5
[SYNTHESIS] sprint-log: final synthesis — MedCare scaffolding sprint …
AdaWorldAPI May 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
252 changes: 252 additions & 0 deletions .claude/board/CROSS_REPO_PRS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,252 @@
# Cross-Repo PR Cross-References

> **Append-only log of merged PRs in OTHER AdaWorldAPI repos** that
> touch the lance-graph topology — i.e. consume canonical contract
> types, validate Single-Binary-Topology invariants, or close
> entropy-ledger rows on the consumer side.
>
> `PR_ARC_INVENTORY.md` is scoped to lance-graph PRs (Added / Locked
> / Deferred semantics rooted in this repo). Cross-repo PRs need
> their own trail because they validate or extend lance-graph design
> from outside; they don't add types to lance-graph itself.
>
> ## APPEND-ONLY rule
>
> 1. New entries PREPEND at the top (most recent first).
> 2. Each entry is IMMUTABLE except the **Confidence** line.
> 3. Entries reference lance-graph entropy-ledger rows and topology
> layers explicitly.
> 4. PRs in repos OUTSIDE the Claude Code MCP allowlist get a
> **(MCP scope: out-of-scope; diff not fetched)** marker; entry
> captures what's known from prior context. Update when access
> or paste arrives.
>
> **READ BY:** sessions auditing topology validation, sessions
> proposing new consumer-side work, sessions tracking the MEDCARE-
> PARITY-1 / MEDCARE-* / SMB-* / Q2-* entropy-ledger rows that close
> on the consumer side.

---

## MedCareV2 #8 — merged 2026-05-06

**Repo:** `AdaWorldAPI/MedCareV2` (C# .NET Framework 4.8 desktop)
**MCP scope:** out-of-scope; diff not fetched.
**Topology layer:** L3 caller-side (separate process from medcare-rs Rust binary)

**Topology placement.** Same shape as MedCareV2 #7 below — Windows
.NET 4.8 desktop probe calling Rust-side serving endpoints over
HTTP. PR #8 is the next follow-up in the LanceProbe arc (#4 → #5 →
R2-R6 → #7 → #8).

**Sequence in context.**
- Earlier MedCareV2 PRs established the LanceProbe ring scaffolding
(#4 + #5 + R2-R6 follow-ups).
- PR #7 (this same day) advanced the probe; entry below.
- **PR #8** lands on the same day — likely a tight follow-up
resolving an item flagged in #7 review or extending the ring's
coverage. Without the diff, the specific delta is unknown.

**What's likely** (inferred from the cadence; verify on paste):
- Either a defect fix flagged in PR #7 review, OR
- An extension of the parity-ring coverage to additional
endpoints / additional R2-R6 consumer-mirror rows, OR
- An ergonomic improvement to the C# probe's diff-or-401-or-404
reporting

**Entropy-ledger row anchor.** Same as #7 — MEDCARE-PARITY-1 (the
parity ring between C# probe and Rust binary). Two same-day PRs
on this row indicates active iteration; the row's eventual SHIPPED
state will likely cite the latest of the cluster (#8) rather than
#7.

**Confidence (2026-05-06):** Cannot verify — out of MCP scope.
Citation here is for traceability; promote to FINDING when the
diff is paste-shared or the allowlist is extended. Two same-day
MedCareV2 PRs (#7 + #8) are tracked separately to preserve the
arc; do not collapse into one entry post-hoc.

**Cross-refs:**
- `MedCareV2 #7` (entry below) — companion same-day PR
- `SINGLE_BINARY_TOPOLOGY.md` Layer 3 § "External probes" entry
- `foundry-consumer-parity-v1.md` (parity-clean window discussion)
- `medcare-rs/routes/parity.rs:46` (Rust-side ingest endpoint)

---

## MedCareV2 #7 — merged 2026-05-06

**Repo:** `AdaWorldAPI/MedCareV2` (C# .NET Framework 4.8 desktop)
**MCP scope:** out-of-scope; diff not fetched.
**Topology layer:** L3 caller-side (separate process from medcare-rs Rust binary)

**Topology placement.** MedCareV2 LanceProbe is a Windows .NET 4.8
desktop application running OUTSIDE the medcare-rs binary. It calls
`/api/__parity/csharp` over HTTP, which is an L3 serving endpoint
in the Rust binary at `medcare-rs/routes/parity.rs:46`. From the
Rust topology's perspective:

- The C# probe is on the OUTBOUND side of the tokio boundary —
same side as MySQL sink-in and other network egress.
- The Rust-side parity ingest at `routes/parity.rs:46` is an L3
serving endpoint (M5-class outbound POST).
- Nothing inside the Rust binary's L1/L2 is async on the C# probe's
behalf — the probe is a client, the Rust binary serves it.

**Entropy-ledger row anchor.** MEDCARE-PARITY-1 (the parity ring
between C# probe and Rust binary). Currently a hypothetical row in
the ledger; this PR is the consumer-side advancement that will
eventually let the row carry a SHIPPED/PR cite once both sides
are wired.

**What's known from prior context** (no diff access):
- PR sequence is #4 → #5 → R2-R6 follow-ups → #7. PR #7 is one
follow-up on the LanceProbe arc.
- The probe drives the parity-clean window discussion in
`foundry-consumer-parity-v1` — when C# probe diffs match the
Rust binary's Lance reads ≡ MySQL oracle reads over a §10 BMV-Ä
audit period, the parity-clean window opens.
- Per the parity-ring narrative: probe currently produces real
diffs (or 401s/404s on auth/route gaps) rather than 200-OK
bypasses.

**Confidence (2026-05-06):** Cannot verify — out of MCP scope.
Citation here is for traceability; promote to FINDING when the
diff is paste-shared or the allowlist is extended.

**Cross-refs:**
- `MedCareV2 #8` (entry above) — companion same-day PR
- `SINGLE_BINARY_TOPOLOGY.md` Layer 3 § "External probes" entry
- `foundry-consumer-parity-v1.md` (parity-clean window discussion)
- `medcare-rs/routes/parity.rs:46` (Rust-side ingest endpoint)

---

## q2 #35 — merged 2026-05-06

**Repo:** `AdaWorldAPI/q2`
**MCP scope:** in-scope; diff fetched.
**Topology layer:** L1 driver migration + L3 SSE serving update

**Title:** Phase 2B: canonical R1 surface + MockShaderDriver +
planner NARS deduction

**Topology placement.** Q2 cockpit-server is the Palantir-Gotham-
equivalent consumer per `q2-foundry-integration-v1.md`. This PR
migrated cockpit-server to the canonical L1 contract surface:

- **L1 driver abstraction adopted.** `MockShaderDriver` now
implements the canonical `CognitiveShaderDriver` trait. SSE
handler calls `driver.dispatch_with_sink(&dispatch, &mut SseSink)`.
- **L1 canonical DTOs adopted.** Dropped `thinking-engine` and
`cognitive-shader-driver` deps; consumes
`lance_graph_contract::cognitive_shader::{ShaderDispatch,
ShaderResonance, ShaderBus, ShaderCrystal}` directly.
- **L1 canonical NARS algebra adopted.** Hand-rolled `f=f1*f2,
c=f1*f2*c1*c2` (q2 was the 4th copy) replaced with bridge to
`lance_graph_planner::nars::truth::TruthValue::deduction`.
- **L3 SSE wire-shape compaction.** `cycle_fingerprint: [u64;256]`
(2KB inner) → `cycle_fingerprint_hash: u64` (8B XOR-fold).
`color_acc: [f32;32]` (128B) → `color_acc_active_dims: u8`
(1B). Concrete I-3 BBB enforcement evidence at the L1→L3
projection.
- **L2 per-row gate exposed in L3 wire.** New SSE field:
`gate: { gate: u8, merge: 'Xor'|'Bundle'|'Superposition'|
'AlphaFrontToBack' }`. The L2 `collapse_gate::GateDecision`
propagates through to the L3 SSE stream.

**Entropy-ledger rows resolved:**
- **THINK-1** — q2 migrated from `thinking_engine::dto::*` to
canonical `cognitive_shader::*`. Consumer-side closure for q2.
- **TRUTH-1** — reduced from 4 copies to 3 (q2 dropped its
hand-rolled copy). Closes the q2-specific instance.
- **MOCK-DRIVER-IS-CONTRACT-CITIZEN** — stub driver implements the
canonical trait; not a parallel API.

**Where CycleAccumulator becomes load-bearing.**
Phase 2B uses MockShaderDriver at low rate; SSE cadence
`cycle_ms=300` is tractable. Phase 3 replaces with `BgzShaderDriver`
at real cognitive-cycle speed (20-200 ns/op). At 100 ns/cycle, a
300 ms window produces ~3M cycles — SSE/HTTP/browser cannot
absorb that. CycleAccumulator (per topology I-4) sits between the
real driver and SseSink at exactly this boundary.

**Confidence (2026-05-06):** Working. 12/12 unit tests pass
(7 dto_bridge + 5 mock_driver). cargo check clean,
tsc --noEmit clean, npm build clean.

**Cross-refs:**
- `SINGLE_BINARY_TOPOLOGY.md` (validates I-1 / I-3 / I-4)
- `q2-foundry-integration-v1.md` (Gotham-parity scope)
- `unified-integration-v1.md` (DU-4 `rationale_phase` is the
next q2-side adoption candidate)

---

## smb-office-rs #29 — merged 2026-05-06

**Repo:** `AdaWorldAPI/smb-office-rs`
**MCP scope:** in-scope; diff fetched.
**Topology layer:** L2 membrane (RBAC gate at the inner→outer
projection boundary)

**Title:** feat(smb-realtime): SmbMembraneGate + domain_profile —
close Foundry-seal POLICY-1 seam

**Topology placement.** SmbMembraneGate is in-process, sync, gating
zero-copy CognitiveShader→callcenter handshakes for the SMB
consumer crate. Per topology I-1, the consumer is compiled into
the same binary as lance-graph; the gate decision (20-200 ns) runs
at L1 inner speed.

**Architectural call resolved.** Orphan rule blocked
`impl MembraneGate for rbac::Policy` (both upstream-owned).
Newtype `SmbMembraneGate` wraps `Arc<lance_graph_rbac::Policy>` +
`(role × entity_type)` binding; impls `MembraneGate::should_emit`
by routing `gate_commit` to `Operation::Read` / `Operation::Write`.

**Entropy-ledger rows resolved:**
- **POLICY-1 / MEMBRANE-GATE-1** — SMB-side closure. The medcare
side is still PENDING (~30-LOC mirror as `MedCareMembraneGate`
over `Arc<medcare_rbac::Policy>`).

**Three open caveats** (carry into TD as needed):
- TD-MEMBRANE-FACULTY-BLIND — `should_emit` ignores
`external_role / faculty_role / expert_id`. Faculty-aware policy
is a future concern; trait shape will need rework.
- TD-MEMBRANE-ESCALATE-LOSSY — `Escalate` collapses to `false` in
`should_emit`. Lossy. Consider `emit_decision()` extension.
- TD-MEMBRANE-FIRST-VS-ANY — default-commit picks
`writable_predicates.first()`; if predicate-specific RLS exists,
this denies when "any" should allow. Verify or document.

**Confidence (2026-05-06):** Working. 13 new unit tests passing
(11 gate + 2 domain_profile). clippy --all-targets --no-deps
-D warnings: clean. smb-realtime --features full: 46 passing
(was 33).

**Cross-refs:**
- `SINGLE_BINARY_TOPOLOGY.md` Layer 2 § "Membrane (transcode +
RBAC)" entry
- `ARCHITECTURE_ENTROPY_LEDGER.md` POLICY-1 + Section B Foundry-
seal cluster
- `soa-dto-fma-map.md` open-seam #3 ("R4 ↔ R6 MembraneGate bridge
missing")
- `external_membrane.rs:7-13` (BBB invariant the gate enforces)

---

## How to use this file

1. **When reviewing a cross-repo PR** that touches lance-graph
types: check this file first. If listed, read the entry to
understand topology placement before diving into the diff.
2. **When a new cross-repo PR merges:** prepend an entry. Use the
format above (Repo / MCP scope / Layer / placement / ledger
rows / confidence / cross-refs).
3. **When MCP scope changes:** if a previously out-of-scope repo
becomes accessible, update the relevant entry's MCP-scope line
and promote Confidence after fetching the diff.
4. **When closing an entropy-ledger row** via a cross-repo PR:
update the ledger row's status AND cite the entry here. Both
sides of the cross-reference matter.
9 changes: 9 additions & 0 deletions .claude/board/INTEGRATION_PLANS.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@

**Confidence (2026-04-24):** FINDING — 17 tests pass (13 without realtime, 17 with; 4 new tests in `version_watcher.rs`, 1 new `subscribe_receives_on_project` in `lance_membrane.rs`). Zero regressions.

**Correction (2026-05-06):** The `tokio::sync::watch::Receiver` choice violates I-2 (tokio outbound only) per `SINGLE_BINARY_TOPOLOGY.md`. Sync substitute is `ArcSwap<u64>` + `event_listener::Event`, polled on a `std::thread`. WATCHER-1 entropy-ledger row carries the corrected spec.

---

## v1 — Unified Integration: PersonaHub × ONNX × Archetype × MM-CoT × RoleDB (authored 2026-04-23)
Expand Down Expand Up @@ -98,6 +100,8 @@

**Confidence (2026-04-22):** CONJECTURE on the full architecture (grounded in Arrow BBB analysis + repo evidence; no DM-2+ implementation shipped). DM-0/DM-1 are working stubs; Arrow compile-time BBB enforcement verified structurally, awaiting DM-2 compile-time leak test.

**Correction (2026-05-06):** The framing "callcenter sits *outside* the canonical cognitive substrate" was read by some sessions as "separate process". Per `SINGLE_BINARY_TOPOLOGY.md`, callcenter is in-process Layer 2, sync, zero-copy over Layer 1 BindSpace. DM-5 / DM-8 are the only L3 (post-tokio) components in this plan.

---

## v1 — Categorical-Algebraic Inference (authored 2026-04-21)
Expand Down Expand Up @@ -167,6 +171,11 @@ Phases 2–4 queued.

## Cross-references

- **`SINGLE_BINARY_TOPOLOGY.md`** — canonical architecture reference
(three layers, four invariants: single-binary, tokio-outbound-only,
BBB compile-time-enforced, per-row vs per-cadence gates distinct).
**READ FIRST** before proposing any new "membrane" / "transcode" /
"subscriber" / "external surface" plan.
- **`STATUS_BOARD.md`** — deliverable-level status (D0 / D2 / D3 / …
across all plans).
- **`OPEN_PROMPTS.md`** — outstanding user questions / threads that
Expand Down
Loading
Loading