--- title: "Decision Records" weight: 9 sidebar: open: true --- Architecture decision records for Pipelines-as-Code. Each record captures a decision that is not obvious from reading the code: why the code does this, what was rejected, and what it costs. They are written where a comment used to live. A record is created when a comment explains a choice, an ordering, or a workaround, rather than restating the code. Superseded records keep their number and gain a `Superseded by` line instead of being deleted. A record is 20-30 lines: Context, Decision, Consequences. If a decision needs more than that, it is two decisions. ## All records * 0001 — [Webhook reconciliation is singleton-keyed]({{< relref "0001-webhook-reconciliation-is-singleton-keyed.md" >}}) * 0002 — [Clear OwnerReferences on the webhook configuration before updating]({{< relref "0002-clear-owner-references-on-webhook-configuration.md" >}}) * 0003 — [Detecting a GitHub host when validating a Repository URL]({{< relref "0003-github-instance-detection-order.md" >}}) * 0004 — [How PAC shells out to git]({{< relref "0004-git-subprocess-invocation.md" >}}) * 0005 — [Bounding the size of emitted events, and copying the emitter]({{< relref "0005-event-message-bounds.md" >}}) * 0006 — [OWNERS parsing only trusts the catch-all filter]({{< relref "0006-owners-file-semantics.md" >}}) * 0007 — [Tracing provider detection and result attributes]({{< relref "0007-tracing-provider-and-result-attributes.md" >}}) * 0008 — [Deprecated ops-comment trigger types]({{< relref "0008-deprecated-ops-comment-event-types.md" >}}) * 0009 — [Patching PipelineRuns with doubled conflict retries]({{< relref "0009-pipelinerun-patch-retries.md" >}}) * 0010 — [Repository policy evaluation and its OWNERS fallback]({{< relref "0010-repository-policy-evaluation.md" >}}) * 0011 — [GitHub credentials and API endpoints stay on allowlisted hosts]({{< relref "0011-github-credentials-and-endpoints.md" >}}) * 0012 — [GitHub App tokens are minted before parsing and re-scoped after]({{< relref "0012-github-app-token-two-phase.md" >}}) * 0013 — [How GitHub push and re-run events resolve their pull request]({{< relref "0013-github-push-and-rerun-pull-request-resolution.md" >}}) * 0014 — [GitHub access checks deny by default and trust only the PR author path]({{< relref "0014-github-acl-evaluation-rules.md" >}}) * 0015 — [GitHub check run and status reporting]({{< relref "0015-github-check-run-and-status-reporting.md" >}}) * 0016 — [GraphQL batch file fetch endpoint and batch size]({{< relref "0016-github-graphql-file-fetch.md" >}}) * 0017 — [GitHub API limits and quirks the provider works around]({{< relref "0017-github-api-limits-and-quirks.md" >}}) * 0018 — [GitLab API retries only idempotent requests]({{< relref "0018-gitlab-api-retry-policy.md" >}}) * 0019 — [GitLab commit status falls back from source to target project to an MR comment]({{< relref "0019-gitlab-commit-status-fallback.md" >}}) * 0020 — [GitLab reads use the event SHA, not the branch]({{< relref "0020-gitlab-immutable-event-revision.md" >}}) * 0021 — [Inherited GitLab credentials are never sent to a payload-derived host]({{< relref "0021-gitlab-no-inherited-credential-to-payload-host.md" >}}) * 0022 — [GitLab token rotation verifies the Secret write first and caches introspection]({{< relref "0022-gitlab-token-rotation-ordering.md" >}}) * 0023 — [Gitea API client construction]({{< relref "0023-gitea-api-client-construction.md" >}}) * 0024 — [Gitea commit status mapping and retry]({{< relref "0024-gitea-commit-status-mapping.md" >}}) * 0025 — [Gitea comment updates only touch PAC-owned comments]({{< relref "0025-gitea-comment-update-ownership.md" >}}) * 0026 — [Gitea default branch is fetched when the event has none]({{< relref "0026-gitea-incoming-default-branch.md" >}}) * 0027 — [Bitbucket Data Center event identity and clone URL handling]({{< relref "0027-bitbucket-datacenter-event-normalisation.md" >}}) * 0028 — [Bitbucket Data Center push events diff merge commits from the previous HEAD]({{< relref "0028-bitbucket-datacenter-merge-commit-changes.md" >}}) * 0029 — [Bitbucket sender authorization reads OWNERS from the default branch]({{< relref "0029-bitbucket-sender-authorization.md" >}}) * 0030 — [retryhttp retry policy for provider API clients]({{< relref "0030-retryhttp-retry-policy.md" >}}) * 0031 — [GitOps comment arguments are split on the first command keyword only]({{< relref "0031-gitops-comment-argument-parsing.md" >}}) * 0032 — [Bitbucket Cloud commit status keys are capped at 40 characters]({{< relref "0032-bitbucket-cloud-status-key-length.md" >}}) * 0033 — [The running PipelineRuns gauge reports zero for repositories with only completed runs]({{< relref "0033-running-pipelineruns-gauge-reports-zero.md" >}}) * 0034 — [Inherited provider secret is resolved before the global Repository is merged]({{< relref "0034-inherited-secret-resolved-before-merge.md" >}}) * 0035 — [Sorting code is copied from kubectl and the Tekton CLI]({{< relref "0035-sort-code-copied-from-upstream.md" >}}) * 0036 — [Step breakdown in the task status is optional and bounded]({{< relref "0036-task-status-step-breakdown.md" >}}) * 0037 — [Informer caches strip fields the watcher does not read]({{< relref "0037-informer-cache-transforms-strip-fields.md" >}}) * 0038 — [Label values are sanitized in a fixed order, trimming twice]({{< relref "0038-label-value-sanitization-order.md" >}}) * 0039 — [Fetching a GitLab merge request diff when the API truncates it]({{< relref "0039-gitlab-diff-truncation-fallback.md" >}}) * 0040 — [GitLab project IDs travel to the watcher through PipelineRun annotations]({{< relref "0040-gitlab-project-id-annotation-handoff.md" >}}) * 0041 — [GitLab merge request updates without commits only proceed for label changes]({{< relref "0041-gitlab-metadata-only-updates.md" >}}) * 0042 — [Gitea deliveries can carry GitHub webhook headers]({{< relref "0042-gitea-github-header-compatibility.md" >}}) * 0043 — [tkn pac cel provider auto-detection order]({{< relref "0043-cli-provider-auto-detection-order.md" >}}) * 0044 — [tkn pac cel input modes and header file formats]({{< relref "0044-cli-input-modes-and-header-formats.md" >}}) * 0045 — [tkn pac cel GitHub token enrichment is accepted but not implemented]({{< relref "0045-cli-github-token-enrichment-stub.md" >}}) * 0046 — [bootstrap seeds the trusted hostname and warns instead of failing]({{< relref "0046-cli-bootstrap-trusts-provider-hostname.md" >}}) * 0047 — [bootstrap normalises --github-api-url and always reads releases from public GitHub]({{< relref "0047-cli-bootstrap-github-api-url-normalisation.md" >}}) * 0048 — [tkn pac resolve works without a cluster and with a stub provider]({{< relref "0048-cli-resolve-runs-without-cluster.md" >}}) * 0049 — [tkn pac info, describe and logs degrade when cluster access is partial]({{< relref "0049-cli-degrades-on-partial-access.md" >}}) * 0050 — [Queue admission leases work to one worker and keeps retry reservations]({{< relref "0050-queue-admission-lease-and-retry-reservation.md" >}}) * 0051 — [The queue debug view never waits for the queue lock]({{< relref "0051-queue-debug-snapshot-never-blocks.md" >}}) * 0052 — [Malformed execution-order entries are skipped, not indexed]({{< relref "0052-queue-malformed-execution-order-keys.md" >}}) * 0053 — [A missing concurrency limit is a semaphore limit of zero]({{< relref "0053-queue-removed-concurrency-limit-means-unlimited.md" >}}) * 0054 — [Trusted provider hosts are administrator configured or controller managed]({{< relref "0054-host-policy-two-modes.md" >}}) * 0055 — [Only provider-authenticated requests may add a trusted host]({{< relref "0055-host-policy-trust-on-first-use.md" >}}) * 0056 — [Provider URLs are rebuilt on the approved hostname and must be https]({{< relref "0056-host-policy-trusted-url.md" >}}) * 0057 — [Follow-up intents are stored on the run annotation, bounded and without the trigger comment]({{< relref "0057-followup-storage-annotation.md" >}}) * 0058 — [Follow-up dependency graph is validated whole and resolved against plain definitions only]({{< relref "0058-followup-dependency-graph.md" >}}) * 0059 — [Resource precedence and annotation validation when resolving PipelineRuns]({{< relref "0059-resolve-precedence-and-validation.md" >}}) * 0060 — [Listener handler timeout and graceful shutdown]({{< relref "0060-listener-timeouts-and-shutdown.md" >}}) * 0061 — [Early client setup and skip-CI handling in the sinker]({{< relref "0061-early-client-setup-and-skip-ci.md" >}}) * 0062 — [Provider event ID taken from delivery headers]({{< relref "0062-provider-event-id-headers.md" >}}) * 0063 — [What LLM and CEL contexts exclude]({{< relref "0063-cel-and-llm-context-exclusions.md" >}}) * 0064 — [Hostnames are normalised the way a resolver reads them]({{< relref "0064-hostname-normalisation.md" >}}) * 0065 — [IsPrivate treats inet_aton spellings and cluster names as private]({{< relref "0065-private-host-detection.md" >}}) * 0066 — [Hub resources are fetched from Artifact Hub by catalog name]({{< relref "0066-artifacthub-catalog-client.md" >}}) * 0067 — [TLS configuration parsing and its tolerance of unknown names]({{< relref "0067-tls-config-parsing.md" >}}) * 0068 — [Inherited global secrets stay on the endpoint they belong to]({{< relref "0068-inherited-secret-endpoint-guard.md" >}}) * 0069 — [Secret value handling quirks in pkg/secrets]({{< relref "0069-secret-handling-quirks.md" >}}) * 0070 — [PipelineRun labels hold cleaned values, annotations hold the originals]({{< relref "0070-pipelinerun-labels-and-annotations.md" >}}) * 0071 — [Cleanup deletes the git-auth secret itself after deleting an old PipelineRun]({{< relref "0071-pipelinerun-cleanup-and-git-auth-secret.md" >}}) * 0072 — [Failed task log snippets come from conditions or pod logs, capped in bytes]({{< relref "0072-task-failure-log-snippets.md" >}}) * 0073 — [Custom params resolve in a fixed order, standard params are not overridable]({{< relref "0073-custom-params-resolution.md" >}}) * 0074 — [Console URL builders are immutable and take per-call parameters]({{< relref "0074-console-immutable-scoped-params.md" >}}) * 0075 — [Placeholder substitution treats cel: and body/headers/files errors differently]({{< relref "0075-template-placeholder-cel-fallbacks.md" >}}) * 0076 — [The GitHub test server mounts the API under /api/v3 and serves GraphQL itself]({{< relref "0076-github-test-server-relative-urls.md" >}}) * 0077 — [TestQMI exposes recording and scripting fields instead of a real queue]({{< relref "0077-test-queue-manager-knobs.md" >}}) * 0078 — [How on-cel-expression is evaluated against an event]({{< relref "0078-cel-evaluation-rules.md" >}}) * 0079 — [Follow-up PipelineRuns match on dependencies and a restricted CEL]({{< relref "0079-follow-up-cel-evaluation.md" >}}) * 0080 — [/retest and /ok-to-test skip templates that already succeeded]({{< relref "0080-retest-skips-successful-templates.md" >}}) * 0081 — [Cleanup keeps follow-up runs, deletion still releases the queue]({{< relref "0081-cleanup-and-deletion-handling.md" >}}) * 0082 — [Provider detection failures, terminal writes and secret scope]({{< relref "0082-provider-detection-and-terminal-writes.md" >}}) * 0083 — [Reconcile ordering and per-reconcile copies in the watcher]({{< relref "0083-reconcile-order-and-per-reconcile-copies.md" >}}) * 0084 — [Confirming a start and treating gone runs as terminal]({{< relref "0084-start-confirmation-and-gone-runs.md" >}}) * 0085 — [Reconciling a done PipelineRun whose provider cannot be resolved]({{< relref "0085-done-run-without-provider.md" >}}) * 0086 — [Queue admission keeps reservations and drops vanished PipelineRuns]({{< relref "0086-queue-admission-retry-and-gone-keys.md" >}}) * 0087 — [Starting an already running PipelineRun and finalizing with a gone successor]({{< relref "0087-running-run-start-and-finalizer.md" >}}) * 0088 — [Follow-ups are re-evaluated from the reconcile of any group member]({{< relref "0088-followup-evaluation-triggers.md" >}}) * 0089 — [Follow-up state is patched under a fence and its source Repository is authorized]({{< relref "0089-followup-fenced-patch-and-source-repo.md" >}}) * 0090 — [Creating the follow-up run is idempotent and reports like startPR]({{< relref "0090-followup-run-creation.md" >}}) * 0091 — [A follow-up ends skipped, quietly skipped or failed depending on who can fix it]({{< relref "0091-followup-skip-or-fail.md" >}}) * 0092 — [Access check on comments is deferred, and annotation matching runs more than once]({{< relref "0092-access-check-and-repeated-matching.md" >}}) * 0093 — [Cancellation covers pending follow-ups before their dependencies]({{< relref "0093-cancellation-cascades-to-follow-ups.md" >}}) * 0094 — [Follow-ups are planned last and are not resolved, triggered or tested at event time]({{< relref "0094-followups-planned-last-and-not-resolved-at-event-time.md" >}}) * 0095 — [Starting a PipelineRun: pending under a concurrency limit, and which failures are fatal]({{< relref "0095-start-pipelinerun-contract.md" >}}) * 0096 — [Follow-up planning rejects the whole event on any validation error]({{< relref "0096-followup-event-time-validation.md" >}}) * 0097 — [Follow-up skip, consume and cancel semantics]({{< relref "0097-followup-reporting-and-cancellation.md" >}}) * 0098 — [Follow-up definitions are re-resolved at creation, not stored]({{< relref "0098-followup-resolved-again-at-creation.md" >}}) * 0099 — [Follow-ups are stored on a dependency run and runs are created in phases]({{< relref "0099-followup-stamped-on-dependency-run.md" >}}) * 0100 — [Closing a pull request cancels only runs from pull request and ops-comment events]({{< relref "0100-closed-pr-cancel-pull-request-runs-only.md" >}}) * 0101 — [Skip-CI markers do not suppress GitOps and incoming-webhook events]({{< relref "0101-skip-ci-overrides.md" >}}) * 0102 — [startPR returns the created PipelineRun together with a status error]({{< relref "0102-startpr-returns-run-on-status-failure.md" >}})