Repository navigation
feat(launcher): claude-pmoves-mavis — separate run name for the Mavis/MiniMax overlay #3282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
372c040
0ce4185
168ee37
b631293
e05ddbc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| @echo off | ||
| REM claude-pmoves-5090-mavis.cmd -- Windows wrapper. Calls the .ps1 twin. | ||
| REM See claude-pmoves-5090-mavis.sh for the WHY. | ||
| powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0claude-pmoves-5090-mavis.ps1" %* |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # claude-pmoves-5090-mavis.ps1 -- 5090 identity pin + Mavis overlay (PowerShell). | ||
| # See claude-pmoves-5090-mavis.sh for the WHY. | ||
|
|
||
| $ErrorActionPreference = 'Stop' | ||
| $env:PMOVES_NODE_ID = '5090' | ||
| $wrapper = Join-Path (Split-Path -Parent $PSCommandPath) 'claude-pmoves-mavis.ps1' | ||
| & $wrapper @args | ||
| exit $LASTEXITCODE |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #!/usr/bin/env bash | ||
| # claude-pmoves-5090-mavis.sh -- 5090 node-identity pin + Mavis/MiniMax overlay. | ||
| # Sits alongside claude-pmoves-5090.sh; same pattern (set PMOVES_NODE_ID, | ||
| # exec the corresponding -mavis launcher so the -mavis side carries the | ||
| # MiniMax overlay while the identity pin keeps the 5090 binding intact). | ||
| # | ||
| # See claude-pmoves-mavis.sh for the WHY on the separate launcher name. | ||
| # See claude-pmoves-5090.sh for the WHY on per-node identity pinning. | ||
| # | ||
| # Wezterm / tmux env precedence: PMOVES_NODE_ID is set LAST so the identity | ||
| # registry binding wins over any parent-shell export. Same invariant as | ||
| # claude-pmoves-5090.sh. | ||
|
|
||
| set -u | ||
| export PMOVES_NODE_ID="5090" | ||
| exec "$(dirname "${BASH_SOURCE[0]:-$0}")/claude-pmoves-mavis.sh" "$@" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| @echo off | ||
| REM claude-pmoves-mavis.cmd -- Windows wrapper for the .ps1 twin. | ||
| REM See claude-pmoves-mavis.sh for the WHY. | ||
| powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0claude-pmoves-mavis.ps1" %* |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # claude-pmoves-mavis.ps1 -- thin PowerShell twin of claude-pmoves-mavis.sh. | ||
| # See claude-pmoves-mavis.sh for the WHY (separate-run-name opt-in for the | ||
| # Mavis/MiniMax SDK overlay; default launcher stays clean Claude Code). | ||
| # | ||
| # Usage: powershell -ExecutionPolicy Bypass -File deploy\provision\claude-pmoves-mavis.ps1 [args] | ||
| # (or double-click / run claude-pmoves-mavis.cmd, which calls this) | ||
|
|
||
| $ErrorActionPreference = 'Stop' | ||
| $SELF_DIR = Split-Path -Parent $PSCommandPath | ||
| $MAIN = Join-Path $SELF_DIR 'claude-pmoves.ps1' | ||
|
|
||
| if (-not (Test-Path $MAIN)) { | ||
| Write-Host "[claude-pmoves-mavis] ERROR: main launcher not found: $MAIN" -ForegroundColor Red | ||
| exit 1 | ||
| } | ||
|
|
||
| # Pin the backend unless operator-set. (Inherited $env:PMOVES_CLAUDE_BACKEND wins.) | ||
| if (-not $env:PMOVES_CLAUDE_BACKEND) { | ||
| $env:PMOVES_CLAUDE_BACKEND = 'minimax' | ||
| } | ||
|
|
||
| Write-Host "[claude-pmoves-mavis] launching with --backend=$($env:PMOVES_CLAUDE_BACKEND)" -ForegroundColor Cyan | ||
| & $MAIN --backend=$env:PMOVES_CLAUDE_BACKEND @args | ||
| exit $LASTEXITCODE |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| #!/usr/bin/env bash | ||
| # claude-pmoves-mavis.sh -- thin wrapper that pins --backend=minimax and execs | ||
| # the main claude-pmoves.sh. Sits alongside claude-pmoves.sh; not a duplicate | ||
| # of its env-strip / env.shared / blocklist logic. | ||
| # | ||
| # WHY a SEPARATE launcher (not a flag on claude-pmoves): | ||
| # Per operator directive on 2026-10-03: vanilla claude-pmoves stays clean | ||
| # Claude Code settings (Claude Max by default). The Mavis/MiniMax SDK overlay | ||
| # is opt-in by RUN NAME, not by flag. claude-pmoves-mavis is the explicit | ||
| # opt-in. The launcher's --backend=minimax underneath is the implementation | ||
| # detail; the run-name is the contract. | ||
| # | ||
| # Defaults to env-PMOVES_CLAUDE_BACKEND=minimax. Operator can override with | ||
| # PMOVES_CLAUDE_BACKEND=anthropic to temporarily route clean even when invoking | ||
| # the -mavis launcher name (handy for A/B testing). | ||
| # | ||
| # Usage: claude-pmoves-mavis.sh [claude-args...] | ||
| # All args pass through to the main claude-pmoves.sh after --backend=minimax | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔥 The Roast: The comment says "the run-name is the contract" and "no flag-parsing on this wrapper" — but because this wrapper prepends 🩹 The Fix: Either reject a second 📏 Severity: suggestion Reply with |
||
| # is prepended. No flag-parsing on this wrapper -- it's intentionally minimal. | ||
|
|
||
| set -u | ||
|
|
||
| SELF_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)" | ||
| MAIN="$SELF_DIR/claude-pmoves.sh" | ||
|
|
||
| if [ ! -x "$MAIN" ]; then | ||
| echo "[claude-pmoves-mavis] ERROR: main launcher not found or not executable: $MAIN" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Pin the backend unless the operator already set it explicitly. | ||
| # (PMOVES_CLAUDE_BACKEND inherited from process env wins over the default.) | ||
| : "${PMOVES_CLAUDE_BACKEND:=minimax}" | ||
| export PMOVES_CLAUDE_BACKEND | ||
|
|
||
| echo "[claude-pmoves-mavis] launching with --backend=$PMOVES_CLAUDE_BACKEND" >&2 | ||
| exec "$MAIN" --backend="$PMOVES_CLAUDE_BACKEND" "$@" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔥 The Roast: You shipped a shebang'd 🩹 The Fix: Set the exec bit in git itself for both new bash launchers: ( 📏 Severity: warning Reply with |
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,52 @@ | ||||||||||
| name: HyPeRAGInT | ||||||||||
| description: | | ||||||||||
| HyPeRAGInT persona — per-agent identity at "level-11 / Spynel framing / | ||||||||||
| post-4090-claude" per pmoves/docs/architecture/DAMAGE_CONTROL_STRUCTURED_POLICY_RFC.md:280. | ||||||||||
| Singular form of the HyPeRAGInTZ moniker (the integrated fabric — harness + | ||||||||||
| config + model support + PMOVES.AI integration — with Hi-RAG v2 + Cipher | ||||||||||
| as first-class organs, per pmoves/docs/AGENTS/AGNOTE4482.md:1684). | ||||||||||
|
|
||||||||||
| Built FROM POWERFULMOVES/PMOVES-MiniMaXX-AGInT (customization + build, NOT | ||||||||||
| rename, per operator directive 2026-10-05). Home of HyPeRAGInTZ will be | ||||||||||
| POWERFULMOVES/PMOVES-registry renamed AFTER a few more additions land. | ||||||||||
|
|
||||||||||
| Profile reflects honest cognitive shape for a HyPeRAGInT instance: | ||||||||||
| - harness-native (Claude Code + coder harness + KiloCode harness + Codex | ||||||||||
| harness all runnable side-by-side via the claude-pmoves-{node}-{suite}.{sh,ps1} | ||||||||||
| family of launchers) | ||||||||||
| - generate-heavy for long reasoning (Hi-RAG v2 RAG + Cipher mindmap recall | ||||||||||
| both pre-load context — fewer turns needed in-band) | ||||||||||
| - low mesh-offload threshold because 1M context on Opus means most work | ||||||||||
| stays in-band; offload only to GPU peers (5090/SPARK/EKWS) when the | ||||||||||
| task fits a smaller specialised model | ||||||||||
| - full-artifact sharing: collaborative review/auditing is the point, and | ||||||||||
| the artifact store is human-readable | ||||||||||
| weights: | ||||||||||
| decode: 0.20 | ||||||||||
| retrieve: 0.20 | ||||||||||
| generate: 0.60 | ||||||||||
| band_emphasis: | ||||||||||
| low: 0.20 | ||||||||||
| mid: 0.30 | ||||||||||
| high: 0.50 | ||||||||||
| mesh_offload_threshold: | ||||||||||
| gpu_free_mem_gb: 1 | ||||||||||
| latency_ms: 400 | ||||||||||
| sharing: | ||||||||||
| shapes_only_default: false | ||||||||||
| allow_artifacts_on_approve: true | ||||||||||
| # HyPeRAGInT-specific additions (beyond the standard form): | ||||||||||
| harness_target: | ||||||||||
| registry: PMOVES-registry # home of HyPeRAGInTZ (rename pending) | ||||||||||
| launcher_family: claude-pmoves-{node}-{suite} | ||||||||||
| default_suite: mavis # PMOVES_CLAUDE_BACKEND=minimax on first boot | ||||||||||
| memory_overrides: | ||||||||||
| cipher_mindmap_local: true # L1 per-node Neo4j via Cipher :8105 | ||||||||||
| hirag_v2_index_local: true # L3 Qdrant + Hi-RAG gateway :8086 | ||||||||||
| fleet_sync_l2: true # sync to Z890 Neo4j via Tailscale (L2) | ||||||||||
| miniagent_policy: | ||||||||||
| spawn_protocol: scoped-hyperaagint-instance # miniagents are HyPeRAGInT not Archon | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔥 The Roast: 🩹 The Fix:
Suggested change
📏 Severity: nitpick Reply with
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔥 The Roast: Still here from the last review still waving: 🩹 The Fix:
Suggested change
📏 Severity: suggestion Reply with |
||||||||||
| acp_registry_entry: required # each spawned miniagent gets a PMOVES-registry entry | ||||||||||
| lifecycle: # after-execution archive | ||||||||||
| capture: "after-task-complete" | ||||||||||
| targets: [L1, L2] # snapshot to per-node + fleet cipher | ||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3333,6 +3333,8 @@ VILLAGE RULE: delivery delegated to a delivery-agent body; control and memory ar | |
| - `2026-10-08T17:11:06Z` RELEASE `B850-CLAUDE (Knuckles)` branch: `feat/b850-memory-travels` · scope: Landed in PR #3313 (merge 23b3aada4). - Memory and bus reachability: the roster normalizer P6 rewrites the docker-only NATS host to loopback for host-run MCP servers; the launcher checks for brv; cipher checkpoints are stamped with harness and model. - Fleet cipher 401 stays documented, not fixed: each node's cipher authenticates against its own token store. The stopgap (minting a token on Z890) is still pending with the operator. | ||
| - `2026-10-08T17:11:14Z` RELEASE `B850-CLAUDE (Knuckles)` branch: `feat/claude-family-identity-bindings` · scope: Landed in PR #3313 (merge 23b3aada4). - Aggregate identity resolver: an identity binds on any node, and the register name off home is <BASE> (<node>). - The claim-collision owner key is now (identity, node). Per the operator decision of 2026-10-08, identities with no home are also split per node, and the model is never part of the key. - Corpus control: 0 of 792 owner reads changed for homed identities; 47 changed for identities with no home. - One lane correctly reopens: row 2026-07-28T16:30:00Z CLAIM CRUSH-GLM52 (SPARK) feat/cipher-agent-scope. A bare CRUSH RELEASE on Knuckles about PR #2288 had closed it, and that branch has no PR. Its owner, crush on spark, should finish it or release it by name. | ||
| - `2026-10-08T17:11:15Z` CLAIM `B850-CLAUDE (Knuckles)` branch: `docs/agint-passport-design` · **TTL 72h (expires `2026-10-11T17:11:15Z`)** · scope: AGInT PASSPORT DESIGN (operator go 2026-10-08, after #3313 merged). DESIGN DOC ONLY, no code; security review comes before any implementation. Deliverable: plans/AGINT_PASSPORT_DESIGN_2026-10-08.md, a living, token-backed agent card per identity and a CHIT bundle per identity, covering: - the identity umbrella (voice, theme, avatar, glyph, signature card, ACK; aliases map back to it); - a per-identity Ed25519 key via pmoves-keygen and keygen_cards.py, with domain-separated signing on the tally-signer-ed25519 pattern; - travels as a signed, hash-chained log anchored to cgp.v2 merkle roots, mirrored to Neo4j once the :Agent key conflict is settled; - MEASURED node verification at launch: a fingerprint probe compared with node_evidence in the vocabulary, with a match / new-node / could-not-measure verdict; - model provenance verified at launch against the model registry and provider verifier; the model is attributed but never part of the key; - forks and lineage; - call-me info and fleet visibility over NATS; - token registration for all AGInTZ: soulbound standing credit from kept commitments, minting rules, the backing-mix decision, and no governance votes; - cipher signed-request auth. Reviewers invited: Z890-CLAUDE (glances), spark-claude (Laya, second-node cross-check), the A0 corpus owner (jev); chit-compliance-reviewer and code-review for security. | ||
| - `2026-10-05T04:30:00Z` CLAIM `Mavis (5090-claude)` branch: `feat/claude-pmoves-mavis-launcher` · **TTL 24h (expires `2026-10-06T04:30:00Z`)** · scope: SLICE A from pmoves/docs/architecture/HYPERAGINTZ_MONIKER_DESIGN.md. Build claude-pmoves-mavis.{sh,ps1,cmd} as a thin wrapper that pins PMOVES_CLAUDE_BACKEND=minimax and execs the main launcher with --backend=minimax (PR #3184 mechanism). Build per-node claude-pmoves-5090-mavis.{sh,ps1,cmd} that pins PMOVES_NODE_ID=5090 then execs the -mavis wrapper. Create pmoves/configs/agents/forms/hyperagint.yaml following the existing 5090-CLAUDE.yaml schema (extends with harness_target / memory_overrides / miniagent_policy per the design doc). Tests: pmoves/tools/tests/test_claude_pmoves_mavis.py 15/15 PASS locally before push per the 2026-10-03 verify-locally-first directive. LEARNINGS file at pmoves/docs/AGENTS/claude_pmoves_mavis_launcher_LEARNINGS.md (4-bucket + 5-class taxonomy). Default-launcher backwards-compat regression asserted. Cross-launcher blocklist at claude-pmoves.ps1:17-19 inherited from PR #3184 unchanged (over-removal is a known limitation, will be narrowed in a future slice). Built FROM PMOVES-MiniMaXX-AGInT (per operator directive 2026-10-05). PMOVES-HyPeRAGInTZ rename + ACP registry link + Cipher mindmap + Hi-RAG v2 + PMOVES integration contract + miniagent spawn all deferred to slices B-F per design doc. | ||
| - `2026-10-08T16:10:00Z` NOTE `Mavis (5090-claude)` branch: `feat/claude-pmoves-mavis-launcher` scope: **Post-flip CI remediation per operator `b -> a` (2026-10-08).** Two regressions surfaced after the rebase onto origin/main: (1) `test_bash_wrapper_exists_and_is_executable` failed on CI because the new `deploy/provision/claude-pmoves-mavis.sh` wrapper was committed with mode 100644 (no +x bit) on a Windows worktree — fixed via `git update-index --chmod=+x deploy/provision/claude-pmoves-mavis.sh deploy/provision/claude-pmoves-mavis.cmd`. (2) `test_manifest_matches_disk_after_regen` failed because 25 launcher files in `deploy/provision/` (including `launchers.manifest.json`) had drifted from the registry-driven `pmoves_launcher_generator` output after the rebase replayed main's launcher files under slice A's wrapper commits — fixed by re-running the generator (`python -m pmoves.tools.pmoves_launcher_generator`) and committing the 25 re-emitted files. Local: 3/3 TestByteStability + 1/1 MavisWrapperShapeTests::test_bash_wrapper_exists_and_is_executable PASS. LEARNINGS at `pmoves/docs/AGENTS/claude_pmoves_mavis_postflip_LEARNINGS.md` (4-bucket + 5-class taxonomy). Open follow-ups: (a) pre-push hook to run `pmoves_launcher_generator --check` and fail on drift; (b) pre-push hook to assert bash wrapper `+x` bit on Windows-committed files. Both are separate lanes. Slice G follow-up: 12 G.2 case-sensitivity failures (rename `MiniMax-M3.yaml` to `minimax-m3.yaml` to match Linux fs) tracked separately. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔥 The Roast: The appended NOTE row tells every future register reader that the launcher drift was "fixed by re-running the generator and committing the 25 re-emitted files" and points them at 🩹 The Fix: Since the register is append-only, follow with a short correcting NOTE: the 25-file regen + postflip LEARNINGS were superseded by main's own absorption, with the drift's actual landing point linked. Or reword this row before merge. 📏 Severity: suggestion Reply with |
||
| - `2026-09-24T17:47:56Z` NOTE `agent0-sidecar (A0 digital-twin)` branch: `RANCH` · scope: Cipher/ByteRover enhancement review delivered at reviews/cipher-enhancement-review-2026-09-24.md: Pmoves-cipher is 45 ahead 0 behind vs campfirein main with same-day hardening; the other three forks are zero-commit mirrors; v4 is SaaS-only so fork stays v3 LTS; 8 ranked recommendations include CHIT-signing the memory trail and brv-bridge adoption. Also measured PMOVES-neo4j vs upstream 2026.09: 72 ahead reduces to exactly 2 PMOVES commits, both docs-only touching PMOVES.AI_INTEGRATION.md which is absent upstream, so a clean shallow replay onto 2026.09 in a tmp clone is the sanctioned update path after mindmap verify; PMOVES.AI_INTEGRATION.md surface is mostly TBD placeholders. E2B self-host: upstream runtime repo now ships embed single-machine compose package requiring KVM; this A0 container measured no GPU and no docker socket so 5090 bring-up is operator-host work via Known Roads; runbook drafted at pmoves/docs/operations/E2B_EMBED_5090_BRINGUP.md with E2B_ACCESS_TOKEN and E2B_API_KEY already defined in secrets_manifest_v2. | ||
| - `2026-09-24T18:04:27Z` NOTE `agent0-sidecar (A0 digital-twin)` branch: `RANCH` · scope: neo4j 2026.09 sync REPLAYED AND VERIFIED per plan: branch chore/2026.09-sync = upstream 2026.09 plus exactly the two docs commits, cherry-pick clean, diff vs upstream is only PMOVES.AI_INTEGRATION.md plus 39 lines, packaged as two format-patches and one git bundle under reviews/neo4j-2026.09-sync ready for a credentialed node to push and PR via the fleet-fork-sync road. Host access measured: supervisor facade live on host.docker.internal 8080 with 16 commands including the e2b surface, but e2b.sandbox.create fails with Failed to reach E2B server so the E2B embed bring-up remains the blocker for sandbox-based GPU verification; facade has no raw shell command. Sidecar has no push credentials, so PR opening is a credentialed-node or operator step. | ||
| - `2026-09-24T18:18:24Z` CLAIM `agent0-sidecar (A0 digital-twin)` branch: `sync/upstream-2026-09-24` · **TTL 48h (expires `2026-09-26T18:18:24Z`)** · scope: Push and PR the verified neo4j 2026.09 sync on POWERFULMOVES/PMOVES-neo4j: upstream 2026.09 plus the two PMOVES docs commits replayed clean (diff vs upstream is only PMOVES.AI_INTEGRATION.md plus 39 lines), GITHUB_TOKEN auth per operator 2026-09-24. Mindmap cypher smoke runs when a neo4j service is up; merge stays gated per closeout flow. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 The Roast: Patch 2's exec-bit remediation (the
git update-index --chmod=+x deploy/provision/claude-pmoves-mavis.{sh,cmd}the AGNOTE NOTE row brags about) fixed the plain -mavis wrapper only — the per-node pin THIS file represents, plus itsclaude-pmoves-5090-mavis.cmdtwin, are still committed at mode 100644 while the sibling they mirror carries 100755. The Windows-worktree mode disease got a targeted cure for the patient with the failed test and left the asymptomatic one out in the hallway. And nothing will catch the relapse:test_5090_mavis_existsasserts only existence, while the one executability test (test_bash_wrapper_exists_and_is_executable) covers just the plain wrapper. A direct./deploy/provision/claude-pmoves-5090-mavis.shdies with Permission denied — the exact CI failure class the NOTE row says was fixed.🩹 The Fix:
git update-index --chmod=+x deploy/provision/claude-pmoves-5090-mavis.sh deploy/provision/claude-pmoves-5090-mavis.cmd, and extendtest_5090_mavis_exists(or the shape class) withos.access(path, os.X_OK)so the +x invariant is pinned per-variant, not once for the family.📏 Severity: warning
Reply with
@kilocode-bot fix itto have Kilo Code address this issue.