Skip to content

docs(spec): day-two activation (E3) - #1712

Draft
Dumbris wants to merge 28 commits into
mainfrom
claude/spec-day-two-activation-1fad2a
Draft

Dumbris wants to merge 28 commits into
mainfrom
claude/spec-day-two-activation-1fad2a

Conversation

@Dumbris

@Dumbris Dumbris commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Design-only PR for growth experiment E3, day-two activation: Spec 124 in specs/124-day-two-activation/ (drafted as 119, then 122 and 123; each number was later taken on main). It contains no code. Implementation is split into five PRs (plan.md D7).

What the spec does

  • First-run starter (US1/US2). A fresh install with zero indexed tools gets a pre-selected starter in the wizard's Servers step: time via uvx, or sequentialthinking via npx as the fallback. It goes through the unchanged catalog door, so it is quarantined by default. The card shows the exact command and the isolation mode, and nothing runs until the user clicks "Add and inspect". The user then approves the captured tools in place, bound to the review (Spec 117 expected_hashes + expected_incarnation). Nothing is auto-approved. fetch and everything are excluded, because everything ships get-env, which dumps all environment variables. The same offer appears, not pre-selected, on Web Home and on the native Home.
  • Second client (US3). Once one client is connected, the wizard and the native Connect sheet list the other clients they detected, using the stat-only Spec 075 payload. Each write is a per-client, previewed action.
  • Weekly "what MCPProxy did" (US4). An additive digest on GET /activity/summary, shown as a Web Home card, a tray glance line and mcpproxy activity summary --since 7d. It reports calls brokered by client, tool changes held for review, blocks by class (quarantine / profile / other), and calls with secrets detected. Everything is computed locally.
  • Telemetry (US5). The next telemetry schema (17 on today's main) adds a closed-enum day_two object plus activation.first_tool_indexed_ever. There are no new identifiers, and the PII scan rejects unknown keys and values. This part ships first (PR-A), so baseline data exists before the UI does.

Success bar: at least 82% of new installs reach tools-indexed (same heartbeat-sampled instrument as the 71.5% baseline), and D7 on the IP key is at least 18%. The kill rule is in the spec.

Changes after the reviews (2026-10-25 merge with main), not re-reviewed

  • Renumbered 119 → 122 → 123 → 124. Main gained specs/119-scan-default-trust and later specs/122-scanner-skillspector-checks and specs/123-oauth-token-encryption; 120 and 121 are taken too.
  • Telemetry bump 15 → 17. Main is at schema 16 after 101-tpa-db.
  • The starter follows the new scan default trust mode (Spec 119). A clean admission scan unquarantines it through the unchanged door, and the step goes straight to "ready". Under manual, or after a non-clean verdict, the in-place bound approval applies. FR-003, FR-006, A2 and US1 scenario 8 were updated accordingly. The starter still adds no trust path of its own.

Riskiest assumption

The spec assumes that the 36% vs 66% one-and-done gap between installs that index a tool and those that don't is caused by having a working tool. It could instead reflect intent: people who add a real server already had a reason to come back. A time starter will lift "tools indexed" almost mechanically, so the primary metric can move while retention does not (a Goodhart risk). That is why D7 is co-primary, why the kill rule requires both metrics to move, and why first_tool_indexed_ever is reported separately from the baseline-comparable tool_count series. A second risk is that the explicit approval click becomes the new drop-off. It is measured (approval_abandoned, measured from capture completion), but by design there is no auto-approve fallback.

Cross-model review (OpenCode github-copilot/gpt-6.1-sol, --variant high)

Artifact Round Verdict Notes
spec.md r1 REQUEST_CHANGES 12 findings, all verified and fixed: informed consent before code runs, no scan-mode admission path, audited allowlist, day-0 and launcher denominators, comparable SC-001 instrument, hold-entry semantics, dispatch-based "brokered", coverage watermark, scoped authz, view counters, sticky second-client facts
spec.md r2 REQUEST_CHANGES 5: SC-004 instrument, launcher denominator, entered_hold, upgrade observation, reference registry override fail-closed
spec.md r3 APPROVE
plan r1 REQUEST_CHANGES 14: auth on the starter POST, an atomic resolve→add snapshot, native incarnation binding, lossless fact recording, startup anchor, a telemetry-independent facts loop, an explicit dispatched fact, post-dispatch blocks, R8 emit sites, abandonment clock, per-client connect mode, unchanged wizard completion, response envelopes
plan r2 REQUEST_CHANGES 9 open: commit-time evidence bound to incarnation, capture-completion evidence, limiter sheds, unpaired profile refusals, quickstart assertions
plan r3 REQUEST_CHANGES 6 new: sandbox quarantine typed reason, native starter state machine (no blind approve), native marks, edition guards, PR-B verification scope, digest.window
plan r4 REQUEST_CHANGES 3: quickstart request correlation, installation-wide watermark leaking to scoped callers, blocked prompts/get counted as a response block
plan r5 REQUEST_CHANGES 1: quickstart CLI not pinned to the scratch instance
plan r6 APPROVE

I verified every finding against the code before fixing it. None was rejected as a false positive. The plan took 6 of the 10 allowed rounds.

speckit.analyze: 100% FR coverage (32 FRs → 78 tasks in 7 phases mapped to 5 PRs). It found one CRITICAL, now recorded: constitution IV says Docker by default, but the product default is off. This is pre-existing and recorded in the plan's Complexity Tracking. The starter follows the global setting and does not widen it. There was also 1 MEDIUM enum gap and 2 LOW items, all fixed.

Assumptions made without asking (zero-interruption policy)

All of them are in spec.md "Clarifications" / "Assumptions" and in research.md R1-R12. The main ones:

  • the experiment is a pre/post cohort comparison, with no randomised holdout, because n is too small;
  • the starter is quarantined and approved in place, because no catalog marker grants trust;
  • "calls brokered" means dispatched upstream calls only;
  • the personal edition only.

Follow-ups (not in this PR)

  • O1: an embedded in-process starter, if launcher_missing is above 15%.
  • O2: a weekly OS notification.
  • O4: pin the audited starter version.
  • O5: a product decision on the global Docker-isolation default. It conflicts with constitution IV and predates this spec.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: ebc572d
Status: ✅  Deploy successful!
Preview URL: https://efd87e24.mcpproxy-docs.pages.dev
Branch Preview URL: https://claude-spec-day-two-activati.mcpproxy-docs.pages.dev

View logs

@Dumbris Dumbris changed the title Spec: day-two activation (E3) docs(spec): day-two activation (E3) Oct 20, 2026
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: claude/spec-day-two-activation-1fad2a

Available Artifacts

  • archive-darwin-amd64 (33 MB)
  • archive-darwin-arm64 (30 MB)
  • archive-linux-amd64 (20 MB)
  • archive-linux-arm64 (18 MB)
  • archive-windows-amd64 (33 MB)
  • archive-windows-arm64 (29 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (29 MB)
  • installer-dmg-darwin-arm64 (26 MB)
  • smart-mcp-proxymcpproxy-goWNMSAK.dockerbuild (0 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 44890895136 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

Dumbris and others added 18 commits October 20, 2026 23:32
…aude/spec-day-two-activation-1fad2a

# Conflicts:
#	ROADMAP.md
…schema 17, scan default trust)

main gained specs/119-scan-default-trust (number collision; 120/121 are claimed by
other branches) and telemetry schema 16 (101-tpa-db). The spec moves to 122,
its telemetry bump becomes schema 17, and the starter flow now covers the scan
default: a clean admission scan unquarantines through the unchanged door.
…aude/spec-day-two-activation-1fad2a

# Conflicts:
#	ROADMAP.md
…aude/spec-day-two-activation-1fad2a

# Conflicts:
#	ROADMAP.md
…aude/spec-day-two-activation-1fad2a

# Conflicts:
#	ROADMAP.md
…aude/spec-day-two-activation-1fad2a

# Conflicts:
#	ROADMAP.md
… PR-A

Spec 124 belongs to 124-session-failure-timeline (#1918), so this spec moves
to 126 (free on main and every open branch). Schema 17 is still unclaimed.

PR-A is now instrumentation only (FR-033..FR-040): install anchor with
install_origin/install_age, per-window completion counters kept apart from
dispatch (upstream_outcomes), window coverage, a starter classifier and a
sticky success scope. The receiver copies the new counters into
heartbeat_events, and mcpproxy-dash owns the cohort query that matches new
installs across days 0-6 and 7-13 and reports coverage gaps as rows.
Onboarding facts move to PR-B at the next free schema version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…artbeat_events

A retried counter window must stay byte-identical or the receiver answers
409, and the age can change between retries. Events take their age from
the same anonymous id's daily heartbeats row instead, which is exact
because the age is now a UTC calendar-date difference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Anchor has one writer and its own bucket; coverage is partial only when a
persisted undelivered-window marker shows lost counts; window_age is
frozen into upstream_outcomes; the receiver closes unknown keys only at
v17 and must deploy before the first v17 RC; SC-002's primary comparison
keeps one instrument (baseline definition) on every cohort; >= 17
everywhere; identity_predates_anchor and presence-based coverage rows;
every post-dispatch exit counts; replay excluded; PR-C depends on Phase 2b.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ema-17 contract

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Undelivered-window marker follows Drain (set on the first outcome after
each drain, cleared on accept only when nothing followed it, written false
at start); window opens at process start or Drain; empty store = absent,
0 bytes or only meta/schema_version; one anchor location; FR-039 points at
window_age with the on-or-before fallback; coverage = schema AND presence;
SC-002 keys and three companions explicit; receiver tasks T086-T088.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
'fresh' in PR-A means install_origin = fresh, one anchor read per process;
the marker is set on the first outcome after start or Drain and its writes
share the accept lock; Drain semantics stated as on main; absent marker is
partial once only for existing installs; maturity 21 days with windows to
D0+20; SC-008 denominators per figure; FR-040 adds SC-001 and SC-004;
quickstart SC-001/003/004 corrected; schema-version record named; schema17
per install; out-of-scope line fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SC-001 and SC-004 restated on the FR-040 instrument (D0/D0+1 daily rows),
targets to be restated by the maintainer against the recomputed baseline;
quickstart runs baseline on every cohort; dedicated outcome mutex (not
deliveryMu) and pending-counter inclusion; EnsureInstallAnchor right after
the storage open; server edition sends no window_age; R13 maturity 21 and
machine roll-up baseline-only; dispatch_uncovered; days_since_install
rationale corrected; drain wording aligned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Marker true-write inside the dedicated outcome mutex; anchor after
ArmShutdownMarker and the OAuth sweep; release cohorts via FR-040
minFirstVersion and 4-week noise blocks; starter-only precedence (active
wins); baseline unit roll-up over eligible installs; R13 coverage rows
complete and matured-only; days_since_install rationale in R13; US5 scoped
to PR-A with three PR-A scenarios; quickstart L4 restart cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Maps a clean-install walk-through of main 58a824e to FR-001..FR-017
(met / partly met / missing, with evidence), lists the in-product gaps
left (starter G1, CLI second client G2, opaque refusal for client
credentials G3), notes the FR-002 audited tool list is stale
(mcp-server-time now also has get_time_ago), and records the
sequencing: measurement first, #1939 held.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@Dumbris Dumbris left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed f1d1ac5, including the contracts, task dependencies and clean-install journey. Changes requested before treating this draft as the implementation plan for the starter.

  • Reconcile the approval expectations in spec.md (US1 scenarios 2 and 8, FR-006) and the T028 acceptance test. State the expected flow by add path and trust mode. Preserve the observed clean-install evidence and give the catalog path its own fixture.
  • Refresh the reviewed time-server tool list in FR-002, research.md and data-model.md. The catalog walkthrough exposed three tools, including get_time_ago. Derive example counts from that list and retain the mismatch warning for genuine drift.
  • Align plan.md and tasks.md with the actual #1940 implementation. Schema 17 covers outcome windows and the install anchor. First-index and second-client facts belong to the later onboarding work. Add explicit emitter version, payload, and validation tasks for each later schema and correct the PR-C dependency.
  • Reconcile T076's 5% with SC-003's 15%, and restate targets before PR-B using the published dashboard baseline and its denominator/coverage. Historical week-two dispatch cannot establish successful repeat use.
  • Record the owner’s v0.75 scope: verified quick start #1938, structured response limits #1937, and the measurement work. Hold #1939 and the in-product starter. Date the documentation change in the baseline analysis because guidance can influence activation even when binary onboarding is unchanged.

These findings concern the broader spec and later feature acceptance. They do not block the narrowly scoped #1940 integration once its CI and the production receiver check pass.

Dumbris added a commit that referenced this pull request Nov 19, 2026
…26 PR-A) (#1940)

## Summary

This is Spec 126 PR-A, instrumentation only: telemetry **schema 17**,
which lets day-two activation be measured per install with anonymous,
closed-enum fields. It is the Go side of the measurement. The receiver
is in
[mcpproxy-telemetry#13](smart-mcp-proxy/mcpproxy-telemetry#13),
and the cohort report is in
[mcpproxy-dash#15](smart-mcp-proxy/mcpproxy-dash#15).
The spec is
[#1712](#1712).

- **Install anchor (FR-033).** One UTC first-run time is written once,
only when `config.db` was empty at open
(`internal/storage/install_anchor.go`). An existing store never gets
one.
- **`day_two` (FR-034, FR-038), personal edition only:**
  - `install_origin`: `fresh` or `existing`;
- `install_age`: `d0_6`, `d7_13` or `d14_plus` (UTC calendar dates from
the anchor);
- `success_scope_ever`: `none`, `starter_only` or `non_starter`. It is
persisted and moves forward only.
- **`upstream_outcomes` (FR-035, FR-036), both editions, reset on
accept:**
- It counts one outcome per logical upstream call that dispatched, in
`succeeded`, `unusable` and `succeeded_non_starter`.
- `window_age` is frozen when the window opens at drain, so a window
that opened in days 7–13 cannot hold week-one calls.
- `coverage` is `partial` when a persisted undelivered-window marker
shows that counts were lost (a kill before delivery). A retry of a
pending snapshot is byte-identical.
- **Starter classification (FR-037).** `StarterClassifier` is keyed by
server name and incarnation. PR-A installs no starter, so the default
answers `false`, and `starter_only` cannot occur until PR-B installs
one.
- **One success definition.** It is shared by the outcome counters and
the existing `activation.first_real_tool_call_ever`, on every dispatch
path: `call_tool_*`, direct routing and `code_execution` sub-calls. A
refused call changes nothing.
- A usable result is an answer that is not `isError:true` and that no
output policy withheld.
- A transport error, `isError` or a withheld result counts as
`unusable`.
- **Privacy.** The PII backstop (`anonymity.go`) rejects unknown keys
and values in both new objects. There are no names and no ids; the new
fields are booleans and closed enums only.

What it measures (v0.75.0 activation baseline): first success in days
0–6 and same-install repeat in days 7–13 become measured figures, not
the receipt-dated bounds that schema ≤ 16 allows. Starter-only use is
reported apart from both.

## Test evidence

These ran at the PR head, rebased on `origin/main` 58a824e (head
39aaf66).

- `go build ./...` and `go build -tags server ./...` both succeed.
- `go test -race ./internal/telemetry/... ./internal/storage/...`
passes.
- `go test -race ./internal/runtime/...` passes (`internal/runtime` 420
s, plus `configsvc`, `stateview`, `supervisor` and `supervisor/actor`).
- The CI-shaped `go test -race -tags server -timeout 40m -skip
"E2E|Binary|MCPProtocol|TestInfoEndpoint|TestGracefulShutdownNoPanic|TestSocketInfoEndpoint"
./internal/server/...` passes (`internal/server` 1,588 s,
`internal/server/tokens`).
- `./scripts/test-api-e2e.sh` passes: 77 passed, 0 failed.
- `TestNewBoltDB_StorePopulatedBeforeLockIsNotEmpty` is new with the
review fix below. It fails on the old pre-lock stat and passes now.
- CI `golangci-lint` v2, both bare and `--build-tags server`, reports 0
new issues against `origin/main`.
- Fixtures cover:
- one outcome per logical call on every path (usable, `isError`,
transport error, refused before dispatch, withheld by sanitisation or
validation, starter);
  - the calendar-date boundaries of `install_age`;
  - `window_age` frozen at drain;
  - the coverage marker across kill, restart, accept and shutdown flush;
  - a byte-identical retry;
  - scope that only moves forward and survives a reopen;
  - opt-out sending nothing;
  - the server edition sending no `window_age`.
- A live trace ran this build against `cmd/mcpfixture` over stdio, in a
scratch data dir, with telemetry pointed at a local sink, so nothing was
sent to production. It made one successful `fixture:echo` call, one call
refused before dispatch (an unknown tool), and one call dispatched to a
stalled upstream and cancelled. `GET /api/v1/telemetry/payload` then
showed:
  ```json
  "upstream_tool_call_count_bucket": "1-10",
"upstream_outcomes": {"succeeded": "1-10", "unusable": "1-10",
"succeeded_non_starter": "1-10", "coverage": "full", "window_age":
"d0_6"},
"day_two": {"install_origin": "fresh", "install_age": "d0_6",
"success_scope_ever": "non_starter"}
  ```

## Review

opencode `github-copilot/gpt-6.1-sol` (high) reviewed the change in
three file chunks. Telemetry window and registry: CLEAN. Dispatch paths,
`day_two`, scope and anonymity: CLEAN.

The storage and runtime chunk found one P2. `NewBoltDB` let an `os.Stat`
taken before `bbolt.Open` override the record walk, so a store populated
by another process during the 10 s lock wait could get an install
anchor. It is fixed in 39aaf66, which decides only from the locked
database, with a regression test. Round 2: CLEAN.

## Merge order


[mcpproxy-telemetry#13](smart-mcp-proxy/mcpproxy-telemetry#13)
must be merged, which deploys the worker, before any build that contains
this PR sends telemetry. That includes release candidates. Until then
the receiver does not copy `upstream_outcomes` into `heartbeat_events`,
so those windows would be lost to the cohort report.

## Not in this PR

- No starter, wizard or Home changes: those are PR-B to PR-D.
- No receiver deploy and no migration.
- No release.
Dumbris added a commit that referenced this pull request Nov 19, 2026
## Summary

This brings `docs/getting-started/quick-start.mdx` in line with what
`main` does today, based on a clean-install walk-through. Only docs
change, so it ships independently of the E3 measurement and onboarding
sequencing.

How the walk-through was run:
- `main` at 58a824e, with a fresh data dir, an isolated `HOME` and
telemetry off;
- every step on the CLI and in the Web UI;
- a real Claude Code CLI client and the `mcp-remote` bridge.

Corrections:
- **Transcripts**: `upstream list`, `review show`, `security report` and
`review approve` now match the CLI output (`Needs review` / `review show
<name>` / `streamable-http` / `Online`). `review approve <name> --yes`
is shown as the command, with `security approve` noted as an alias.
- **Web UI add**: `+` → **Server** opens the **Add Server** page
(Catalog / Paste / Import / Manual). Trust mode defaults to **Scan**,
and the button is **Add to MCPProxy**. Approval is **Review & approve**
→ **Approve server (N of N tools)**, and the Tools tab refreshes by
itself.
- **New "Via the CLI" route**: `mcpproxy upstream add`.
- **New tip for `mcpproxy connect <client>`**: it writes a per-client
credential.
- **New note**: a client connected with `mcpproxy connect` cannot add
servers through `upstream_servers`. The agent gets `tool
'upstream_servers' not found`, so point it at the CLI or Web UI routes.

Left out on purpose:
- no product change;
- the catalog-ref and approve-hint CLI fixes. They are in a separate PR
held until after the measurement release.

Related: Spec 126 /
#1712 (first-run
journey).

## Test evidence

Each changed transcript was copied from a live run of this build. The
Web UI steps were checked in a browser against the embedded UI.

## Review

Each round was a fresh-context Claude Opus 5.5 reviewer, working
read-only and checking every claim against the code at 58a824e.

| Round | Head | Verdict |
|---|---|---|
| r1 | d7063d4 | 2 low findings: protocol wording on the Web UI path;
credential note needed the management_tools nuance |
| r2 | b6eada9 | 1 low finding: the protocol sentence missed the
config-file and agent routes |
| r3 | 8fabe02 | **CLEAN** |

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…aude/spec-day-two-activation-1fad2a

# Conflicts:
#	ROADMAP.md
…aude/spec-day-two-activation-1fad2a

# Conflicts:
#	ROADMAP.md
…aude/spec-day-two-activation-1fad2a

# Conflicts:
#	ROADMAP.md
…aude/spec-day-two-activation-1fad2a

# Conflicts:
#	ROADMAP.md

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants