# GitHub connector step 2: forge key and seam

Base: origin/main 00d09aa7. Scope: hub compatibility, no GitHub service,
credentials, project behavior, migrations or new wire fields.

1. Record the controller's completed scratch probe, exact calls and sanitized
   observed answers. Keep full merge table and CARLOS egress open.
2. Add wire/forgekey tests before code: closed hosts, bare hub keys,
   case-preserving GitHub keys and case-insensitive equality, rejected URL
   decorations and path escapes, shared display and existing hub rules.
3. Add runner seam tests before code: host routing with no fallback, explicit
   read/push use, optional CI/access forwarding, hub branch proposal without
   writes, git username default and explicit username. Rename merge types
   without changing their fields or existing assertions.
4. Route the production hub through Forges. Replace hub key parsing/display
   duplication with forgekey while retaining hub-only admission boundaries.
   Document every assumption in the approved spec with current file and line.
5. Break each new guard deliberately, observe its regression fail, restore it.
   Record test commands and mutation outcomes in the controller report.
6. Run pinned formatting, leaks, measured budgets, migrations, copy release,
   lane and fixture checks; full equipo, chat, thintest and runner tests.
   Linux CI decides runner tests that macOS cannot build.
7. Commit, run the postcommit dead-reference scan, push github/seam with the
   helper, wait for CI, and report the fixed SHA. Do not merge or deploy.

No device API or runner wire additions are planned. New GitHub lease and
proposal wire fields, a protocol bump and older-runner refusal tests belong
with the later implementation that can dispatch GitHub work. This slice must
continue to reject GitHub work at hub admission boundaries.

## Fable review follow-up, 2026-11-23

On the same branch after 176d61cb, add focused regressions before fixing:
truncated host keys, real fileForge routing, git username redaction and Heads,
per-call push authority, distinct hub identity, proposal failure after a good
push, operation error identity, and the existing branch-link spelling.
Break each guard and record the killing test. Preserve successful pushes and
carry only proposal_failed in the existing Reason field, as the controller
approved. Add Luna's approved fragment to copy.go and test sentence rendering.
Record the organisation manifest flow and explicitly leave the uncaptured
workflow refusal cause open. Repeat gates, full suites, postcommit reference
scan and Linux CI, without rewriting existing commits.
