{
  "schemaVersion": "1.0.0",
  "publicationId": "ghuntley-field-guide",
  "interfaceVersion": "1.0.0",
  "contentVersion": "1.0.0",
  "fixtureVersion": "1.0.0",
  "rootId": "ghuntley-guide",
  "name": "Geoffrey Huntley field guide",
  "namespace": "GeoffreyGuide",
  "canonicalUrl": "https://open-hutch-b2hd.here.now/",
  "researchDate": "2026-09-01",
  "browserNamespace": "GeoffreyGuide",
  "entrypoint": "https://open-hutch-b2hd.here.now/",
  "transport": "in-page JavaScript, main realm",
  "httpActions": false,
  "mcpServer": false,
  "scope": "page-memory",
  "permissions": {
    "read": "Inspect this page only.",
    "write": "Change fictional state and focus controls.",
    "externalEffects": false,
    "modelCalls": false,
    "secretAccess": false,
    "authorization": "No account needed. No authority in upstream tools."
  },
  "methods": {
    "discover": {
      "callingConvention": "No arguments",
      "returns": "Identity, ready, revision and live targets."
    },
    "inspect": {
      "argsSchema": {
        "type": "object",
        "properties": {
          "targetId": {
            "type": "string"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "returns": "data.state plus controls, outputs, fixtures, provenance and limits."
    },
    "query": {
      "argsSchema": {
        "type": "object",
        "properties": {
          "within": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "returns": "Exact case-sensitive matches within a registered region."
    },
    "act": {
      "argsSchema": {
        "type": "object",
        "properties": {
          "publicationId": {
            "type": "string",
            "const": "ghuntley-field-guide"
          },
          "interfaceVersion": {
            "type": "string",
            "const": "1.0.0"
          },
          "contentVersion": {
            "type": "string",
            "const": "1.0.0"
          },
          "fixtureVersion": {
            "type": "string",
            "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",
            "enum": [
              "set-load",
              "set-task",
              "pack",
              "reset",
              "set-mode",
              "step",
              "record",
              "restart",
              "set-patch",
              "set-suite",
              "check",
              "accept",
              "focus"
            ]
          },
          "args": {
            "type": "object",
            "description": "Use the exact resolved control schema; focus takes {}."
          }
        },
        "required": [
          "publicationId",
          "interfaceVersion",
          "contentVersion",
          "fixtureVersion",
          "pageInstanceId",
          "requestId",
          "expectedRevision",
          "target",
          "action",
          "args"
        ],
        "additionalProperties": false
      },
      "returns": "{replayed,receipt}; read receipt.ok and executed separately."
    },
    "wait": {
      "argsSchema": {
        "type": "object",
        "properties": {
          "pageInstanceId": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          }
        },
        "required": [
          "pageInstanceId",
          "requestId"
        ],
        "additionalProperties": false
      },
      "returns": "Retained receipt directly, no wrapper or asynchronous jobs."
    },
    "diagnose": {
      "callingConvention": "No arguments",
      "returns": "healthy and bounded DOM, revision, ledger and lesson invariant checks; not certification."
    }
  },
  "modules": [
    {
      "id": "ghuntley-lesson-context",
      "key": "context",
      "name": "Fresh-context packet",
      "sources": [
        "G01",
        "G04"
      ]
    },
    {
      "id": "ghuntley-lesson-progress",
      "key": "progress",
      "name": "External progress checkpoint",
      "sources": [
        "G01",
        "G05"
      ]
    },
    {
      "id": "ghuntley-lesson-pressure",
      "key": "pressure",
      "name": "Executable backpressure",
      "sources": [
        "G01",
        "G02",
        "G06"
      ]
    }
  ],
  "controls": [
    {
      "id": "context-load",
      "module": "context",
      "role": "combobox",
      "name": "Context packet",
      "field": "load",
      "action": "set-load",
      "event": "change",
      "argsSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "enum": [
              "focused",
              "history",
              "missing-spec"
            ]
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-context",
      "supportedActions": [
        "set-load",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "options": [
        {
          "value": "focused",
          "label": "Focused packet"
        },
        {
          "value": "history",
          "label": "Old transcript included"
        },
        {
          "value": "missing-spec",
          "label": "Specification omitted"
        }
      ]
    },
    {
      "id": "context-task",
      "module": "context",
      "role": "textbox",
      "name": "One task for this iteration",
      "field": "task",
      "action": "set-task",
      "event": "input",
      "argsSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "maxLength": 1200
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-context",
      "supportedActions": [
        "set-task",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "context-pack",
      "module": "context",
      "role": "button",
      "name": "Assemble packet",
      "action": "pack",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-context",
      "supportedActions": [
        "pack",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "context-reset",
      "module": "context",
      "role": "button",
      "name": "Reset lesson",
      "action": "reset",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-context",
      "supportedActions": [
        "reset",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "progress-mode",
      "module": "progress",
      "role": "combobox",
      "name": "Checkpoint contents",
      "field": "mode",
      "action": "set-mode",
      "event": "change",
      "argsSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "enum": [
              "chat",
              "plan",
              "evidence"
            ]
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-progress",
      "supportedActions": [
        "set-mode",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "options": [
        {
          "value": "chat",
          "label": "Chat only"
        },
        {
          "value": "plan",
          "label": "Plan claim only"
        },
        {
          "value": "evidence",
          "label": "Evidence checkpoint"
        }
      ]
    },
    {
      "id": "progress-step",
      "module": "progress",
      "role": "button",
      "name": "Run fixture step",
      "action": "step",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-progress",
      "supportedActions": [
        "step",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "progress-record",
      "module": "progress",
      "role": "button",
      "name": "Record checkpoint",
      "action": "record",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-progress",
      "supportedActions": [
        "record",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "progress-restart",
      "module": "progress",
      "role": "button",
      "name": "Start fresh iteration",
      "action": "restart",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-progress",
      "supportedActions": [
        "restart",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "progress-reset",
      "module": "progress",
      "role": "button",
      "name": "Reset lesson",
      "action": "reset",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-progress",
      "supportedActions": [
        "reset",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "pressure-patch",
      "module": "pressure",
      "role": "combobox",
      "name": "Candidate implementation",
      "field": "patch",
      "action": "set-patch",
      "event": "change",
      "argsSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "enum": [
              "placeholder",
              "count-all",
              "unique"
            ]
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-pressure",
      "supportedActions": [
        "set-patch",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "options": [
        {
          "value": "placeholder",
          "label": "Placeholder zero"
        },
        {
          "value": "count-all",
          "label": "Count all occurrences"
        },
        {
          "value": "unique",
          "label": "Distinct count"
        }
      ]
    },
    {
      "id": "pressure-suite",
      "module": "pressure",
      "role": "combobox",
      "name": "Feedback coverage",
      "field": "suite",
      "action": "set-suite",
      "event": "change",
      "argsSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "enum": [
              "smoke",
              "contract"
            ]
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-pressure",
      "supportedActions": [
        "set-suite",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "options": [
        {
          "value": "smoke",
          "label": "One smoke case"
        },
        {
          "value": "contract",
          "label": "Contract cases"
        }
      ]
    },
    {
      "id": "pressure-check",
      "module": "pressure",
      "role": "button",
      "name": "Evaluate fixture",
      "action": "check",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-pressure",
      "supportedActions": [
        "check",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "pressure-accept",
      "module": "pressure",
      "role": "button",
      "name": "Attempt acceptance",
      "action": "accept",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-pressure",
      "supportedActions": [
        "accept",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "id": "pressure-reset",
      "module": "pressure",
      "role": "button",
      "name": "Reset lesson",
      "action": "reset",
      "event": "click",
      "argsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      },
      "parentId": "ghuntley-lesson-pressure",
      "supportedActions": [
        "reset",
        "focus"
      ],
      "focusArgsSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    }
  ],
  "outputs": [
    {
      "id": "context-status",
      "module": "context",
      "role": "status",
      "field": "status"
    },
    {
      "id": "context-output",
      "module": "context",
      "role": "log",
      "field": "report"
    },
    {
      "id": "progress-status",
      "module": "progress",
      "role": "status",
      "field": "status"
    },
    {
      "id": "progress-output",
      "module": "progress",
      "role": "log",
      "field": "report"
    },
    {
      "id": "pressure-status",
      "module": "pressure",
      "role": "status",
      "field": "status"
    },
    {
      "id": "pressure-output",
      "module": "pressure",
      "role": "log",
      "field": "report"
    }
  ],
  "fixtures": {
    "context": {
      "budget": 12,
      "unit": "fictional context unit",
      "packets": {
        "focused": [
          {
            "name": "Task",
            "units": 1
          },
          {
            "name": "Specification",
            "units": 3
          },
          {
            "name": "Current plan",
            "units": 2
          },
          {
            "name": "Relevant source",
            "units": 3
          }
        ],
        "history": [
          {
            "name": "Task",
            "units": 1
          },
          {
            "name": "Specification",
            "units": 3
          },
          {
            "name": "Current plan",
            "units": 2
          },
          {
            "name": "Relevant source",
            "units": 3
          },
          {
            "name": "Old transcript",
            "units": 8
          }
        ],
        "missing-spec": [
          {
            "name": "Task",
            "units": 1
          },
          {
            "name": "Current plan",
            "units": 2
          },
          {
            "name": "Relevant source",
            "units": 3
          }
        ]
      }
    },
    "progress": {
      "task": "lexer",
      "next": "parser",
      "artifact": "lexer-fixture-v1",
      "evidence": {
        "caseId": "duplicate-keyword",
        "expected": 1,
        "actual": 1,
        "passed": true
      },
      "why": "Duplicate keyword occurrences must not create duplicate declarations."
    },
    "pressure": {
      "requirement": "Count distinct keyword strings. Empty input is zero; repeated keywords count once.",
      "cases": [
        {
          "id": "one-keyword",
          "input": [
            "ready"
          ],
          "expected": 1
        },
        {
          "id": "empty",
          "input": [],
          "expected": 0
        },
        {
          "id": "duplicate-keyword",
          "input": [
            "ready",
            "ready"
          ],
          "expected": 1
        },
        {
          "id": "mixed-keywords",
          "input": [
            "ready",
            "bestie",
            "ready"
          ],
          "expected": 2
        }
      ]
    }
  },
  "limits": [
    "Three deterministic fictional fixtures, not a live model, shell, compiler or repository.",
    "Context units are invented teaching units, not measured tokens or model performance.",
    "A checkpoint survives only the simulated iteration inside this page. There is no filesystem, browser storage or other persistence.",
    "Reload resets every lesson and the receipt ledger and creates a new pageInstanceId.",
    "No asynchronous jobs, network actions, model calls, credential access, real permissions or security isolation. Initial document and asset requests still reach hosting.",
    "No autonomous repeat loop. Every teaching transition requires an explicit action; no deployment, purchasing or publishing.",
    "Fixture checks cover only the named finite cases; passing is not a proof of compiler correctness or permission to run a real agent."
  ],
  "errors": {
    "INVALID_REQUEST": "Supply only the exact JSON-shaped fields, without accessors, cycles or extra keys.",
    "WRONG_PUBLICATION": "Use this publication identity.",
    "WRONG_INSTANCE": "Discover the new page after reload.",
    "VERSION_MISMATCH": "Use current discovery versions and a new request ID.",
    "REQUEST_ID_REUSE": "Replay exactly or use a new ID for changed data.",
    "REQUEST_LIMIT": "4096 IDs retained. Reads and exact replay still work; reload clears state and ledger.",
    "UNKNOWN_TARGET": "Discover an exact registered target.",
    "AMBIGUOUS_TARGET": "Use an exact ID or narrower region; Reset lesson has three root matches.",
    "UNKNOWN_ACTION": "Use an action advertised by the control.",
    "INVALID_ARGUMENTS": "Follow the exact control schema without extra keys or coercion.",
    "STALE_REVISION": "Inspect current state and use a new ID and revision.",
    "CONTROL_UNAVAILABLE": "Read availability; a completed fixture step is disabled.",
    "UNKNOWN_REQUEST": "wait retrieves only retained IDs in this page instance.",
    "DISPATCH_FAILED": "Inspect diagnostics and reload. No successful effect is claimed.",
    "RENDER_FAILED": "State may already be committed. Inspect diagnostics and reload; no rollback is promised.",
    "TASK_REQUIRED": "Enter a task and assemble again.",
    "SPEC_REQUIRED": "Select Focused packet.",
    "CONTEXT_OVER_BUDGET": "Select Focused packet to remove old history.",
    "NO_VERIFIED_PROGRESS": "Run the fixture step first.",
    "CHECKPOINT_NOT_DURABLE": "Choose Evidence checkpoint and record again.",
    "PROGRESS_LOST": "Re-run the step, record an Evidence checkpoint and restart.",
    "CHECKPOINT_UNSUPPORTED": "Re-run the step and record evidence, artifact and rationale.",
    "STEP_ALREADY_COMPLETE": "Reset the single-step fixture; native UI disables the completed step.",
    "CHECK_REQUIRED": "Evaluate the current candidate and suite.",
    "INSUFFICIENT_BACKPRESSURE": "Select Contract cases, evaluate and attempt acceptance.",
    "CHECK_FAILED": "Choose Distinct count, evaluate and attempt acceptance."
  },
  "receipts": {
    "capacity": 4096,
    "eviction": false,
    "resetRetainsLedger": true,
    "exactReplay": true,
    "changedReuse": "REQUEST_ID_REUSE",
    "reload": "New identity, empty states and ledger.",
    "fields": [
      "publicationId",
      "interfaceVersion",
      "contentVersion",
      "fixtureVersion",
      "pageInstanceId",
      "requestId",
      "action",
      "expectedRevision",
      "status",
      "targetId",
      "ok",
      "executed",
      "beforeRevision",
      "afterRevision",
      "lessonChanged",
      "result",
      "error",
      "scope"
    ],
    "revisions": "Every admitted reducer or focus action increments once, including domain refusals. Refused envelopes do not mutate lesson state."
  },
  "example": "const api = window.GeoffreyGuide;\nconst d = api.discover();\nif (!d.ready) throw new Error('Page is not ready');\nconst identity = {\n  publicationId: d.publicationId,\n  interfaceVersion: d.interfaceVersion,\n  contentVersion: d.contentVersion,\n  fixtureVersion: d.fixtureVersion,\n  pageInstanceId: d.pageInstanceId\n};\nconst request = {\n  ...identity,\n  requestId: 'example.' + crypto.randomUUID(),\n  expectedRevision: api.inspect({targetId: 'ghuntley-lesson-context'}).revision,\n  target: {id: 'context-reset'},\n  action: 'reset',\n  args: {}\n};\nconst first = api.act(request);\nif (!first.receipt.ok) throw new Error(first.receipt.error.code);\nconst replay = api.act(request); // No second mutation.\nconst receipt = api.wait({pageInstanceId: d.pageInstanceId, requestId: request.requestId});\nconst lesson = api.inspect({targetId: 'ghuntley-lesson-context'});\nconst health = api.diagnose();"
}
