Repository Public License
1# 6. Core model: the PRISM Universal Object Protocol (PUOP)23A versioned format for every editable, executable artifact: UI component, page, data table, chart, function, workflow, model, document, application, external connector, satellite.45**Fields:** `id`, `type`, `schemaVersion`, `name`, `metadata`, `dataRef`, `inputs`, `outputs`, `capabilities`, `permissions`, `dependencies`, `ui`, `runtime`, `version`, `provenance`, `tests`.67```json8{9 "id": "obj_expenses_chart",10 "type": "prism.chart.line",11 "schemaVersion": 1,12 "name": "Monthly expenses",13 "inputs": [{"name": "rows", "type": "table", "required": true}],14 "outputs": [{"name": "selection", "type": "record"}],15 "permissions": [],16 "dependencies": ["obj_transactions"],17 "ui": {"theme": "system", "minWidth": 320},18 "version": 119}20```2122**Requirements:** typed ports; schema validation; canonical serialization with round-trip tests; stable IDs; reference integrity; dependency graph with cycle detection; migrations and backward compatibility; transaction boundaries; undo/redo. Keep three things separate: immutable object definitions, mutable runtime state, and cached results. Lazy recomputation and memoization come when profiling asks for them.2324An **AppBlueprint** is the object graph for one app: pages, data models, actions, components, permissions, tests. It is the single artifact that the renderer displays, the agent edits, the version system diffs, and the publisher packages.25