Skip to content

docs: add Phase 2 comprehensive agent-plane schema documentation - #2

Merged
mdheller merged 2 commits into
feat/agent-plane-core-schemas-v0from
copilot/add-phase-2-schema-documentation
Apr 8, 2026
Merged

docs: add Phase 2 comprehensive agent-plane schema documentation#2
mdheller merged 2 commits into
feat/agent-plane-core-schemas-v0from
copilot/add-phase-2-schema-documentation

Conversation

CopilotAI commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Adds PHASE_2_SCHEMA_DOCUMENTATION.md as the authoritative reference for the 13-schema agent-plane contract layer introduced in this PR.

Coverage

  • Schema family overview — all 13 types (ExecutionDecisionEventEnvelope) with $id and purpose
  • URN namespace strategy — full urn:srcos: hierarchy, per-namespace regex patterns, ID construction convention
  • Dependency graph — ASCII DAG of all $ref and cross-document *Ref relationships with binding table
  • Validation quickstart — Python (jsonschema + RefResolver) and Node.js (ajv 2020-12) examples with real payloads
  • OpenAPI/AsyncAPI binding — endpoint and channel tables; yq merge commands for applying the patch fragments
  • Complete JSON examples — valid, realistic instances for all 13 schema types
  • Versioning discipline — SemVer bump rules, additionalProperties: false rationale, deprecation path
  • Imagelab integrationValidationResult contract, validator binding table, admission webhook flow
  • Agentplane artifact integrationSessionArtifact → PromotionArtifact / ReversalArtifact lifecycle with field-level mapping
  • Roadmap — Phase 2.5–4 checklist (schema hardening → runtime enforcement → governance extensions → toolchain)
  • File inventory — all 15 PR files with line counts and purposes
Original prompt

Phase 2: Comprehensive Schema Documentation

Add comprehensive Phase 2 documentation to sourceos-spec#1 (feat/agent-plane-core-schemas-v0 branch).

Documentation to Add

Create PHASE_2_SCHEMA_DOCUMENTATION.md with:

  1. Agent-Plane Schema Family Overview - All 13 schema types with purpose/description
  2. URN Namespace Strategy - Hierarchy and validation patterns
  3. Schema Relationships & Dependency Graph - How schemas reference each other
  4. JSON Schema Validation Quickstart - Python jsonschema and Node.js ajv examples
  5. OpenAPI/AsyncAPI Integration Binding - Service contract wiring guide
  6. Complete Examples for Each Schema - Practical JSON examples for all 13 types
  7. Versioning & Compatibility Discipline - SemVer strategy and backward compatibility
  8. Integration with Imagelab Validators - How validators will bind to schemas
  9. Integration with Agentplane Artifacts - How artifacts reference these schemas
  10. Follow-Up Roadmap - Phase 2.5+ planning
  11. Complete File Inventory - All 15 files with line counts and purposes

Files in PR

  • ExecutionDecision.json (87 lines)
  • AgentSession.json (157 lines)
  • ExecutionSurface.json (77 lines)
  • SkillManifest.json (125 lines)
  • MemoryEntry.json (115 lines)
  • SessionReceipt.json (66 lines)
  • SessionReview.json (26 lines)
  • ExperimentFlag.json (18 lines)
  • RolloutPolicy.json (28 lines)
  • FrustrationSignal.json (17 lines)
  • TelemetryEvent.json (17 lines)
  • ReleaseReceipt.json (19 lines)
  • openapi.agent-plane.patch.yaml (56 lines)
  • asyncapi.agent-plane.patch.yaml (27 lines)
  • schemas/README.md (81 lines)

The following is the prior conversation context from the user's chat exploration (may be truncated):

Assistant: Perfect! Now let me verify the other 3 repos and provide a comprehensive status report:

Assistant: Perfect! Now let me check the current state of all PRs and provide a comprehensive status report:

Assistant: Perfect! Now let me compile the comprehensive status report and debrief:


📊 CRYSTALLIZATION PROJECT - FINAL STATUS REPORT & DEBRIEF

EXECUTIVE SUMMARY

STATUS: ✅ 95% COMPLETE - All core documentation crystallized and pushed

The crystallization audit, design, and execution of the Agent-Plane contract layer has successfully completed across all 4 repositories. Most files are now committed to their PR branches and ready for final review.


DETAILED STATUS BY REPOSITORY

1. #1PUSH CONFIRMED

Branch:feat/agent-plane-core-schemas-v0

Status: 📝 README.md created and committed

Files Pushed:

  • schemas/README.md - Agent-Plane schema documentation with:
    • URN pattern specification (urn:sourceos:execution:decision:, urn:sourceos:agent:session:, etc.)
    • Spec metadata explanation (version, status, last updated)
    • Full JSON usage examples for ExecutionDecision, AgentSession, SessionReceipt
    • Validation instructions (Python jsonschema, Node.js ajv)
    • Versioning discipline (SemVer compliance)

PR Details:

  • Created: 1 day ago
  • Status: DRAFT (ready for review)
  • Commits: 1 (initial push + 1 documentation push)
  • Author: mdheller

What's in the PR:

  • Core schema scaffolds: ExecutionDecision, AgentSession, ExecutionSurface, SkillManifest, MemoryEntry, SessionReceipt
  • Documentation for all URN patterns and validation

Next Steps:

  • Request review from schema architects
  • Approve and merge to main

2. SociOS-Linux/imagelab#1PUSH ATTEMPTED - Files not found

Branch:feat/agent-plane-capd-patch-v0

Status:⚠️File creation failed - validators/README.md not in repo yet

Attempted Push:

  • validators/README.md - Validator documentation with:
    • ExecutionDecisionValidator, SkillManifestValidator, SessionReceiptValidator
    • Python code examples for all 3 validators
    • Entry points (module-level validate() function)
    • Return format specification (valid, errors, warnings, schema)
    • Admission webhook integration details
    • Current limitations and follow-up schema binding
    • Testing instructions

PR Details:

  • Created: 1 day ago
  • Status: DRAFT
  • Commits: Existing (capd patch file only)
  • Author: mdheller

What's in the PR:

  • capd/imagelab.capd.patch.yaml - Capability descriptor patch with validator entrypoints

Why File Creation Failed:

  • The validators/ directory may not exist yet in the repo
  • Need to create directory structure first

What You Need to Do:

cd imagelab
git checkout feat/agent-plane-capd-patch-v0
mkdir -p validators
# Then create validators/README.md with the documentation

3. SocioProphet/agentplane#7PUSH ATTEMPTED - File not found

Branch:feat/agent-plane-artifact-scaffolds-v0

Status:⚠️File creation failed - schemas/README.md not in repo yet

Attempted Push:

  • schemas/README.md - Artifact lifecycle documentation with:
    • ASCII lifecycle diag...

This pull request was created from Copilot chat.

CopilotAI changed the title [WIP] Add comprehensive Phase 2 schema documentationdocs: add Phase 2 comprehensive agent-plane schema documentationApr 5, 2026
CopilotAI requested a review from mdhellerApril 5, 2026 19:07
@mdheller
mdheller marked this pull request as ready for review April 8, 2026 16:56
@mdheller
mdheller merged commit ebc8c68 into feat/agent-plane-core-schemas-v0Apr 8, 2026
@mdheller
mdheller deleted the copilot/add-phase-2-schema-documentation branch April 8, 2026 16:56
mdheller added a commit that referenced this pull request Aug 2, 2026
Copilot #2: InferenceReceipt off-device gate under-enforced — escalationChain
was not in the 'then' required list (minItems never fired if omitted) and
escalatedFrom could still be null. Now both are required+non-null for any
off-device (sovereign_cluster/external_permitted) receipt. Negative tests
added: missing/empty escalationChain and null escalatedFrom now all reject.
Copilot #1: unify field name — EscalationDecision.grantRef -> capabilityLeaseRef
to match InferenceReceipt for the same urn:srcos:lease: concept (schema +
example + ADR + CHANGELOG).
mdheller pushed a commit that referenced this pull request Aug 3, 2026
mdheller added a commit that referenced this pull request Aug 3, 2026
…s-zero census) (#266)
* spec(macos): app-by-app replacement & enhancement matrix (feature-gaps-zero census)
Closes the biggest spec gap: the contract (#262) says HOW to build agent-native
apps, but the app-by-app macOS→SourceOS census never existed. This is it — 24
stock-macOS apps/subsystems mapped to their SourceOS replacement, owning repo,
the SociOS superiority (why it's a superset not a clone), the E1-E12 IDs it draws
on, third-party deps vs stock macOS, and an honest status (spec/partial/built/gap/hw).
Plus a hardware-gap register: the four places Apple silicon wins (Neural Engine,
Secure Enclave, HW codecs, display pipeline) that spec cannot close on Asahi —
stated honestly so nothing is over-promised.
The census makes the feature-gaps-zero campaign tractable: every gap/partial row
is a work item; a row is 'built' only when agent-native + accessible-by-default +
its seam's purple-team test passes.
* spec(macos): complete the long tail (Contacts/Reminders/Maps/Weather/Passwords/ScreenTime/Disk/FaceTime/AirPlay/…) — ~37 surfaces total
* spec(E11): consent & receipts UX design (campaign gap #2) + clickable prototype; cross-link census
* spec(E3): personal mesh transport (Continuity/Handoff/AirDrop/AirPlay parity, campaign gap #3); fix census owner attribution
* docs(surfaces): canonical truthful surfaces + doctrine (diagram-is-a-witness)
Replaces garbled DALL-E renders with reproducible HTML/SVG: holography+ghostspace
framework poster (Tier 1), B11 life-mirror automaton + E11 consent/receipts (Tier 2).
Adds the surfaces doctrine (3 tiers; instruments must not lie).
* docs(surfaces): lampstand semantic launcher + turn-witness (Godel/consistency/conclusions); canonical sourceos.tokens.css from source
Validates surface style against the OS: tokens extracted from source-os/website +
GNOME workstation-v0 (Cantarell, color-scheme honored). Turn-witness proves
well-formed != admissible via real BigInt Godel numbering + teeth'd consistency checks.
* docs(surfaces): Tier-1 genesis braid + install + flywheel diagrams (first theme); set house theme in tokens
Completes Tier-1 architecture set in the chosen first-theme (B11 instrument) palette.
Correct equations. tokens.css now documents OS base + first-theme house layer.
* docs(surfaces): reflow holography/turn-witness/e11 onto the first theme (house style)
lampstand kept faithful-light to match the real SociOS Albert launcher screenshot.
---------
Co-authored-by: Michael Heller <mdheller314@icloud.com>
Sign up for freeto 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

@mdheller