P3AK / .mdr format
Pipeline ↗ ← Docs p3ak.ai
.mdr

The portable document format for AI.

Any file type goes in — PDF, DOCX, audio, image, spreadsheet. Structured, versioned, layered knowledge comes out. Always human-readable. Always yours.

P3AK Native Markdown inside Multi-layer access Full version history Model-agnostic Open spec

Overview

One file. Everything inside.

A .mdr file is what happens when a document enters the P3AK ecosystem. It wraps your original content — whether from a PDF, Word doc, spreadsheet, or audio transcript — in a structured envelope that carries its complete history, access tiers, and metadata. Pull it open in any text editor and read it. Ingest it into a vault and search it. Export it back as a branded PDF. The data never disappears.

Extension
.mdr
Format
YAML header + Markdown body
Delimiter
@@@ layer:X version:N @@@
Access tiers
public · internal · legal · board
Versions
Unlimited, all in one file
Readable by
Any text editor
Vault ingestion
p3ak-vault ingest --file doc.mdr
Spec version
v1 (current)

Conversion

From any format to .mdr

P3AK vault reads your source file, extracts the content, and wraps it in a structured .mdr envelope. Color-coded callouts show exactly what maps where.

1
Document title → title:
2
Date / metadata → created:
3
Body content → layer block
4
Key terms → tags:
5
Parties / author → created_by:
Source file contract.pdf · 284 KB
Professional Services Agreement
Acme Corp ("Client") × Silicon Bayou LLC ("Provider")
Effective Date: November 1, 2025
1. Services
Provider agrees to deliver AI integration consulting services as described in Exhibit A. All deliverables shall be provided in accordance with the project timeline.
2. Payment
Client shall pay Provider $12,500 per month, due on the 1st of each calendar month. Late payments incur 1.5% monthly interest.
3. Term & Renewal
This Agreement is effective for twelve (12) months from the Effective Date and shall auto-renew annually unless either party provides 30 days written notice.
4. Confidentiality
Each party agrees to maintain the confidentiality of the other party's proprietary information for a period of three (3) years following termination.
Acme Corp · Authorized Signature
Silicon Bayou LLC · Richard Taubin
Page 1 of 3
After p3ak-vault ingest contract.mdr
+++mdr format_version: 1 doc_id: "acme-professional-services-agreement" title: "Professional Services Agreement" 1 created: "2025-11-01T00:00:00Z" 2 created_by: "p3ak-vault" 5 source_format: "pdf" source_hash: "sha256:a3f29c8d..." current_layer: internal current_version: 1 tributaries: ["legal"] tags: ["services", "renewal", "auto-renew", "acme"] 4 layers: - id: internal restricted: true +++ @@@ layer:internal version:1 author:p3ak-vault ts:2025-11-01T00:00:00Z @@@ # Professional Services Agreement 1 **Parties:** Acme Corp ("Client") × Silicon Bayou LLC ("Provider") 5 **Effective Date:** November 1, 2025 2 ## 1. Services 3 Provider agrees to deliver AI integration consulting services as described in Exhibit A... ## 2. Payment 3 Client shall pay Provider $12,500 per month... ## 3. Term & Renewal 4 twelve (12) months · auto-renews annually · 30-day notice to cancel 4 ## 4. Confidentiality Three (3) years following termination... _Signatures: Acme Corp · Silicon Bayou LLC / Richard Taubin_ 5
Note on source_hash: The SHA-256 hash of the original PDF is stored in the header. If the source file changes, the hash changes — making tampering detectable. The original PDF is preserved separately; the .mdr holds the extracted knowledge.
Source file meeting-notes.docx · 44 KB
Board Meeting Notes
Silicon Bayou LLC · December 10, 2025 · 9:00 AM CST
Attendees: Richard Taubin, Sarah Chen, Marcus Williams
1. Financials Review
Q4 revenue tracking $47K MRR, up 18% QoQ. Burn rate at $23.5K/month with 16 months runway. Action: CFO to prepare Q1 projections by Jan 15.
MetricQ3Q4Change
MRR$39.8K$47K+18%
Burn$24.1K$23.5K-2.5%
Runway14 mo16 mo+2 mo
2. P3AK Launch Update
vault v0.1.0 published to crates.io. Beta waitlist opened. Target: 500 installs by Q1 2026.
3. Next Meeting
January 14, 2026 · 9:00 AM CST
After p3ak-vault ingest meeting-notes.mdr
+++mdr format_version: 1 doc_id: "sbl-board-meeting-notes-2025-12" title: "Board Meeting Notes" 1 created: "2025-12-10T09:00:00Z" 2 created_by: "p3ak-vault" 5 source_format: "docx" source_hash: "sha256:7b91f2a4..." current_layer: internal current_version: 1 tributaries: ["operations", "finance"] tags: ["board", "q4", "mrr", "runway", "p3ak-launch"] 4 layers: - id: internal restricted: true - id: board privileged: true +++ @@@ layer:internal version:1 author:p3ak-vault ts:2025-12-10T09:00:00Z @@@ # Board Meeting Notes 1 **Date:** December 10, 2025 · 9:00 AM CST 2 **Attendees:** Richard Taubin, Sarah Chen, Marcus Williams 5 ## 1. Financials Review 3 Q4 revenue tracking $47K MRR, up 18% QoQ. Burn rate at $23.5K/month with 16 months runway. | Metric | Q3 | Q4 | Change | |---|---|---|---| | MRR | $39.8K | $47K | +18% | 4 | Runway | 14 mo | 16 mo | +2 mo | 4 ## 2. P3AK Launch Update 3 vault v0.1.0 published to crates.io. Beta waitlist opened. Target: 500 installs by Q1 2026. 4 ## 3. Next Meeting January 14, 2026 · 9:00 AM CST 2
Tables preserved: DOCX tables convert cleanly to Markdown table syntax. The data remains queryable — searching "MRR" or "runway" surfaces this document with full table context.
Source file architecture.md · 18 KB
# architecture.md — raw markdown file
# P3AK Platform Architecture
Last updated: 2025-12-15 by @rtaubin
## Overview
P3AK is a three-product AI-native platform.
Each product works standalone or as a stack.
## vault
- Storage: AES-256-GCM encrypted .vault file
- Search: BM25 + ZVec hybrid, 98% Top-1
- Formats: 35 file types supported
## room
- Stack: Next.js 14, Drizzle ORM
- Structure: 5 tributaries
- Format: .mdr export
## Authors
- Richard Taubin <rich@siliconbayou.ai>
After p3ak-vault ingest architecture.mdr
+++mdr format_version: 1 doc_id: "p3ak-platform-architecture" title: "P3AK Platform Architecture" 1 created: "2025-12-15T00:00:00Z" 2 created_by: "rtaubin" 5 source_format: "markdown" source_hash: "sha256:c2d84e1f..." current_layer: internal current_version: 1 tributaries: ["tech"] tags: ["architecture", "vault", "room", "mdr"] 4 layers: - id: internal +++ @@@ layer:internal version:1 author:rtaubin ts:2025-12-15T00:00:00Z @@@ # Markdown source is used as-is — no conversion needed # The .mdr header is simply prepended to the existing content # P3AK Platform Architecture 1 Last updated: 2025-12-15 by @rtaubin 2 ## Overview 3 P3AK is a three-product AI-native platform... ## vault · ## room · ## harness 3 ... .mdr export · 5 tributaries · hybrid search 4 ## Authors 5 Richard Taubin <rich@siliconbayou.ai> 5
Markdown is the simplest case: the source file is already in the right format. P3AK prepends the structured header and the @@@ layer @@@ delimiter — no content transformation required. Zero data loss, zero ambiguity.

Versioning

Every change. One file.

When a document is updated, the new content is prepended as a new layer block. Prior versions are never deleted — they're preserved below the current version with their original timestamp and author. One .mdr file holds the complete history of a document, forever.

v1
November 1, 2025 · Richard Taubin
Initial agreement
Original contract drafted. 12-month term, $12,500/month, auto-renewal clause included.
+ Term: 12 months, auto-renewing annually
+ Rate: $12,500/month
+ Notice: 30 days written to cancel
v2
November 15, 2025 · Sarah Chen
Payment terms amended
Client requested net-30 payment terms. Rate unchanged. Late fee reduced from 1.5% to 1.0%.
- Payment: due 1st of month
+ Payment: net-30 from invoice date
- Late fee: 1.5% monthly
+ Late fee: 1.0% monthly
v3
December 1, 2025 · Richard Taubin · current
Term extended to 24 months
Mutual agreement to extend initial term. Early termination clause added at client request.
- Term: 12 months
+ Term: 24 months
+ Early termination: 90-day notice + 2-month fee
contract.mdr — all 3 versions in one file
+++mdr format_version: 1 doc_id: "acme-professional-services-agreement" title: "Professional Services Agreement" current_layer: internal current_version: 3 +++ # ───────────────────────────────────────── # CURRENT VERSION (what vault searches) # ───────────────────────────────────────── @@@ layer:internal version:3 author:rtaubin ts:2025-12-01T00:00:00Z @@@ # Professional Services Agreement **Term:** 24 months from Effective Date **Payment:** $12,500/month · net-30 from invoice **Late fee:** 1.0% monthly **Early termination:** 90-day notice + 2-month fee ... # ───────────────────────────────────────── # PRIOR VERSION (preserved, not searched) # ───────────────────────────────────────── @@@ layer:internal version:2 author:schen ts:2025-11-15T00:00:00Z @@@ # Professional Services Agreement **Term:** 12 months · auto-renewing **Payment:** $12,500/month · net-30 from invoice **Late fee:** 1.0% monthly ← amended ... # ───────────────────────────────────────── # ORIGINAL VERSION (always preserved) # ───────────────────────────────────────── @@@ layer:internal version:1 author:rtaubin ts:2025-11-01T00:00:00Z @@@ # Professional Services Agreement **Term:** 12 months · auto-renewing annually **Payment:** $12,500/month · due 1st of month **Late fee:** 1.5% monthly ← original ...
P3AK vault only indexes the current version (the topmost @@@ layer @@@ block). Prior versions are preserved in the file but not surfaced in search — unless you explicitly request them with --version 1. Nothing is ever lost.

Export

Back to PDF — branded.

Any version of any .mdr document can be exported back as a formatted PDF. P3AK applies your organization's branding, adds a tamper-evident metadata footer, and stamps which vault version the document came from.

P3AK
acme-professional-services-agreement version 3 · layer: internal exported 2025-12-15 · company.vault
Professional Services Agreement
Acme Corp ("Client") × Silicon Bayou LLC ("Provider")
Effective Date: November 1, 2025 · Version 3, December 1, 2025
1. Services
Provider agrees to deliver AI integration consulting services as described in Exhibit A. All deliverables shall be provided in accordance with the project timeline.
2. Payment
Client shall pay Provider $12,500 per month, due net-30 from invoice date. Late payments incur 1.0% monthly interest.
3. Term & Renewal
This Agreement is effective for twenty-four (24) months from the Effective Date and shall auto-renew unless either party provides 90 days written notice. Early termination requires 90-day notice plus a two-month termination fee.
The export lifecycle: PDF → .mdr (ingested, versioned, encrypted in vault) → export back to branded PDF at any time, any version. The data is always retrievable in its original form plus all edits. No lock-in. No black boxes.
← Back to P3AK Docs  ·  Full .mdr spec on GitHub  ·  p3ak.ai