Tasks: every link and every gh call names the GitHub it is on
Phase 3 of 3. Small, verifiable tasks; each
_Test:_names a row oftesting-plan.md.
Task list
[x] 1. The resolver
cli/the_loop/ghhost.py:github_host,api_base_for,host_of_api_base,host_from_remote;sessions.is_github_hostmade public.- Security-relevant (A1, A4): the grammar is applied before any interpolation; the remote is last and gated on a root.
- Depends on: none
- Requirements: R1.1, R1.2, R6.1
- Test:
T1 — uv run pytest cli/tests/test_ghhost.py
[x] 2. Minting with the host
cli/the_loop/graph/refs.py(host=""on both functions),graph/bootstrap.py(config["githubHost"],prRef),graph/runtime.py(derive_ref(..., host)).- Depends on: 1
- Requirements: R2.1–R2.3
- Test:
T2, T7
[x] 3. One
ghspelling, every writercli/the_loop/comments.py(gh_host_args,comment_argv,issue_argv,create_issue),linkage.py(existence_argvreuses it),reactions.py(ReactionTarget.host,_argv).- Depends on: 1
- Requirements: R4.1, R4.2, R4.4, R4.5
- Test:
T3
[x] 4. The poller
cli/the_loop/poller/github.py:RepoSpec.host/gh_repo/parse;GhClientmethods takehost; the provider passes it;ownsandclosure.- Depends on: 3
- Requirements: R4.1, R4.2, R5.1–R5.3
- Test:
T4
[x] 5. The graph integrations
cli/the_loop/graph/integrations/github.py:_ref_parts,GitHubCliargv,GitHubApibase derivation,_linked_pull_refs(host).- Depends on: 1, 3
- Requirements: R4.1–R4.4
- Test:
T5
[x] 6. The review brief
cli/the_loop/graph/hooks/review.py:_PULL_URLany host;_own_coords;_normalize_pullsand_state_pullsspell refs viaWorkItemRef.- Depends on: none
- Requirements: R3.1–R3.3
- Test:
T6
[x] 7. Schema, template, config, docs
- Both schema copies (byte-identical),
skills/the-loop/templates/cli-config.yaml,.the-loop/cli-config.yaml,docs/config/cli/integrations-options.md,polling-options.md,routing-options.md,docs/cli/concepts.md,docs/cli/state.md,skills/the-loop/reference/automation.md. - Depends on: 1
- Requirements: R1.3, R1.4, R5.1
- Test:
T8
- Both schema copies (byte-identical),
[ ] 8. Capability docs, decision, execution log, evidence
docs/capabilities/cli.md,docs/capabilities/channels.md,docs/decisions/decision-104.md(+ index),docs/specs/issue-311/execution-log.md,evidence/verification.md,evidence/security-review.md.- Depends on: 1–7
- Requirements: all
- Test:
T9, T10 — make check