Consolidate to single harness: icebox cmd/routing, keep cmd/hyperguild + ingestion (#75) #76

Merged
mathias merged 2 commits from feat/consolidate-single-harness into main 2026-07-01 16:27:06 +00:00
Owner

Executes #75 — subtraction + verification only, guarded by regression tests at each step.

Verdict: clean-cut

What was iceboxed (recoverable at tag icebox/cmd-routing-2026-07-01 / branch icebox/cmd-routing, commit 00e5f62)

  • cmd/routing/, internal/routing/
  • internal/skills/{review,debug,retrospective,trainer,project}/ (each imported solely by cmd/routing — verified)
  • Dockerfile.routing
  • cd.yml: routing image build + infra bump + Flux-wait/rollout-verify (ingestion build/deploy unchanged)

Kept

  • cmd/hyperguild, ingestion/, internal/tier (used by cmd/hyperguild and skills/org — not routing-only), internal/skills/{brain,org,sessionlog} (per #75; already orphaned pre-cut).

Dependency check (step 2)

  • cmd/hyperguild transitive in-module deps = only internal/tier. Zero coupling into routing/entangled-skill packages.
  • Every removal-set package imported only by cmd/routing; no kept package imports the removal set (leak check clean).

Regression (steps 1 + 5)

Module Baseline Post-cut
root (supervisor) 21 ok / 0 fail 14 ok / 0 fail (−7 = exactly the removed set)
ingestion 24 ok / 0 fail 24 ok / 0 fail (byte-identical)

Diff = only the 7 expected deletions; no package that still exists regressed. go vet clean.

Live smoke (step 6)

  • hyperguild brain query "loop economics…" → real BM25 hits from brain-mcp (top: loop-economics-inversion-2026-06).
  • hyperguild mode client-local → valid .mcp.json with [brain, gitea], no routing.

Step 7 — connections

  • .mcp.json: added gitea-mcp (git-mcp.d-ma.be, Bearer ${GITEA_MCP_TOKEN}) alongside brain.
  • mode.go: all modes now emit brain + gitea (audit-trail invariant); removed the client-local routing entry (iceboxed koala:30310). Tests + README updated.

⚠️ Flagged (separate scope — not this repo)

The live k8s routing deployment (infra repo k3s/apps/routing/) still runs its last image; CD no longer rebuilds/redeploys it. Tearing that down is a separate infra-repo task. config/supervisor/*.md routing prompts left as orphaned data.

See ICEBOX.md. Refs #75, infra#170, infra#174.

🤖 Generated with Claude Code

Executes #75 — subtraction + verification only, guarded by regression tests at each step. ## Verdict: `clean-cut` ## What was iceboxed (recoverable at tag `icebox/cmd-routing-2026-07-01` / branch `icebox/cmd-routing`, commit `00e5f62`) - `cmd/routing/`, `internal/routing/` - `internal/skills/{review,debug,retrospective,trainer,project}/` (each imported **solely** by `cmd/routing` — verified) - `Dockerfile.routing` - `cd.yml`: routing image build + infra bump + Flux-wait/rollout-verify (ingestion build/deploy **unchanged**) ## Kept - `cmd/hyperguild`, `ingestion/`, `internal/tier` (used by cmd/hyperguild **and** skills/org — not routing-only), `internal/skills/{brain,org,sessionlog}` (per #75; already orphaned pre-cut). ## Dependency check (step 2) - `cmd/hyperguild` transitive in-module deps = **only `internal/tier`**. Zero coupling into routing/entangled-skill packages. - Every removal-set package imported only by `cmd/routing`; no kept package imports the removal set (leak check clean). ## Regression (steps 1 + 5) | Module | Baseline | Post-cut | |---|---|---| | root (`supervisor`) | 21 ok / 0 fail | **14 ok / 0 fail** (−7 = exactly the removed set) | | `ingestion` | 24 ok / 0 fail | **24 ok / 0 fail** (byte-identical) | Diff = only the 7 expected deletions; no package that still exists regressed. `go vet` clean. ## Live smoke (step 6) - `hyperguild brain query "loop economics…"` → real BM25 hits from brain-mcp (top: `loop-economics-inversion-2026-06`). - `hyperguild mode client-local` → valid `.mcp.json` with `[brain, gitea]`, **no routing**. ## Step 7 — connections - `.mcp.json`: added gitea-mcp (`git-mcp.d-ma.be`, Bearer `${GITEA_MCP_TOKEN}`) alongside brain. - `mode.go`: all modes now emit brain + gitea (audit-trail invariant); removed the client-local `routing` entry (iceboxed `koala:30310`). Tests + README updated. ## ⚠️ Flagged (separate scope — not this repo) The **live k8s routing deployment** (`infra` repo `k3s/apps/routing/`) still runs its last image; CD no longer rebuilds/redeploys it. Tearing that down is a separate infra-repo task. `config/supervisor/*.md` routing prompts left as orphaned data. See `ICEBOX.md`. Refs #75, infra#170, infra#174. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
mathias added 2 commits 2026-07-01 11:27:58 +00:00
Consolidate to the hyperguild-alone harness that ran the infra#170 loop-1
experiment (cmd/hyperguild + brain-mcp; routing/injection machinery off).
Verified cmd/hyperguild has zero transitive dep on internal/routing or
cmd/routing's packages (imports only internal/tier). Removed the routing
path, which is dormant from the live session (.mcp.json wires only brain-mcp)
and entangled with the survivorship-biased pass-rate router (infra#174).

Iceboxed (recoverable at tag icebox/cmd-routing-2026-07-01 / branch
icebox/cmd-routing, commit 00e5f62):
- cmd/routing/, internal/routing/
- internal/skills/{review,debug,retrospective,trainer,project}/
  (each imported solely by cmd/routing — verified)
- Dockerfile.routing
- cd.yml: routing image build + infra bump + Flux-wait/rollout-verify
  (ingestion build/deploy unchanged)

Kept: cmd/hyperguild, ingestion/, internal/tier (used by cmd/hyperguild +
skills/org), internal/skills/{brain,org,sessionlog} (per #75; already orphaned).

Regression: root module 21→14 pkgs (−7 = exactly the removed set, no other
breakage); ingestion 24/24 unchanged. See ICEBOX.md. Refs #75, infra#170, #174.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat(mode): brain+gitea in all modes; drop iceboxed routing entry (#75)
CI / Lint / Test / Vet (pull_request) Successful in 12s
CI / Mirror to GitHub (pull_request) Has been skipped
a7db0dd00d
Step 7 of the consolidation: reflect gitea-mcp as an available connection
(Gitea-as-audit-trail is an invariant going forward) and stop emitting the
now-iceboxed routing pod.

- cmd/hyperguild mode.go: every mode (cloud/client-local/sovereign) now lists
  brain + gitea; removed the client-local `routing` entry (koala:30310, the
  iceboxed pod). Tests updated to the new contract.
- .mcp.json: add gitea-mcp (git-mcp.d-ma.be, Bearer ${GITEA_MCP_TOKEN}).
- cmd/hyperguild/README: modes doc updated (brain+gitea, no routing).

Refs #75.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
mathias merged commit 0785f14220 into main 2026-07-01 16:27:06 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mathias/hyperguild#76