SMB tenant schema reference#376
Merged
Merged
Conversation
…bility
lance-graph is the spine; sessions working here don't load smb-office-rs
source. Without a local reference, "is this lance-graph change safe for
SMB" requires cross-repo zipball + grep every time. These two docs make
the SMB shape readable in two pages.
Contents:
- README.md — when to read, why per-tenant folder, how to extend
- SCHEMA.md — the actual reference:
- §1: two ontology surfaces (BSON × 14 German; Foundry × 3 English)
- §2: Foundry-shape contract that OntologyDto::project(®istry,
"SMB", ...) must return (mirrors body PR #355 deleted from
upstream)
- §3: BSON-shape per-entity required predicates + marking dominance
- §4: projection rules Foundry ← BSON, with two flagged gaps
(smb.steuer needs kunde_kdnr + eingereicht_am)
- §5: lance-graph contracts that affect SMB (which signatures, how)
- §6: consumer-side stopgaps that retire when registry hydration
lands
Pairs with smb-office-rs 611c147 (originating-side OGIT_TTL_INVENTORY)
and c204819 (consumer-side stopgap for lance-graph PR #355 break).
Per-tenant folder convention; sibling .claude/<tenant>/ folders can
follow the same shape (MedCare next).
…364 + smb-office-rs PR #31 Section 5 row added: lance-graph PR #364 (D-SDR-1..5) shipped the UnifiedBridge<B> + TenantId surface; smb-office-rs PR #31 wired smb_unified_bridge(registry, namespace, role, tenant) -> UnifiedBridge<OgitBridge>. Currently locked to OgitBridge per-namespace; future SmbBridge (OGIT/NTO/SMB/) drops in via type-param swap with no call-site change. Coexistence framing: the new authorize_read/write/act path is complementary to the legacy SmbMembraneGate / CachedOntology surface. Both stay until SMB TTL hydrates the registry, at which point the legacy hand-rolled Ontology in smb-realtime/src/ontology.rs retires. Footer updated to pin against current main SHAs (lance-graph da156eb, smb-office-rs 074ce9b).
…companion Sprint-5-6 W13 landed the formal OGIT TTL hydration spec at .claude/specs/pr-ogit-ttl-smb-hydration.md (663 LOC, sourced from smb-office-rs OGIT_TTL_INVENTORY.md). It's the executable handoff for OGIT-side authoring + the lance-graph-side 0-LOC consumption proof. This SCHEMA.md remains the quick-reference (two pages, lance-graph session reader). The W13 spec is the deep-dive when the task is actually authoring OGIT TTL or wiring registry hydration. Header callout added so future lance-graph sessions discover both: SCHEMA.md for quick context, pr-ogit-ttl-smb-hydration.md for execution.
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.