# Pursuit Permit > **Hackathon prototype.** Pursuit Permit uses labeled demo fixtures and a synthetic bidder profile. It is not a live procurement feed, procurement advice, or a production service. **New facts need new authority.** Plain English: Pursuit Permit stops a browser agent from turning a better new recommendation into unauthorized work. The agent can search, compare, propose, and retest evidence, but scarce team capacity moves only when a human-approved, exact-scope permit exists. People approve a snapshot. Browser agents act on a moving world. Pursuit Permit is a browser-native permission-drift control for the WebMCP Challenge: every permit is bound to the exact evidence revision, decision, bid, and capacity a person reviewed. The agent can become right after a person approved something else; that is the dangerous part. One constrained 40-hour demo bid slot makes the hidden failure visible. A browser agent rejects an apparent £900,000 front-runner, proposes 32 hours for an eligible £750,000 alternative, and commits nothing until a person approves the exact scope. Later evidence makes the rejected bid newly valid. Pursuit Permit lets the agent prove that change, then refuses to let the new recommendation inherit yesterday's approval or displace the active permit. The result is a **living receipt and an immutable permit**. After a conspicuously labeled, page-only evidence revision, `retest_pursuit_permit` evaluates only the receipt's recorded `REOPEN THIS BID IF` conditions. Both can become true without widening the old permit. The £900,000 pursuit becomes a reopen candidate, yet a forced shortlist returns `active_permit_conflict` instead of stealing the active 32-hour permit. Procurement is the concrete replay, not the limit of the primitive. The same permission-drift question can arise when browser agents revisit hiring, payments, deployments, or legal review after facts change: recommendations can update; permission cannot drift. Those are future applications, not features claimed by this prototype. The core interaction is deliberately visual and consequential: 1. Search a fixed, labeled set of procurement demo fixtures. 2. Compare up to three visible opportunities against the synthetic bidder profile. 3. Follow the red thread from clause evidence to failed factor to ranking reversal. 4. Propose only an eligible opportunity: 40 hours protected, 32 proposed, 8 unassigned, **0 committed**. 5. Attempt to issue the permit and receive structured `approval_required` with no artifact or capacity commitment. 6. Record reviewer approval of the exact visible state, then have the agent retry. One timestamped pursuit permit commits 32 demo hours and carries the exact evidence conditions required to reconsider the rejected pursuit. 7. Apply the fixed demo evidence revision outside the agent tool surface, call `retest_pursuit_permit` with the historical receipt ID, and see both conditions pass before a forced displacement is refused. The 40-, 32-, and 8-hour values are fixed scenario estimates stored with the demo fixtures. They demonstrate a portfolio-allocation decision; they are not measured savings, staffing guidance, or customer evidence. ## The problem and the product boundary The evidence supports the problem, but not a claim that Pursuit Permit has measured its impact: - The UK Cabinet Office's construction-specific [Gold Standard review](https://assets.publishing.service.gov.uk/media/61b9cb41e90e07043e8ff5cc/Constructing_The_Gold_Standard_Final.pdf) reported participant estimates above £247,000 per major framework bid for contractors and above £130,000 for consultants, with maxima up to £1 million. Those figures concern major public-sector **construction frameworks**, not software tenders or Pursuit Permit users. - The CMA's 2026 [road and rail civil-engineering market study](https://assets.publishing.service.gov.uk/media/6a0ea16d9c0df135284ec751/Final_Report_.pdf) found that lengthy or complex procurement can demand high commitments of time and resource and be costly to bidders. The report also records a supplier caveat that this effort is not necessarily wasteful when it helps refine solutions in close consultation. - In the Scottish Government's [2024 survey of public-procurement suppliers](https://www.gov.scot/publications/public-procurement-survey-suppliers-2024/pages/4/), 80 of 252 respondents (32%) said tender-compilation costs often or always caused difficulty, while only 119 of 251 (47%) agreed or strongly agreed that evaluation criteria were clear. This is a self-reported Scottish survey, not a universal prevalence estimate. - Current UK [conditions-of-participation guidance](https://www.gov.uk/government/publications/procurement-act-2023-guidance-documents/procure-phase/guidance-conditions-of-participation-html) says a supplier that fails one condition cannot ultimately be awarded the contract, even if it meets all others, subject to the procedure and any disclosed timing or discretion. That is why this demo treats hard gates separately from fit scores. Generic tender discovery, AI qualification, bid/no-bid scoring, capacity planning, audit trails, approval gates, and reopen conditions already exist. Pursuit Permit does not claim to invent them; [`docs/MARKET_NOVELTY.md`](docs/MARKET_NOVELTY.md) records the closest analogues checked. Its narrow challenge contribution is a proof-carrying WebMCP transaction for scarce human effort: the agent may disprove and propose, the visible reviewer checkpoint binds one exact revision, the approved retry commits the permit, and later evidence can reopen the rejected pursuit without silently displacing the active one. This narrow problem is not invented for the demo. NIST's February 2026 draft [Software and AI Agent Identity and Authorization concept paper](https://www.nccoe.nist.gov/sites/default/files/2026-02/accelerating-the-adoption-of-software-and-ai-agent-identity-and-authorization-concept-paper.pdf) explicitly asks how authorization should update when agent context changes, how an agent proves authority for a specific action, and how human identity binds to human-in-the-loop authorization. An emerging IETF [transaction-bound authorization Internet-Draft](https://www.ietf.org/archive/id/draft-coetzee-oauth-spt-txn-tokens-03.html) explores intent-bound tokens and receipts. Those are supporting analogues, not claims that this client-side prototype implements their security properties. ## Why WebMCP matters here The five imperative WebMCP tools operate on the same controller that renders the page. A tool call changes visible rows, evidence, shortlist, approval state, and activity history; there is no parallel agent-only database or chat transcript. This makes the page a shared control surface where an agent can do evidence-heavy work and a person retains the consequential decision. | Tool | Input | Preconditions and visible effect | | --- | --- | --- | | `search_opportunities` | `query`, optional `closingWithinDays`, optional ISO `asOf` | Searches only labeled local fixtures and returns ranked ID/title/value/deadline summaries. A new search establishes the visible result set and invalidates the active comparison and approval path. | | `compare_opportunities` | 1-3 visible `opportunityIds` | Tests the current evidence revision, cites mandatory failures, and plans without committing capacity. If a historical permit exists, it hands the receipt ID to `retest_pursuit_permit` rather than treating a new recommendation as authority. | | `shortlist_opportunity` | eligible `opportunityId`, `idempotencyKey` | Proposes an eligible allocation for visible review, advances the decision revision, and invalidates any earlier approval. It commits 0 hours. If an active permit already owns the demo bid slot, it returns `active_permit_conflict` instead of staging a displacement. | | `issue_pursuit_permit` | `idempotencyKey` | Before approval, returns structured `approval_required` and commits nothing. After approval of the exact revision, issues one idempotent pursuit permit, commits its demo allocation, and returns the evidence-linked decision receipt. | | `retest_pursuit_permit` | historical `receiptId` | Requires a newer visible evidence revision. Retests only the receipt's recorded reopening conditions, exposes the immutable permit scope and any displacement collision, and moves zero capacity. | Tool inputs are schema-validated. Mutation tools use idempotency keys. Reviewer approval and the fixed demo evidence revision are intentionally absent from the registered WebMCP surface: the agent can test evidence and propose spend, but it cannot manufacture evidence or approve its own permit. ## Exact clean-run agent prompt Start from a fresh page load, then give a WebMCP-capable agent this prompt verbatim: > Using only this page's labeled demo fixtures, find software, cloud, or migration opportunities closing in the next 45 days as of 2026-08-31. Compare the three highest-value matches against the visible demo bidder profile. Cite every mandatory gate that changes the ranking. Treat the displayed 40 hours as one constrained demo bid slot, propose only the strongest eligible opportunity, and report protected, proposed, committed, and unassigned hours. Then call `issue_pursuit_permit`; if reviewer approval is required, stop and identify the exact visible checkpoint. Do not invent evidence or treat demo data as live. The expected tool order is `search_opportunities` -> `compare_opportunities` -> `shortlist_opportunity` -> `issue_pursuit_permit`. The last call must stop at `approval_required`. Review the visible proposal, use **Approve pursuit proposal**, and then prompt: > The exact visible proposal is now approved. Retry `issue_pursuit_permit` once with a new idempotency key. Confirm whether demo capacity changed from proposed to committed, then summarize the pursued and declined opportunities, reopening conditions, evidence references, reviewer label, revision, and approval assurance from the pursuit permit. After applying the labeled demo evidence revision, prompt: > Retest the active pursuit receipt by its exact receipt ID using `retest_pursuit_permit`. Report the historical and current evidence revisions, each satisfied condition, the active permit scope, and the permit the reopened bid would displace. Do not shortlist it or imply that changed evidence widened the old authority. ## Run locally Requirements: Node.js `^20.19.0`, `^22.13.0`, or `>=24`, plus npm `>=10`. ```bash npm ci npm run dev ``` Vite prints the local URL, normally `http://127.0.0.1:5173`. Without native WebMCP, the interface remains usable through the reviewer checkpoint as a non-native review fallback, but it cannot issue a permit. Permit issuance is available only through `issue_pursuit_permit`. Append `?webmcp-proof=1` to expose the query-gated native proof console inside the live replay, after the structured decision alert and before the separate evidence files. It discovers only this page's five registered descriptors, executes the documented pre-approval chain through `document.modelContext.executeTool(...)`, unlocks the permit retry only after the visible reviewer checkpoint, and exposes a native receipt-retest action only after the evidence revision. The console is absent from the normal judge-facing experience. ### Quality commands ```bash npm test npm run test:coverage npm run typecheck npm run lint npm run build npx playwright install chromium npm run test:e2e npm run capture:assets ``` `test:e2e` exercises the functional browser journeys against the local development server without rewriting tracked submission images. `capture:assets` first builds the app, then explicitly regenerates the desktop and mobile showcase images from the production preview. Or run the full local release gate with one command: ```bash npm run verify:release ``` The release gate runs the browser journeys against the built production preview and does not rewrite tracked submission assets. The public repository candidate also includes `.github/workflows/release-gate.yml`, which runs the same gate in a clean GitHub Actions checkout after the repository is published. Coverage thresholds are configured at 80% for statements, branches, functions, and lines. Do not infer a passing build from this README; use the current command output or CI record. ## Enable and verify WebMCP WebMCP is an experimental proposed standard, so availability depends on the host browser or agent. For local Chrome testing, use Chrome 149 or newer: 1. Open `chrome://flags/#enable-webmcp-testing`, enable it, and relaunch Chrome. 2. Load Pursuit Permit, open DevTools → **Application** → **WebMCP**. 3. Confirm exactly five imperative tools appear under **Available Tools**. 4. Run each tool with valid JSON. Inspect the recorded input, business output, status, and invocation order under **Invoked Tools**; use WebMCP DevTools for the authoritative transport envelope. 5. Verify that every call causes the corresponding visible state change and that `issue_pursuit_permit` fails before the reviewer checkpoint records approval. Official references: [WebMCP overview](https://developer.chrome.com/docs/ai/webmcp), [imperative API](https://developer.chrome.com/docs/ai/webmcp/imperative-api), [DevTools WebMCP panel](https://developer.chrome.com/docs/devtools/application/webmcp), and [WebMCP eval guidance](https://developer.chrome.com/docs/ai/webmcp/evals). Submission assets: [`docs/DEVPOST.md`](docs/DEVPOST.md), [`docs/DEVPOST_FIELD_MAP.md`](docs/DEVPOST_FIELD_MAP.md), [`docs/HUMAN_DEMO_SCRIPT.md`](docs/HUMAN_DEMO_SCRIPT.md), [`docs/DEMO_SCRIPT.md`](docs/DEMO_SCRIPT.md), [`docs/SUBMISSION_ASSETS.md`](docs/SUBMISSION_ASSETS.md), [`docs/FINAL_SUBMISSION_RUNBOOK.md`](docs/FINAL_SUBMISSION_RUNBOOK.md), [`docs/USER_ACTIONS.md`](docs/USER_ACTIONS.md), and [`docs/DEPLOYMENT.md`](docs/DEPLOYMENT.md). Verification records: [`docs/EVALS.md`](docs/EVALS.md), [`docs/ACCESSIBILITY_EVIDENCE.md`](docs/ACCESSIBILITY_EVIDENCE.md), [`docs/PUBLIC_EVIDENCE.md`](docs/PUBLIC_EVIDENCE.md), [`docs/MARKET_NOVELTY.md`](docs/MARKET_NOVELTY.md), and [`docs/JUDGE_SCORECARD.md`](docs/JUDGE_SCORECARD.md). ## Architecture ```text WebMCP-capable browser / visible React UI │ register-tools.ts adapter │ pursuit-permit-controller.ts boundary validation | state | approval | audit │ decision-engine.ts + labeled fixtures ``` - `src/domain/` contains typed demo fixtures and deterministic search/comparison logic. - `src/state/pursuit-permit-controller.ts` validates tool inputs and owns the single observable decision state. - `src/webmcp/register-tools.ts` registers the five imperative tools and maps results to MCP content plus structured content. - `src/App.tsx` subscribes to the same controller and provides the visible reviewer checkpoint. - `tests/` covers domain, controller, WebMCP registration, and UI behavior; `e2e/` covers the critical desktop and mobile flows. No server, account, database, external write, or autonomous submission is part of this prototype. ## Evidence, provenance, and limitations The in-app buyers, opportunity references, deadlines, requirements, bidder qualifications, comparison scores, and decisions are synthetic demo fixtures. “Northbridge Council” and the demo bidder profile are not representations of real organizations. [`docs/PUBLIC_EVIDENCE.md`](docs/PUBLIC_EVIDENCE.md) records one real Find a Tender notice as a separately labeled provenance example. That official notice is not silently blended into the synthetic comparison and does not validate the demo bidder profile or any bid/no-bid outcome. Contains public sector information licensed under the Open Government Licence v3.0. Known limitations: - Fixed local fixtures; no live ingestion, authentication, persistence, or multi-user concurrency. - Deterministic rules demonstrate the workflow boundary; they are not a substitute for professional procurement review. - The reviewer checkpoint is an auditable application-state gate, not an authentication boundary. A browser agent that is allowed to simulate page input may also actuate DOM controls; a production version would require native or out-of-band identity confirmation for a cryptographic person-only guarantee. - The activity ledger is in-memory and resets with the page. - Demo operations are bounded and synchronous. Cancellation is honored before calculation and before commit; this build does not claim a long-running mid-flight cancellation demonstration. - Experimental WebMCP browser support may change. - No claim of production readiness, accuracy on unseen tenders, win-rate lift, or measured time/cost savings is made. ## Security and trust boundary - All external-looking records are visibly labeled as demo fixtures. - Inputs are constrained with JSON Schema at registration and Zod at the controller boundary. - Tool descriptions and outputs are bounded; errors are structured rather than silently ignored. - None of the five registered tools exposes the reviewer-approval action or the evidence-revision action. - Approval is tied to the exact shortlist, proposed demo allocation, evidence, and decision revision, and is invalidated by a relevant change. - `issue_pursuit_permit` is idempotent within that state and cannot bypass the approval gate by retrying. - The app makes no network write and stores no credentials or personal data. - The Netlify configuration sets `Origin-Agent-Cluster: ?1` and `Permissions-Policy: tools=(self)`; the public response headers still require deployment verification. ## Challenge handoff checklist - [x] Select a final submission name locally; entrant should confirm it before Devpost submission. - [x] Run and record deterministic local verification in [`docs/EVALS.md`](docs/EVALS.md). - [x] Run unit, integration, component, coverage, type, lint, build, audit, and desktop/mobile E2E checks. - [ ] Re-run all five tools, the blocked pre-approval call, reviewer approval, approved retry, and changed-evidence receipt retest through a supported native WebMCP browser against the deployed current source state. - [ ] Save a formal browser-agent or DevTools invocation log and complete the five fresh-tab repeatability evaluation. - [ ] Deploy the final build and verify the required response headers on the public URL. - [ ] Keep this repository public with the MIT license visible. - [ ] Record a public demo video under three minutes with audio. - [ ] Ensure the project description, repository, screenshots, live URL, and video stand alone. - [ ] Complete identity, ownership, and final submission review as the entrant. - [ ] Freeze the submission, repository, and live build after the challenge deadline if required by the rules. ## License The application source is available under the [MIT License](LICENSE). Public-sector source material retains its own [Open Government Licence v3.0](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/) terms and attribution requirements.