Skip to content

docs(meta): pattern.md primer + entropy-ledger VSA correction#345

Merged
AdaWorldAPI merged 1 commit intomainfrom
claude/review-integration-debt-P7XGp
May 6, 2026
Merged

docs(meta): pattern.md primer + entropy-ledger VSA correction#345
AdaWorldAPI merged 1 commit intomainfrom
claude/review-integration-debt-P7XGp

Conversation

@AdaWorldAPI
Copy link
Copy Markdown
Owner

Summary

Why this is meta-only

No source-code changes. Two pure docs additions on the cross-session blackboard. Designed so that:

  1. Future sessions read pattern.md before traversing the SoA/DTO graph (15 patterns turn re-discovery into navigation).
  2. The entropy ledger correctly reflects the post-VSA-scope-correction reality — no future session reads E4/E8 as canonical.

Cross-references

Test plan

  • wc -l .claude/pattern.md → 578
  • wc -l .claude/board/ARCHITECTURE_ENTROPY_LEDGER.md → 443 (rebased clean over PR feat(contract): SPLAT-1 stage 0→1 — splat types + EWA OSINT bridge #336's SPLAT-1 in-place edit)
  • No source-code changes; no tests applicable
  • Rebased on origin/main HEAD (51 commits absorbed cleanly; conflict-free because PR feat(contract): SPLAT-1 stage 0→1 — splat types + EWA OSINT bridge #336's SPLAT-1 edit was in Section A and this PR's append is at file end)
  • Reviewer: confirm pattern.md scope (15 patterns + 7 findings) does not duplicate .claude/CODING_PRACTICES.md (different layer: CODING_PRACTICES = code-style; pattern.md = SoA/DTO-graph-traversal)
  • Reviewer: confirm correction block's row additions (EWA-SANDWICH-1, SUBJECT-DTO-1, MOCK-DRIVER-1) are accurate cross-references

https://claude.ai/code/session_012AUf5NFgeAAQa5aQAKwSgx


Generated by Claude Code

…r VSA-scope correction

pattern.md (NEW, 578 lines) — usability patterns for traversing the
workspace's SoA/DTO surface as a graph (nodes = type defs, edges =
producer-consumer + duplicate + seam, subgraphs = clusters). 15 named
patterns covering canonical lookup, maturity scoring, Click-P-1 lens,
register-laziness check, dual-tier writes, ingestion-commit, lineage-
as-column, append-only governance, consult-first ordering, cross-
session blackboard via ledger row IDs, source-vs-claim divergence,
cluster-fix discipline, debug-as-API debt, scope-lock, and seam-naming.
Plus 7 critical findings and append-only update protocol.

ARCHITECTURE_ENTROPY_LEDGER.md (APPEND-only correction block) —

VSA scope correction per CLAUDE.md I-VSA-IDENTITIES iron rule:
- VSA-1 description tightened: Vsa16kF32 is for Markov chain over
  identity fingerprints exclusively. Provenance / JWT / RBAC / IDs
  are register territory, not VSA carriers.
- PERMUTE-1 description tightened: vsa_permute is unitary as an
  operation but the braiding usage is NOT lossless; cross-talk
  shrinks unbinding margin with N. Bound: N <= sqrt(d)/4.

New rows:
- EWA-SANDWICH-1 (PR #289 was missing from initial snapshot):
  Stage 3 / Smart / entropy 2. Scope: SPD-bounded propagation of
  cognitive Vsa16kF32 across Markov rho^d cycles. NOT a lineage
  error model (corrected from initial framing).
- SUBJECT-DTO-1: aspirational typed Subject struct with
  AuthSource enum (typed JwtClaims, not VSA). Implied by
  MedCareV2 #7+#8 wire shape.
- MOCK-DRIVER-1: q2 PR #35 Phase-3 placeholder, Stage 2.

Cross-repo resolution events:
- THINK-1 partial: q2 PR #35 dropped thinking-engine +
  cognitive-shader-driver deps from cockpit-server, migrated to
  canonical contract::cognitive_shader::*. Wire compression
  256x on cycle_fingerprint, 128x on color_acc.
- TRUTH-1 partial: q2 PR #35 cockpit-server bridges to
  lance-graph-planner::nars::truth::TruthValue::deduction.
- POLICY-1 + MEMBRANE-GATE-1: priority bump — MedCareV2 #8 now
  blocking on impl MembraneGate for Arc<rbac::Policy>.

Section G — ingestion-vs-traversal axis added: Cypher-parser path
(Option 1, ships now via PARSER-1 resolution) and splat-deposit path
(Option 2, gated by SPLAT-1) both converge on E1 typed Action API.

Retractions: E4 (VSA-bundled provenance) and E8 (geometrically-
bounded provenance via Vsa16kF32+EWA) — register laziness; do NOT
get appended to EPIPHANIES.md. E1, E2, E3, E5, E6, E7, E9 stand.

https://claude.ai/code/session_012AUf5NFgeAAQa5aQAKwSgx
@AdaWorldAPI AdaWorldAPI merged commit a851e37 into main May 6, 2026
AdaWorldAPI added a commit that referenced this pull request May 7, 2026
#353); append 2026-05-07 CYCLE-ACCUM-1 + LADYBUG-EQUIV-1 + crate inventory 22→23

Rebases the ledger so it begins with current main's content (commit
a6797ad with all six 2026-05-06/2026-05-07 dated sections from PRs
#345/#346/#347/#348) and then appends a single dated section
"2026-05-07 — CYCLE-ACCUM-1 + LADYBUG-EQUIV-1 introductions + crate
inventory expansion (post-#353)" containing only the unique findings
not already absorbed by those merged PRs:

- CYCLE-ACCUM-1 row introduction (per-cadence flush gate, R2,
  shipped via PR #337, entropy 2)
- LADYBUG-EQUIV-1 row introduction (ladybug-rs ↔ lance-graph
  equivalence map; harvest is empty, entropy 1, full mapping table
  for clam_path, nsm_substrate, sentence_crystal, spo_harvest,
  causal_trajectory, gestalt, nsm_primes, crystal_lm, dn-tree)
- Crate inventory expanded 22 → 23 (sigker added by PR #348)
- Cross-references include PR #109 medcare-rs (?source=lance
  toggle exercising per-request RlsRewriter+ColumnMaskRewriter
  pattern) + PR #353 (palantir-parity-cascade-v2 +
  soa-dto-dependency-ledger)
- Open question flagged: .claude/pattern.md (singular, PR #345)
  vs .claude/patterns.md (plural, this session) filename collision
  awaiting user resolution

State-change blocks for WATCHER-1 / POLICY-1 / MEMBRANE-GATE-1 /
SPLAT-1 are NOT duplicated here — the corresponding 2026-05-06
entries from PR #345/#346 already cover those state changes.
Original branch authoring is preserved at commit 0dd0f56 for
archaeology.
AdaWorldAPI added a commit that referenced this pull request May 7, 2026
…it had placeholder truncation)

Previous commit 74e2d9e accidentally truncated the file to ~2.5 KB
(just the rubrics header). This commit restores the full 88 KB
rebased ledger: current main content (commit a6797ad with all six
2026-05-06/2026-05-07 dated sections from PRs #345/#346/#347/#348)
+ the unique 2026-05-07 CYCLE-ACCUM-1 + LADYBUG-EQUIV-1 dated section
appended at the end.
AdaWorldAPI added a commit that referenced this pull request May 7, 2026
Direct commit to main (per user 2026-05-07). Replaces main's ledger
with the rebased version that absorbs:

- PR #355 (palantir-cascade, merged 13:40 UTC): SPO-1 closure, 8 new
  rows (ONTOLOGY-REGISTRY-SOA-1 / MUL-THRESHOLD-1 / CASCADE-COLS-1 /
  OBJECT-VIEW-1 / BUSDTO-BRIDGE-1 / CERT-OFFICER-1 / CONTEXT-ID-1 /
  DTO-CLASS-CHECK-1), Per-row-context cluster (highest-leverage
  single-fix unlock, 3 rows entropy 3→2 via 200-300 LOC PR), open-
  seams update (R6/R0 ontology-as-SoA closed; 2 new open seams).

- CYCLE-ACCUM-1 introduction (per-cadence flush gate, R2, shipped
  via PR #337, entropy 2; companion to collapse_gate per topology
  I-4).

- LADYBUG-EQUIV-1 row (entropy 1, harvest-empty closure with full
  module mapping for clam_path / nsm_substrate / sentence_crystal /
  spo_harvest / causal_trajectory / gestalt / nsm_primes /
  crystal_lm / dn-tree).

- Crate inventory expanded 22 → 23 (sigker added by PR #348).

Aggregate: 41 rows (2026-05-05 baseline) → 53 rows tracked.
Entropy delta from this session work alone: SPO-1 (4→2) and 8 new
rows averaging 2.875 (lower than the 3.46 snapshot mean — Wave-3
BLOCKER discipline reflected in the numbers).

Pre-existing 2026-05-06/2026-05-07 dated sections from PRs
#345/#346/#347/#348 preserved verbatim per APPEND-ONLY governance.
AdaWorldAPI added a commit that referenced this pull request May 7, 2026
Combined ledger reached 103 KB after PR #345/#346/#347/#348/#353/#355
absorption. Splitting into two files:

- ARCHITECTURE_ENTROPY_LEDGER.md (OPEN, ~27 KB) — active concerns:
  entropy ≥ 3 rows, open seams, active clusters, still-stalled plans.
  Scannable surface for next sessions to sort by entropy DESC and
  pick the highest-leverage fix.

- ARCHITECTURE_ENTROPY_LEDGER_RESOLVED.md (NEW, ~19 KB) — closures
  archive: entropy ≤ 2 rows, state-change records (WATCHER-1 4→3,
  POLICY-1 4→2, MEMBRANE-GATE-1 3→2, TTL-PROBE-5 closed, SPO-1 4→2),
  closed open seams, resolved new-row introductions (CYCLE-ACCUM-1,
  EWA-SANDWICH-1, SPLAT-EWA-BRIDGE-1, MOCK-DRIVER-1, ONTOLOGY-
  REGISTRY-SOA-1, BUSDTO-BRIDGE-1, LADYBUG-EQUIV-1).

Total: 46 KB across both files, down from 103 KB single file (~55%
reduction). APPEND-ONLY governance preserved on both files; structural
content intact, redundant prose / repeated empirical evidence
condensed to load-bearing facts only. Cross-references between files
add at the head of each.

Update protocol amended: state-changes that flip a row to entropy ≤ 2
move the record to RESOLVED file (not edit-in-place per APPEND-ONLY).
AdaWorldAPI added a commit that referenced this pull request May 7, 2026
Three architectural docs from the
claude/lance-datafusion-integration-gv0BF branch landing on main per
user 2026-05-07.

- CROSS_REPO_PRS.md (.claude/board/) — append-only log of merged PRs
  in OTHER AdaWorldAPI repos that touch lance-graph topology
  (smb-office-rs#29, q2#35, MedCareV2#7, MedCareV2#8). Captures
  topology placement, ledger row anchors, MCP scope marker for
  out-of-allowlist repos.

- MEDCARE_POLICY_GAP.md (.claude/board/) — finding doc identifying
  that medcare-rs lacked the prerequisite scaffolding (medcare-rbac
  + medcare-realtime crates) for a "30-LOC mirror" of PR #29's
  SmbMembraneGate. Real lift: ~800 LOC across 3-stage scaffolding
  sequence. Used to scope PR #98 (now merged).

- .claude/patterns.md (PLURAL — sibling of pattern.md from PR #345)
  — traversal patterns guide: 5 patterns (CRATE-FIRST, REGION-FIRST,
  ENTROPY-FIRST, APPEND-ONLY, CLUSTER-AWARE), 22-crate inventory,
  ladybug-rs equivalence map, 5 anti-patterns, 6 wiring recipes
  (CAM-DIST-1, PARSER-1, DEEPNSM-NSM-1, VSA-1, MEMBRANE-GATE-1
  done, WATCHER-1 done), pre-work checklist.

Open question: pattern.md (singular, PR #345) vs patterns.md
(plural, this session) filename collision now visible on main. The
plural file documents Single-Name Lookup as anti-pattern — meta-
irony of the collision is acknowledged. Recommendation: rename
pattern.md → patterns.md and absorb both bodies. Awaiting user
decision.
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.

2 participants