Skip to content

fix(agent): the blank-run start page and every repo reference follow the owner rename to wanderdev0 - #2226

Merged
wanderdev0 merged 1 commit into
mainfrom
chore/github-owner-rename
Dec 1, 2026
Merged

wanderdev0 merged 1 commit into
mainfrom
chore/github-owner-rename

Conversation

@wanderdev0

Copy link
Copy Markdown
Owner

A run that asks for an empty tab opens AGENT_START_PAGE, which pointed at https://parawanderer.github.io/window-ml/agent-start.html. Since the GitHub account was renamed parawanderer → wanderdev0 that URL is a 404 (github.io does not redirect), so every blank-start run with no agentStartPage setting landed on a 404 page. src/contract/contract-config.ts:557 now names https://wanderdev0.github.io/window-ml/agent-start.html, which serves a file byte-identical to src/chat/agent-start.html (sha256 22b6d8e9…). The hosted-client link in CONTRIBUTING.md:126 was a 404 for the same reason and is changed too.

The rest is mechanical: every parawanderer/<repo> reference (github.com, api.github.com, raw.githubusercontent.com, bare owner/repo in pins and prose) in scripts, tools, docs, skills, AGENTS.md, src comments and tests now says wanderdev0/<repo>. Those URLs worked only through GitHub's rename redirect, which ends if anyone registers the old name; scripts/fetch-host.mjs, scripts/fetch-hub.mjs, tools/host-dist.json and tools/pyodide-dist.json download binaries through them. With the two names normalised, the removed and added lines are identical. No ghcr.io reference exists; the two github.io ones are the two above.

The start page across an upgrade

  • Written to storage: never by the old code. Its agentStartPage default was "" and the URL lived only in the bundle, so an upgraded install's storage holds "" and a blank run lands on the new page. The only other way the old URL reaches storage is someone typing it into Settings; that value is kept as written, and the existing blank-start warning reports it ungranted. The hub capability blankStart is computed on each announcement, never stored. A session's recorded page URL is history that nothing navigates back to: a resume names a new target.
  • Origin comparisons: exactly one, refreshBlankStart, which asks chrome.permissions.contains for the origin of the URL in force. "A run never starts on a page we own" is about extension pages (AGENT_START_PAGE appears there only in a comment), so the old origin is an ordinary stranger everywhere and no check treats it as ours.
  • manifest.json names no github.io origin (host permissions and content scripts are <all_urls>); mobile/ carries no start-page URL; the chat web build ships agent-start.html itself (scripts/build-web.mjs), which is the deployed file.
  • Pinned by three tests in tests/background-sessions.test.js, under "the published start page after the owner rename":
    • storage as older builds wrote it opens the new URL;
    • withholding the old origin changes nothing;
    • a typed old URL is kept and reported ungranted.

Pins, checked under the new owner

  • tools/host-dist.json: the v0.10.0 assets (4 binaries and install.sh) each return 200, and GitHub's asset digest equals the recorded sha256.
  • tools/pyodide-dist.json: the pyodide-314.0.3-ml-35bd1d69 asset returns 200, and its digest equals the recorded sha256.
  • The hub release v0.4.3 resolves.
  • The six *.proto.pin.json and vector pins: raw at the pinned commit hashes to the recorded blob id.

Schema $id

The six docs/spec/*.schema.json $ids and gen-export-schema.mjs change with the rest. No reader compares a stored $schema or $id: program-manifest.ts only checks that a $schema is a string, the test validator treats both as annotations, and an export's $schema is built from the build's own remote and commit (schemaUrl), never read back.

The bundle's "own repo" is the building clone's origin

autoApproveSelfSource trusts BUILD_INFO.repoUrl, which scripts/gen-build-info.mjs stamps from git config remote.origin.url. A build from a clone whose origin still names parawanderer therefore auto-approves uncredentialed reads of parawanderer/window-ml: reachable today only by GitHub's redirect, and someone else's repo if the old name is registered. That is why the remote change under "For Shane" matters beyond the tests. The stamping rule is not changed here.

The five self-source tests (agent.test.js, background.test.js, agent-host.test.mjs, redteam-page-run-builtby.test.mjs, redteam-policy-ask-free-tiers.test.mjs) hardcoded the repo, so they failed in any clone whose remote differed (every local clone after this rename, every renamed clone before it). They now build their URLs from the stamped repoUrl (ownRepo() in tests/helpers.js), assertions unchanged. That rule is pinned against literal fixtures elsewhere, so they are not checked against their own output:

  • tests/build-info.test.mjs "normalizeRepoUrl: scp-style, ssh, and https remotes…": scp, ssh:// and https, with and without .git, for both owners (the old-owner lines are new and show the owner is carried through unrewritten).
  • The same test and tests/self-source.test.mjs "GATE: a DIFFERENT repo / owner / an unresolvable repo url": no remote stamps "", and with "" self-source approves nothing.

Left unchanged, and why

  • com.parawanderer.window_ml_host (11 hits): the native messaging host name, an identity installed on machines, not a URL.
  • tests/fixtures/github-compare.json, tests/fixtures/github-release.json, and app-update.test's assertion on the captured apkUrl: GitHub responses captured 2026-10-10.
  • tests/fixtures/hw/*.txt: a contributed capture's source line.
  • notebooks/: pinned data, executed outputs, and the generators that produce them.
  • scripts/ecosystem.mjs: the --author=parawanderer filter matches git history as written.
  • The review-sample output in the merge-when-green skill, and the login fixtures in tests/merge-when-green.test.mjs.
  • docs/spec/ARTIFACTS.md: the three @parawanderer attributions.

For Shane, by hand

scripts/merge-when-green.mjs:58 (the tool refuses a PR that touches it):

const REPO = "parawanderer/window-ml";   // → "wanderdev0/window-ml"

Local clones' origin still says git@github.com:parawanderer/…, which works by redirect; builds stamp that remote into exports' $schema, so git remote set-url origin git@github.com:wanderdev0/window-ml.git fixes both. The host and hub repos get their own PRs.

Tests: npm test (full), check-doc-links.

Drafted by Claude Code · work: small-fixes · session f98b97c7 · claude-opus-5-5

🤖 Generated with Claude Code

…the owner rename to wanderdev0

AGENT_START_PAGE named parawanderer.github.io, a 404 since the account was
renamed (github.io does not redirect); it now names the wanderdev0 page,
which serves the same file as src/chat/agent-start.html. Every other
parawanderer/<repo> reference in scripts, tools, docs, skills and tests
moves too, since those URLs work only by GitHub's redirect. Self-source
tests take the own repo from the stamped repoUrl instead of a literal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wanderdev0 wanderdev0 added @core The extension's spine: background/content/injected, sw-* modules, the message contract, config @agent The agent loop, its tools, approvals, runs and where they start @docs Documentation and specs only, no behaviour change @ci CI workflows, git hooks, the checks they run labels Dec 1, 2026
@wanderdev0

Copy link
Copy Markdown
Owner Author

Named at e6d27e306c8bbf3d5c316520002bd7a73800a12b. No change asked.

  1. Two claims in the body are wider than what the diff does; neither is a defect. The body says the three upgrade tests "each fail on the old constant": two of them do (the first asserts the blank tab's URL is the new page and that withholding the new origin reports it ungranted; the second that the new origin is granted while the old one is denied), and the third holds under either constant because it never reads it, pinning instead that the fix rewrote nobody's typed agentStartPage (the wrong fix it is there to catch). The body also says normalizeRepoUrl is now checked "with and without .git, for both owners": the old owner keeps two shapes at head, git@github.com:parawanderer/window-ml.git and https://github.com/parawanderer/window-ml (tests/build-info.test.mjs:16-17), while the four new-owner lines cover scp, ssh://, https with .git and https without.

  2. With parawanderer rewritten to wanderdev0 on both sides, 79 of the 88 files balance line for line. The nine that do not are the listed changes: ownRepo() and its imports in the five self-source tests (tests/agent.test.js, tests/background.test.js, tests/agent-host.test.mjs, tests/redteam-page-run-builtby.test.mjs, tests/redteam-policy-ask-free-tiers.test.mjs) plus its export in tests/helpers.js, the three upgrade tests in tests/background-sessions.test.js, four added normalizeRepoUrl assertions, and the case-insensitive URL in tests/self-source.test.mjs (ParaWanderer/Window-ML becomes WanderDev0/Window-ML, host and owner still mixed case). Outside those, no line changes meaning: every other hunk is the owner string, and the only product value in the set is AGENT_START_PAGE (src/contract/contract-config.ts:557) with the $id in scripts/gen-export-schema.mjs and its six schemas.

  3. The published page the constant now names serves and is the source file's twin: https://wanderdev0.github.io/window-ml/agent-start.html returns 200 and its bytes hash to 22b6d8e9fe1b8cba8874c780d960f197973162467895c1c5d89661e7400cb4dc, the same sha256 as src/chat/agent-start.html at this head. The constant only fills an absent setting: (agentStartPage || "").trim() || AGENT_START_PAGE at src/sw/sw-sessions.ts:165 and :192, and src/session/session-commands.ts:337.

  4. ownRepo() reads the repoUrl line out of src/build-info.gen.ts and throws when it is absent or not a GitHub URL, so a clone with no GitHub remote fails the five tests loudly instead of passing them vacuously, and a clone whose remote names another repo exercises self-source against that repo, which is the property. The gate itself is still pinned with literals: tests/self-source.test.mjs keeps "" and a gitlab repo among its GATE rows, so an empty remote approves nothing.

  5. The left-unchanged list holds: no hunk touches com.parawanderer.window_ml_host (src/shell/host-protocol.ts, tests/sh-host.test.mjs, tests/sh-offered.test.mjs, tests/fake-native-host.mjs), tests/fixtures/github-compare.json, tests/fixtures/github-release.json, tests/fixtures/hw/, notebooks/, scripts/ecosystem.mjs, scripts/merge-when-green.mjs or tests/merge-when-green.test.mjs. docs/spec/ARTIFACTS.md keeps its three @parawanderer attributions and only its issue URL moves.

  6. The pins resolve under the new owner, digests included: the API digests of the four wmlhost v0.10.0 binaries and install.sh equal tools/host-dist.json, the pyodide-314.0.3-ml-35bd1d69 asset's digest is 93eda2433fa4f650ba395f9df09f6e5c8d4398446d3b295c1075599b52873751, hub v0.4.3 resolves, and the raw.githubusercontent.com schema URL returns 200.

  7. Head facts: one non-merge commit whose parent is main's tip cfa17f55, so nothing needs merging and no file overlaps main; 88 files, none removed; 14 checks pass, 6 skip, none fail, test (node 26) among the passes; labels @core @agent @docs @ci; GitHub reports MERGEABLE, merge state CLEAN.

Drafted by Claude Code · work: janitor-2 · session 7cf7e86b · deepseek.deepseek-flash

@wanderdev0

Copy link
Copy Markdown
Owner Author

Named e6d27e306c8bbf3d5c316520002bd7a73800a12b, no change asked.

Checked by script against cfa17f5: with both owner names normalised, removed and added lines match in every file except the test changes the body lists (helpers.js ownRepo, the build-info fixtures, the three upgrade tests, the five self-source callers); self-source.test.mjs differs only in the mixed-case owner literal and comment padding. With the old AGENT_START_PAGE rebuilt into dist, "an unknown command…", "upgrade: …" and "the old github.io origin…" fail. With repoUrl emptied in src/build-info.gen.ts, ownRepo() throws and the self-source tests in redteam-policy-ask-free-tiers and agent-host fail; each of the five has a positive control that passes only if the URL is self-source. The left-unchanged items are absent from the diff, and the tools/*.json sha256 lines are untouched.

Not asked:

  • "a start page the person TYPED is theirs…" (tests/background-sessions.test.js:1284) passes on the old constant too: it pins that a stored URL is not rewritten, which is a property of the setting rather than of this change.

Drafted by Claude Code · work: reviews-1 · session 5a179699 · claude-opus-5-5

@wanderdev0
wanderdev0 merged commit 632a696 into main Dec 1, 2026
24 checks passed
@wanderdev0
wanderdev0 deleted the chore/github-owner-rename branch December 1, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@agent The agent loop, its tools, approvals, runs and where they start @ci CI workflows, git hooks, the checks they run @core The extension's spine: background/content/injected, sw-* modules, the message contract, config @docs Documentation and specs only, no behaviour change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant