PRD 0044: print parity across backends #147

Merged
didericis merged 4 commits from prd-0044-print-parity-across-backends into main 2026-06-02 12:15:25 -04:00
Collaborator

Closes #96.

PRD: c1a4fa756a/docs/prds/0044-print-parity-across-backends.md

Summary

  • Hoist git_gate_plan, egress_plan, agent_provision, and supervise_plan from the concrete BottlePlan subclasses to BottlePlan
  • Replace @abstractmethod print with a single concrete implementation on BottlePlan
  • Unify git gate rendering to name → upstream_host:upstream_port (from resolved plan, not manifest)
  • Unify egress rendering to include [auth:scheme] on both backends

Changes (1 commit)

  • docs/prds/0044-print-parity-across-backends.md — add PRD 0044 (Draft)
Closes #96. PRD: https://gitea.dideric.is/didericis/bot-bottle/src/commit/c1a4fa756a2f44289d53b1430f2debbb6bf3e7bb/docs/prds/0044-print-parity-across-backends.md ## Summary - Hoist `git_gate_plan`, `egress_plan`, `agent_provision`, and `supervise_plan` from the concrete `BottlePlan` subclasses to `BottlePlan` - Replace `@abstractmethod print` with a single concrete implementation on `BottlePlan` - Unify git gate rendering to `name → upstream_host:upstream_port` (from resolved plan, not manifest) - Unify egress rendering to include `[auth:scheme]` on both backends ## Changes (1 commit) - `docs/prds/0044-print-parity-across-backends.md` — add PRD 0044 (Draft)
didericis force-pushed prd-0044-print-parity-across-backends from c1a4fa756a to 46c74422c5 2026-06-02 11:55:42 -04:00 Compare
didericis added 4 commits 2026-06-02 12:12:13 -04:00
Move git_gate_plan, egress_plan, supervise_plan, and agent_provision
from DockerBottlePlan and SmolmachinesBottlePlan into BottlePlan.
Replace the abstract print method with a single concrete implementation
that renders git gate entries as "name → upstream_host:upstream_port"
and egress routes with conditional "[auth:scheme]" annotations.
Shared fixtures build DockerBottlePlan and SmolmachinesBottlePlan from
identical git_gate_plan and egress_plan inputs and assert that both
backends render the same git gate lines (name → host:port) and egress
lines (host [auth:scheme] when authenticated, host alone otherwise).
docs: mark PRD 0044 Active
test / unit (pull_request) Successful in 34s
test / integration (pull_request) Successful in 41s
test / unit (push) Successful in 34s
test / integration (push) Successful in 43s
fcd1b34e49
didericis force-pushed prd-0044-print-parity-across-backends from d3c04c4b36 to fcd1b34e49 2026-06-02 12:12:13 -04:00 Compare
didericis reviewed 2026-06-02 12:14:09 -04:00
@@ -73,0 +78,4 @@
git_gate_plan: GitGatePlan
egress_plan: EgressPlan
supervise_plan: SupervisePlan | None
agent_provision: AgentProvisionPlan
Owner

nit, name should also end in plan (agent_provision_plan)

nit, name should also end in `plan` (`agent_provision_plan`)
didericis approved these changes 2026-06-02 12:15:13 -04:00
didericis merged commit fcd1b34e49 into main 2026-06-02 12:15:25 -04:00
didericis deleted branch prd-0044-print-parity-across-backends 2026-06-02 12:15:26 -04:00
Sign in to join this conversation.