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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
{
  "compiled_at": "2026-04-21T18:59:51Z",
  "canon_path": "/Users/jobs/Desktop/bit-vector-tensor-control-policy/canon/system.yml",
  "outputs": {
    "api": "/Users/jobs/Desktop/bit-vector-tensor-control-policy/api/conversational_api_v0.json",
    "runtime": "/Users/jobs/Desktop/bit-vector-tensor-control-policy/runtime/work_manifest_v0.json",
    "control": "/Users/jobs/Desktop/bit-vector-tensor-control-policy/policy/control_language_v0.json",
    "inference": "/Users/jobs/Desktop/bit-vector-tensor-control-policy/inference.yaml",
    "continuity_provider": "/Users/jobs/Desktop/bit-vector-tensor-control-policy/build/system/continuity_provider.json",
    "continuity_operator": "/Users/jobs/Desktop/bit-vector-tensor-control-policy/build/system/continuity_operator.json",
    "product_candidate_registry": "/Users/jobs/Desktop/bit-vector-tensor-control-policy/build/system/product_candidate_registry.json",
    "typed_memory_runtime": "/Users/jobs/Desktop/bit-vector-tensor-control-policy/build/system/typed_memory_runtime.json",
    "memory_readiness": "/Users/jobs/Desktop/bit-vector-tensor-control-policy/build/system/memory_readiness.json",
    "user_governance": "/Users/jobs/Desktop/bit-vector-tensor-control-policy/build/system/user_governance.json"
  },
  "canon": {
    "version": "v0",
    "product": {
      "one_liner": "Standalone control-system repo with one thin intent shell over graph state, bounded execution, and benchmarked control policy.",
      "why": "Keep the live authored surface small and compile the operator-facing contracts from one canonical state."
    },
    "api": {
      "version": "v0",
      "one_liner": "one front door over graph state and control policy",
      "request_contract": {
        "fields": [
          "user_input",
          "thread_state",
          "receipt_state",
          "task_state",
          "tool_state",
          "alpha_state"
        ],
        "auto_hydrated_context": [
          "system_context",
          "policy_context",
          "lineage_context"
        ]
      },
      "response_contract": {
        "fields": [
          "lane",
          "control_vector",
          "tensor_surface",
          "execution_gate",
          "receipt_requirements",
          "ui_projection",
          "decision_brief",
          "inference",
          "system_context"
        ],
        "context_contract_ref": "api/system_context_v0.json"
      },
      "orientation_rule": "a fresh agent should read one API packet and immediately know where it is, what governs it, and which payload shapes it can emit",
      "lane_rule": "the runtime should not open the broad codebase until a bounded execution task exists",
      "why": "graph-first reasoning should stay the default and code access should stay narrow"
    },
    "runtime": {
      "version": "v0",
      "one_liner": "the runtime is a routed decision system, not a theory machine",
      "runtime_contract": "user intent -> capability route -> work manifest -> guarded execution -> receipt + graph -> decision brief",
      "product_object": [
        "WorkManifest",
        "Receipt",
        "GraphState",
        "DecisionBrief"
      ],
      "fixed_substrate": [
        "route labels",
        "packet shapes",
        "work manifest",
        "receipt schema",
        "artifact paths",
        "eval surfaces"
      ],
      "variable_boxes": [
        "one route improvement",
        "one packet improvement",
        "one fallback improvement",
        "one operator-prompt improvement",
        "one bounded UX improvement"
      ],
      "acceptance_bar": [
        "recommendation is clear",
        "route is grounded",
        "proof is honest",
        "artifact is usable"
      ]
    },
    "control": {
      "version": "v0",
      "product_read": "standalone_agent_harness",
      "meta_modes": [
        {
          "id": "metacognitive",
          "one_liner": "inspect current state, uncertainty, and posture before acting",
          "why": "the system should know what it knows and where it is weak"
        },
        {
          "id": "metacybernetic",
          "one_liner": "regulate routes, gates, escalation, and proof loops",
          "why": "the system should steer itself, not just narrate"
        },
        {
          "id": "meta_learning",
          "one_liner": "update policy from receipts and benchmark results",
          "why": "the system should improve from proof, not vibes"
        }
      ],
      "bits": [
        {
          "id": "execution_allowed",
          "meaning": "whether the runtime may open the execution lane"
        },
        {
          "id": "receipt_required",
          "meaning": "whether promotion requires a durable receipt"
        },
        {
          "id": "freshness_conflict",
          "meaning": "whether new evidence conflicts with older memory"
        },
        {
          "id": "unsupported_query",
          "meaning": "whether the question should trigger abstention"
        }
      ],
      "vectors": [
        {
          "id": "control_vector",
          "axes": [
            "plan",
            "execute",
            "review",
            "promote"
          ],
          "meaning": "current operating posture across the main harness stages"
        },
        {
          "id": "lane_vector",
          "axes": [
            "memory",
            "tooling",
            "execution",
            "audit"
          ],
          "meaning": "which lane should dominate the next move"
        }
      ],
      "tensors": [
        {
          "id": "control_tensor_v0",
          "axes": {
            "source": [
              "dialogue",
              "receipts",
              "external_tools",
              "task",
              "graph_state"
            ],
            "stage": [
              "discover",
              "select",
              "execute",
              "review",
              "promote"
            ],
            "metric": [
              "fit",
              "evidence",
              "cost",
              "latency",
              "confidence",
              "promotion_readiness"
            ]
          },
          "meaning": "multi-surface operating posture over time and stage"
        }
      ],
      "invariants": [
        "confidence starts at zero until earned",
        "receipts gate promotion",
        "graph state outranks prose summaries",
        "unsupported queries should abstain plainly",
        "newer authoritative state should beat stale memory"
      ]
    },
    "inference": {
      "version": "v0",
      "one_liner": "Repo-root inference routing for subscription-backed Codex CLI turns.",
      "default_backend": "codex_cli_chatgpt",
      "packet_context": {
        "enabled": true,
        "latest_pointer_path": "runs/analysis/corpus_reasoning_pilot_latest.json",
        "reread_on_bits": [
          "conflicted",
          "stale"
        ],
        "reread_on_tensor": [
          "compression_loss",
          "drift"
        ]
      },
      "backends": {
        "codex_cli_chatgpt": {
          "provider": "codex_cli",
          "enabled": true,
          "command": "codex",
          "use_chatgpt_subscription": true,
          "model": "gpt-5.4",
          "sandbox": "read-only",
          "ephemeral": true,
          "skip_git_repo_check": true,
          "timeout_seconds": 90,
          "lanes": {
            "allowed": [
              "memory",
              "tooling",
              "audit"
            ]
          },
          "prompt_contract": {
            "reasoning_scope": "graph_first_reasoning",
            "execution_allowed": false,
            "answer_style": "concise_grounded"
          }
        }
      }
    },
    "continuity_provider": {
      "version": "v0",
      "one_liner": "Primary continuity runtime provider is the live NextGen engine, with local materialized continuity state as explicit fallback.",
      "mode": "primary_external_fallback_local",
      "external": {
        "base_url": "http://127.0.0.1:7777",
        "health_path": "/health",
        "nextgen_path": "/interface/nextgen",
        "versions_path": "/v1/continuity/versions",
        "surfaces_path": "/v1/continuity/surfaces",
        "activate_surface_path_template": "/v1/continuity/surfaces/{surface_id}/activate",
        "api_key_header": "x-api-key",
        "tenant_header": "x-tenant-id",
        "api_key_default": "meta3-dev-key",
        "tenant_default": "meta3-lab"
      },
      "fallback": {
        "latest_pointer_path": "runs/continuity/latest.json"
      }
    },
    "continuity_operator": {
      "version": "v0",
      "one_liner": "Thin continuity desk over the live provider, using a tiny active cut and one bounded resume packet.",
      "active_cut": {
        "max_nodes": 18,
        "preferred_surface_order": [
          "provider_status",
          "provider_lineage",
          "provider_surfaces",
          "local_fallback_pointer"
        ],
        "exact_surfaces": [
          "provider_status",
          "provider_lineage",
          "provider_surfaces"
        ]
      },
      "resume_defaults": {
        "preferred_active_surface": "history_navigation_surface_v1",
        "next_packet_shape": [
          "route",
          "context",
          "action",
          "receipt"
        ]
      },
      "invariants": [
        "route by purpose before text",
        "use the smallest meaningful compressed surface first",
        "prior chat should be resumed as state, not reread as raw text",
        "do not widen beyond the active cut unless the owned surfaces miss"
      ]
    }
  },
  "user_governance": {
    "compiled_at": "2026-04-21T18:59:50Z",
    "governing_rules": [
      {
        "evidence_path": "/Users/jobs/Desktop/data_prep_stage/artifacts/promoted_knowledge/session_intrinsic_telos_v1.md",
        "id": "RULE:route-by-purpose",
        "label": "route by purpose before text"
      },
      {
        "evidence_path": "/Users/jobs/Desktop/data_prep_stage/artifacts/operator_delta/interaction_packet_contract.md",
        "id": "RULE:promote-what-repeats",
        "label": "promote what repeats"
      },
      {
        "evidence_path": "/Users/jobs/Desktop/data_prep_stage/artifacts/promoted_knowledge/session_streaming_bits_landscape_v1.md",
        "id": "RULE:receipts-required",
        "label": "receipts required for durable promotion"
      },
      {
        "evidence_path": "/Users/jobs/Desktop/data_prep_stage/artifacts/promoted_knowledge/retrieval_harness_notes_v1.md",
        "id": "RULE:raw-is-fallback",
        "label": "raw retrieval is fallback evidence"
      },
      {
        "evidence_path": "/Users/jobs/Desktop/data_prep_stage/tiny_graph_engine/conversation_rme_map_v0.md",
        "id": "RULE:graph-review-governs",
        "label": "graph review should own tensions gaps and next ops"
      }
    ],
    "highest_value_primitives": [
      "route_by_purpose",
      "promote_what_repeats",
      "intent_to_packet",
      "receipt_first_claims",
      "auto_reuse_prior_tools",
      "recursive_context_framing"
    ],
    "motif_rule": "packet -> motif family -> primitive -> trigger map",
    "next_moves": [
      {
        "expected_artifact": "reused-path answer or tool candidate packet",
        "first_surface": "[codex_capability_grok_summary.md](/Users/jobs/Desktop/data_prep_stage/consolidation_patch/artifacts/history_contract/v5_codex/codex_capability_grok_summary.md) then [status_report_codex_history.json](/Users/jobs/Desktop/data_prep_stage/status_report_codex_history.json)",
        "primitive": "auto_reuse_prior_tools",
        "score": 4,
        "status": "requested",
        "trigger": "`if we already built it elsewhere find it`, `use the tools we already made`",
        "why": "discover and reuse prior capability before rebuilding"
      },
      {
        "expected_artifact": "",
        "first_surface": "",
        "primitive": "history_navigation_surface",
        "score": 4,
        "status": "partial",
        "trigger": "`view our chat gpt history easier`, `look our session history`, `timeline for chats`",
        "why": "make prior sessions easier to inspect without replaying raw history"
      },
      {
        "expected_artifact": "shell-level control law or route decision",
        "first_surface": "[session_streaming_bits_landscape_v1.md](/Users/jobs/Desktop/data_prep_stage/artifacts/promoted_knowledge/session_streaming_bits_landscape_v1.md)",
        "primitive": "thin_intent_shell",
        "score": 4,
        "status": "partial",
        "trigger": "`one surface`, `kernel only`, `simple shell`, `less chat overhead`",
        "why": "keep the user at intent level and hide unnecessary reconstruction"
      },
      {
        "expected_artifact": "six-field packet",
        "first_surface": "[interaction_packet_contract.md](/Users/jobs/Desktop/data_prep_stage/artifacts/operator_delta/interaction_packet_contract.md)",
        "primitive": "intent_to_packet",
        "score": 3,
        "status": "implemented",
        "trigger": "`operationalise on the fly`, `keep only the signal`, `what is the smallest loop`",
        "why": "compress live interaction into a minimal reusable unit"
      },
      {
        "expected_artifact": "one interaction packet with chosen surface",
        "first_surface": "[interaction_primitives_catalog.md](/Users/jobs/Desktop/data_prep_stage/artifacts/operator_delta/interaction_primitives_catalog.md) then [session_intrinsic_telos_v1.md](/Users/jobs/Desktop/data_prep_stage/artifacts/promoted_knowledge/session_intrinsic_telos_v1.md)",
        "primitive": "route_by_purpose",
        "score": 3,
        "status": "implemented",
        "trigger": "`what surface should we use first`, `use the data in data_prep`, `compose from the surfaces`",
        "why": "pick the right owned surface before searching raw text"
      }
    ],
    "operator_next_tasks": [
      {
        "id": "TASK:run-packet-refinery",
        "label": "refresh prompt packet refinery on new history deltas"
      },
      {
        "id": "TASK:cluster-review-packets",
        "label": "cluster repeated packets into tiny graph review runs"
      },
      {
        "id": "TASK:wire-operator-shell",
        "label": "serve operator brain from one run surface for the tiny graph operator UX"
      },
      {
        "id": "TASK:upgrade-citation-extraction",
        "label": "improve citation extraction before profile promotion"
      }
    ],
    "reduced_families": {
      "continuity_and_reuse": [
        "auto_reuse_prior_tools",
        "prior_artifact_recall",
        "keychain_continuity"
      ],
      "flow_and_shell_simplification": [
        "thin_intent_shell",
        "flow_state_protection",
        "packaged_runtime_delivery"
      ],
      "history_to_knowledge": [
        "history_to_body_of_knowledge",
        "history_navigation_surface",
        "project_context_projection"
      ]
    },
    "source_root": "/Users/jobs/Desktop/data_prep_stage",
    "sources": {
      "brain_summary": "/Users/jobs/Desktop/data_prep_stage/artifacts/operator_brain/brain_summary.json",
      "continuity_and_reuse_reduction": "/Users/jobs/Desktop/data_prep_stage/artifacts/operator_delta/continuity_and_reuse_reduction.md",
      "flow_and_shell_reduction": "/Users/jobs/Desktop/data_prep_stage/artifacts/operator_delta/flow_and_shell_reduction.md",
      "history_to_knowledge_reduction": "/Users/jobs/Desktop/data_prep_stage/artifacts/operator_delta/history_to_knowledge_reduction.md",
      "interaction_primitives_catalog": "/Users/jobs/Desktop/data_prep_stage/artifacts/operator_delta/interaction_primitives_catalog.md",
      "llm_interaction_feature_ledger": "/Users/jobs/Desktop/data_prep_stage/artifacts/operator_delta/llm_interaction_feature_ledger.md",
      "motif_family_ledger": "/Users/jobs/Desktop/data_prep_stage/artifacts/operator_delta/motif_family_ledger.md",
      "primitive_trigger_map": "/Users/jobs/Desktop/data_prep_stage/artifacts/operator_delta/primitive_trigger_map.md"
    }
  }
}