arbio is a ai-native property management platform for short-term rentals, managing over 1500+ properties across europe, we are building the future of hospitality operations where AI and human collaborate seamlessley. - this is their taglline, i want you to review their webssite too and also check internet for recent events related to context and such like tldr news and tell me how i can improve this project
Assistant
· claude-opus-4-7
Arbio TL;DR
Berlin STR operator, $36M Series A (Oct 2025, Eurazeo lead), 1000+ apts DE/AT, 10x revenue growth 2y, 30+ acquisitions, AI for dynamic pricing + guest comms + accounting. Tagline "Weniger Stress. Mehr Success." Positions as "AI-native full-stack PM" — operator, not infra. They own properties on platform.
Market signal (2026)
MCP = year's infra story. ATTOM launched property-data MCP Jan 2026 (158M US properties). PriceHubble shipped MCP suite. Cotality MCP server live. WAV Group calls 2026 "year of agentic-AI infra."
Predictive > reactive maintenance — service history + sensor + invoice patterns.
Agentic workflows — AI executes end-to-end, not just notifies.
Smart-building data unification — single context substrate AI follows.
Anthropic MCP positioned as "USB-C for AI" in PropTech.
Positioning gap vs Arbio
Arbio = vertical operator (STR, owns book). PropContext = horizontal context layer (WEG, infra play). Different game. PropContext should sell to operators like Arbio, not compete with them. "Arbio's pricing agent works because someone built the building memory."
Improvements — ranked by leverage
1. Reframe landing as infra, not file
Current README leads with "memory file." Market buys "MCP server / context layer for PM agents." Lead with: agent-ready, MCP-native, source-backed, multi-tenant, OAuth-scoped. building.md is the artifact; the product is the protocol.
2. Lean into MCP harder — already in stack, undersold
Publish MCP server card on modelcontextprotocol.io registry.
Add resource discovery (property://*, building://*/*) + tool catalog to landing.
Demo: Claude Desktop / Cursor connects, asks German questions, building.md answers. Record loom.
3. Write-back tools, not read-only
Right now wiki is read-served. Add MCP tools: add_decision, log_invoice, mark_obligation_done. Hermes already designed for self-patch — expose the patch surface as agent tools. This is what "agentic workflow" means in 2026.
4. Obligation engine (kills two trends: predictive maintenance + compliance)
Parse LEGAL_MAP.md (BetrSichV, BauO Bln, WEG, DSGVO) → emit due_dates[] per property. Endpoint /api/v1/buildings/{id}/obligations?within=30d. Property managers buy this directly. Arbio-likes embed it.
5. Eval harness + golden set
Hermes loop without metrics = vibes. Build:
50 Q&A golden set per property (owner, contractor, last invoice, who pays Hausgeld)
Score: building.md vs raw-docs RAG on accuracy, latency, $-tokens
Publish chart. "10x cheaper, 3x faster, 2x more accurate" beats any pitch deck.
6. Consume external MCP servers
PriceHubble MCP → enrich building.md valuations. Cotality → comparables. Bank MCP → live tx. PropContext becomes hub, not silo. Outbound MCP client = Hermes ingester.
7. Smart-building / IoT lane (optional, signals modernity)
Heatpump telemetry, meter reads → append-only section in building.md. EU EPBD compliance approaching, owners need ESG metadata. Cheap to mock for demo.
8. STR pivot variant for Arbio-class buyers
Current scope = WEG (long-term). Add building.md schema profile for STR: guest log, OTA listings, dynamic-price events, cleaning SLA. Same engine, different schema. Doubles TAM.
9. Trust surface
DSGVO + audit log + provenance-per-fact already implicit. Make explicit: /trust page, "every claim cites source," org-scoped MCP via WorkOS (already built — say it loudly).
10. Cost story
Token cost of building.md (1 file, 2-5KB) vs RAG over 200 PDFs is the real wedge. Put numbers on landing.
11. Hermes as differentiator copy
"Self-healing schema" is unique. No competitor pitches schema-drift autocorrection. Move from HERMES_LOOP.md deep doc → 1-paragraph landing block + animation.
12. Pricing model — per property/month
EU PM market = per-Einheit pricing convention. €X/Einheit/Monat lands.
13. Compare table on landing
Approach
Tokens/query
Latency
Provenance
RAG-over-docs
50k
8s
weak
PropContext MCP
3k
0.4s
strong
14. German moat = STR + WEG + Mietverwaltung schema localization
Arbio is DACH-only too. Localization is moat in PropTech. Don't dilute to English-first.
What to do this week
README rewrite → lead with "MCP context layer for PM agents."
Build eval harness w/ 50-Q golden set + token/latency/$ chart.
No. 403 forbidden. Claude share links gated, WebFetch blocked.
Options:
Paste content here
Make share public + retry
Screenshot
User
Memory Layer for SMBs — Design Notes & Handoff
Working notes from a design conversation. Intended as a brief for Claude Code or any engineer picking this up. Captures decisions, open questions, and rationale — not finished spec.
1. What we're building
An open-source memory layer for SMBs that lets any business become "agent-native" without rebuilding their software.
The thesis: AI agents don't fail at reasoning, they fail because the right context isn't structured, fresh, or trustable. Most SMBs have their context scattered across email, payments, SaaS tools, PDFs, and someone's head. A standardized memory layer fixes the upstream problem.
Inspiration: Buena's "Context Engine" for property management (one living wiki per building). We're generalizing the primitive beyond property to any organization with entities that have scattered context.
Starting vertical: education micro-businesses (tutoring centers first, then music schools, after-school programs, coaching). Picked over property (Buena's territory), restaurants (bad economics), trades (entrenched competitors), clinics (compliance overhead).
Positioning: open-source library + reference vertical implementation + hosted product on top. PostHog/Sentry/GitLab playbook. Library is permissive license; hosted polish + Hermes (the self-healing loop) is closed core.
2. Core concepts (the convention)
Two-level hierarchy
code
Org (the company)
└── Entities (students, members, customers, units, suppliers...)
The org has its own memory. Each entity has its own memory. Entities inherit from org; entity memory only stores deltas/exceptions.
What counts as an "entity" is org-defined. A tutoring center's entities = students. A restaurant's entities = regulars + suppliers + shifts. The library doesn't pre-decide this.
The four artifacts (per entity, also per org)
code
sources/ # Original files (immutable). Emails, PDFs, payments, notes.
wiki/ # Machine-maintained. Pointers to sources, not copies.
OWNER.md # Human-written. Preferences, judgment, soft knowledge.
MEMORY.md # System-learned patterns (was previously called INFER.md).
Bitemporal + status. Backdated truth normal in PM/edu. Single-clock = lying. Keep.
OWNER.md / MEMORY.md split. Different writers, different trust. Solves merge-conflict mess your current building.md will hit at scale. Better than current PropContext design — port back.
Event log + projection over git. Right call for SMB. Git was wrong abstraction (you'd have noticed in month 2).
"Compliance overhead" you flagged as negative for clinics is actually a wedge — pain forces purchase.
Argument for property as v1: you have 80% of code already (PropContext), German legal map, Hermes scaffold. Switching verticals = rewrite + cold market.
Counter only valid if Buena owns property channel — they don't (Arbio = STR operator, not infra; PriceHubble = valuation; Cotality = US data). Infra layer for PM is open.
Recommendation: ship property v1 (capture cash, prove pattern), generalize to education v2 once primitive proven. Order matters.
Convention spreads only if bigger players adopt. Adoption only happens if library standalone-useful without hosted.
If Hermes closed, library = read-only memory w/ no self-healing. Half product.
AGENTS.md spread because Anthropic published + tooled it. You're not Anthropic.
Real options:
a) Spec-first (not library) — write convention doc, get 3 partners to commit, then code. Slow but durable.
b) Library-first w/ Hermes open + hosted = managed Hermes + UI. PostHog model proper.
c) Vertical-product-first (Arbio for PM-infra), library extracted at year 2. Stripe model.
(b) and (c) > (a). Decide before writing line 1.
User
ok so that md had our different product vertical, but for this we stay in property. and focused on arbio now, not buena, but more or less same. bcz same vertical. so lets focus here. and make the system flexible so that it can support any ingestion format. 1. different project planning, skip here focus on arbio, 2. only oss for now as the engine not the full product, and focus on property vertical as example vertical. 3. not a product so skip thinking on it. 4. skip rust, 5. skip. so based on this, make a prper plan, that shouldn't break anything but can be better product that before and demo -able with better ingest and write some queryable tests or things u mentioned so that connecting with mcp server works perfectly. also remove any outdated samples, also i think git is not needed for diff?
Assistant· claude-opus-4-7
Let me scan current state before planning.
Assistant· claude-opus-4-7
Read codebase. Mature. Already has handlers/normalize/classify/extract/patcher pipeline, DuckDB stores, MCP w/ tools+resources+prompts, hardcoded LIE-001. Plan below.
PropContext OSS Engine — Refocus Plan
North star: OSS context engine for property AI (Arbio-class consumers). Ingest-format-agnostic. Property = reference vertical. Demo: any source → MCP query → sourced answer.
Goal: anyone can push any payload format. Existing handlers untouched, new adapter layer above.
Add app/services/ingest/:
code
User
0- ok,1- ok, 2 - no- backward compability, its a greenfield, so i can just remove old things and start fresh data. 3- good. 4. ok. 5. yes. lets write down the plan for implementation,
open qus: apache, keep workoss hardcoded for now.
let's go with one by one for
Confirm: dual-write fact backend OK, or rip-and-replace wiki_chunks?
Confirm: LIE-001 stays as canonical fixture for tests?
Confirm: data/ stays read-only, all writes go to output/?
Tests: tmp_path overrides output_dir via Settings dep, never touch real data/ or output/
Production: real ingestion pushes new sources via POST /api/v1/ingest → adapters write to output/inbox/{ulid}/ (raw bytes preserved), facts pointer = inbox://{ulid}
Wrinkle: incoming live data (real emails, real PDFs) — where does it land?
Option A: output/inbox/ (writes go to output, data stays pristine fixture)
Option B: new top-level inbox/ separate from both
Recommendation: Option A — keeps two-dir model clean, data/ purely demo seed
Confirm yes + Option A?
User
OK → Q3: data/ read-only, all writes to output/, explain a bit more?
Assistant· claude-opus-4-7
Two-dir model — why split
data/ = immutable source fixture
Real emails, PDFs, CSVs, JSON shipped w/ repo for demo
Wipe + replay data/ → reconstructs identical state. Output never has irreplaceable info.
Why this matters
1. Reproducibility. Tests + demo deterministic. Re-run → same facts. If data/ could mutate, demo drifts.
2. Audit boundary. Every write hits event log in output/. data/ is the "what came in" frozen record. Provenance pointer always resolves to data/... for fixture, output/inbox/... for live.
3. Clean Docker.data/ baked into image (fixture) or mounted RO (prod). output/ is the only RW volume. One backup target. One restore target.
4. Security. RO mount on data/ = exploit can't poison source bytes that facts cite. Tampering only possible in output/ event log, which is hash-chained.
5. Test hygiene.tmp_path fixture sets output_dir = tmp_path per test. data/ never touched by tests = no flakes from cross-test pollution.
Why: engine's primitive is facts + pointers. Other concerns (ingest, MCP, render) serve facts. Name = primitive = clarity. Two syllables, importable, Apache-friendly.
Final mapping:
python
# engine
pip install factkit
from factkit import create_app, register, VerticalPlugin
# vertical
pip install factkit-property-de
from factkit_property_de import plugin
Confirm factkit → I lock + write IMPLEMENTATION_PLAN.md. Or pick provena if brand-over-clarity preferred.
User
i feel like this is over engineering, i don't want to make it as a library for python. just anyone should fork it and run as a standalone layer to work on top
Assistant· claude-opus-4-7
Right. Drop library framing. Single repo, fork-and-run, swappable vertical via folder.
this might be better suitable to focus as operatonal -> The AI Operating System for Companies#
By Diana Hu
The best AI-native companies we're seeing have figured out something most haven't: they've made their entire company queryable. Every meeting recorded, every ticket tracked, every customer interaction captured, all legible to an intelligence layer that learns from it.
This turns a company from an open loop into a closed loop. In an open loop, you make a decision and maybe check the results weeks later. In a closed loop, the system monitors what's happening, compares it to what should be happening, and adjusts. I've seen teams that do this cut sprint time in half and ship twice as much.
The problem is building this today requires brutal integration work, stitching together Slack, Linear, GitHub, Notion, call recordings, and a dozen other tools with custom glue code. There's no product that connects all this context into a single intelligence layer that can reason across it, flag when engineering is building the wrong thing, or generate specs agents can execute on.
We think there's a big opportunity to build the connective layer that makes a company legible to AI by default. Not another dashboard. The system that turns a company's own artifacts into a self-improving loop.
If you're building this, we'd love to talk.
Assistant· claude-opus-4-7
Push back. Read this carefully — it validates your architecture but tempts a wrong pivot.
Competition: crowded — Glean ($2.2B), Notion AI, Slack AI, Granola, Lindy, Sana, Cohere Coral, internal "AI ops" teams at every Series B+
What you have
Ingest: emails, invoices, bank tx, stammdaten, letters
Unit: building (external asset)
Output: sourced answers + obligations + decisions per property
Buyer: Arbio-class PM operators
Competition: thin (PriceHubble/Cotality = data, not memory)
Why these are different products
Axis
Diana's company-OS
PropContext
Artifacts
internal collab tools
external regulated docs
Entities
employees/projects/decisions
buildings/owners/contractors
Buying motion
discretionary, replaces existing tools
regulated, no incumbent
Sales cycle
6-12mo enterprise
4-8wk PM operator
Compliance
SOC2 + data leaks
DSGVO + audit + legal map
Sunk code reuse
~10% (need new adapters)
80% (already wired)
Crowdedness
brutal — funded competitors
open
Same primitive (pointer-facts + bitemporal + MCP). Different products.
What Diana's note actually validates
Not "pivot to company OS." It validates:
Closed-loop architecture — what you've already built (Hermes loop)
Pointer-fact primitive — what we're refactoring to
Source-backed memory > RAG — your thesis from day 1
MCP as the read surface — already in your stack
Vertical-agnostic engine, swappable plugins — what we just spec'd
She'd take a meeting w/ a property-vertical PropContext that ships the primitive faster than 50 generalist company-OS pitches drowning in feature parity.
Two paths — honest
User
B
User
B
User
End of handoff. Next action: 5 tutoring center owner conversations, then build step 1 (storage layer).
User
9. References / prior art worth reading
CloudEvents spec — input envelope standard
MCP (Model Context Protocol) — output/query standard
AGENTS.md / CLAUDE.md convention — same lineage as OWNER.md
Buena Context Engine (property-context.lovable.app) — the inspiration; property-vertical version
Karpathy's llm-wiki — the "compact maintained wiki beats RAG" thesis
Datomic / XTDB — bitemporal database design
Nango — open-source connector platform
Hookdeck / Svix — webhook gateways
PostHog / Sentry / GitLab — open-core business model precedents
Linear / Figma — event-log-with-projection architecture in product practice
User
8. Anti-goals (worth being explicit)
Don't build a full ERP. Memory layer, not platform.
Don't compete with TutorBird/Mindbody/Toast on workflow features. Be the layer underneath.
Don't go horizontal on day one. "AI memory for any SMB" dies in month six. Tutoring center → adjacent education → only then horizontal.
Don't force users to think about the spec. The convention is for developers and integrators. Owners see "your notes" and "patterns we noticed."
Don't build 50 OAuth flows in-house. Nango is a feature, not a competitor.
Don't ship Hermes as auto-magical. Surface patterns, let humans confirm. Trust comes from being right and visible, not autonomous.
User
7. What to build first (suggested sequence)
The event log + materialized markdown projection (storage layer). SQLite, hash-chained, bitemporal columns. Single file per org. This is the foundation.
The patcher (writes events, projects markdown). Stupid version: every event becomes an active pointer. No supersession yet.
A Gmail connector via Nango. Webhooks → CloudEvents → patcher.
A stub classifier (rule-based, vertical-specific). For tutoring: detect parent emails by domain, map to known student.
A stub extractor (LLM, simple prompt per source type). Pull "what's this about" + entity reference.
MCP server exposing the memory. Test with Claude as the agent.
Minimal UI: chat + student page. No fancy features.
Hermes v0: pattern detection across emails ("this parent only replies to WhatsApp"). Surfacing only, not auto-promoting.
Each step gives you a working system that does something useful. Iterate intelligence later.
User
6. Open questions / decisions to make
Strategy
Library or standard? (Decided: library with conventions; let it spread like AGENTS.md did.)
Sub-vertical to ship first within education? (Leaning tutoring centers — cleanest entity model, lowest compliance overhead.)
Open core boundary: what stays closed-source? (Hermes, hosted UX. Maybe not the schema or the storage — those should be open.)
Product
Confirmed: education micro-businesses, tutoring first
v1 must NOT include: scheduling, payments, parent portal. Pure memory layer.
v1 MUST include: Gmail + at least one tutoring tool integration, chat interface, student page, OWNER.md editing, MEMORY.md surfacing, source citations.
Connector strategy: Nango under the hood for v1 unless we hit limits. Likely confirmed.
Tech stack: Rust core for performance? (gitoxide-style argument applies even without git — append-only logs at SMB scale are fast in any language; Rust matters more if/when this scales to thousands of orgs.) Likely Rust core with thin language bindings later.
Indexing layer for cross-entity queries: SQLite/DuckDB sidecar built from the event log.
Spec
Need to write a formal spec for the convention (OWNER.md, MEMORY.md, pointer format, bitemporal status, event log schema). This is what makes it adoptable beyond our own product.
CloudEvents profile: what extension attributes do we add? (Probably org, entity, kind, confidence as extensions.)
Validation
5 tutoring center owner conversations before any more building. Listening for: how many tools they juggle, what they re-type, what they forget, what parents complain about. If pain isn't visceral, pick a different vertical.
Benchmark: agent task accuracy with this memory layer vs. raw RAG over the same documents. Karpathy's "compact wiki beats RAG gymnastics" needs an actual number.
User
5. UI shape (for the eventual product, not the library)
The library is invisible. The hosted product hides every spec word from users.
Two surfaces
Chat (primary, 80% of usage):
One input box. Owner asks natural questions:
"Who hasn't paid for March?"
"What did Alex's mom email about last week?"
"Draft a reminder to all parents whose kids are behind."
Answers cite sources inline (click → opens the original).
Entity page (e.g., student page):
code
ALEX CHEN [📞] [✉️] [+ note]
What's open
• Mom asked about summer schedule (3 days ago)
• Payment overdue: March invoice
• Mentioned struggling with fractions last session
Recent
• Session Tuesday — went well, did chapter 4
• Email from mom Monday re: pickup change
Patterns we've noticed (← MEMORY.md, soft language)
• Usually cancels Friday sessions
• Mom prefers WhatsApp over email
• Best engagement in afternoon slots
Your notes (← OWNER.md, just "your notes")
[editable text area]
Everything else ▾ (collapsed full history)
Design principles
Hide the spec entirely. No "wiki" / "sources" / "pointers" in UI copy.
Lead with what's pending (temporal layer pays off here).
Provenance is one click, never zero, never two.
OWNER.md is just "your notes."
MEMORY.md is "patterns we've noticed" with confirm/dismiss.
One global search. Cmd-K.
Mobile-first for SMB owners on the move.
Aesthetic: Linear-grade restraint. Notion softness. Not Salesforce.
Homepage = worklist, not dashboard
code
GOOD MORNING
3 things need you today
• Reply to Sarah Chen — asked about summer
• Mia's payment overdue 5 days
• Tutor James reported issue with Daniel
12 students have updates since yesterday ▾
[ ask anything... ]
The killer demo moment
Owner uploads a year of Gmail + their TutorBird CSV. Two minutes later asks "what did Mia's mom say about her birthday last year?" — gets the answer with the email opened in a side panel. That's the entire pitch.
User
4. Ingestion: how it actually works
MCP is for queries (pull). Ingestion needs push.
Different protocol, different problem. MCP doesn't apply here.
Patterns in the wild (April/May 2026)
CloudEvents (CNCF, graduated 2024) — vendor-neutral envelope spec. Adopted by Azure, GCP, SAP, Adobe, Knative. This is our input contract.
Gmail-style Pub/Sub + history-diff — Gmail and Microsoft Graph push notify-then-pull (notification is "something changed", app fetches the diff with a cursor)
Direct polling — fallback for sources without webhooks
Per-source plumbing is the actual hard work
Each source has its own auth, delivery model, renewal semantics, payload format. Examples:
Source
Pattern
Gmail
Pub/Sub notification + history.list pull, watch renewed every 6 days
Recommendation: use Nango (open source) or Paragon/Merge.dev for the per-source connector plumbing. They've already built 100+ integrations with OAuth + token refresh + watch renewal handled. Our library receives normalized webhooks from them.
The integration platform is commodity. The memory layer on top is the moat.
The auth pattern
OAuth for connect-time. Per-source webhook config. Token refresh handled by the connector platform. The library receives normalized events and trusts that auth was already verified upstream.
User
3. Architecture
The pipeline
code
CONNECTORS (Gmail, Stripe, TutorBird, etc.)
↓ raw webhooks/pulls
INGESTION → normalizes to CloudEvents
↓ CloudEvent
CLASSIFIER → which org? which entity? new/update/resolution?
↓ ClassifiedEvent
EXTRACTOR → pull facts (LLM/rule-based, per-vertical)
↓ Fact[]
PATCHER → update wiki pointers, MEMORY.md, status
↓ events
STORE → append-only event log + projected markdown
↓
HERMES (async, watches all of above)
MCP SERVER → exposes memory to any agent
Storage decision: NOT git
Considered git. Decided against it for SMB use case (SMB owners don't git clone). Going with append-only event log + materialized markdown projection.
Audit substrate: SQLite append-only events table with hash-chained integrity. One file per org. Portable, embeddable, single-file backup.
State projection: wiki, OWNER.md, MEMORY.md are derived from replaying the log. They're caches, not truth. Regenerable.
Bitemporal: columns on each event (valid_time, transaction_time).
Tamper evidence: hash of previous event chained into each new event (Merkle-ish).
Time travel: replay log up to date X. Checkpoint for performance.
v2 if scale demands: swap SQLite for Postgres or EventStore. Contract doesn't change.
This pattern matches how Linear/Figma/Notion actually work under the hood. Markdown stays human-readable but is never the source of truth — so no merge conflict pain.
OWNER.md writes are also events (so even human edits go through the log).
The five contracts (the actual product surface)
Anyone implementing these can plug into the library:
code
User
2. Core concepts (the convention)
Two-level hierarchy
code
Org (the company)
└── Entities (students, members, customers, units, suppliers...)
The org has its own memory. Each entity has its own memory. Entities inherit from org; entity memory only stores deltas/exceptions.
What counts as an "entity" is org-defined. A tutoring center's entities = students. A restaurant's entities = regulars + suppliers + shifts. The library doesn't pre-decide this.
The four artifacts (per entity, also per org)
code
sources/ # Original files (immutable). Emails, PDFs, payments, notes.
wiki/ # Machine-maintained. Pointers to sources, not copies.
OWNER.md # Human-written. Preferences, judgment, soft knowledge.
MEMORY.md # System-learned patterns (was previously called INFER.md).
Three writers, zero overlap:
Humans write OWNER.md only
The system mechanically maintains wiki/ (pointer index)
The system writes learned observations to MEMORY.md
sources/ is append-only; nothing edits originals
This separation eliminates merge conflicts and makes the trust model obvious.
Facts live at their source, not in the wiki
Critical design decision: the wiki is an index, not storage. A fact like "rent = €1,200" doesn't live in the wiki — it lives in lease.pdf#p3. The wiki just says rent: €1,200 → lease.pdf#p3.
Implications:
Provenance is the architecture, not a feature
No drift between extracted-fact and human-edit (because there's no extracted copy)
"Self-healing" means re-routing pointers when sources change, not regenerating extracted text
Audit is trivial — every fact is its source
Bitemporal pointers
Every pointer carries two times:
Valid time — when the fact was true in the world
Transaction time — when the system learned about it
This separation matters because backdated truth is normal (move-out email arrives May 30 saying "I moved out May 15"). Single-clock systems lie about one or the other.
Assistant· claude-opus-4-7
Locked: Path B. Writing plan now w/ defaults — keep propcontext repo name, verticals/ folder, schema under vertical.
Assistant· claude-opus-4-7
Plan written → IMPLEMENTATION_PLAN.md. Old plan archived at docs/archive/IMPLEMENTATION_PLAN.old.md.
Summary:
7 phases, 13 working days
Apache-2.0 fork-and-run, single repo, single package
Engine app/<modules> ↔ vertical app/verticals/property_de/ hard import boundary
The system mechanically maintains wiki/ (pointer index)
The system writes learned observations to MEMORY.md
sources/ is append-only; nothing edits originals
This separation eliminates merge conflicts and makes the trust model obvious.
Facts live at their source, not in the wiki
Critical design decision: the wiki is an index, not storage. A fact like "rent = €1,200" doesn't live in the wiki — it lives in lease.pdf#p3. The wiki just says rent: €1,200 → lease.pdf#p3.
Implications:
Provenance is the architecture, not a feature
No drift between extracted-fact and human-edit (because there's no extracted copy)
"Self-healing" means re-routing pointers when sources change, not regenerating extracted text
Audit is trivial — every fact is its source
Bitemporal pointers
Every pointer carries two times:
Valid time — when the fact was true in the world
Transaction time — when the system learned about it
This separation matters because backdated truth is normal (move-out email arrives May 30 saying "I moved out May 15"). Single-clock systems lie about one or the other.
Pointer also carries a status:
active — currently true
pending — open question, awaiting resolution
resolved — settled, kept for history
superseded — newer source replaced this
Agents default to reading active + pending. The "what's open?" query is just WHERE status = 'pending'.
Convention lineage: AGENTS.md / CLAUDE.md
What we're describing is the same convention as AGENTS.md in coding tools, generalized beyond code. Coding agents got there first because devs already had repos. The pattern works for any persistent context an agent needs in a specific scope.
Our contribution beyond AGENTS.md: separating human-declared rules (OWNER.md) from machine-observed patterns (MEMORY.md) as different artifacts with different trust levels.
Hermes (the self-healing loop)
Async background process. Not in the hot path. Jobs:
Watch sources → update wiki pointers when files change
Watch patterns across sources/wiki → propose entries for MEMORY.md
Watch MEMORY.md vs OWNER.md → suggest promoting confirmed patterns
Watch agent failures → suggest schema or vocabulary improvements
Discipline: every MEMORY.md entry needs evidence count + confidence. Without that it becomes vibes. With it, agents can decide whether to act or surface to a human.
Hermes is the moat. Closed-core in the hosted version.
3. Architecture
The pipeline
code
CONNECTORS (Gmail, Stripe, TutorBird, etc.)
↓ raw webhooks/pulls
INGESTION → normalizes to CloudEvents
↓ CloudEvent
CLASSIFIER → which org? which entity? new/update/resolution?
↓ ClassifiedEvent
EXTRACTOR → pull facts (LLM/rule-based, per-vertical)
↓ Fact[]
PATCHER → update wiki pointers, MEMORY.md, status
↓ events
STORE → append-only event log + projected markdown
↓
HERMES (async, watches all of above)
MCP SERVER → exposes memory to any agent
Storage decision: NOT git
Considered git. Decided against it for SMB use case (SMB owners don't git clone). Going with append-only event log + materialized markdown projection.
Audit substrate: SQLite append-only events table with hash-chained integrity. One file per org. Portable, embeddable, single-file backup.
State projection: wiki, OWNER.md, MEMORY.md are derived from replaying the log. They're caches, not truth. Regenerable.
Bitemporal: columns on each event (valid_time, transaction_time).
Tamper evidence: hash of previous event chained into each new event (Merkle-ish).
Time travel: replay log up to date X. Checkpoint for performance.
v2 if scale demands: swap SQLite for Postgres or EventStore. Contract doesn't change.
This pattern matches how Linear/Figma/Notion actually work under the hood. Markdown stays human-readable but is never the source of truth — so no merge conflict pain.
OWNER.md writes are also events (so even human edits go through the log).
The five contracts (the actual product surface)
Anyone implementing these can plug into the library:
Gmail-style Pub/Sub + history-diff — Gmail and Microsoft Graph push notify-then-pull (notification is "something changed", app fetches the diff with a cursor)
Direct polling — fallback for sources without webhooks
Per-source plumbing is the actual hard work
Each source has its own auth, delivery model, renewal semantics, payload format. Examples:
Source
Pattern
Gmail
Pub/Sub notification + history.list pull, watch renewed every 6 days
Recommendation: use Nango (open source) or Paragon/Merge.dev for the per-source connector plumbing. They've already built 100+ integrations with OAuth + token refresh + watch renewal handled. Our library receives normalized webhooks from them.
The integration platform is commodity. The memory layer on top is the moat.
The auth pattern
OAuth for connect-time. Per-source webhook config. Token refresh handled by the connector platform. The library receives normalized events and trusts that auth was already verified upstream.
5. UI shape (for the eventual product, not the library)
The library is invisible. The hosted product hides every spec word from users.
Two surfaces
Chat (primary, 80% of usage):
One input box. Owner asks natural questions:
"Who hasn't paid for March?"
"What did Alex's mom email about last week?"
"Draft a reminder to all parents whose kids are behind."
Answers cite sources inline (click → opens the original).
Entity page (e.g., student page):
code
ALEX CHEN [📞] [✉️] [+ note]
What's open
• Mom asked about summer schedule (3 days ago)
• Payment overdue: March invoice
• Mentioned struggling with fractions last session
Recent
• Session Tuesday — went well, did chapter 4
• Email from mom Monday re: pickup change
Patterns we've noticed (← MEMORY.md, soft language)
• Usually cancels Friday sessions
• Mom prefers WhatsApp over email
• Best engagement in afternoon slots
Your notes (← OWNER.md, just "your notes")
[editable text area]
Everything else ▾ (collapsed full history)
Design principles
Hide the spec entirely. No "wiki" / "sources" / "pointers" in UI copy.
Lead with what's pending (temporal layer pays off here).
Provenance is one click, never zero, never two.
OWNER.md is just "your notes."
MEMORY.md is "patterns we've noticed" with confirm/dismiss.
One global search. Cmd-K.
Mobile-first for SMB owners on the move.
Aesthetic: Linear-grade restraint. Notion softness. Not Salesforce.
Homepage = worklist, not dashboard
code
GOOD MORNING
3 things need you today
• Reply to Sarah Chen — asked about summer
• Mia's payment overdue 5 days
• Tutor James reported issue with Daniel
12 students have updates since yesterday ▾
[ ask anything... ]
The killer demo moment
Owner uploads a year of Gmail + their TutorBird CSV. Two minutes later asks "what did Mia's mom say about her birthday last year?" — gets the answer with the email opened in a side panel. That's the entire pitch.
6. Open questions / decisions to make
Strategy
Library or standard? (Decided: library with conventions; let it spread like AGENTS.md did.)
Sub-vertical to ship first within education? (Leaning tutoring centers — cleanest entity model, lowest compliance overhead.)
Open core boundary: what stays closed-source? (Hermes, hosted UX. Maybe not the schema or the storage — those should be open.)
Product
Confirmed: education micro-businesses, tutoring first
v1 must NOT include: scheduling, payments, parent portal. Pure memory layer.
v1 MUST include: Gmail + at least one tutoring tool integration, chat interface, student page, OWNER.md editing, MEMORY.md surfacing, source citations.
Connector strategy: Nango under the hood for v1 unless we hit limits. Likely confirmed.
Tech stack: Rust core for performance? (gitoxide-style argument applies even without git — append-only logs at SMB scale are fast in any language; Rust matters more if/when this scales to thousands of orgs.) Likely Rust core with thin language bindings later.
Indexing layer for cross-entity queries: SQLite/DuckDB sidecar built from the event log.
Spec
Need to write a formal spec for the convention (OWNER.md, MEMORY.md, pointer format, bitemporal status, event log schema). This is what makes it adoptable beyond our own product.
CloudEvents profile: what extension attributes do we add? (Probably org, entity, kind, confidence as extensions.)
Validation
5 tutoring center owner conversations before any more building. Listening for: how many tools they juggle, what they re-type, what they forget, what parents complain about. If pain isn't visceral, pick a different vertical.
Benchmark: agent task accuracy with this memory layer vs. raw RAG over the same documents. Karpathy's "compact wiki beats RAG gymnastics" needs an actual number.
7. What to build first (suggested sequence)
The event log + materialized markdown projection (storage layer). SQLite, hash-chained, bitemporal columns. Single file per org. This is the foundation.
The patcher (writes events, projects markdown). Stupid version: every event becomes an active pointer. No supersession yet.
A Gmail connector via Nango. Webhooks → CloudEvents → patcher.
A stub classifier (rule-based, vertical-specific). For tutoring: detect parent emails by domain, map to known student.
A stub extractor (LLM, simple prompt per source type). Pull "what's this about" + entity reference.
MCP server exposing the memory. Test with Claude as the agent.
Minimal UI: chat + student page. No fancy features.
Hermes v0: pattern detection across emails ("this parent only replies to WhatsApp"). Surfacing only, not auto-promoting.
Each step gives you a working system that does something useful. Iterate intelligence later.
8. Anti-goals (worth being explicit)
Don't build a full ERP. Memory layer, not platform.
Don't compete with TutorBird/Mindbody/Toast on workflow features. Be the layer underneath.
Don't go horizontal on day one. "AI memory for any SMB" dies in month six. Tutoring center → adjacent education → only then horizontal.
Don't force users to think about the spec. The convention is for developers and integrators. Owners see "your notes" and "patterns we noticed."
Don't build 50 OAuth flows in-house. Nango is a feature, not a competitor.
Don't ship Hermes as auto-magical. Surface patterns, let humans confirm. Trust comes from being right and visible, not autonomous.
9. References / prior art worth reading
CloudEvents spec — input envelope standard
MCP (Model Context Protocol) — output/query standard
AGENTS.md / CLAUDE.md convention — same lineage as OWNER.md
Buena Context Engine (property-context.lovable.app) — the inspiration; property-vertical version
Karpathy's llm-wiki — the "compact maintained wiki beats RAG" thesis
Datomic / XTDB — bitemporal database design
Nango — open-source connector platform
Hookdeck / Svix — webhook gateways
PostHog / Sentry / GitLab — open-core business model precedents
Linear / Figma — event-log-with-projection architecture in product practice
End of handoff. Next action: 5 tutoring center owner conversations, then build step 1 (storage layer).
3. "5 owner conversations" before storage layer
You've already done property research via PropContext. Don't reset zero. Talk to 5 PMs about infra need + 5 tutor owners only if pivoting.
Risk: convo's tell you tutoring centers want a CRM, not memory layer. Pivot wastes 6 months.
4. Rust core
Premature. SMB scale (1000s orgs × 1000s entities × small event volumes) trivial in Python/TS. SQLite handles it raw. Rewrite if profile shows hot path. Not before.
Your current stack = Python 3.13 / FastAPI / Pydantic. Don't fork the ecosystem on a hunch.
Decision: Python core, MCP server, event log in SQLite via aiosqlite. Move 1 hot path to Rust if needed at year 2.
5. Nango dependency
Smart for OAuth/webhooks. But: Nango outage = your product down. Customer data flows their pipes.
DSGVO (German market): data-flow audit will require Nango DPA + sub-processor map. Not blocker, just plan.
Backup: write 2-3 connectors directly (Gmail, Stripe) so demo independent of Nango contract.
6. Hash-chained SQLite ≠ tamper-evident
One actor with DB write = can rewrite chain. Real tamper evidence needs external anchor (Merkle root publish, witness, signed checkpoints).
For SMB MVP, fine. Don't oversell on landing as "tamper-proof" — say "tamper-evident within app boundary, audit-trail-grade."
7. "Patterns we've noticed" UX
Soft language good. Risk: surfaces stale/wrong patterns → erodes trust faster than no surface.
Need confidence threshold + auto-decay. Pattern not seen 30d = hide. Confidence < 0.7 = silent.
Confirm/dismiss feedback must train. Otherwise = vibes UI.
"Don't build memory layer for memory layer." Risk you turn Hermes into research project. Hermes v0 = pattern surface + confidence. Done. No auto-promotion, no schema-self-edit, no LLM-judges-LLM. Ship v0, watch what owners actually correct, iterate from data.
Verdict
Architecture: 8/10 — pointers + bitemporal + event log are right primitives.
Strategy: 5/10 — vertical pick fights your existing assets.
Sequencing: 6/10 — storage-first correct, but vertical-validation step risks throwing PropContext sunk cost.
Best move: ship property v1 = PropContext refactored to this spec. Use it as reference impl. Generalize convention publicly. Education = v2 plugin once primitive proven against paying PM customer.
Goal: facts cite source, no duplicated text. Time-travel queries.
Refactor wiki_chunks.duckdb schema:
sql
-- new table alongside existing chunks
CREATE TABLE facts (
id TEXT PRIMARY KEY,
property_id TEXT NOT NULL,
section TEXT NOT NULL, -- "owners", "contractors", "obligations"
key TEXT NOT NULL, -- "rent", "next_inspection"
value JSON, -- typed payload
source_uri TEXT NOT NULL, -- pointer back to data/...
source_locator JSON, -- {page: 3, line: 12} | {msgid: "..."}
valid_from TIMESTAMP,
valid_to TIMESTAMP,
txn_from TIMESTAMP DEFAULT now(),
txn_to TIMESTAMP,
status TEXT CHECK (status IN ('active','pending','resolved','superseded')),
confidence REAL,
evidence_count INT
);
CREATE INDEX facts_active ON facts(property_id, section, status)
WHERE txn_to IS NULL AND status IN ('active','pending');
CREATE TABLE events (
seq INTEGER PRIMARY KEY, -- monotonic
ts TIMESTAMP DEFAULT now(),
kind TEXT, -- "fact.upsert", "fact.supersede", "owner_note.write"
payload JSON,
prev_hash TEXT,
hash TEXT -- sha256(prev_hash || canonical(payload))
);
Patcher updates: instead of regenerating wiki text, write pointer rows. building.md becomes assembled-on-read view (template + active facts).
Migration: keep old chunks table read-only; new code writes to facts. building.md renderer reads facts WHERE status IN ('active','pending').
Drop git-diff path: confirmed not needed for state — event log + projection covers audit. If git-based versioning lurks in app/services/, delete. Quick grep:
bash
rg -l "git" app/ --type py
Tests:tests/storage/test_facts.py
bitemporal: insert fact valid 2024-01, supersede with 2025-01 backdate → as-of 2024-06 returns first
pointer: every fact resolves to existing source file
hash chain: tamper detection
Risk: medium. Mitigation: feature flag APP_FACTS_BACKEND=legacy|pointer, run both for 1 week.
building://{org}/{property}/pending — open questions only
source://{property}/{relative_path} — raw source byte stream w/ access gate
Golden test packtests/mcp/test_golden.py:
python
GOLDEN = [
("LIE-001", "who is the owner?", ["Müller", "stammdaten.json"]),
("LIE-001", "when was last bank statement?", ["2024-", "kontoauszug"]),
("LIE-001", "any open invoices?", ["EUR", "rechnung"]),
("LIE-001", "next inspection due?", ["BetrSichV", "due"]),
# 20 total
]
Run via FastMCP test client → assert MCP tool returns substring matches + source URI present.
Code stays small because router dispatches on kind to existing handlers. New formats only need adapter + extractor module. Document in schema/extractors/README.md.
Phase 5 — Outdated sample purge (parallel to phase 0–3)
Walk and decide:
data/incremental/ → rename to data/sample/incremental/ if for demo, drop if dead
simulation.md → fold useful bits into scripts/demo.sh, then delete
optimisation-checklist.md → if stale, archive to docs/archive/
App code that writes to data_dir = bug. Add lint rule + runtime assert in dev mode (path check before open).
Edge cases
New property onboarding (live, not fixture): user POSTs stammdaten.json via ingest → lands in output/inbox/{ulid}/stammdaten.json → handler creates property → facts cite inbox://.... data/ untouched.
Demo registers German WEG plugin at app startup. Tomorrow another team registers STR plugin = different schema, different extractors, same engine binary.
Apache-2.0 boundary
packages/propcontext/ → Apache-2.0, public package, pip install propcontext
verticals/property/ — drop locale; English-first if planning i18n schema
verticals/wegmgmt-de/ — too cryptic
Stick w/ property-de. Locale matters because German legal map + extractors are German-specific. Future English property = verticals/property-uk/ or similar.
Decision needed
Confirm structure → I write IMPLEMENTATION_PLAN.md w/:
Same primitive. Different vertical folder. Engine code unchanged.
What changes in your README/pitch
Add one paragraph after current description:
PropContext is the property-domain instance of a general primitive: a pointer-fact memory layer for any operational system. The ingest envelope, fact pointers, bitemporal status, and MCP query surface are vertical-agnostic. Property is v1 because regulation forces the buy. The same engine can power company-OS verticals (Slack/Linear/GitHub) — fork the repo, swap app/verticals/. See Diana Hu's "AI OS for Companies" thesis (YC, Apr 2026).
This claims the bigger thesis without abandoning the wedge.
Anti-temptation list
Things to NOT do because Diana's note exists:
Don't rename repo to "companyos"
Don't rip out German extractors
Don't add a Slack adapter "just to show"
Don't write a deck pitching company OS w/o a property paying customer
Don't list Glean as competitor
What I'd do this week
Same plan as before — refactor to fact-pointer + envelope + MCP golden tests under property vertical. Ship property demo to Arbio. Then drop Diana's note in cold outreach: "we built the closed-loop layer you wrote about; here's it running on a regulated vertical w/ paying customer."
Validation > vision.
Decision needed (still)
Path A or Path B. If A, full restart. If B, plan from prior turn stands and I write IMPLEMENTATION_PLAN.md now. My recommendation: B.
Which extractor (LLM, rules, hybrid, per-vertical)
Which classifier model
Which storage backend implementation (SQLite default, Postgres later)
Which agent consumes the memory
Schema per org
Vertical-agnostic core, vertical-specific plugins
The vertical lives in three places:
Schema definition — what an entity looks like, what sections
Extractor — how to pull facts from this vertical's typical sources
Connectors — which sources matter for this vertical
Swap those three, you have a different vertical. Education first → property/music/coaching/etc. by swapping plugins.
Pointer also carries a status:
active — currently true
pending — open question, awaiting resolution
resolved — settled, kept for history
superseded — newer source replaced this
Agents default to reading active + pending. The "what's open?" query is just WHERE status = 'pending'.
Convention lineage: AGENTS.md / CLAUDE.md
What we're describing is the same convention as AGENTS.md in coding tools, generalized beyond code. Coding agents got there first because devs already had repos. The pattern works for any persistent context an agent needs in a specific scope.
Our contribution beyond AGENTS.md: separating human-declared rules (OWNER.md) from machine-observed patterns (MEMORY.md) as different artifacts with different trust levels.
Hermes (the self-healing loop)
Async background process. Not in the hot path. Jobs:
Watch sources → update wiki pointers when files change
Watch patterns across sources/wiki → propose entries for MEMORY.md
Watch MEMORY.md vs OWNER.md → suggest promoting confirmed patterns
Watch agent failures → suggest schema or vocabulary improvements
Discipline: every MEMORY.md entry needs evidence count + confidence. Without that it becomes vibes. With it, agents can decide whether to act or surface to a human.
Hermes is the moat. Closed-core in the hosted version.