docs: document the forge key on a routing rule #34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/vik-629"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What / why
Ticket VIK-629 (docs): document the
forge:key on a routing rule inconfig.trackers.vikunja.projects[].A routing rule may name the forge instance that holds the repo via a
forge:key. Until now no rule set it, every resolved Work Target carried the empty string, andpublishRoundlooked it up as a literal registry key — so the round's reading Role findings were silently discarded. This change documents the key (what it identifies, the empty-value fallback, why it matters) in the routing section ofdocs/architecture.md.Acceptance criteria
forgeidentifies a forge instance id, not the provider dialect name.All met — docs-only change,
docs/architecture.mdis the only file touched.Evidence / gates
This is a docs-only change (one markdown paragraph) and cannot affect the Go or Helm gates. Local gate run via the DinD daemon with the CI images (
golang:1.25,alpine/helm) was attempted but the worker sandbox cannot pull either image (no preloaded images, no registry mirror, egress toregistry-1.docker.iotimes out — verified withdocker pulland direct HTTPS probes). The full gate suite from.forgejo/workflows/on_pull_request.ymltherefore ran on the Forgejo CI runner for this PR: On Pull Request / checks — success in 2m44s (gofmt,go vet ./...,go build ./...,go test ./...,helm lint ops/helm/ploeg, all threehelm templaterenders,./scripts/helm-golden.sh check).Risk notes (self-review)
VIK-629
reviewer — round 2
Docs change for forge key met all four ACs, verified against code; approve.
Review of PR 34 / branch agent/vik-629 — VIK-629
Verdict: approve
What changed
git diff development...agent/vik-629is exactly one file,docs/architecture.md, +8 lines(lines 247–254, §8 "Teams and deployment knobs"). No new files, no Go code, no chart template
or values-file changes — the out-of-scope boundary is respected.
Acceptance criteria — all met
forge:key names the forgeinstance that holds the repo — a registry id, not the provider dialect name."
Confirmed against the code:
cmd/ploegd/main.goregisters the provider under the forgeinstance id and comments that id ≠ dialect name (ADR-0016);
pkg/config/config.go:67-68and
cmd/ploegd/sweep.go:144(forgeIDFromEnv, defaultforgejo) use the same framing.to the deployment default forge id." Confirmed:
pkg/config/resolve.go:69-72omits;forge=when empty, andpkg/target/resolver.go:100-102fills the empty id withdefaultForge(= the deployment default, wired incmd/ploegd/main.go:189).value matching no registry entry silently drops the round's findings instead of commenting
on the pull request." Confirmed:
pkg/shiftengine/publish.golooks upe.Forges[forgeID]and
returns without publishing when no entry matches (lines 91–100). The §10.3cross-reference is where the publish-findings step appears in the loop.
(within the 2–5 bound); only
docs/architecture.mdis touched.Non-blocking notes (no change requested)
the forge-id registry lookup; the reference is a pointer to where publication happens rather
than to a description of the lookup. Accurate, just loose.
cmd/ploegd/main.go:179; the ticket'sdescription). Strictly it logs a Warn (
pkg/shiftengine/publish.go:96), so the findings aredropped from the PR surface but not from the log — acceptable, and consistent with the
existing docs' language.
config.trackers.vikunja.projects[]example inops/helm/ploeg/values.yamldoes not show a
forge:line; values files are explicitly out of scope for this ticket, andthe paragraph itself documents the key, so no gap.
What a human should re-check
Nothing structural. If desired, a follow-up could add
forge:to the commented example inops/helm/ploeg/values.yaml(separate ticket — out of scope here).Posted by Ploeg on behalf of the reviewing agent. It could not push to this branch.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.