| 1 | # Hub assumptions at the forge seam |
| 2 | |
| 3 | This maps all 15 rows in the approved connector spec against github/seam. |
| 4 | Paths are repository-relative; line numbers name this branch's implementation. |
| 5 | The original spec's references describe an older base. No GitHub runtime is |
| 6 | registered, and recognition by forgekey alone grants no work or access. |
| 7 | |
| 8 | | Assumption | Current locations | Step 2 disposition | |
| 9 | | --- | --- | --- | |
| 10 | | Repository keys | `internal/wire/forgekey/key.go:27`; `internal/runner/thin/forge.go:74`; `internal/runner/forge/publisher.go:420`; `internal/runner/forge/credential_file.go:79`; `internal/runner/thin/research.go:63`; `internal/equipo/chat/tools.go:556`; `internal/equipo/chat/projects.go:243`; `internal/equipo/chat/projects.go:246`; `internal/equipo/chat/projects.go:469`; `internal/equipo/chat/tools.go:957`; `internal/equipo/setup/projects.go:87`; `internal/runner/thin/forge.go:179` | Shared grammar/display helpers. Hub-only admission stays in place; legacy prefix checks explicitly preserve their old policy. Remote URL is still HTTPS plus key. | |
| 11 | | Credential files | `internal/runner/config.go:46`; `internal/runner/config.go:46`; `internal/runner/forge/credential_file.go:19`; `internal/runner/workspace/workspace.go:45`; `internal/runner/workspace/workspace.go:59`; `internal/runner/thin/run.go:197`; `internal/runner/thin/forge.go:106` | Same standing agent file, optional repository overrides, CLI and sandbox exclusions. Real hub is registered behind Forges; no GitHub credentials. | |
| 12 | | Clone and fetch | `internal/runner/thin/forge.go:153`; `internal/runner/thin/forge.go:170`; `internal/runner/thin/forge.go:411`; `internal/runner/thin/forge.go:491`; `internal/runner/thin/forge.go:631`; `internal/runner/thin/access_catalog.go:91`; `internal/runner/workspace/workspace.go:33` | Explicit Read or Push authority; username defaults to x. Existing URLs/passwords unchanged; read grants cannot write. | |
| 13 | | Reachability | `internal/runner/thin/forge.go:101`; `internal/runner/thin/forge.go:187`; `internal/runner/thin/access_catalog.go:18`; `internal/runner/thin/index.go:123`; `internal/wire/frames.go:348`; `internal/runner/thin/run.go:339`; `internal/wire/frames.go:318` | Same 55-second ETag hub list, checked read grants, 100-repository shallow catalog and hello fields. Router combines only each forge's own host entries. | |
| 14 | | Branch push | `internal/runner/thin/engineer.go:434`; `internal/runner/forge/branch.go:216`; `internal/wire/tasks.go:627`; `internal/runner/thin/engineer.go:497`; `internal/runner/thin/relay.go:485`; `internal/runner/thin/forges.go:174` | Same equipo branch rule, default protection and lease confirmation. Propose follows successful pushes and returns the hub branch URL without a request. Initial main uses Push authority too. Proposal failure preserves push success with a fixed diagnostic. | |
| 15 | | Hosted CI | `internal/runner/forge/ci.go:66`; `internal/runner/forge/ci.go:81`; `internal/runner/thin/forge.go:334`; `internal/runner/thin/judge_hosted.go:19`; `internal/runner/thin/judge.go:233`; `internal/runner/thin/forges.go:137` | HostedCI shape and hub transport unchanged; router forwards per host and keeps refusal sentinels. Feedback stays separate from trusted checks certificates. | |
| 16 | | Merge | `internal/runner/thin/mergestep.go:44`; `internal/runner/forge/merge.go:353`; `internal/runner/forge/merge.go:109`; `internal/runner/forge/merge.go:129`; `internal/runner/thin/forge.go:320`; `internal/runner/thin/mergestep.go:155`; `internal/wire/tasks.go:1027`; `internal/runner/thin/merge.go:118` | Only request/result type names lose Hub; every field and hub response/reason stays. Plain-git merge watch unchanged. | |
| 17 | | Repository creation | `internal/runner/thin/bridge.go:83`; `internal/runner/thin/forge.go:279`; `internal/runner/thin/forge.go:543` | Existing hub POST and first-commit behavior; no GitHub creation. Shared new-name validator preserves hub rules. | |
| 18 | | Project add and star | `internal/equipo/chat/http.go:89`; `internal/equipo/chat/http.go:86`; `internal/equipo/chat/projects.go:479`; `internal/equipo/chat/tools.go:756`; `internal/equipo/chat/stars.go:230`; `internal/equipo/app.go:328` | Hub allowlist and owner checks unchanged. Spec's missing device-star route was already delivered by the projects slice; PUT /api/v1/projects/{id}/star exists on this base. | |
| 19 | | Access requests | `internal/equipo/chat/access_request.go:12`; `internal/equipo/chat/tools.go:1013`; `internal/runner/thin/access_forge.go:28`; `internal/runner/thin/access_forge.go:44`; `internal/wire/access.go:63`; `internal/equipo/templates/chat.html:23`; `internal/equipo/chat_page.go:102` | AccessForge and existing command/link validation unchanged. Hostless access targets still belong to the hub; router delegates only to its hub service. | |
| 20 | | Links | `internal/equipo/chat/tasks.go:407`; `internal/equipo/work_pages.go:220`; `internal/equipo/task_merge.go:14` | Hub branch and repository URLs and approved merge-reference host unchanged; branch links share forgekey.HubBranchURL. ProposalRef is local only; no proposal wire field yet. | |
| 21 | | Prompts | `internal/runner/thin/claude.go:874`; `internal/runner/thin/engineer.go:606`; `internal/runner/thin/judge.go:984` | Shared display function retains exactly the old hub-prefix removal. Future non-hub names keep their host visible. | |
| 22 | | Audit | `internal/runner/forge/publisher.go:376`; `internal/runnerproto/report_validation.go:68`; `internal/equipo/chat/mergeauth.go:65`; `internal/equipo/chat/merge.go:224` | Legacy publication provider and every merge decision audit unchanged. | |
| 23 | | Previews | `internal/runner/thin/preview.go:52`; `internal/runner/thin/preview_devbox.go:35` | No forge dependency added. Existing runner tree, devbox and Carloku paths untouched. | |
| 24 | | Old engine | `internal/runner/forge/publisher.go:51`; `internal/runner/forge/description.go:28`; `internal/runner/forge/description_transport.go:31`; `internal/runner/runtime_workflow.go:138` | Still hub-only; no GitHub extension. Key validation delegates to the same shared hub grammar. | |
| 25 | |