# Threadline > Stop reading the feed. Debug the argument. **Live app:** [threadline.jameswirths.chatgpt.site](https://threadline.jameswirths.chatgpt.site) **Source:** [github.com/JamesWirths/threadline](https://github.com/JamesWirths/threadline) Threadline is a provenance-preserving evidence debugger for contested online claims. It turns public records and explicitly labeled, human-entered screenshot transcriptions into an inspectable argument graph. A browser agent can research and stage sources, atomic claims, typed relations, non-destructive groups, and a verdict. A person decides which proposals become canonical. The bundled case asks: > Will WebMCP replace browser automation? Its evidence supports a narrower answer: WebMCP is a semantic fast lane on instrumented sites, while explicit fallback guidance and unresolved cross-browser implementation make universal replacement an overclaim. ## Why WebMCP matters here Threadline exposes the same active investigation a person sees as eight structured Site tools through `document.modelContext.registerTool`. The agent works with stable source and claim identifiers instead of reconstructing graph meaning from pixels or operating a hidden copy of the workspace. ```js await document.modelContext.registerTool({ ...contract, execute: handlers[contract.name], }); ``` WebMCP improves the collaboration loop in three ways: - the agent receives a compact, typed view of canonical state, explicit unknowns, and dated provenance; - proposed epistemic changes appear immediately in the visible review queue, with graph-backed proposal entities also appearing on the graph; and - publication authority stays with the person instead of allowing the agent to silently rewrite the record. The live intelligence comes from the browser's WebMCP client. Threadline itself is a static app with no account, server database, X authentication, external connector, or runtime AI dependency. ## A working investigation product Threadline keeps the active graph in memory while saving validated snapshots to a browser-local investigation repository. Up to eight investigations can survive reloads when browser storage is available and an exclusive Web Lock request succeeds. The app supports create, switch, rename, reset, remove, JSON import/export, and Markdown evidence-brief export. If durable storage fails, the affected investigation is labeled **Memory only** and gets its own **Export JSON** recovery action. Threadline will not reload into a case it could not safely persist. The normal product loop is phase-bound: 1. **Research sources:** the agent reads the question, researches public evidence, and stages source records. 2. **Model accepted evidence:** after human source review, the agent stages small source-grounded claims. 3. **Connect the claims:** after claim review, the agent stages typed relations and defensible same-proposition groups. 4. **Synthesize a verdict:** after relation review, the agent stages one atomic verdict patch. 5. **Investigate what remains:** accepted synthesis does not erase unresolved claims; the next prompt targets the highest-value gap. Pending proposals block the next phase. The person must accept or reject every pending proposal before the Ask card advances. ## Run locally No package installation or build step is required. Serve the checked-in `dist/` directory with any static server: ```bash python3 -m http.server 4173 --directory dist ``` Then open `http://localhost:4173`. In a browser context where all eight WebMCP registrations succeed, the header reports **8/8 Site tools ready**; partial registration reports the exact count and failed names. In an ordinary browser, manual investigations still work. The clearly labeled **Preview example pass** appears only while the bundled example is clean, including immediately after reset. Use a recent Node.js release to run the verification suite: ```bash npm test npm run smoke ``` ## Reliable challenge walkthrough For a reproducible live-tool take, load or reset the bundled WebMCP example, confirm **8/8 Site tools ready** and **Saved**, and use the fixture prompt in [docs/demo-runbook.md](docs/demo-runbook.md). It asks `get_workspace` for the checked-in guided facts, then stages exactly two group proposals and one atomic verdict proposal. No registered Site tool can accept that work. Review the three proposals deliberately: 1. Accept **Performance amplification**. 2. Reject **Adoption and fallback** with `Same topic, different claim.` 3. Inspect the verdict's source and relation receipt, then accept it. 4. Ask the agent to focus unresolved evidence. 5. Reload the page to prove the accepted state and decision history persisted. 6. Export the JSON workspace and Markdown evidence brief. For the full product path, create a fresh investigation and follow the Ask card one review-gated phase at a time. Human-entered screenshot transcriptions can be added through **Add source → Screenshot transcription — no image or public URL** without fabricating a link. ## Importable screenshot-transcript case pack [examples/openai-bel-rumor.threadline.json](examples/openai-bel-rumor.threadline.json) turns curated transcriptions and paraphrases of three supplied Token Gremlin screenshots into a real importable investigation. The source image files are not included in the repository or hosted app. Open **Investigations → Load rumor case** to load the validated workspace directly. It contains three curated canonical screenshot-transcript records and seven deterministic, preview-origin pending fixture proposals for atomic claims. The checked-in artifact has no human decision history and attributes no work to a live agent. The records distinguish “the curated transcript attributes this wording to an account” from “the underlying statement is true,” use `unknown` where the source images showed only relative age, exclude engagement, and keep the unrelated Agent Native fragment outside the evidence chain. The companion [evidence brief](examples/openai-bel-rumor.evidence-brief.md) deliberately contains the canonical source ledger and **no accepted claims**: pending fixture proposals cannot leak into a canonical export. Rebuild both deterministic artifacts with `npm run build:bel-example`. ## Human authority model | Actor | May do | May not do | |---|---|---| | Registered WebMCP agent | Read canonical evidence; stage researched public sources, atomic claims, relations, groups, and a verdict; change reversible focus | Accept or reject proposals, add screenshot transcriptions, reset/import a case, or silently alter canonical truth | | Human | Create and manage investigations; add URL evidence or a screenshot transcription; inspect, accept, reject, reset, import, and export | Lose the provenance of accepted groups, sources, or verdict evidence | Pending proposals are reversible and visibly labeled **STAGED — NOT CANONICAL**. Accepting a verdict installs its claim and all patch relations atomically; only direct canonical claim-to-verdict edges enter the basis receipt. Rejected proposals remain in decision history with the human rationale. No registered WebMCP tool can reset a case; reset is a person-facing operation over an immutable baseline. This authority boundary is a capability boundary, not authenticated proof of personhood: Threadline withholds accept, reject, reset, import, delete, and case-switch operations from its registered WebMCP tools. A separate agent that is also given general DOM-control authority could activate person-facing controls, so deployments must decide which browser capabilities they grant. ## Eight Site tools | Tool | Purpose | Authority | |---|---|---| | `get_workspace` | Discover the case, return scoped canonical state, page bundled guidance, or list unresolved claims | Read-only | | `inspect_sources` | Return selected, delimited canonical evidence records—including labeled screenshot transcriptions—and their linked claims for the expected case | Read-only | | `stage_sources` | Stage one to four public HTTP(S) evidence records against the expected case and revision | Human review required | | `stage_claims` | Stage one to four source-grounded atomic claims against the expected case and revision | Human review required | | `stage_relations` | Stage up to six `supports`, `contradicts`, `qualifies`, or `amplifies` relations against the expected case and revision | Human review required | | `stage_merge` | Stage up to two non-destructive same-proposition groups against the expected case and revision | Human review required | | `stage_verdict` | Stage one verdict and its bounded non-amplification relations as one atomic patch against the expected case and revision | Human review required | | `set_focus` | Emphasize `unresolved`, `primary_evidence`, or `all` on the expected case without changing truth | Reversible presentation only | Every contract uses bounded JSON Schema, stable identifiers, constrained enums, instructional descriptions, and `additionalProperties: false`. Read tools carry `readOnlyHint` and `untrustedContentHint`; third-party text is returned inside explicit untrusted-evidence records. Copied Ask prompts serialize the investigation question as one JSON data line, escaping newline and Unicode line-separator characters so the value cannot structurally create a new prompt line. These are injection mitigations and advisory client signals, not a guarantee of model compliance with hostile semantics. `get_workspace` is the discovery call. Every other tool requires the `expectedCaseId` returned by the latest discovery; staging tools also require its `workspaceRevision` as `expectedRevision`. Invalid input and `CASE_CHANGED` failures leave proposals, canonical state, focus, human-action revision, and activity untouched. A valid same-case call with a stale revision may append one bounded, redacted failure receipt but cannot change proposal or canonical state. Equivalent normalized proposals reuse a stable proposal ID. Pending entity IDs are reserved across calls so competing proposals cannot present different payloads under the same visible identity. Human review revalidates the entire proposal before changing canonical state. An omitted workspace scope returns a compact discovery view. The bundled example's deterministic fixture is available through the bounded `guidance` scope; follow `page.nextCursor` and append `page.items` until no cursor remains before staging. Tool readiness is phase-specific: - **Research sources** needs `get_workspace` and `stage_sources`. - **Model accepted evidence** needs `get_workspace`, `inspect_sources`, and `stage_claims`. - **Connect the claims** needs `get_workspace`, `inspect_sources`, `stage_relations`, and `stage_merge`. - **Synthesize a verdict** needs `get_workspace`, `inspect_sources`, and `stage_verdict`. - **Investigate what remains** returns to source research. Registration failures are isolated and named instead of being reported as full readiness. ## Deterministic example preview **Preview example pass** is a resilience path, not a simulated live agent. It is available whenever the bundled example is clean—no proposals, history, accepted groups, or verdict—including after reset and regardless of Site-tool readiness. It labels every proposal origin `preview` and stages the exact fixture through the same proposal store used by WebMCP handlers: 1. `group-performance-amplification` (`proposal-79f32561`); 2. `group-adoption-fallback` (`proposal-8344ae01`); and 3. `verdict-fast-lane` (`proposal-98a1370e`). The verdict patch contains four relations. Three direct edges—benchmark efficiency, task parity, and official fallback—become its basis receipt; a fourth auxiliary edge records that fallback guidance contradicts the universal-replacement hypothesis. A parity test runs the fixture through live-style handlers and the preview path and compares normalized proposal state. This guarantees fixture parity; it does not claim arbitrary model choices are deterministic. ## Architecture ```text dist/ ├── data/ │ ├── case-webmcp.js dated bundled evidence and preview fixture │ ├── case-bel-rumor.js curated screenshot-transcript fixture baseline │ └── investigation-seeds.js blank, example, and exact fixture workspaces ├── model/ │ ├── graph-store.js staging, human review, focus, and history │ ├── validation.js bounded inputs and graph invariants │ ├── workspace-codec.js validated portable import/export │ └── evidence-brief.js deterministic Markdown report ├── storage/ │ ├── workspace-repository.js browser-local case library and stale-write guards │ └── workspace-lock.js exclusive cross-tab writes or memory-only fallback ├── webmcp/ │ ├── contracts.js eight closed tool contracts │ ├── handlers.js structured results over the active store │ └── register-tools.js one-time isolated registration ├── ui/ graph, panels, Ask card, intake, switcher, exports ├── index.html accessible single-route shell ├── main.js composition, persistence, controls, capability state └── styles.css responsive visual system ``` The data path is `browser-local investigation → active graph store → WebMCP proposal → human review → validated repository save → reopen or export`. Durable localStorage is enabled only after an exclusive Web Lock request succeeds; a missing or rejecting lock surface keeps the app memory-only and exportable. Within the locked path, revision and ancestry checks reject stale snapshots. Saved-case switches reload after publishing the active ID. Memory-only switches stay in-page, and the already-registered tool handlers resolve the explicitly rebound active store. The fixed layered renderer avoids a force simulation, preserving spatial memory as focus and proposal state change. Graph identities are typed, so a source and claim may share a literal identifier without collapsing their geometry. Staged edges open their owning proposal; synthetic source edges open accepted provenance rather than masquerading as stored relations. ## Source facts and provenance The bundled WebMCP example uses nine curated public records with URLs. Custom investigations may also contain human-entered evidence text transcribed from a user-supplied screenshot. Screenshot-transcription records use `provenanceKind: "user_screenshot"`, omit `url`, and state that Threadline did not fetch the post, authenticate the account, or verify the underlying claim. Threadline has fields for bounded evidence text and provenance, not image binaries, profiles, timelines, or credentials; people should not paste sensitive material into evidence text. The bundled rumor fixture contains curated transcripts and paraphrases, not the source image binaries, and deliberately excludes engagement counts. Loading that exact fixture baseline creates no human acceptance receipt. The `stage_sources` contract instructs the agent to stage only public HTTP(S) sources it actually accessed; Threadline validates the URL shape and provenance fields but cannot independently prove access. In custom investigations, a screenshot transcription enters through explicit human intake and becomes canonical as a human action. Every record keeps publication date—or an explicit `living` or `unknown` marker—separate from its snapshot date. | Source | Date in case | Evidentiary role | |---|---:|---| | [OpenAI Developers announcement](https://x.com/OpenAIDevs/status/2092344885676495197) | 2026-08-25 | Attributed launch thesis, not independent benchmark evidence | | [Chrome WebMCP overview](https://developer.chrome.com/docs/ai/webmcp) | published 2026-05-18; updated 2026-08-07 | Primary progressive-enhancement framing | | [WebMCP explainer](https://github.com/webmachinelearning/webmcp/blob/main/README.md) | living; seen 2026-09-03 | Primary fallback and human-in-the-loop guidance | | [WindTunnel canonical benchmark](https://github.com/nekuda-ai/WindTunnel/blob/5d598fde68c4747b87e8b851420e1b5aa961544b/README.md) | 2026-08-20 | Pinned matched benchmark at commit `5d598fd` | | [WebKit standards position #670](https://github.com/WebKit/standards-positions/issues/670) | living; seen 2026-09-03 | Open issue with concern labels but no recorded formal position; not a Safari implementation claim | | [Mozilla standards position #1412](https://github.com/mozilla/standards-positions/issues/1412) | living; seen 2026-09-03 | Position remains `proposed`; neither a finalized position, Firefox implementation claim, nor endorsement | | [Chris Tate post](https://x.com/ctatedev/status/2094850640253972706) | 2026-09-01 | Attributed builder report about WebMCP invocation and fallback | | [Sodium post](https://x.com/saviomartin/status/2093780571638149523) | 2026-08-29 | Attributed performance claim traced to stronger evidence | | [Vinny post](https://x.com/hot_town/status/2092481550096924926) | 2026-08-26 | Future-looking adoption prediction, not current adoption evidence | The benchmark record leads with matched raw results: native WebMCP and DOM plus vision each solved 48 of 49 tasks; DOM plus vision passed 145 of 147 attempts and native WebMCP passed 144 of 147. Median agent time, cost, and processed tokens per attempt were `6.8s / $0.009 / 5,172` for native WebMCP and `29.3s / $0.210 / 64,424` for DOM plus vision. The defensible conclusion is a large efficiency advantage on the benchmark's instrumented sites, not a general accuracy advantage. ## Testing `npm test` covers all eight registrations, phase-specific Ask guidance, prompt-boundary injection, case-identity and stale-revision guards, rejected-lock fallback, source staging, screenshot provenance, entity reservation, durable repository reopen, portable import/export, evidence briefs, human review, atomic and replacement verdicts, typed graph selection, and preview/tool parity. `npm run evals` validates seven honest live-agent journey definitions—each still marked `not-run`—and reruns the registered-callback product workflow. Runtime results belong in [docs/live-agent-checklist.md](docs/live-agent-checklist.md); definition validation is not presented as a live model pass. `npm run smoke` checks the static entrypoint, local assets, metadata, working-product mounts, recovery wiring, accessible landmarks, target sizing, text sizing, responsive guards, and JavaScript syntax. The release checklist also includes manual checks for wide and narrow layouts, keyboard reachability, drawer focus restoration, text scaling, and reduced motion. ## License [MIT](LICENSE) © 2026 James Wirths.