Browser interface: Geoffrey Litt

This is the real main-realm browser API window.GeoffreyLittGuide. It operates only the three local teaching fixtures on the main HTML page. Static JSON describes the API, not live state. No remote agent, HTTP action endpoint, MCP server, background job or credential exchange exists.

Read and locate

Operate and settle

act(request) returns {replayed, receipt}. Actions are synchronous. wait({pageInstanceId,requestId}) returns the retained receipt directly. Receipts distinguish executed from ok: a domain refusal can execute a reducer without achieving the lesson outcome. Inspect exact error codes, result, beforeRevision and afterRevision.

Every control also supports focus with empty args. Inspect exposes actual browser layout, visibility, focus and textarea selection. Focus can increment the revision without changing a fixture. Native buttons, selects and textareas call the same dispatcher.

Exact main-realm example

const api = window.GeoffreyLittGuide;
const d = api.discover();
if (!d.ready) throw new Error('Guide is not ready');
const identity = { publicationId: d.publicationId, interfaceVersion: d.interfaceVersion,
  contentVersion: d.contentVersion, fixtureVersion: d.fixtureVersion, pageInstanceId: d.pageInstanceId };
const current = api.inspect({ targetId: 'geoffrey-enrich' });
const request = { ...identity, requestId: 'example.reset.1', expectedRevision: current.revision,
  target: { id: 'enrich-reset' }, action: 'reset', args: {} };
const { replayed, receipt } = api.act(request);
const settled = api.wait({ pageInstanceId: identity.pageInstanceId, requestId: request.requestId });
// settled is the receipt directly, not { receipt }. Inspect receipt.ok and receipt.error.
api.inspect({ targetId: 'geoffrey-enrich' });

Use a fresh request ID for each new operation. Repeating the exact request is an idempotent replay, including after a lesson reset. Altered reuse is refused. The ledger retains up to 4096 IDs without eviction. An exact replay returns the earlier receipt, not a fresh action or the latest state.

Action envelope schema

{
  "type": "object",
  "required": [
    "publicationId",
    "interfaceVersion",
    "contentVersion",
    "fixtureVersion",
    "pageInstanceId",
    "requestId",
    "expectedRevision",
    "target",
    "action",
    "args"
  ],
  "additionalProperties": false,
  "properties": {
    "publicationId": {
      "const": "geoffreylitt-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
    },
    "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"
    }
  }
}

Control catalog and argument schemas

enrich-note

Module: enrich. Role: textbox. Name: Agenda note. Action: note. Native event: input. State field: note.

{
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "maxLength": 160
    }
  },
  "required": [
    "value"
  ],
  "additionalProperties": false
}

enrich-start

Module: enrich. Role: combobox. Name: Agenda start. Action: start. Native event: change. State field: start.

{
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "enum": [
        "09:00",
        "10:00"
      ]
    }
  },
  "required": [
    "value"
  ],
  "additionalProperties": false
}

enrich-compute

Module: enrich. Role: button. Name: Compute local agenda. Action: compute. Native event: click.

{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

enrich-reset

Module: enrich. Role: button. Name: Reset lesson. Action: reset. Native event: click.

{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

trace-path

Module: trace. Role: combobox. Name: Trace fixture. Action: path. Native event: change. State field: path.

{
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "enum": [
        "terminating",
        "repeat"
      ]
    }
  },
  "required": [
    "value"
  ],
  "additionalProperties": false
}

trace-next

Module: trace. Role: button. Name: Inspect next trace frame. Action: next. Native event: click.

{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

trace-diagnosis

Module: trace. Role: combobox. Name: Diagnosis from inspected frames. Action: diagnosis. Native event: change. State field: diagnosis.

{
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "enum": [
        "finished",
        "cycle"
      ]
    }
  },
  "required": [
    "value"
  ],
  "additionalProperties": false
}

trace-explain

Module: trace. Role: button. Name: Check local diagnosis. Action: explain. Native event: click.

{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

trace-reset

Module: trace. Role: button. Name: Reset lesson. Action: reset. Native event: click.

{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

quiz-low

Module: quiz. Role: combobox. Name: Subtotal 46 plus shipping 5. Action: low. Native event: change. State field: low.

{
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "enum": [
        "eligible",
        "not-eligible"
      ]
    }
  },
  "required": [
    "value"
  ],
  "additionalProperties": false
}

quiz-edge

Module: quiz. Role: combobox. Name: Subtotal exactly 50. Action: edge. Native event: change. State field: edge.

{
  "type": "object",
  "properties": {
    "value": {
      "type": "string",
      "enum": [
        "not-eligible",
        "eligible"
      ]
    }
  },
  "required": [
    "value"
  ],
  "additionalProperties": false
}

quiz-check

Module: quiz. Role: button. Name: Check both predictions. Action: check. Native event: click.

{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

quiz-reset

Module: quiz. Role: button. Name: Reset lesson. Action: reset. Native event: click.

{
  "type": "object",
  "properties": {},
  "required": [],
  "additionalProperties": false
}

Outputs and modules

{
  "modules": [
    {
      "id": "geoffrey-enrich",
      "key": "enrich",
      "name": "Enrich an existing note",
      "sources": [
        "G01",
        "G03",
        "G08"
      ]
    },
    {
      "id": "geoffrey-trace",
      "key": "trace",
      "name": "Inspect a tiny execution world",
      "sources": [
        "G02",
        "G04"
      ]
    },
    {
      "id": "geoffrey-quiz",
      "key": "quiz",
      "name": "Predict before accepting",
      "sources": [
        "G02",
        "G06"
      ]
    }
  ],
  "outputs": [
    {
      "id": "enrich-status",
      "module": "enrich",
      "role": "status",
      "field": "status"
    },
    {
      "id": "enrich-result",
      "module": "enrich",
      "role": "log",
      "field": "result",
      "empty": "No local result yet."
    },
    {
      "id": "trace-status",
      "module": "trace",
      "role": "status",
      "field": "status"
    },
    {
      "id": "trace-result",
      "module": "trace",
      "role": "log",
      "field": "result",
      "empty": "No local result yet."
    },
    {
      "id": "quiz-status",
      "module": "quiz",
      "role": "status",
      "field": "status"
    },
    {
      "id": "quiz-result",
      "module": "quiz",
      "role": "log",
      "field": "result",
      "empty": "No local result yet."
    }
  ]
}

Refusals and recovery

Cleanup and boundaries

Reset each lesson with its exact reset button. Reset retains the receipt ledger. Reload clears all fixture state and receipts and creates a new pageInstanceId. No persistence, real model calls, network effects, shell, repository or permissions are provided. The fixtures are fictional, deterministic and narrower than the source projects. Do not enter secrets. Read access, privacy and sources.