Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

chore: remove ship-public-release skill

Ruben Lütkee576967469f0
diff --git a/.claude/skills/ship-public-release/SKILL.md b/.claude/skills/ship-public-release/SKILL.md
deleted file mode 100644
index 78a9f202bd..0000000000
--- a/.claude/skills/ship-public-release/SKILL.md
+++ /dev/null
@@ -1,420 +0,0 @@
----
-name: ship-public-release
-description: >-
- Ship the complete current working-tree state as a new SemVer version to the
- SEPARATE PUBLIC distribution repo (github.com/PersonalJarvis/PersonalJarvis),
- fully depersonalized — the open-source pattern where the maintainer never ships
- their own credentials, config, Wiki/Vault, or personal data; whoever downloads
- it gets exactly the maintainer's folder minus the personal parts. This is the
- ONE path that puts the working tree onto the public flagship repo — it runs for
- BOTH the everyday DISCREET snapshot (a clean snapshot, NO version bump / tag /
- release) and an explicit VERSIONED release. Runs a layered fail-closed privacy
- gate (export git-tracked files, apply the distribution denylist, deterministic
- PII scrub, MANDATORY sub-agent privacy review, blocking secret/PII scan,
- mandatory human review) before any push; in release mode it also asks whether
- the bump is MAJOR, MINOR, or PATCH. This is the maintainer's standard "get my
- work onto GitHub" path (the public repo is the only project repo). Triggers on:
- "push to GitHub", "Push nach GitHub", "commit and push", "sichere den Stand",
- "ship a public release", "release to the public repo",
- "publish the open-source version", "update PersonalJarvis",
- "push the depersonalized version", "make a public release", "cut a new public
- version", "veröffentliche eine neue Version", "bring den aktuellen Stand ins
- öffentliche Repo", "öffentliches Release", "anonymisiertes / depersonalisiertes
- Release", "schiebe das ins Distributions-Repo", "neue Public-Version raus",
- "shippe meinen Ordner-Stand nach PersonalJarvis". Git cleanup is out of scope
- (that is git-rescue). The public flagship is the ONLY project repo, so a bare
- "push" / "commit and push" / "save to GitHub" IS this skill in DISCREET mode —
- do NOT ask "which repo" and do NOT downgrade it to a plain `git push origin`. A
- bare "ship this" / "mach ein Release" / "Neue Version shippen" means RELEASE mode.
----
-
-# Ship Public Release
-
-Publish the current Personal-Jarvis working tree as a new, depersonalized SemVer
-release to the **separate public distribution repo**.
-
-## Why this skill exists (mental model)
-
-There is **ONE project repo — the public flagship** — plus a silent local backup
-that this skill only ever reads:
-
-| | Public flagship (the project) | Silent backup (origin) |
-|---|---|---|
-| Remote | `github.com/PersonalJarvis/**PersonalJarvis**` (capital P+J) | `github.com/personal-jarvis/personal-jarvis` (lowercase) |
-| Role | the ONE repo everything ships to | raw local safety net only — never "the project" |
-| Contains | depersonalized snapshots; a clean commit per push, a tag only in release mode | everything, incl. the maintainer's WIP, branches, raw history |
-| This skill | the **only** thing that pushes to it | reads it (source), never writes to it |
-
-The user wants downstream users to get **exactly their folder state** — including
-today's uncommitted feature work — **minus** personal data (config, API keys,
-Wiki/Vault, internal dev docs, signing keys, PII). This is the OpenClaw / Peter-
-Steinberger pattern: ship a clean codebase everyone can self-configure, never the
-maintainer's own credentials.
-
-## Two modes (same privacy gate, different ceremony)
-
-The gate (steps 1–8) is **identical** in both modes. They differ only at the end:
-
-| | Discreet (DEFAULT) | Release (explicit) |
-|---|---|---|
-| Trigger | "push", "Push nach GitHub", "commit and push", "save to GitHub", "sichere den Stand" | "Neue Version shippen", "mach ein Release", "publish release", "veröffentliche eine neue Version" |
-| Version bump (step 4/7) | **skipped** — keep the snapshot's existing version | choose MAJOR/MINOR/PATCH |
-| Git tag + CHANGELOG | **none** | `vX.Y.Z` tag + CHANGELOG entry |
-| Commit (step 9) | `release: snapshot <YYYY-MM-DD> — <summary>`, push branch only | `release: vX.Y.Z — <summary>`, push branch + tag |
-
-When the mode is ambiguous, default to **discreet**. Everything else — the
-clean-snapshot build, the denylist, the scrub, the **mandatory sub-agent privacy
-review**, the deterministic scan, the human review — runs the same either way.
-<!-- i18n-allow: quoted German maintainer trigger phrases -->
-
-**"Public" = the *target repo*, not an action.** This skill pushes content into
-the distribution repo. It NEVER changes that repo's visibility (private↔public) —
-the maintainer controls that manually and on purpose (see Hard rule 7). If the
-distribution repo is private when you run, it stays private; the maintainer flips
-it to public themselves, once, when they decide.
-
-The dangerous, deterministic part — *what is allowed to leave the machine* — lives
-in the bundled script `scripts/strip_and_scan.py`, not in your judgment. **You may
-only ADD findings on top of it; you may never clear what it blocks.** The gate is
-**fail-closed**: if anything is uncertain, it stops and nothing is pushed.
-
-## Hard rules (non-negotiable)
-
-1. **Never run a write/commit/push git command with the working repo as cwd or
- `-C` target.** The working repo is opened **read-only** (`git ls-files`,
- `git grep`, `git rev-parse`). All mutation happens in the temp staging dir and
- the temp distribution clone.
-2. **The push target must be exactly `https://github.com/PersonalJarvis/PersonalJarvis.git`**
- (case-sensitive). If the resolved remote is the lowercase working repo, STOP.
-3. **Never push if `scan` reports any BLOCKING finding.** Exit code ≠ 0 = STOP.
-4. **Never bypass the human review checkpoint** (step 8). Pushing to a public repo
- is outward-facing and irreversible — explicit approval every time.
-5. **Never `--force` push** and never override the reconcile mass-deletion guard
- without the user explicitly confirming in the same turn.
-6. **A secret already in a pushed commit is not "removed" by a new commit.** Git
- history is permanent. If `scan` ever flags a secret in already-public history,
- tell the user plainly that `git filter-repo` + key rotation is required.
-7. **NEVER change the repository's visibility.** This skill only ever *pushes
- content* into the distribution repo; it must never make a repo public or
- private. The "public" in the name means "ship into the repo the maintainer
- themselves chose to publish" — not "publish anything". Specifically forbidden:
- `gh repo edit --visibility ...`, `gh repo create --public`, the GitHub API
- `PATCH /repos/...` visibility field, or any equivalent. The maintainer toggles
- private↔public **manually, outside this skill**, and whatever state the repo
- is in when you run must be exactly the state it is in when you finish. If you
- ever believe a visibility change is needed, STOP and tell the user to do it
- themselves.
-8. **NEVER skip the sub-agent privacy review (step 8a).** It is mandatory on every
- ship — discreet snapshot and versioned release alike. A non-empty finding STOPS
- the push. The sub-agent may only ADD blocking findings; it can never clear what
- the deterministic gate (layers A–D) blocked.
-
-## Setup (resolve paths first)
-
-```bash
-REPO="$(git rev-parse --show-toplevel)"
-SKILL_DIR="$REPO/.claude/skills/ship-public-release"
-SCRIPT="$SKILL_DIR/scripts/strip_and_scan.py"
-# Fresh, uniquely-named work dir each run (no stale reuse — defeats the
-# restore-trap, BUG-006 class). Pick a timestamp/slug for <RUN>.
-WORK="$REPO/../ship-release-work/<RUN>" # e.g. .../ship-release-work/20260531-1
-mkdir -p "$WORK/staging"
-DIST_URL="https://github.com/PersonalJarvis/PersonalJarvis.git"
-```
-
-Announce to the user: "Starting a public release to PersonalJarvis (depersonalized).
-I'll build a clean snapshot, scan it, show you exactly what ships, and only push
-after you approve."
-
-## Workflow
-
-### 1. Identity preflight (Hard rule 2)
-
-```bash
-git -C "$REPO" remote get-url origin # expect .../personal-jarvis (lowercase) = source
-```
-
-Confirm the source is the working repo. The target is the fixed `$DIST_URL`. If
-either looks wrong, STOP and tell the user.
-
-### 2. Build the clean snapshot (gate layers A + B + C)
-
-```bash
-python "$SCRIPT" build --working "$REPO" --staging "$WORK/staging" \
- --skill-dir "$SKILL_DIR" --report "$WORK/build-report.json"
-```
-
-This exports only git-tracked files (so every `.gitignore` exclusion —
-`jarvis.toml`, `.env`, `data/`, Vault content, keys — is enforced for free),
-removes the distribution denylist (internal docs, scratch scripts, signing keys,
-**and this skill itself**), and applies the deterministic PII scrub. Read the
-report; note the scrubbed-file counts for the review.
-
-### 2b. Build and inject the frontend UI (prebuilt dist)
-
-The built React UI (`jarvis/ui/web/dist`) is `.gitignore`'d in the working repo
-(cloud-first: no build-artifact bloat locally), so the tracked-files-only export
-in step 2 does **not** include it. A clone with no `dist/` serves a broken UI
-(`server.py` needs `dist/index.html`), and the `pipx install git+…` path on the
-website never clones at all — it can only ship a UI that travels inside the
-package. So build the UI fresh and inject it into the staging tree: every public
-install path (pipx, `pip install`, manual clone) then serves a working UI without
-Node. `pyproject.toml` already declares `ui/web/dist/**` as `package-data`, so the
-wheel/sdist pick it up once it is in the shipped tree.
-
-```bash
-( cd "$REPO/jarvis/ui/web/frontend" && npm ci && npm run build ) # -> $REPO/jarvis/ui/web/dist
-rm -rf "$WORK/staging/jarvis/ui/web/dist"
-cp -r "$REPO/jarvis/ui/web/dist" "$WORK/staging/jarvis/ui/web/dist"
-```
-
-The build is deterministic from the already-public frontend source, so the dist
-carries no personal data the source did not. It is injected **before** the scan
-(step 3), so the blocking secret/PII scan covers the built bundle too — it is not
-a scrub-exempt blind spot. (The deterministic name-scrub in step 2 runs on the
-git export only; the built bundle is guarded by the scan instead.)
-
-### 3. Scan the staging tree (gate layer D, fail-closed)
-
-```bash
-python "$SCRIPT" scan --tree "$WORK/staging" --skill-dir "$SKILL_DIR" \
- --report "$WORK/scan-staging.json"
-echo "exit=$?" # non-zero => STOP, do not continue
-```
-
-If blocking findings appear, STOP and show the user the `scan-staging.json`
-blocking list. Do not try to "fix" by editing staging by hand and re-pushing —
-investigate the root cause (a new secret, a scrub gap → update
-`references/pii-scrub.tsv`, then rebuild).
-
-### 4. Set the release version in the snapshot (RELEASE MODE ONLY — discreet skips this)
-
-Bump **only the snapshot** — the WIP working repo stays untouched (its version
-stays `0.1.0`). First-ever release seeds `v0.1.0` (the dist repo has no tags yet).
-
-```bash
-python "$SCRIPT" set-version --tree "$WORK/staging" --version <X.Y.Z>
-```
-
-(You decide `<X.Y.Z>` in step 7 — run this once that's chosen. The script asserts
-`pyproject.toml` and `jarvis/__init__.py` agree.)
-
-### 5. Clone the distribution repo fresh
-
-```bash
-gh repo clone PersonalJarvis/PersonalJarvis "$WORK/dist"
-git -C "$WORK/dist" remote get-url origin # MUST equal $DIST_URL exactly
-```
-
-Full clone (not shallow) so the tag push is clean. Verify the remote URL string
-equals `$DIST_URL` **exactly, case-sensitive** (Hard rule 2). The fresh clone is
-deliberate: never reuse the stale sibling clones `../PersonalJarvis*`.
-
-### 6. Reconcile staging → dist
-
-```bash
-python "$SCRIPT" reconcile --staging "$WORK/staging" --dist "$WORK/dist" \
- --skill-dir "$SKILL_DIR" --report "$WORK/reconcile-report.json"
-# --force is REQUIRED: a plain `git add -A` honours the dist .gitignore and will
-# SILENTLY drop files that are tracked in the working repo only because they were
-# force-added there (e.g. jarvis/state vs the unanchored `state/` rule). That is
-# how a boot-broken release shipped once. Force-add the already-clean staged set.
-git -C "$WORK/dist" add --all --force
-# Integrity gate (Risk R2) — fail-closed. Confirms every staged file is actually
-# committed AND every `import jarvis.x.y` resolves to a file in the shipped tree
-# (catches an imported-but-untracked module that would never ship).
-python "$SCRIPT" verify --staging "$WORK/staging" --dist "$WORK/dist" \
- --report "$WORK/verify-report.json"
-echo "verify-exit=$?" # non-zero => STOP: the release would be incomplete/broken
-git -C "$WORK/dist" status --short
-git -C "$WORK/dist" diff --cached --stat | tail -1
-```
-
-`reconcile` deletes dist files absent from staging (except the dist-only keep
-list, e.g. `AGENTS.md`), copies the clean tree in, and refuses if it would delete
-more than ~10 % of the repo (a wrong-build signal). New feature files (today's
-work) appear here as adds — that's the point. The `--force` add + `verify` step
-guarantee the public commit equals the staged set exactly: nothing the dist
-.gitignore happens to match gets silently lost, and nothing imported is missing.
-If `verify` flags an unresolved import, the usual cause is an **untracked** file
-in the working repo that shipped code depends on — tell the user to `git add` it
-(the skill can only ship git-tracked files), then rebuild.
-
-### 7. Choose the version bump (RELEASE MODE ONLY — discreet skips this)
-
-Reuse the github-version UX.
-
-Use `AskUserQuestion` with three options, Recommended first, tag format `vX.Y.Z`:
-
-| Bump | When | Example |
-|---|---|---|
-| MAJOR | breaking change | 1.0.0 → 2.0.0 |
-| MINOR | new feature, compatible | 1.1.0 → 1.2.0 |
-| PATCH | bugfix / docs / chore | 1.1.0 → 1.1.1 |
-
-Derive a recommendation from the `git diff --cached --stat` content, but the user
-always confirms. The **first** release is `v0.1.0` (matches the code). Once chosen,
-run step 4's `set-version`, re-stage the two version files, and prepend a
-`## [X.Y.Z] - <YYYY-MM-DD>` section to the dist `CHANGELOG.md` (Added / Changed /
-Removed, derived from the diff). Then re-run `git -C "$WORK/dist" add -A`.
-
-### 8. Final scan + mandatory sub-agent review + human review (gate layers D + R + E)
-
-Scan the **reconciled dist tree** — this is the authoritative gate over exactly
-what will ship:
-
-```bash
-python "$SCRIPT" scan --tree "$WORK/dist" --skill-dir "$SKILL_DIR" \
- --report "$WORK/scan-dist.json"
-echo "exit=$?" # non-zero => STOP
-```
-
-#### 8a. Mandatory sub-agent privacy review (gate layer R — the maintainer's hard requirement)
-
-**This step is non-negotiable and runs on EVERY ship (discreet and release).** The
-deterministic scanners (layers A–D) catch known patterns; the sub-agent is the
-*semantic* backstop for whatever a regex cannot see — a name in a comment, a
-personal anecdote in a docstring, an internal URL, a credential in an unusual
-shape, a config example with a real value.
-
-Dispatch a **fresh, read-only sub-agent** (Task tool, `subagent_type: "Explore"`
-or `general-purpose`) pointed at the reconciled dist tree `"$WORK/dist"`. Give it
-exactly this brief:
-
-> You are a release privacy auditor. Read EVERY file under `<DIST_TREE>` and find
-> anything that must NOT appear in a PUBLIC open-source repo: API keys, tokens,
-> secrets, passwords, bearer/credentials; personal data (real names, personal
-> emails, phone numbers, home paths like `C:\Users\<name>`); private/internal URLs,
-> hostnames, or infra; internal-only notes, TODOs naming people, or maintainer
-> identity; any config/example carrying a real value rather than a placeholder.
-> Return a JSON list of findings: `[{file, line, snippet, why}]`. Empty list = clean.
-> Do NOT modify anything. When uncertain, INCLUDE it — false positives are cheap,
-> a leak is permanent.
-
-Rules for the result:
-
-- **Any non-empty finding → STOP.** Show the user the findings; do not push.
-- The sub-agent may only **ADD** blocking findings. It can **never** clear or
- override what the deterministic gate (layers A–D) already blocked — those are
- authoritative (Hard rule 3 still holds).
-- A real finding usually means a denylist/scrub gap → fix the matching reference
- file (`references/distribution-denylist.txt` / `references/pii-scrub.tsv`), then
- **rebuild from step 2** (do not hand-edit staging and re-push).
-- Record the sub-agent's verdict (clean / findings) in the consolidated review below.
-
-#### 8b. Human review (gate layer E)
-
-Then present a single consolidated review and **ask for explicit approval** via
-`AskUserQuestion` before any network write. Show:
-
-- **Mode**: discreet (snapshot, no tag) or release (`vX.Y.Z` + tag + CHANGELOG).
-- **Target**: `$DIST_URL`, branch `main` (+ tag `vX.Y.Z` in release mode only).
-- **What ships**: the `git diff --cached --stat` summary (adds / mods / deletes).
-- **What was withheld**: denylist count from `build-report.json` (collapse the list).
-- **What was scrubbed**: per-file substitution counts from `build-report.json`.
-- **Scan result**: 0 blocking; the warnings (incl. the `.mailmap` note — the real
- emails live there by the maintainer's documented decision); the allowlisted
- fakes that were intentionally let through.
-- **Sub-agent privacy review** (step 8a): clean, or the findings list (must be clean to proceed).
-
-If the user does not clearly approve, abort and leave `$WORK` for inspection.
-
-### 9. Commit, tag, push (dist repo only)
-
-Author the commit as the maintainer's GitHub profile, using GitHub's privacy
-noreply email — this links the profile (avatar + link on github.com) WITHOUT
-exposing any real email, and the display name is the GitHub *username*, not the
-real name (the PII scrub still strips the real name from file CONTENTS; this only
-changes who the commit is attributed to). Hard rule 1 still holds: `-C` is the
-**dist** clone, never the working repo.
-
-**Release mode** (commit + tag + push branch and tag):
-
-```bash
-git -C "$WORK/dist" \
- -c user.name="rubenluetke10-beep" \
- -c user.email="[email protected]" \
- commit -m "release: vX.Y.Z — <short summary>"
-
-git -C "$WORK/dist" tag -a "vX.Y.Z" -m "vX.Y.Z — <short summary>"
-git -C "$WORK/dist" push origin HEAD:main
-git -C "$WORK/dist" push origin "vX.Y.Z"
-```
-
-**Discreet mode** (commit + push branch only — NO tag, NO version bump):
-
-```bash
-git -C "$WORK/dist" \
- -c user.name="rubenluetke10-beep" \
- -c user.email="[email protected]" \
- commit -m "snapshot: <YYYY-MM-DD> — <short summary>"
-
-git -C "$WORK/dist" push origin HEAD:main
-```
-
-In release mode push the branch first, then the tag (never `git push --tags`,
-never `--force`). These are the **only** remote-changing actions allowed. Do not
-run any `gh repo edit`, settings, or visibility command (Hard rule 7).
-
-### 10. Summary
-
-Report, with clickable links:
-
-- Compare/commit URL: `https://github.com/PersonalJarvis/PersonalJarvis/commit/<sha>`
-- Tag/release URL: `https://github.com/PersonalJarvis/PersonalJarvis/releases/tag/vX.Y.Z`
-- Note that the dist repo's own CI will run; suggest waiting for it before
- treating the release as final (it may sign the installer on a `v*.*.*` tag).
-- Rollback: `git -C <dist> push origin :vX.Y.Z` to delete the tag;
- `git -C <dist> revert <sha>` + push to undo the commit.
-- Confirm the working repo is untouched: `git -C "$REPO" status` unchanged.
-- Confirm the distribution repo's visibility is **unchanged** — this skill never
- alters private↔public; that stays the maintainer's manual decision.
-
-Then remove `$WORK` (leave it on any failure for inspection).
-
-## The privacy gate (six layers, deny-by-default)
-
-Each layer can independently stop the ship; the script enforces A–D, you enforce R + E:
-
-- **A — tracked-files-only export.** Gitignore exclusions are free: no
- `jarvis.toml`, no `.env`, no `data/`, no Vault content, no keys.
-- **B — distribution denylist** (`references/distribution-denylist.txt`). Internal
- dev docs, scratch scripts, encrypted signing keys, and this skill's own files.
-- **C — deterministic PII scrub** (`references/pii-scrub.tsv`). Real name, personal
- paths, project ids. `.mailmap` is **exempt** (`references/scrub-exempt.txt`):
- its real emails are the mapping keys that produce the noreply form — scrubbing
- them would break the very protection they provide.
-- **D — blocking secret/PII scan**, fail-closed. Real-credential-length regexes
- (so deliberately-short test fakes don't false-trip); a re-run of the PII
- patterns must be 0 in non-exempt files; the 3-fake allowlist
- (`references/secret-allowlist.tsv`) is matched by exact value **and** path.
-- **R — mandatory sub-agent privacy review** (step 8a). A fresh read-only sub-agent
- reads the whole reconciled tree and semantically hunts for anything personal or
- secret a regex would miss. ADD-only: it can block, never clear. Runs on every
- ship, discreet and release.
-- **E — human review** (step 8b). Nothing leaves the machine without an explicit go.
-
-## Risk guardrails (recognize the signal)
-
-| Risk | Guard |
-|---|---|
-| Leak via stale clone | Always `gh repo clone` fresh; never reuse `../PersonalJarvis*`. |
-| Ship a broken release | `--force` add + `verify` (every staged file committed, internal imports resolve); version triple-consistency; dist CI on the tag. |
-| Clobber the working repo | Working repo read-only; all writes in `$WORK`. |
-| Push to the wrong (lowercase) repo | Exact case-sensitive `$DIST_URL` check (steps 1, 5). |
-| Secret-in-history permanence | New commit ≠ removal — say so; needs `git filter-repo` + rotation. |
-| Scan fatigue / false fakes | Real-length patterns + value+path allowlist; warnings never block. |
-
-## Reference files
-
-- `scripts/strip_and_scan.py` — the deterministic gate (`build`, `scan`,
- `reconcile`, `verify`, `set-version`). stdlib-only; runs on a bare Linux container.
-- `references/distribution-denylist.txt` — paths that never ship.
-- `references/pii-scrub.tsv` — PII patterns + actions (scrub / block-only / warn).
-- `references/secret-allowlist.tsv` — intentional fakes, pinned by value + path.
-- `references/scrub-exempt.txt` — paths exempt from scrub (`.mailmap`).
-- `references/dist-only-keep.txt` — dist-only files preserved on reconcile.
-
-When a new internal-doc category, a new intentional fake, or a new PII variant
-appears, update the matching reference file — that is the maintenance surface; the
-workflow above does not change.
diff --git a/.claude/skills/ship-public-release/references/dist-only-keep.txt b/.claude/skills/ship-public-release/references/dist-only-keep.txt
deleted file mode 100644
index db24f8102c..0000000000
--- a/.claude/skills/ship-public-release/references/dist-only-keep.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-# Files that exist in the distribution repo but NOT in the working tree, and
-# must be PRESERVED during reconcile (one gitignore-ish glob per line).
-#
-# The reconcile step makes the distribution tree match the staged tree by
-# deleting its tracked files and copying the staged ones in. Any file listed
-# here is skipped by that deletion so a deliberately dist-only file is not wiped
-# every release.
-#
-# AGENTS.md: public-facing contributor guide that lives only in the public repo
-# (the working tree uses CLAUDE.md instead). Verified as the only dist-only file
-# on 2026-05-31; re-checked each run by the skill's reconcile diff.
-AGENTS.md
diff --git a/.claude/skills/ship-public-release/references/distribution-denylist.txt b/.claude/skills/ship-public-release/references/distribution-denylist.txt
deleted file mode 100644
index 08a85e1a9d..0000000000
--- a/.claude/skills/ship-public-release/references/distribution-denylist.txt
+++ /dev/null
@@ -1,213 +0,0 @@
-# Distribution denylist — paths that must NEVER ship to the public repo.
-#
-# This is a CURATED DENYLIST, not a working-vs-dist diff. New feature code is
-# never listed here, so it ships automatically; only personal / secret /
-# internal-process artifacts are withheld. Each line is a gitignore-ish glob
-# matched against the posix, repo-relative path of every git-TRACKED file.
-# Globs: `**` = any depth, `*` = within a path segment, `?` = one char.
-# Lines starting with `#` and blank lines are ignored.
-#
-# Decision record: the maintainer chose (2026-05-31) to keep withholding all
-# internal dev docs (OpenClaw-style clean public repo) and the encrypted
-# release-signing keys (forks generate their own). Confirmed in the skill plan.
-#
-# WHY a denylist and not the file diff: the working↔dist diff conflates two
-# different things — deliberately-withheld files AND files merely newer than the
-# last release. Baking the diff into "always exclude" would freeze out real
-# features (e.g. jarvis/state/*, jarvis/plugins/tts/fallback_tts.py). So those
-# are intentionally ABSENT from this list and ship normally.
-
-# --- .claude/ contributor toolchain: SHIP it (like OpenClaw), minus the
-# maintainer's own release skill (2026-06-27, revised) ----------------------
-# REVISED: .claude/ is Claude-Code CONTRIBUTOR tooling — subagent definitions,
-# slash-commands, dev skills — exactly what a fork needs to keep developing with
-# the same AI workflow. The reference project openclaw/openclaw (380k+ stars)
-# ships .agents/ + AGENTS.md + CLAUDE.md publicly; this is a professionalism
-# signal, not clutter. NOTHING in the runtime jarvis/ package loads it, so it is
-# product-safe. Of 31 files only ONE subtree is personal: THIS skill, whose
-# references/ (pii-scrub.tsv, secret-allowlist.tsv) carry the maintainer's real
-# name + emails as scrub *patterns* — shipping them would leak exactly what they
-# exist to remove, and a fork generates its own. So withhold ONLY this subtree;
-# the rest of .claude/ ships. (The single personal path in
-# phase6-adr-update/SKILL.md is depersonalized by the PII scrub, not withheld.)
-.claude/skills/ship-public-release/**
-
-# --- .mailmap: full-depersonalization decision (2026-06-01) ------------------
-# The dist repo's history is already 100% noreply-authored (no real-email
-# commits exist there), so .mailmap maps nothing and is NOT load-bearing in the
-# distribution — it only ships the maintainer's two private emails + full name
-# as file data. Per the maintainer's "full depersonalization" choice for the
-# v0.1.0 release, drop it from the snapshot entirely (cleanest cut: removes both
-# real emails and the full name with zero scrub artifacts). reconcile deletes it
-# from the dist tree.
-.mailmap
-
-# --- Encrypted release-signing keys (maintainer identity) -------------------
-install/keys/*.key.enc
-
-# --- Wave-2 demo passphrase carriers (2026-06-17) ---------------------------
-# The encrypted key above is withheld, but the passphrase that decrypts it is
-# committed in plain text in install/TRUST_ROOT.md (§3.3) and in these two
-# ceremony docs (the `WAVE2_CEREMONY_PASSPHRASE=...` / `-pass "pass:..."`
-# lines). Withhold the passphrase too so a public release never ships either
-# half of the offline-ceremony key. (Private repo keeps both — Foundation-demo
-# posture, rotation deferred to the documented v0.5.0 cut.)
-install/TRUST_ROOT.md
-docs/supply-chain/wave2-key-ceremony.md
-docs/supply-chain/wave4-distribution.md
-
-# --- Internal scratch scripts (underscore-prefixed convention) --------------
-scripts/_*.py
-
-# --- Dead WhisperBar dev-probe scripts (2026-06-30) -------------------------
-# Standalone desktop-capture probes that still `import jarvis.ui.whisperbar`,
-# a module renamed to jarvis.ui.jarvisbar (whisperbar->jarvisbar rename,
-# 2026-06-30). The import is dead, so the scripts are broken dev-only probes
-# with no downstream value — and the release verify gate (top-level unresolved
-# import) correctly refuses to ship them. They are not product code; a fork has
-# no use for them.
-scripts/whisperbar_live_probe.py
-scripts/whisperbar_thinking_preview.py
-
-# --- Personal operational state + scratch (2026-06-19 privacy review) -------
-# config-soll.json is the maintainer's PRIVATE drift-guard desired-state pin # i18n-allow
-# (internal _reason changelog re: GCP/billing/model mandates) — a fork generates
-# its own. .tmp_research/ is scratch probing. Neither has downstream value.
-# drift-guard-task.xml is a generated Windows Task-Scheduler export carrying the
-# maintainer's Windows account SID (S-1-5-21-...-500) + local paths — a fork
-# regenerates it from the .ps1; it must never ship (2026-06-19 scan BLOCK).
-scripts/config-soll.json
-scripts/drift-guard-task.xml
-.tmp_research/**
-# Root-level optimization/loop ledgers — internal dev scratchpads (the running
-# notes of a /loop session: measurements, reasoning, file paths). Like the
-# untracked progress.md, they have no downstream product value. boot-progress.md
-# was committed (so it is tracked) and would otherwise ship; withhold it.
-boot-progress.md
-
-# --- Internal dev-process docs: whole subtrees ------------------------------
-docs/superpowers/**
-docs/plans/**
-docs/phase-b1-wiki-curator/**
-docs/diagnostics/**
-
-# --- Contributor doctrine now SHIPS (2026-06-27, revised) -------------------
-# CLAUDE.md + CLOUD.md are the binding contributor doctrine. AGENTS.md is the
-# byte-twin of CLAUDE.md and ALREADY ships, so withholding CLAUDE.md was
-# inconsistent — its content was public via AGENTS.md regardless. OpenClaw ships
-# CLAUDE.md + VISION.md publicly; matching that is the professional move. Both
-# are depersonalized by the PII scrub on the way out. (docs/BUGS.md stays
-# withheld below — that is the internal bug log, not contributor doctrine.)
-
-# --- BUGS.md now SHIPS (2026-06-27): the recurring-bug "journey" log is strong
-# --- contributor/reader material. VERIFIED — applying the PII scrub to it leaves
-# --- 0 personal paths (5 -> <USER_HOME>), 0 real name, 0 private mail; only
-# --- 127.0.0.1 (loopback) + hardware names (RTX / headset) remain, which are
-# --- non-identifying. The fail-closed scrub+scan re-checks on every ship. -----
-
-# --- Internal dev-process docs: individual files ----------------------------
-docs/adr/0009-self-healing-worker-critic.md
-docs/agents-self-verification.md
-docs/deepgram-stt-research-2026-05-20.md
-docs/openclaw-bridge.md
-docs/openclaw-spawn-failure-analysis-2026-05-18.md
-docs/persona-audit-report.md
-docs/persona-refactor-results.md
-docs/persona-research.md
-docs/phase1c-test-results.md
-docs/phase2-integration-test-results.md
-docs/phase6-handoff-2026-04-26.md
-docs/phase6-test-report.md
-docs/spike-results-openclaw.md
-docs/voice-acceptance-brief.md
-docs/bug-019-spawn-failure-report.html
-docs/jarvis-board/PHASE_A_DONE.md
-
-# --- The whole video/ Remotion build project (2026-06-27) -------------------
-# video/ is the Remotion source project used to RENDER the YouTube onboarding
-# film; it is a generator tool, not a runtime asset. The frontend embeds the
-# finished film straight from youtube-nocookie.com (IntroVideoScreen.tsx) and
-# loads nothing from this dir; .dockerignore already excludes video/. This
-# subsumes the earlier video/analysis/** entry: those frames are review/debug
-# artifacts that can carry personalized demo text in pixels (caught by semantic
-# image scanners, not file-text scanners), so the whole tree stays out.
-video/**
-
-# --- Standalone side-projects: ship in their OWN repos, not the flagship (2026-06-27) ---
-# Self-contained projects that merely co-live in this monorepo. The runtime
-# jarvis/ package imports NOTHING from them (verified 2026-06-27 — 0 import
-# sites). Patterns are ^-anchored, so each hits ONLY the top-level dir, never a
-# same-named subdir (e.g. src/** does not touch jarvis/ui/web/frontend/src/).
-# - skillbook/ : independent decentralized agent-memory research project
-# (own CLAUDE.md / ADRs / tests; unrelated to the product)
-# - keyproxy/ : standalone LLM-key reverse proxy ("zero dependency on jarvis")
-# - src/ : orphaned duplicate of the web-search skill; the LIVE tool is
-# jarvis/plugins/tool/search_web.py (no sys.path/loader points here)
-# DELIBERATELY KEPT (verified load-bearing, do NOT add): board-backend/
-# (jarvis/board/sync.py + federation_proxy_routes.py import board_backend.crypto),
-# OS-Level/ (jarvis/overlay/schema.py re-exports OS-Level/src/overlay), ui/
-# (the Orb overlay is imported at runtime), conductor/ (3 import sites).
-skillbook/**
-keyproxy/**
-src/**
-
-# --- Internal maintainer demo / perf scripts (2026-06-27) -------------------
-# tools/ holds board_demo.py / board_pentest.py / board_perf.py — internal
-# bring-up & perf probes for the Board, not product code. A fork has no use for
-# them (the product's own tooling lives inside the jarvis/ package).
-tools/**
-
-# --- Internal QA protocols (2026-06-27) -------------------------------------
-# docs/qa/ is the maintainer's internal voice-QA checklist — same internal-
-# process class as docs/superpowers/** / docs/plans/** already withheld above.
-docs/qa/**
-
-# --- Internal privacy/red-team agent spec (2026-06-30) ----------------------
-# docs-privacy-reviewer.md is the maintainer's OWN depersonalization red-team
-# guide: in source it enumerates the real maintainer identity (real name in
-# every spelling incl. the accented 'Rubén', alt name 'Harald Herz', the private
-# email shapes, GitHub login) and the entire scrub scheme. Shipping the doc that
-# lists what to hide is itself the leak (2026-06-30 sub-agent review). It is an
-# internal dev tool with no downstream value; a fork writes its own.
-.claude/agents/docs-privacy-reviewer.md
-
-# --- Internal handoff notes carrying the maintainer's private email (2026-06-30) ---
-# docs/handoffs/ holds internal review-answer handoffs. report-tutorial-review-
-# answers.md is a meta-note ABOUT the depersonalization scheme: it quotes the
-# maintainer's private email in plain text (lines 30/142/242) as a pattern to
-# protect — same self-leak class as docs-privacy-reviewer.md and the pii-scrub
-# map already withheld above. The email is a block-only scrub rule, so leaving
-# the file in would fail-close the ship anyway; withhold the whole subtree so a
-# valid snapshot never depends on a last-minute abort. Internal process doc with
-# no downstream value; a fork writes its own.
-docs/handoffs/**
-
-# --- Voice-session transcripts (2026-06-30) ---------------------------------
-# voice-session-*.{md,txt} are raw transcripts of the maintainer talking to
-# Jarvis (e.g. "was-geht-ab…") — personal speech content with no downstream
-# value, occasionally git-tracked by accident (an auto-save / `git add -A` in a
-# parallel session). Withhold every voice-session transcript, at any depth, so a
-# stray one never reaches public history.
-voice-session-*
-**/voice-session-*
-
-# --- Internal pick-up / handoff prompt notes (2026-06-30) -------------------
-# reporttutorialpickupprompt*.md is a loose top-level "pick-up" prompt: an
-# internal instruction to a Claude session to run the §2 privacy review. It
-# names the maintainer real name ("Ruben", "Lütke / Luetke") and enumerates the # i18n-allow
-# private categories to hunt for — the same self-leak class as
-# docs-privacy-reviewer.md and docs/handoffs/** already withheld above (shipping
-# the doc that lists what to hide IS the leak). Internal process artifact, zero
-# downstream value, occasionally git-tracked by accident. Withhold any such loose
-# pick-up/handoff prompt at the repo root.
-reporttutorialpickupprompt*
-**/reporttutorialpickupprompt*
-*pickupprompt*.md
-
-# --- Launch-marketing drafts (2026-07-02) ------------------------------------
-# marketing/launch/* holds the maintainer's pre-launch drafts (Show-HN post,
-# Reddit/X threads, hero one-liners, a manual GitHub-setup checklist). Internal
-# process artifacts: publishing the launch plan before the launch IS the leak,
-# and none of it is product content a downstream user needs. A fork writes its
-# own marketing. Withhold the whole subtree.
-marketing/**
diff --git a/.claude/skills/ship-public-release/references/pii-scrub.tsv b/.claude/skills/ship-public-release/references/pii-scrub.tsv
deleted file mode 100644
index 8f50685b19..0000000000
--- a/.claude/skills/ship-public-release/references/pii-scrub.tsv
+++ /dev/null
@@ -1,83 +0,0 @@
-# PII scrub manifest. Tab-separated: action <TAB> pattern <TAB> replacement <TAB> note
-#
-# action = scrub -> applied as a regex substitution during `build`
-# block-only -> never substituted, but BLOCKS the ship if found in a
-# non-exempt file during `scan` (defence in depth)
-# warn -> surfaced in the review, never blocks (FP-prone)
-#
-# `pattern` is a Python regex (it is fed straight to re.compile). All rows are
-# re-checked during `scan`: scrub+block-only must be 0 in non-exempt files, else
-# the ship is blocked (a scrub gap is treated as a leak, fail-closed). Matches
-# inside scrub-exempt paths (.mailmap) are downgraded to warnings.
-#
-# Footprint verified 2026-05-31 against the live working tree: personal Windows
-# paths = 0 hits (already cleaned in place); private emails = .mailmap only
-# (intentional, exempt); real name = ~7 shipping files; GCP id = 0 (kept as a
-# regression guard). The scan double-checks regardless.
-
-# --- maintainer GitHub login + entity slug (MUST precede the bare-name rules
-# --- below, else the bare "ruben" rule would fragment them) -----------------
-scrub rubenluetke10-beep octocat maintainer github login (appears in a stream-evidence test fixture)
-scrub ruben-luetke personal-jarvis-maintainer maintainer entity slug (= slugify of full name; keeps name->slug test couplings consistent)
-
-# --- maintainer real name (order matters: full name before surname) ---------
-scrub Ruben Lütke Personal Jarvis Maintainer maintainer real name (full)
-scrub Lütke Maintainer maintainer surname
-scrub Luetke Maintainer maintainer surname (ascii-fold)
-
-scrub luetke maintainer maintainer surname (lowercase residue in slugs)
-scrub lütke maintainer maintainer surname (lowercase umlaut residue)
-
-# --- maintainer bare first names: full-depersonalization (2026-06-01). Two
-# --- distinct neutral names preserve router-prompt semantics where "Ruben" is
-# --- the user (address) and "Harald" is an example third person mentioned. ---
-scrub Ruben Alex maintainer first name (sample/address user) -> neutral
-scrub ruben alex maintainer first name lowercase (config defaults, slugs, branch tags)
-# Accented spelling 'Rubén' — the ASCII 'Ruben' rules above do NOT match the é,
-# so the accented real first name shipped through (2026-06-30 sub-agent review:
-# docs/phase-b1-wiki-curator/*, tests/unit/memory/wiki/test_page.py, etc.).
-scrub Rubén Alex maintainer first name accented (é) -> neutral
-scrub rubén alex maintainer first name accented lowercase
-scrub RUBÉN ALEX maintainer first name accented all-caps (regression guard)
-scrub Harald Sam maintainer alt first name (example person in prompts/tests)
-scrub harald sam maintainer alt first name lowercase (ADR owner field, slugs, test emails)
-
-# --- all-caps identifier residue: the case-sensitive scrub above misses
-# --- SCREAMING_CASE used in JS test constants (e.g. HARALD_PAGE) and slug-fn
-# --- test inputs (e.g. person_slug("RUBEN")). Preserve the all-caps style in
-# --- the replacement so the depersonalized test stays internally consistent. -
-scrub HARALD SAM maintainer alt first name all-caps (JS test constants, e.g. HARALD_PAGE)
-scrub RUBEN ALEX maintainer first name all-caps (slug-fn test input, e.g. person_slug("RUBEN"))
-scrub LÜTKE MAINTAINER maintainer surname all-caps (regression guard; 0 current hits)
-scrub LUETKE MAINTAINER maintainer surname all-caps ascii-fold (regression guard)
-
-# --- personal paths ---------------------------------------------------------
-# `.` matches the path separator on any OS, so no backslash escaping is needed.
-# The `[\\/]+` rule below additionally catches ESCAPED / double-separator forms
-# (e.g. "C:\\Users\\Administrator" in source string literals & docstrings) that
-# the single-`.` pattern misses; it is a strict superset and runs as defence.
-scrub C:.Users.Administrator <USER_HOME> windows personal home path
-scrub C:[\\/]+Users[\\/]+Administrator <USER_HOME> windows personal home path (escaped/double-separator variant in source literals & docstrings)
-scrub C--Users-Administrator-Desktop-Personal-Jarvis <your-claude-project-dir> personal .claude memory dir
-
-# --- cloud project identifier (regression guard; 0 current hits) ------------
-scrub gen-lang-client-0108934957 <GCP_PROJECT_ID> personal GCP project id
-
-# --- windows account SID (2026-06-19 privacy review) ------------------------
-# The maintainer's machine/account SID leaked via scripts/drift-guard-task.xml
-# (the -500 RID = builtin Administrator). Mask the unique machine-identifier
-# prefix; any RID suffix is preserved so the XML stays SID-shaped as a template.
-scrub S-1-5-21-420352953-976713421-1014275510 S-1-5-21-0-0-0 windows account SID machine identifier (maintainer box)
-
-# --- private emails: never auto-edited (would break the .mailmap mechanism), --
-# --- but BLOCK if they appear in any non-exempt shipping file ----------------
-block-only harald\.herz@gmx\.de private email (must only live in .mailmap)
-block-only ruben\.luetke10@gmail\.com private email (must only live in .mailmap)
-
-# --- any other consumer-mailbox address: surface for a human look -----------
-warn [A-Za-z0-9._%+-]+@(?:gmail|gmx|outlook|hotmail|yahoo|protonmail|proton|web)\.[a-z.]+ consumer email address
-# "Herz" scrub REMOVED 2026-06-27 by maintainer decision: @Ruben_Herz is the
-# INTENTIONAL public build-in-public X handle (README social link + socials seed +
-# tests), kept public on purpose. Do NOT re-add a Herz scrub — it would anonymize
-# the maintainer's own chosen public project identity. (The real surname "Lütke"
-# stays scrubbed above; "Herz" is the deliberately-public brand handle.)
diff --git a/.claude/skills/ship-public-release/references/scrub-exempt.txt b/.claude/skills/ship-public-release/references/scrub-exempt.txt
deleted file mode 100644
index 8512f09d2f..0000000000
--- a/.claude/skills/ship-public-release/references/scrub-exempt.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-# Paths exempt from the PII scrub (one gitignore-ish glob per line).
-#
-# .mailmap MUST contain the maintainer's real emails as the left-hand mapping
-# keys — that is how git rewrites them to the GitHub noreply form in the web UI
-# and API (spam-scraping defence). The file documents this trade-off in its own
-# header, and the public repo already ships it by deliberate decision. Scrubbing
-# it would BREAK the protection it provides, so it is exempt from substitution.
-# During `scan` its email/name matches are downgraded to warnings (surfaced in
-# the review) instead of blocking the ship.
-.mailmap
-
-# Maintainer's intentional authorship attribution (explicit decision 2026-06-26):
-# the personal X/Twitter profile @Ruben_Herz is kept REAL in the public socials
-# seed, the README socials line, and the seed's test — an open-source author
-# credit, not an accidental leak. These three files were verified to carry NO
-# other personal data, so exempting them keeps ONLY the handle and leaks nothing
-# else. During `scan` the handle/name matches here downgrade to warnings (shown
-# in the review) instead of blocking. Trade-off: any FUTURE personal data added
-# to README would warn rather than block — the sub-agent + human review remain
-# the backstop. Re-evaluate at the public-visibility flip.
-jarvis/ui/web/socials_routes.py
-tests/unit/ui/test_socials_routes.py
-README.md
diff --git a/.claude/skills/ship-public-release/references/secret-allowlist.tsv b/.claude/skills/ship-public-release/references/secret-allowlist.tsv
deleted file mode 100644
index 06529af8a7..0000000000
--- a/.claude/skills/ship-public-release/references/secret-allowlist.tsv
+++ /dev/null
@@ -1,17 +0,0 @@
-# Secret-scan allowlist. Tab-separated: value <TAB> path <TAB> reason
-#
-# A finding is suppressed ONLY when BOTH the exact literal value AND the exact
-# repo-relative path match a row here. Never path-only (would blind the scan to a
-# real key added to that file later); never value-only; never a substring rule.
-#
-# Note: the blocking secret patterns in strip_and_scan.py use REAL credential
-# lengths, so most of this repo's intentional test fakes (deliberately short /
-# hyphenated, e.g. "sk-leakable-XYZ-789", "test-key-xxx", "TESTTOKEN") do not
-# match at all and need no entry. List here only fakes that happen to match a
-# blocking shape, so the gate stays quiet on a clean release.
-
-AIzaSyB1234567890abcdefXYZ tests/unit/plugins/tool/test_app_control_tools.py intentional fake Google API key (26 chars, documented inline)
-sk-ant-oat01-deadbeef-cafe-1234567890 tests/missions/test_env.py intentional fake Anthropic OAuth token (deadbeef/cafe fixture)
-sk-ant-api03-classicclassic1234567890 tests/missions/test_env.py intentional fake Anthropic API key fixture
------BEGIN RSA PRIVATE KEY----- tests/unit/memory/wiki/test_secret_guard.py intentional fake: bare PEM header line (no key body), parametrized fixture proving the wiki secret-guard detects PEM blocks
------BEGIN RSA PRIVATE KEY----- .claude/skills/ship-public-release/references/secret-allowlist.tsv this allowlist's own PEM-header row above — the file documenting the fixture must not trip the scanner itself
diff --git a/.claude/skills/ship-public-release/scripts/strip_and_scan.py b/.claude/skills/ship-public-release/scripts/strip_and_scan.py
deleted file mode 100644
index f9151c4ea7..0000000000
--- a/.claude/skills/ship-public-release/scripts/strip_and_scan.py
+++ /dev/null
@@ -1,744 +0,0 @@
-#!/usr/bin/env python3
-"""Deterministic privacy gate for the ship-public-release skill.
-
-This script is the *deterministic core* of the public-release workflow. The
-skill's SKILL.md orchestrates the human-facing parts (asking the version bump,
-showing the review, committing, tagging, pushing); everything that decides
-*what leaves the machine* lives here so it is reproducible and not subject to
-LLM improvisation.
-
-Three subcommands:
-
- build Export the working tree's git-tracked files into a clean staging dir:
- apply the distribution denylist, run the deterministic PII scrub,
- write a build report. (Layers A+B+C of the gate.)
-
- scan Run the blocking secret/PII scan over a tree (the staging tree, and
- again over the reconciled distribution tree before commit). Exits
- non-zero if any BLOCKING finding survives the allowlist. (Layer D.)
-
- set-version Set the version string in pyproject.toml + jarvis/__init__.py
- inside a staged tree and assert the two agree.
-
-Design rules:
- * stdlib only (cloud-first: must run on a bare python:3.11-slim container).
- * fail-closed: anything uncertain is reported and, for `scan`, blocks.
- * the LLM may only ADD findings on top of this, never clear what this blocks.
-
-Reports are JSON so the SKILL.md can summarise them for the human review.
-"""
-
-from __future__ import annotations
-
-import argparse
-import json
-import re
-import subprocess
-import sys
-from pathlib import Path
-
-# ----------------------------------------------------------------------------
-# Block-tier secret patterns (security logic — intentionally hardcoded, not in
-# a data file, so they cannot be silently weakened by editing a reference file).
-#
-# Lengths are tuned to REAL credential shapes. Intentional test fixtures in this
-# repo (e.g. "sk-leakable-XYZ-789", "AIzaSyB1234567890abcdefXYZ", "test-key-xxx")
-# are deliberately shorter/hyphenated and do NOT match these — so they don't
-# train the user to ignore the gate. A genuinely leaked key is always full length
-# and WILL match.
-# ----------------------------------------------------------------------------
-SECRET_PATTERNS: dict[str, str] = {
- "openai_legacy": r"\bsk-[A-Za-z0-9]{48}\b",
- "openai_project": r"\bsk-proj-[A-Za-z0-9_-]{40,}\b",
- "anthropic": r"\bsk-ant-[A-Za-z0-9_-]{60,}\b",
- "google_api_key": r"\bAIza[0-9A-Za-z_-]{35}\b",
- "github_token": r"\bgh[pousr]_[A-Za-z0-9]{36}\b",
- "aws_access_key": r"\bAKIA[0-9A-Z]{16}\b",
- "slack_token": r"\bxox[baprs]-[0-9A-Za-z-]{10,}\b",
- "groq_key": r"\bgsk_[A-Za-z0-9]{40,}\b",
- "google_oauth_secret": r"\bGOCSPX-[A-Za-z0-9_-]{20,}\b",
- "private_key_block": r"-----BEGIN (?:RSA |EC |DSA |OPENSSH |PGP )?PRIVATE KEY-----",
-}
-
-# Filenames that must never appear in a shipping tree even if some path slips the
-# .gitignore / denylist (defence in depth). Matched on the basename.
-FORBIDDEN_BASENAMES = (
- ".env",
- "jarvis.toml",
- "mcp.json",
-)
-FORBIDDEN_SUFFIXES = (".pem", ".key", ".sqlite", ".sqlite3", ".db")
-
-# How many bytes to sniff for a NUL byte when deciding text vs binary.
-_SNIFF = 8192
-
-# Text types the English-only artifact gate inspects (mirrors
-# scripts/ci/check_no_new_german.py SCAN_EXT). Data blobs / binaries are skipped.
-_GERMAN_EXT = frozenset(
- {
- ".py", ".md", ".txt", ".rst", ".ts", ".tsx", ".js", ".jsx",
- ".json", ".toml", ".yaml", ".yml", ".html", ".css", ".cfg", ".ini",
- }
-)
-
-
-# ----------------------------------------------------------------------------
-# Small helpers
-# ----------------------------------------------------------------------------
-def _eprint(*a: object) -> None:
- print(*a, file=sys.stderr)
-
-
-def _git_tracked(repo: Path) -> list[str]:
- """Return tracked paths (posix, repo-relative), sorted, via `git ls-files`."""
- out = subprocess.run(
- ["git", "-C", str(repo), "ls-files", "-z"],
- check=True,
- capture_output=True,
- ).stdout
- paths = [p for p in out.decode("utf-8", "surrogateescape").split("\0") if p]
- return sorted(paths)
-
-
-def _compile_glob(pattern: str) -> re.Pattern[str]:
- """Translate a gitignore-ish glob into an anchored regex over posix relpaths.
-
- Supports `**` (any depth, incl. zero dirs), `*` (within a segment), `?`.
- A trailing `/**` matches the directory's whole subtree.
- """
- pattern = pattern.strip().replace("\\", "/")
- out: list[str] = ["^"]
- i = 0
- while i < len(pattern):
- c = pattern[i]
- if pattern.startswith("**/", i):
- out.append("(?:.*/)?")
- i += 3
- elif pattern.startswith("**", i):
- out.append(".*")
- i += 2
- elif c == "*":
- out.append("[^/]*")
- i += 1
- elif c == "?":
- out.append("[^/]")
- i += 1
- else:
- out.append(re.escape(c))
- i += 1
- out.append("$")
- return re.compile("".join(out))
-
-
-def _matches_any(relpath: str, regexes: list[re.Pattern[str]]) -> bool:
- return any(rx.match(relpath) for rx in regexes)
-
-
-def _read_lines(path: Path) -> list[str]:
- if not path.exists():
- return []
- return [
- ln.rstrip("\n")
- for ln in path.read_text("utf-8").splitlines()
- if ln.strip() and not ln.lstrip().startswith("#")
- ]
-
-
-def _load_denylist(skill_dir: Path) -> list[re.Pattern[str]]:
- raw = _read_lines(skill_dir / "references" / "distribution-denylist.txt")
- return [_compile_glob(p) for p in raw]
-
-
-def _load_scrub(skill_dir: Path) -> list[dict]:
- """Load pii-scrub.tsv → list of {action, pattern, replacement, note}.
-
- Columns (tab-separated): action <TAB> pattern <TAB> replacement <TAB> note
- action ∈ {scrub, block-only, warn}. `scrub` rows are substituted during
- build; all rows are residual checks during scan.
- """
- rows: list[dict] = []
- for ln in _read_lines(skill_dir / "references" / "pii-scrub.tsv"):
- parts = ln.split("\t")
- if len(parts) < 2:
- continue
- action = parts[0].strip()
- pattern = parts[1]
- replacement = parts[2] if len(parts) > 2 else ""
- note = parts[3] if len(parts) > 3 else ""
- rows.append(
- {
- "action": action,
- "pattern": pattern,
- "replacement": replacement,
- "note": note,
- "rx": re.compile(pattern),
- }
- )
- return rows
-
-
-def _load_allowlist(skill_dir: Path) -> set[tuple[str, str]]:
- """Load secret-allowlist.tsv → set of (exact_value, exact_relpath)."""
- allow: set[tuple[str, str]] = set()
- for ln in _read_lines(skill_dir / "references" / "secret-allowlist.tsv"):
- parts = ln.split("\t")
- if len(parts) >= 2:
- allow.add((parts[0], parts[1].replace("\\", "/")))
- return allow
-
-
-def _load_scrub_exempt(skill_dir: Path) -> list[re.Pattern[str]]:
- raw = _read_lines(skill_dir / "references" / "scrub-exempt.txt")
- return [_compile_glob(p) for p in raw]
-
-
-def _load_keep(skill_dir: Path) -> list[re.Pattern[str]]:
- raw = _read_lines(skill_dir / "references" / "dist-only-keep.txt")
- return [_compile_glob(p) for p in raw]
-
-
-def _is_text(data: bytes) -> bool:
- return b"\x00" not in data[:_SNIFF]
-
-
-def _decode(data: bytes) -> tuple[str, str]:
- """Return (text, marker) so we can write back faithfully.
-
- marker ∈ {"", "bom", "latin1"}. latin-1 is a lossless byte<->char bijection,
- so a file that is not valid UTF-8 still round-trips (decode+encode latin-1)
- and we never crash on an odd encoding (real distribution clones have them).
- """
- if data.startswith(b"\xef\xbb\xbf"):
- try:
- return data[3:].decode("utf-8"), "bom"
- except UnicodeDecodeError:
- return data.decode("latin-1"), "latin1"
- try:
- return data.decode("utf-8"), ""
- except UnicodeDecodeError:
- return data.decode("latin-1"), "latin1"
-
-
-def _encode(text: str, marker: str) -> bytes:
- if marker == "latin1":
- return text.encode("latin-1")
- out = text.encode("utf-8")
- return b"\xef\xbb\xbf" + out if marker == "bom" else out
-
-
-def _iter_text_files(tree: Path):
- for p in sorted(tree.rglob("*")):
- if ".git" in p.parts: # never scan/scrub git internals
- continue
- if not p.is_file():
- continue
- try:
- data = p.read_bytes()
- except OSError:
- continue
- if _is_text(data):
- yield p, data
-
-
-# ----------------------------------------------------------------------------
-# build
-# ----------------------------------------------------------------------------
-def cmd_build(args: argparse.Namespace) -> int:
- working = Path(args.working).resolve()
- staging = Path(args.staging).resolve()
- skill_dir = Path(args.skill_dir).resolve()
-
- if staging.exists() and any(staging.iterdir()):
- _eprint(f"ERROR: staging dir {staging} is not empty; refusing to build.")
- return 1
- staging.mkdir(parents=True, exist_ok=True)
-
- denylist = _load_denylist(skill_dir)
- scrub_rows = _load_scrub(skill_dir)
- scrub_exempt = _load_scrub_exempt(skill_dir)
-
- tracked = _git_tracked(working)
- denied: list[str] = []
- missing: list[str] = []
- staged = 0
-
- for rel in tracked:
- if _matches_any(rel, denylist):
- denied.append(rel)
- continue
- src = working / rel
- if not src.exists():
- missing.append(rel)
- continue
- dst = staging / rel
- dst.parent.mkdir(parents=True, exist_ok=True)
- dst.write_bytes(src.read_bytes())
- staged += 1
-
- # --- deterministic PII scrub over staged text files ----------------------
- scrubbed: dict[str, int] = {}
- exempted: list[str] = []
- scrub_only = [r for r in scrub_rows if r["action"] == "scrub"]
- for path, data in _iter_text_files(staging):
- rel = path.relative_to(staging).as_posix()
- if _matches_any(rel, scrub_exempt):
- exempted.append(rel)
- continue
- text, marker = _decode(data)
- total = 0
- for row in scrub_only:
- text, n = row["rx"].subn(row["replacement"], text)
- total += n
- if total:
- path.write_bytes(_encode(text, marker))
- scrubbed[rel] = total
-
- report = {
- "working": str(working),
- "staging": str(staging),
- "tracked_total": len(tracked),
- "staged": staged,
- "denylisted_count": len(denied),
- "denylisted": denied,
- "missing_on_disk": missing,
- "scrub_exempt": sorted(set(exempted)),
- "scrubbed_files": scrubbed,
- "scrub_total_substitutions": sum(scrubbed.values()),
- }
- _write_report(args.report, report)
- print(
- f"build: staged {staged} files, withheld {len(denied)} (denylist), "
- f"scrubbed {len(scrubbed)} files "
- f"({report['scrub_total_substitutions']} substitutions), "
- f"exempt {len(report['scrub_exempt'])}."
- )
- if missing:
- _eprint(f"WARNING: {len(missing)} tracked files missing on disk (skipped).")
- return 0
-
-
-# ----------------------------------------------------------------------------
-# English-only artifact gate (loaded from the SHIPPED tree, so detector +
-# allowlist can never drift from what actually ships)
-# ----------------------------------------------------------------------------
-def _load_german_gate(tree: Path):
- """Return (looks_german_fn | None, allowlist_patterns).
-
- Loads the shipped detector + allowlist from the tree itself. Fail-OPEN
- (None) if the detector is absent, so a privacy scan never crashes on a tree
- that predates the gate — an actual German finding still blocks below.
- """
- import importlib.util
-
- detect = tree / "scripts" / "ci" / "_german_detect.py"
- allow = tree / "scripts" / "ci" / "german-allowlist.txt"
- if not detect.exists():
- return None, []
- # Never let importing the detector drop a __pycache__/*.pyc into the tree we
- # are about to ship (that .pyc would be copied into the release otherwise).
- prev = sys.dont_write_bytecode
- sys.dont_write_bytecode = True
- try:
- spec = importlib.util.spec_from_file_location("_german_detect_ship", detect)
- mod = importlib.util.module_from_spec(spec)
- spec.loader.exec_module(mod) # type: ignore[union-attr]
- fn = mod.looks_german
- except Exception:
- return None, []
- finally:
- sys.dont_write_bytecode = prev
- return fn, (_read_lines(allow) if allow.exists() else [])
-
-
-def _german_allowlisted(relpath: str, patterns: list[str]) -> bool:
- import fnmatch
-
- norm = relpath.replace("\\", "/")
- for pat in patterns:
- if fnmatch.fnmatch(norm, pat):
- return True
- if pat.endswith("/*") and (norm == pat[:-2] or norm.startswith(pat[:-1])):
- return True
- return False
-
-
-# ----------------------------------------------------------------------------
-# scan (fail-closed) — secrets + PII + English-only artifacts
-# ----------------------------------------------------------------------------
-def cmd_scan(args: argparse.Namespace) -> int:
- tree = Path(args.tree).resolve()
- skill_dir = Path(args.skill_dir).resolve()
-
- allow = _load_allowlist(skill_dir)
- scrub_rows = _load_scrub(skill_dir)
- scrub_exempt = _load_scrub_exempt(skill_dir)
- secret_rx = {name: re.compile(p) for name, p in SECRET_PATTERNS.items()}
- german_check, german_patterns = _load_german_gate(tree)
-
- blocking: list[dict] = []
- warnings: list[dict] = []
- suppressed: list[dict] = []
-
- # forbidden filenames anywhere in the tree
- for p in sorted(tree.rglob("*")):
- if ".git" in p.parts:
- continue
- if not p.is_file():
- continue
- name = p.name
- rel = p.relative_to(tree).as_posix()
- suffix = p.suffix.lower()
- # Unambiguous secret files block hard.
- if name in FORBIDDEN_BASENAMES:
- blocking.append({"kind": "forbidden_file", "path": rel, "detail": name})
- continue
- # Public / encrypted key material is allowed to ship.
- if suffix in (".enc", ".pub") or name.endswith(".pub.pem"):
- continue
- # Other key/db extensions only WARN — actual private-key *material* is
- # caught by the private_key_block content pattern regardless of suffix,
- # so this avoids false-blocking public certs or test fixtures.
- if suffix in FORBIDDEN_SUFFIXES:
- warnings.append({"kind": "sensitive_suffix", "path": rel, "detail": name})
-
- for path, data in _iter_text_files(tree):
- rel = path.relative_to(tree).as_posix()
- text, _ = _decode(data)
- exempt = _matches_any(rel, scrub_exempt)
-
- # high-confidence secret shapes
- for name, rx in secret_rx.items():
- for m in rx.finditer(text):
- value = m.group(0)
- if (value, rel) in allow:
- suppressed.append({"path": rel, "pattern": name, "value": value})
- elif exempt:
- warnings.append(
- {"kind": "secret_in_exempt", "path": rel,
- "pattern": name, "value": value}
- )
- else:
- blocking.append(
- {"kind": "secret", "path": rel, "pattern": name,
- "value": value}
- )
-
- # residual PII (scrub + block-only rows must be 0 in non-exempt files)
- for row in scrub_rows:
- if row["action"] == "warn":
- continue
- for m in row["rx"].finditer(text):
- value = m.group(0)
- if (value, rel) in allow:
- suppressed.append({"path": rel, "pattern": row["note"], "value": value})
- elif exempt:
- warnings.append(
- {"kind": "pii_in_exempt", "path": rel,
- "note": row["note"], "value": value}
- )
- else:
- blocking.append(
- {"kind": "pii_residual", "path": rel,
- "note": row["note"], "value": value}
- )
-
- # warn-tier PII heuristics
- for row in scrub_rows:
- if row["action"] != "warn":
- continue
- for m in row["rx"].finditer(text):
- if (m.group(0), rel) not in allow:
- warnings.append(
- {"kind": "pii_warn", "path": rel,
- "note": row["note"], "value": m.group(0)}
- )
-
- # English-only artifact gate (CLAUDE.md rule 1): no German outside the
- # allowlist may ship. `i18n-allow` inline marks and the path allowlist are
- # the only escapes — same contract as the CI/pre-commit language gate.
- if (
- german_check is not None
- and Path(rel).suffix.lower() in _GERMAN_EXT
- and not _german_allowlisted(rel, german_patterns)
- ):
- for lineno, line in enumerate(text.splitlines(), start=1):
- if "i18n-allow" in line:
- continue
- if german_check(line):
- blocking.append(
- {"kind": "german", "path": rel, "line": lineno,
- "value": line.strip()[:120]}
- )
-
- report = {
- "tree": str(tree),
- "blocking_count": len(blocking),
- "blocking": blocking,
- "warning_count": len(warnings),
- "warnings": warnings,
- "suppressed_count": len(suppressed),
- "suppressed": suppressed,
- }
- _write_report(args.report, report)
- print(
- f"scan: {len(blocking)} BLOCKING, {len(warnings)} warnings, "
- f"{len(suppressed)} allowlisted-suppressed."
- )
- for b in blocking[:50]:
- _eprint(f" BLOCK [{b['kind']}] {b['path']}: {b.get('value', b.get('detail',''))}")
- # fail-closed: any blocking finding => non-zero exit
- return 2 if blocking else 0
-
-
-# ----------------------------------------------------------------------------
-# reconcile (make the dist working tree equal the staged tree)
-# ----------------------------------------------------------------------------
-def cmd_reconcile(args: argparse.Namespace) -> int:
- staging = Path(args.staging).resolve()
- dist = Path(args.dist).resolve()
- skill_dir = Path(args.skill_dir).resolve()
-
- if not (dist / ".git").exists():
- _eprint(f"ERROR: {dist} is not a git clone.")
- return 1
-
- keep = _load_keep(skill_dir)
- dist_tracked = _git_tracked(dist)
- staging_files = sorted(
- p.relative_to(staging).as_posix()
- for p in staging.rglob("*")
- if p.is_file()
- )
- staging_set = set(staging_files)
-
- # Deletions: dist-tracked files that are NOT in the staged tree and are not
- # on the dist-only keep list. Files present in both are overwritten by copy.
- deletes = [
- r for r in dist_tracked
- if r not in staging_set and not _matches_any(r, keep)
- ]
- kept = [r for r in dist_tracked if _matches_any(r, keep)]
-
- # Mass-deletion guard: a build that went wrong (empty/partial staging) shows
- # up as a huge delete set. Refuse unless explicitly forced.
- threshold = max(50, int(0.10 * max(1, len(dist_tracked))))
- if len(deletes) > threshold and not args.force:
- _eprint(
- f"ERROR: reconcile would delete {len(deletes)} files "
- f"(> guard threshold {threshold}). Refusing — staging looks wrong. "
- f"Re-run with --force only after confirming this is intended."
- )
- _write_report(
- args.report,
- {"aborted": "mass_deletion_guard", "would_delete": len(deletes),
- "threshold": threshold, "dist_tracked": len(dist_tracked)},
- )
- return 3
-
- for r in deletes:
- (dist / r).unlink(missing_ok=True)
-
- adds = 0
- mods = 0
- for rel in staging_files:
- dst = dist / rel
- if dst.exists():
- mods += 1
- else:
- adds += 1
- dst.parent.mkdir(parents=True, exist_ok=True)
- dst.write_bytes((staging / rel).read_bytes())
-
- report = {
- "dist_tracked_before": len(dist_tracked),
- "staged_files": len(staging_files),
- "planned_adds": adds,
- "planned_mods": mods,
- "deletes": deletes,
- "delete_count": len(deletes),
- "kept_dist_only": kept,
- }
- _write_report(args.report, report)
- print(
- f"reconcile: ~{adds} adds, ~{mods} overwrites, {len(deletes)} deletes, "
- f"{len(kept)} dist-only kept. Run `git -C <dist> add -A && git status` "
- f"for the authoritative diff."
- )
- return 0
-
-
-# ----------------------------------------------------------------------------
-# verify (integrity: nothing got silently dropped; imports resolve)
-# ----------------------------------------------------------------------------
-_INTERNAL_IMPORT_RX = re.compile(
- r"^([ \t]*)(?:from|import)[ \t]+(jarvis(?:\.[A-Za-z0-9_]+)+)", re.MULTILINE
-)
-
-
-def _module_candidates(dotted: str) -> list[str]:
- """jarvis.state.chat_store -> ['jarvis/state/chat_store.py',
- 'jarvis/state/chat_store/__init__.py']."""
- base = dotted.replace(".", "/")
- return [base + ".py", base + "/__init__.py"]
-
-
-def cmd_verify(args: argparse.Namespace) -> int:
- """Catch the 'ship-broken-release' failure (Risk R2).
-
- Two checks, both fail-closed:
- 1. Completeness — every file in the clean staged tree must actually be
- committed in the dist clone. The classic trap is `git add -A` honouring
- the dist .gitignore and SILENTLY dropping files that are tracked in the
- working repo only because they were force-added there (e.g. jarvis/state
- vs the unanchored `state/` ignore rule). Run AFTER `git add`.
- 2. Internal-import resolution — every `import jarvis.x.y` in the staged
- tree must resolve to a file that is actually in the staged tree. Catches
- a module that is imported but untracked (so it never shipped) or
- denylisted-yet-imported.
- """
- staging = Path(args.staging).resolve()
- dist = Path(args.dist).resolve()
-
- staged = sorted(
- p.relative_to(staging).as_posix() for p in staging.rglob("*") if p.is_file()
- )
- staged_set = set(staged)
- committed = set(_git_tracked(dist))
-
- missing_from_commit = [s for s in staged if s not in committed]
-
- # Top-level unresolved imports break at import/boot time => BLOCK.
- # Indented (lazy, inside a function/try) ones only fail when that path runs
- # and are usually pre-existing working-repo dead imports => WARN, so an
- # unrelated latent bug doesn't make the repo permanently un-shippable.
- unresolved_block: list[dict] = []
- unresolved_warn: list[dict] = []
- for path, data in _iter_text_files(staging):
- if path.suffix != ".py":
- continue
- rel = path.relative_to(staging).as_posix()
- text, _ = _decode(data)
- seen: set[tuple[str, bool]] = set()
- for m in _INTERNAL_IMPORT_RX.finditer(text):
- indent, mod = m.group(1), m.group(2)
- top_level = indent == ""
- key = (mod, top_level)
- if key in seen:
- continue
- seen.add(key)
- if not any(c in staged_set for c in _module_candidates(mod)):
- row = {"file": rel, "module": mod, "top_level": top_level}
- (unresolved_block if top_level else unresolved_warn).append(row)
-
- report = {
- "staged_files": len(staged),
- "committed_files": len(committed),
- "missing_from_commit_count": len(missing_from_commit),
- "missing_from_commit": missing_from_commit,
- "unresolved_toplevel_count": len(unresolved_block),
- "unresolved_toplevel": unresolved_block,
- "unresolved_lazy_count": len(unresolved_warn),
- "unresolved_lazy": unresolved_warn,
- }
- _write_report(args.report, report)
-
- ok = not missing_from_commit and not unresolved_block
- print(
- f"verify: {len(missing_from_commit)} staged files MISSING from the commit, "
- f"{len(unresolved_block)} top-level broken imports (BLOCK), "
- f"{len(unresolved_warn)} lazy broken imports (warn)."
- )
- for x in missing_from_commit[:30]:
- _eprint(f" DROPPED (in staging, not committed): {x}")
- for u in unresolved_block[:30]:
- _eprint(f" BROKEN IMPORT (top-level): {u['file']} -> {u['module']}")
- for u in unresolved_warn[:30]:
- _eprint(f" warn lazy import: {u['file']} -> {u['module']}")
- return 0 if ok else 2
-
-
-# ----------------------------------------------------------------------------
-# set-version
-# ----------------------------------------------------------------------------
-def cmd_set_version(args: argparse.Namespace) -> int:
- tree = Path(args.tree).resolve()
- version = args.version.lstrip("v")
- if not re.fullmatch(r"\d+\.\d+\.\d+", version):
- _eprint(f"ERROR: version '{version}' is not X.Y.Z")
- return 1
-
- targets = {
- tree / "pyproject.toml": (
- re.compile(r'^(version\s*=\s*")[^"]*(")', re.MULTILINE),
- rf'\g<1>{version}\g<2>',
- ),
- tree / "jarvis" / "__init__.py": (
- re.compile(r'^(__version__\s*=\s*")[^"]*(")', re.MULTILINE),
- rf'\g<1>{version}\g<2>',
- ),
- }
- changed = []
- for path, (rx, repl) in targets.items():
- if not path.exists():
- _eprint(f"ERROR: expected version file missing: {path}")
- return 1
- text, marker = _decode(path.read_bytes())
- new, n = rx.subn(repl, text, count=1)
- if n != 1:
- _eprint(f"ERROR: could not find version line in {path}")
- return 1
- path.write_bytes(_encode(new, marker))
- changed.append(str(path.relative_to(tree)))
-
- print(f"set-version: {version} written to {', '.join(changed)}")
- return 0
-
-
-def _write_report(report_path: str | None, payload: dict) -> None:
- if report_path:
- Path(report_path).write_text(json.dumps(payload, indent=2), "utf-8")
-
-
-# ----------------------------------------------------------------------------
-def main(argv: list[str] | None = None) -> int:
- parser = argparse.ArgumentParser(description=__doc__)
- sub = parser.add_subparsers(dest="cmd", required=True)
-
- b = sub.add_parser("build", help="export + denylist + scrub into a staging dir")
- b.add_argument("--working", required=True, help="working repo root")
- b.add_argument("--staging", required=True, help="empty staging dir to fill")
- b.add_argument("--skill-dir", required=True, help="this skill's directory")
- b.add_argument("--report", help="write build report JSON here")
- b.set_defaults(func=cmd_build)
-
- s = sub.add_parser("scan", help="fail-closed secret/PII scan over a tree")
- s.add_argument("--tree", required=True, help="tree to scan (staging or dist)")
- s.add_argument("--skill-dir", required=True, help="this skill's directory")
- s.add_argument("--report", help="write scan report JSON here")
- s.set_defaults(func=cmd_scan)
-
- r = sub.add_parser("reconcile", help="make the dist tree equal the staged tree")
- r.add_argument("--staging", required=True, help="clean staged tree")
- r.add_argument("--dist", required=True, help="fresh distribution clone")
- r.add_argument("--skill-dir", required=True, help="this skill's directory")
- r.add_argument("--report", help="write reconcile report JSON here")
- r.add_argument("--force", action="store_true", help="override mass-deletion guard")
- r.set_defaults(func=cmd_reconcile)
-
- vf = sub.add_parser("verify", help="integrity: staged files committed + imports resolve")
- vf.add_argument("--staging", required=True, help="clean staged tree")
- vf.add_argument("--dist", required=True, help="dist clone (after git add)")
- vf.add_argument("--report", help="write verify report JSON here")
- vf.set_defaults(func=cmd_verify)
-
- v = sub.add_parser("set-version", help="set version in a staged tree")
- v.add_argument("--tree", required=True, help="staged tree root")
- v.add_argument("--version", required=True, help="X.Y.Z (leading v ok)")
- v.set_defaults(func=cmd_set_version)
-
- args = parser.parse_args(argv)
- return args.func(args)
-
-
-if __name__ == "__main__":
- raise SystemExit(main())