{
  "publication": {
    "publicationId": "arminronacher-field-guide",
    "interfaceVersion": "1.0.0",
    "contentVersion": "1.0.0",
    "fixtureVersion": "1.0.0",
    "rootId": "arminronacher-guide",
    "name": "Armin Ronacher field guide",
    "namespace": "ArminGuide"
  },
  "siteUrl": "https://onyx-orbit-keh8.here.now/",
  "execution": "browser-main-realm",
  "namespace": "window.ArminGuide",
  "scope": "page-memory",
  "methods": {
    "discover": {
      "arguments": [],
      "returns": "Identity, revision, ready, targets, receiptLimit and coverageGaps"
    },
    "inspect": {
      "schema": {
        "type": "object",
        "properties": {
          "targetId": {
            "type": "string"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "returns": "Identity, revision, ok and data with target, state, fixtures, controls, outputs, provenance, limitations"
    },
    "query": {
      "schema": {
        "type": "object",
        "properties": {
          "within": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "returns": "Identity, revision, ok, matchCount and matches"
    },
    "act": {
      "schema": {
        "type": "object",
        "properties": {
          "publicationId": {
            "const": "arminronacher-field-guide"
          },
          "interfaceVersion": {
            "const": "1.0.0"
          },
          "contentVersion": {
            "const": "1.0.0"
          },
          "fixtureVersion": {
            "const": "1.0.0"
          },
          "pageInstanceId": {
            "type": "string"
          },
          "requestId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._:-]{1,80}$"
          },
          "expectedRevision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "target": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "match": {
                    "type": "object",
                    "properties": {
                      "within": {
                        "type": "string"
                      },
                      "role": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "within",
                      "role",
                      "name"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "match"
                ],
                "additionalProperties": false
              }
            ]
          },
          "action": {
            "type": "string"
          },
          "args": {
            "type": "object"
          }
        },
        "required": [
          "publicationId",
          "interfaceVersion",
          "contentVersion",
          "fixtureVersion",
          "pageInstanceId",
          "requestId",
          "expectedRevision",
          "target",
          "action",
          "args"
        ],
        "additionalProperties": false
      },
      "argumentValidation": "args must additionally match the resolved control action argsSchema. focus accepts an empty exact object.",
      "returns": "{replayed,receipt}"
    },
    "wait": {
      "schema": {
        "type": "object",
        "properties": {
          "pageInstanceId": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          }
        },
        "required": [
          "pageInstanceId",
          "requestId"
        ],
        "additionalProperties": false
      },
      "returns": "receipt directly or structured read failure"
    },
    "diagnose": {
      "arguments": [],
      "returns": "Identity, revision, ok, healthy, checks, pendingTeachingJobs and scope"
    }
  },
  "modules": [
    {
      "id": "armin-lesson-map",
      "key": "map",
      "name": "Find the load-bearing check",
      "sources": [
        "A02",
        "A05",
        "A06"
      ]
    },
    {
      "id": "armin-lesson-feedback",
      "key": "feedback",
      "name": "Close the observable loop",
      "sources": [
        "A02",
        "A05"
      ]
    },
    {
      "id": "armin-lesson-boundary",
      "key": "boundary",
      "name": "Review a bounded environment",
      "sources": [
        "A02",
        "A03",
        "A04",
        "A06"
      ]
    }
  ],
  "controls": [
    {
      "id": "map-layout",
      "module": "map",
      "name": "Fixture code layout",
      "field": "layout",
      "role": "combobox",
      "action": "set-layout",
      "event": "change",
      "argsSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "enum": [
              "explicit",
              "indirect"
            ]
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      }
    },
    {
      "id": "map-path",
      "module": "map",
      "name": "Fixture route path",
      "field": "path",
      "role": "textbox",
      "action": "set-path",
      "event": "input",
      "argsSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "maxLength": 120
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      }
    },
    {
      "id": "map-inspect",
      "module": "map",
      "name": "Trace the route",
      "role": "button",
      "action": "trace",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "map-context",
      "module": "map",
      "name": "Include policy module",
      "role": "button",
      "action": "include-policy",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "map-plan",
      "module": "map",
      "name": "Check change plan",
      "role": "button",
      "action": "plan",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "map-reset",
      "module": "map",
      "name": "Reset lesson",
      "role": "button",
      "action": "reset",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "feedback-probe",
      "module": "feedback",
      "name": "Fixture probe outcome",
      "field": "probe",
      "role": "combobox",
      "action": "set-probe",
      "event": "change",
      "argsSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "enum": [
              "healthy",
              "broken"
            ]
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      }
    },
    {
      "id": "feedback-logmode",
      "module": "feedback",
      "name": "Fixture log detail",
      "field": "logmode",
      "role": "combobox",
      "action": "set-logmode",
      "event": "change",
      "argsSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "enum": [
              "concise",
              "silent"
            ]
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      }
    },
    {
      "id": "feedback-start",
      "module": "feedback",
      "name": "Attempt service start",
      "role": "button",
      "action": "start",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "feedback-observe",
      "module": "feedback",
      "name": "Read fixture log",
      "role": "button",
      "action": "observe",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "feedback-accept",
      "module": "feedback",
      "name": "Check completion evidence",
      "role": "button",
      "action": "accept",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "feedback-stop",
      "module": "feedback",
      "name": "Stop fixture service",
      "role": "button",
      "action": "stop",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "feedback-reset",
      "module": "feedback",
      "name": "Reset lesson",
      "role": "button",
      "action": "reset",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "boundary-profile",
      "module": "boundary",
      "name": "Fictional environment profile",
      "field": "profile",
      "role": "combobox",
      "action": "set-profile",
      "event": "change",
      "argsSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "enum": [
              "read-only",
              "scratch",
              "host-yolo"
            ]
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      }
    },
    {
      "id": "boundary-operation",
      "module": "boundary",
      "name": "Proposed fictional operation",
      "field": "operation",
      "role": "combobox",
      "action": "set-operation",
      "event": "change",
      "argsSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "enum": [
              "read-fixture",
              "write-fixture",
              "deploy-remote"
            ]
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      }
    },
    {
      "id": "boundary-evidence",
      "module": "boundary",
      "name": "Fixture boundary evidence",
      "field": "evidence",
      "role": "combobox",
      "action": "set-evidence",
      "event": "change",
      "argsSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "enum": [
              "label-only",
              "declared-controls"
            ]
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      }
    },
    {
      "id": "boundary-review",
      "module": "boundary",
      "name": "Review fictional plan",
      "role": "button",
      "action": "review",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "boundary-reset",
      "module": "boundary",
      "name": "Reset lesson",
      "role": "button",
      "action": "reset",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    }
  ],
  "outputs": [
    {
      "id": "map-status",
      "module": "map",
      "role": "status",
      "field": "status"
    },
    {
      "id": "map-result",
      "module": "map",
      "role": "log",
      "field": "report"
    },
    {
      "id": "feedback-status",
      "module": "feedback",
      "role": "status",
      "field": "status"
    },
    {
      "id": "feedback-result",
      "module": "feedback",
      "role": "log",
      "field": "report"
    },
    {
      "id": "boundary-status",
      "module": "boundary",
      "role": "status",
      "field": "status"
    },
    {
      "id": "boundary-result",
      "module": "boundary",
      "role": "log",
      "field": "report"
    }
  ],
  "fixtures": {
    "note": "Fictional, static examples authored for this guide. Not Ronacher project code or real execution evidence.",
    "route": "routes/invoices.ts",
    "explicit": [
      "routes/invoices.ts: requireTenant(user, invoice.tenantId)",
      "routes/invoices.ts: updateInvoice(invoice)"
    ],
    "indirect": [
      "routes/invoices.ts: handleInvoice(invoice)",
      "adapters/invoice.ts: dispatch(\"invoice.update\", invoice)"
    ],
    "policy": "policies/registry.ts: invoice.update -> requireTenant(user, invoice.tenantId)",
    "profiles": {
      "read-only": {
        "mounts": "fixture-read-only",
        "credentials": "none",
        "network": "denied",
        "approvals": "required",
        "allowed": [
          "read-fixture"
        ]
      },
      "scratch": {
        "mounts": "disposable-fixture-only",
        "credentials": "none",
        "network": "denied",
        "approvals": "required",
        "allowed": [
          "read-fixture",
          "write-fixture"
        ]
      },
      "host-yolo": {
        "mounts": "host-home-read-write",
        "credentials": "inherited",
        "network": "unrestricted",
        "approvals": "bypassed",
        "allowed": [
          "read-fixture",
          "write-fixture",
          "deploy-remote"
        ]
      }
    }
  },
  "limits": [
    "All repository paths, code, timings, logs, permissions and environments are fictional static teaching fixtures.",
    "No model, shell, repository, credential, network action, operating-system process or real permission change is performed.",
    "The page is not a sandbox. Selecting a boundary profile proves no actual security isolation.",
    "State and receipts live only in page memory. No persistence or asynchronous jobs. Reload resets everything and changes page identity.",
    "The browser main-realm API is not HTTP or MCP and cannot isolate another script already running in this page.",
    "Navigation, links, scrolling, ordinary Tab navigation and browser reload are outside the action API."
  ],
  "domainErrors": {
    "UNKNOWN_FIXTURE_PATH": "Use routes/invoices.ts; no filesystem is consulted.",
    "TRACE_REQUIRED": "Trace the current route before checking a plan.",
    "POLICY_CONTEXT_MISSING": "Include policy module in the indirect layout, then trace again.",
    "ALREADY_RUNNING": "Read the existing fixture service log instead of starting twice.",
    "SERVICE_NOT_RUNNING": "Start the fixture service before reading its log.",
    "OBSERVATION_REQUIRED": "Read the current fixture log after input changes.",
    "NO_OBSERVABLE_RESULT": "Choose concise logs and read fresh evidence.",
    "PROBE_FAILED": "Choose the healthy fixture to model a repair, then read fresh evidence.",
    "BOUNDARY_REJECTED": "Choose declared controls, a restricted profile and a permitted local operation.",
    "UNKNOWN_LESSON_ACTION": "Use declared lesson actions."
  },
  "receiptLimit": 4096,
  "replay": "Exact entire envelope replay. No eviction. Reset retains receipts; reload clears them.",
  "discovery": {
    "llms": "https://onyx-orbit-keh8.here.now/llms.txt",
    "skillCatalog": "https://onyx-orbit-keh8.here.now/.well-known/agent-skills/index.json",
    "fullMarkdown": "https://onyx-orbit-keh8.here.now/index.md"
  },
  "example": "const api = window.ArminGuide;\nconst d = api.discover();\nif (!d.ready) throw new Error('Guide is not ready');\nconst request = {\n  publicationId: d.publicationId,\n  interfaceVersion: d.interfaceVersion,\n  contentVersion: d.contentVersion,\n  fixtureVersion: d.fixtureVersion,\n  pageInstanceId: d.pageInstanceId,\n  requestId: 'map.reset.1',\n  expectedRevision: d.revision,\n  target: { id: 'map-reset' },\n  action: 'reset',\n  args: {}\n};\nconst first = api.act(request);\nconst replay = api.act(request); // replayed: true\nconst receipt = api.wait({\n  pageInstanceId: d.pageInstanceId,\n  requestId: request.requestId\n}); // receipt directly, not a wrapper\nconst current = api.inspect({ targetId: 'armin-lesson-map' });"
}
