Skills Well r1 — build report (2026-10-29)
Prompt: CLAUDE CODE: MIZ OKI SKILLS WELL r1.1 (owner, 2026-10-20; approval record 2026-10-25).
Branches (review branches, outside every auto-merge prefix): skills/skills-well-r1 (code half, this
report) → skills/skills-well-r1-ci (.github/**, stacked) → skills/skills-well-r1-boss (Boss wiring, stacked).
State, in the required vocabulary: implemented and locally verified on this Mac; nothing is
deployed; nothing is live-verified. The owner approval record's four deploy conditions are not met
(the PR is unmerged; the OAuth client and both secrets do not exist yet). Gate tokens appear here in
bracketed form only. Runbook: docs/runbooks/SKILLS_WELL_CONNECT.md.
1. Step 0 — ground truth, measured (not assumed)
| Question | Measured answer | Consequence |
|---|---|---|
| Corpus | 20 skills under skills/ on origin/main b9f8c7073 (the prompt was tested against 14); miz-oki-platform-expert is v3.6 (≥ 3.1 holds) |
Build targets 20; nothing downgraded |
| Pending skill pack | boss-writing-workflows, inbox-triage-digest, boss-weekly-reviews and docs/skills/xprovider-v1/ are already on main (git ls-tree origin/main) |
Nothing to merge first |
| Existing tooling | scripts/skill_sync.py (--check/--sync/--audit/--export, owns .claude/skills/ + skills/registry.yaml; audit and check both clean on the tree); scripts/skills_sync.py is a different script (the v3 five-home parity gate for the platform-expert skill); scripts/mizoki_canon.py; scripts/gate_leak_scan.py (regex APPROVED: (MERGE\|DEPLOY), baseline 74 files, memory ledger excluded); scripts/skill_edit_lock_check.py (rule 06: any file under skills/ needs a claim: skill-edit:<name> lock) |
build.py owns only dist/skills-well/ + plugins/mizoki-skills/; no file under skills/ changed |
| Local MCP face | mcp/mizoki_skills_mcp/server.py (stdio; skills_list/get/route/search, canon_rules, canon_check_tool, skills_parity_check, mizoki://skills/* + skillpack aliases); registered in root .mcp.json |
Kept as the local face; canon_check and skills_parity_check ported to the remote server by import, same names |
| Boss MCP registration pattern | mcp/registrations/ (github.json, README): secret refs only, governance block; no Boss runtime loader reads it (README, re-measured 2026-09-12) |
Not extended: Boss drinks in-process, no registration row needed |
| Boss system prompt | miz-oki-adk-agents/boss/boss_agent_core.py: BOSS_AGENT_FULL_SYSTEM_PROMPT composed once at import (line 24186) and passed at one call site (virtuoso_call(..., system=BOSS_AGENT_FULL_SYSTEM_PROMPT, ...), line 32824); the startup skillpack injection lives in skillpack_bootstrap.py (fail-soft, importlib by path) |
Hook = skillpack_bootstrap.compose_skills_well_context(task) + a one-line wrapper at the call site |
| Boss image & env | Dockerfile.v5 COPYs boss/, src/shared/, contracts/, measurement-rails/, onboarding core; PYTHONPATH=/app; cloudbuild.v5.yaml has ONE --set-env-vars map (replace semantics, AGENTS 4.5); requirements.v5.3.txt already pins google-cloud-storage==2.14.0 |
COPY libs/mizoki_skills_well/ /app/mizoki_skills_well/; flags appended to the one map |
| Boss deploy trigger | deploy-boss-agent-core.yml on.push.paths: miz-oki-adk-agents/boss/**, src/shared/**, contracts/**, services/measurement-rails/**, .gcloudignore, its own file, … |
Any Boss change, the .gcloudignore line and the workflow edit each redeploy the Boss on merge → separate PRs, counts in titles |
| WIF | No GCP_WIF_PROVIDER variable; only HOMEPAGE_{PRODUCTION,DIAGNOSTIC}_WIF_PROVIDER exist; 12 lanes name the literal projects/698171499447/locations/global/workloadIdentityPools/github-actions/providers/github |
The publish job uses the literal; SKILLS_WELL_BUCKET / SKILLS_WELL_PUBLISHER_SA are optional vars with baked defaults |
| Protected paths | .github/scripts/protected_path_gate.sh PROTECTED_REGEX='.' (every path, since #1748) — every AI-lane push is routed to owner review |
Review branches named skills/…; owner merges |
| ADK | grep -rn "google.adk" → nothing in the repository (miz-oki-adk-agents/ is a directory name) |
gemini_adk_toolset() ships with its docstring example only |
dist/ |
already in .gitignore (line 74) |
No change |
.gcloudignore |
An ALLOWLIST (/* then !/dir); libs/ is not on it |
Root gcloud builds submit would fail at COPY libs/…; fixed in the Boss PR (!/libs/), and the well's own recipe passes --ignore-file |
| fastmcp 4.1.2 | Installed from PyPI; GoogleProvider(client_id, client_secret, base_url, redirect_path=None→"/auth/callback", required_scopes, …), StaticTokenVerifier(tokens), get_access_token, custom_route, Client(...).call_tool().data all present |
OAuth redirect URI = <PUBLIC_BASE_URL>/auth/callback, verified before anyone creates the client |
| Description lengths | miz-oki-platform-expert 1181 chars; github-virtuoso exactly 1024; the rest shorter |
See adjustment A1 |
| Digit runs | One 12–19-digit run in the corpus: 1234567890123456, the pixel_id catalog placeholder in the onboarding skillpack |
See adjustment A2 |
| pytest config | tests/pytest.ini carries a [tool:pytest] header, which a pytest.ini ignores (noted in pyproject.toml), so its coverage/xdist addopts are inert |
python -m pytest -q tests/skills_well works as the prompt wrote it |
| Runner partition | tests/governance/test_ci_runner_partition.py pins 24 pull_request lanes; read-only PR jobs must run on miz-ci, credential-bearing jobs on ubuntu-latest |
Pin → 25; validate on miz-ci, publish hosted |
| Deploy-allowlist completeness | scripts/check_deploy_allowlist_completeness.py reports 4 NEW gaps once Dockerfile.v5 COPYs the lib and the workflow does not watch it |
The workflow path lands in the .github PR, the Boss PR stacks on it |
2. Adjustments vs Part C (each one measured in §1)
| # | Adjustment | Why |
|---|---|---|
| A1 | build.py: a description over 1024 chars is a recorded warning (warnings field in the registry, WARN: on stderr), not a failure |
Trimming miz-oki-platform-expert is a rule-06-locked skill edit across five parity homes (skills_sync.py), and src/shared/** fans out eight deploys. The well publishes the skill as-is and names the gap; claude.ai upload may refuse that one zip — Boss follow-up through the skill process |
| A2 | build.py: bounded opt-out for the digit-run rule — a run that is a slice of 1234567890… or one repeated digit |
Rule 01: never narrow a rule to admit a false positive; add an opt-out a real number can never satisfy. Pinned both directions in test_leak_scan_digit_runs |
| A3 | build.py: the typed-gate regex is assembled from parts; well.yaml keys validated; tier closed vocabulary; plugin verify also checks the skill set, not just the hash |
No written gate token in any file; fail closed on unknown metadata |
| A4 | server.py: /health served beside /healthz; AUTH_MODE=google without an allowlist refuses to start; unknown AUTH_MODE refuses; auth resolved before the source is read |
AGENTS 4.2 (/healthz is GFE-reserved on run.app; probe /health); fail closed |
| A5 | server.py: canon_check and skills_parity_check added (imported from mcp/mizoki_skills_mcp), available: false inside the image |
Prompt reconcile rule: remote = superset, never a fork |
| A6 | requirements.txt: google-cloud-storage>=3.0,<4 and google-api-core>=2.15,<3 |
Rule 03 (client library + its transport bounded); floors unchanged |
| A7 | boss.py: fail-soft store (returns "" and logs; store_status(), reset_store()); Boss hook gated by SKILLS_WELL_BOSS (default off) |
A Boss turn never crashes on the well; the bucket does not exist yet, so arming is a deploy decision |
| A8 | Tests load server.py by path under unique module names; 12 tests (prompt: 8) + 4 Boss-wiring tests |
No sys.modules["server"] collisions; two extra refusal paths and both leak-scan directions pinned |
| A9 | well.yaml template at scripts/skills_well/well.yaml.example (not skills/_schema/) |
skills/_schema/ trips the rule-06 lock check |
| A10 | Three stacked review PRs instead of code + .github |
Each merge is a deploy decision for the paths it touches (rule 04): the code half deploys 0 services; the .github half and the Boss half each deploy 1 (the Boss, via its workflow's own path and .gcloudignore) |
| A12 | Publish layout: immutable skills-well/<sha>/ + a one-object pointer latest/registry.json with bundle_source; SkillsWellStore.reload() resolves it once per reload (no in-place rsync of latest/bundle/) |
Codex review on #1967: rewriting latest/bundle/ in place let a reader mid-reload pair one registry with another version's files; pinned by test_registry_bundle_source_points_at_an_immutable_version |
| A13 | Codex review round on #1966: (a) the Boss block reserves the skillpack's GOVERNANCE section verbatim before budgeting SKILL.md and references, truncates only at a line boundary with a note, never silently; (b) route() reports an absolute relevance (idf-weighted share of the task's informative tokens found in the skill's name/description) and ranks by it first, so chat phrases fall back to the index; (c) --verify-plugin compares the committed plugin with a fresh build byte for byte |
AGENTS.md 1.2 (governance verbatim on every surface); the top-normalised score made min_score unreachable; a marker proves only the corpus hash. Pinned by test_governance_block_is_never_budgeted_away, test_route_relevance_is_absolute, test_verify_plugin_compares_bytes_not_just_the_marker |
| A14 | GoogleProvider(allowed_client_redirect_uris=…) pinned to the known client callbacks (claude.ai, claude.com, loopback, ChatGPT), overridable by ALLOWED_CLIENT_REDIRECT_URIS, empty refuses to start |
Cursor security review on #1966: with dynamic client registration public, an open allowlist let a hostile client register its own callback and collect an allowlisted operator's code; pinned by test_google_mode_pins_client_redirect_uris using fastmcp's own matcher |
| A15 | The publish job lives in its own push/dispatch-only workflow (skills-well-publish.yml); skills-well.yml is pull_request-only and carries no credential; the publisher SA is bound to the main-ref subject principal, never attribute.repository alone |
Cursor security review on #1967: GitHub runs a same-repo PR's own copy of a workflow file, so a job-level if: is no trust boundary for id-token: write, and a repository-wide binding would accept a token minted from a pull request. Pinned by test_publish_workflow.py. Pre-existing, not changed here: ekis-ci.yml and test-consolidated.yml are pull_request lanes that also carry id-token: write (owner follow-up) |
| A16 | Registry-driven paths are contained at load: skill names must match the builder's name rule, bundle-relative paths are plain segments (no .., no absolute, no odd characters), bundle_source may only name a sibling version prefix of the configured source (same scheme and bucket/parent), and local reads are checked after resolution; the builder imports the same rule so the well never carries a path the reader refuses |
Cursor security review on #1966: a principal able to write latest/registry.json could otherwise point the process at any path or bucket the identity can read. A running store keeps its last good corpus on a poisoned pointer; a starting store refuses. Pinned by test_registry_paths_are_contained and test_builder_refuses_unsafe_file_paths |
| A11 | production/service-registry.yaml gains a skills-well-mcp row, status: source-only, auth: unknown with the intended posture in a comment |
Rule 04: a surface missing from the registry cannot be reviewed; measured values only |
3. What landed, by branch
skills/skills-well-r1 (code half, deploys 0 services; dispatches validate-registry.yml):
scripts/skills_well/build.py + well.yaml.example; libs/mizoki_skills_well/{__init__,store,boss}.py;
services/skills-well-mcp/{server.py,requirements.txt,Dockerfile}; plugins/mizoki-skills/ (generated,
20 skills, CORPUS_SHA256, .mcp.json, plugin.json 1.0.0+601dd9e9a11b); .claude-plugin/marketplace.json;
tests/skills_well/test_skills_well.py; registry row; docs/runbooks/SKILLS_WELL_CONNECT.md; docs/INDEX.md
row; this report; ledger claim + session-board row.
skills/skills-well-r1-ci (stacked; deploys 1 service, boss-agent-adk, because deploy-boss-agent-core.yml
watches its own file): .github/workflows/skills-well.yml (pull_request validate) + skills-well-publish.yml (push/dispatch publish); libs/mizoki_skills_well/** added to the Boss
lane's on.push.paths; partition pin 24 → 25.
skills/skills-well-r1-boss (stacked; deploys 1 service, boss-agent-adk): skillpack_bootstrap.py
(compose_skills_well_context, skills_well_status, flag SKILLS_WELL_BOSS); boss_agent_core.py
(_system_prompt_with_skills_well, one call-site change, VERSION 6.49.5); Dockerfile.v5 COPY;
cloudbuild.v5.yaml env (SKILLS_WELL_BOSS=false, SKILLS_WELL_SOURCE, SKILLS_WELL_REFRESH);
.gcloudignore !/libs/; tests/skills_well/test_boss_wiring.py.
4. Acceptance evidence (Step 7.1 — all local, this Mac, Python 3.11.x venv with fastmcp==4.1.2)
| Check | Result |
|---|---|
python scripts/skills_well/build.py |
BUILT: 20 skills, corpus 601dd9e9a11b (+ WARN: miz-oki-platform-expert: description is 1181 chars) |
build.py --check / --verify-plugin |
OK: 20 skills valid (1 warning(s)) / OK: plugin is current |
python -m pytest -q tests/skills_well |
code branch 12 passed; Boss branch 16 passed (+ tests/skills/test_boss_skillpack_bootstrap.py 12 passed) |
scripts/skill_sync.py --audit / --check |
canon audit — 0 finding(s) across 20 skills / parity OK — 20 skills |
scripts/skills_sync.py --check |
OK — all skill copies byte-identical, versions in parity |
scripts/gate_leak_scan.py --check |
74 baseline files, 0 new, 0 grown |
scripts/skill_edit_lock_check.py --diff |
no skill files changed |
HTTP smoke (AUTH_MODE=none LOCAL_DEV=1 PORT=8765) |
GET /healthz → {"status":"ok","skills":20,"corpus":"601dd9e9a11b"}; GET /health identical; GET /mcp without SSE accept → 406 (route live); MCP initialize over streamable HTTP → 200, protocolVersion 2025-06-18 |
Registry pins (test_service_registry_deploy_status, _revision_literals, test_registry_census) |
295 passed, 4972 subtests |
Workflow-shape gates on the .github branch (partition, WIF, router dispatch-only, FR14, API lifecycle, deploy allowlists, dispatch-verify, gate dependency parity, gcloudignore coverage, WO16 base, tenant map, registry status) |
1160 passed |
Boss branch gates (well + wiring + bootstrap tests, allowlist completeness 0 new gap(s), gcloudignore coverage, partition, Boss image contract) |
105 passed |
.github/scripts/deploy_router.py |
code half → validate-registry.yml only; .github half → deploy-boss-agent-core.yml; Boss half → deploy-boss-agent-core.yml + validate-registry.yml |
python3 scripts/claude_memory.py check --strict |
structurally valid (3 pre-existing size warnings) |
Existing tests/skills suite |
256 passed (unchanged) |
5. Acceptance not reachable from this session (Steps 7.2–7.4), and how to close each
All three need the service deployed, which needs the owner steps in the runbook §0 (merge, OAuth client, secrets, bucket, SAs). Nothing was simulated.
- 7.2 same well everywhere — compare the 12-char corpus from
curl $URL/health,well_infoon Claude desktop and mobile (one connector), Bossskills_well_status()(armed) and an ADK test agent (none exists in the repo today; a one-offMcpToolsetagainst the machine-token service stands in). Record all five. - 7.3 growth test — runbook §4: merge
skills/well-canary/, observeskills_route("well canary")on Claude and Boss within one refresh (≤ 5 min), remove it, observe it disappear. - 7.4 auth test — runbook §2 post-deploy checks: unauthenticated
/mcp→ 401; a non-allowlisted Google account is refused by_authorize();/healthexposes count + hash only (the local smoke proves the payload shape today).
6. Honest limits (Part A, restated after building)
| Surface | How it drinks | Auto-updates? |
|---|---|---|
| Claude desktop / mobile / web | one custom connector on the account → /mcp |
Yes via the connector; native uploaded skills never sync from git (zips = manual snapshot; the platform-expert zip may be refused for its description length) |
| Claude Code / Cowork | .claude/skills in repo sessions; mizoki-skills plugin from this repo's marketplace |
Yes; the plugin is regenerated per PR and --verify-plugin fails on drift |
| Boss | compose_skills_well_context(task), in-process on the GCS source |
Yes on refresh once armed (SKILLS_WELL_BOSS=true is a Boss deploy decision); dark today |
| Gemini ADK / Vertex | gemini_adk_toolset() → machine-token service |
Yes via MCP, once an ADK agent exists (none today) |
| Gemini app Gems | Drive export of exports/chatgpt-gemini/ |
Manual; verify Gem refresh behaviour |
| ChatGPT | custom connector where the plan allows; else Project files | Live with a connector; otherwise manual |
| Codex / other SKILL.md agents | zips, or the MCP URL | Live with MCP; otherwise manual |
7. Owner checklist (Part D) — status
- Merge the three PRs in order (code →
.github→ Boss). Open. - Create the Google OAuth web client (redirect
<PUBLIC_BASE_URL>/auth/callback), store its secret and the machine tokens in Secret Manager, create the bucket and the two SAs (runbook §1). Open. - Deploy approval: recorded 2026-10-25 (Drive
1rrGgofg8bCf1WxCTCN12Sk31Nlz1fUjk), read this session; its conditions 1 and 3 are unmet, so no deploy was attempted. - Add the connector once on claude.ai;
/plugin marketplace add MIZOKI-3-5/MIZOKICloudRunonce in Claude Code. Open.
8. Follow-ups (not blockers)
- Trim
miz-oki-platform-expert's description below 1024 chars through the Boss skill process (five parity homes; eight-deploy fan-out) — then the A1 warning disappears on its own. - After
skills_parity_checkon the remote server shows the well identical to the checkout, mark themizoki://skills/*parity resources deprecated (kept, per the prompt, in this run). - Second Cloud Run service with
AUTH_MODE=tokenfor machine clients (Boss over MCP from outside Cloud Run, Gemini ADK, ChatGPT), never the human OAuth service. - Registry row:
source-only→deployed-manualwith the serving revision after the first deploy;auth→publicwithpublic_routesafter measuring. - Drive mirror of
exports/chatgpt-gemini/is a manual upload (no repo tooling syncs build outputs).