Repository navigation
[compiler-threat-spec] docs(specs): compiler threat spec 1.0.105 mapping audit (2026-11-20) - #79394
Conversation
…p boundaries (spec 1.0.105) Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The specification still contains three active documentation-to-implementation mismatches involving status semantics, repository slug requirements, and custom-job permission mapping.
3 open issues
What changed in this PR
Updates the compiler threat-detection specification from 1.0.104 to 1.0.105 with mapping-only coverage for existing token-broker, authorization-policy, temporary-path, and source-download Git protections. No implementation or threat-rule changes are included.
Changes:
- Adds Sections 7.12–7.14 with normative implementation and regression-test mappings.
- Updates the specification version compatibility table.
- Records the 1.0.105 version history and 2026-11-20 mapping audit.
| File | Description |
|---|---|
| specs/compiler-threat-detection-spec.md | Adds normative mappings and regression evidence for token-broker credentials, authorization verification, runtime temporary-path isolation, and hardened source-download Git. |
| specs/compiler-threat-detection-changelog.md | Records specification version 1.0.105 and the associated daily compiler-threat mapping audit. |
Review effort: Lite (adaptive)
| | Boundary | Implementation | Regression Evidence | | ||
| |---|---|---| | ||
| | Credential-source exclusivity, sandbox requirement, inference and permission conflicts | `pkg/workflow/token_broker.go`: `validateTokenBrokerGitHubConfig`, `validateTokenBrokerInference`, `validateTokenBrokerRequestPermissions` | `TestTokenBrokerGitHubCredentialConflicts`, `TestTokenBrokerGitHubRequiresBootstrapIsolation`, `TestTokenBrokerRejectsUnsupportedInference`, `TestTokenBrokerRejectsLegacyInferenceFallback` | | ||
| | Bootstrap variable exclusion and no OIDC for custom jobs | `pkg/workflow/awf_command_builder.go`, `token_broker.go`: `jobUsesTokenBroker` | `TestTokenBrokerBootstrapExcluded`, `TestTokenBrokerDoesNotGrantOIDCToCustomJobs` | |
There was a problem hiding this comment.
Updated in e15ebd6: bootstrap exclusion now maps to ComputeAWFExcludeEnvVarNames, and custom-job permissions map to extractCustomJobCoreProperties; the self-hosted warning remains mapped separately.
| `gh aw validate --authorization-policy` is a read-only verifier for an externally protected baseline. It MUST fail closed: any unreadable, mismatched, or unverifiable input MUST yield `incomplete` status, never a passing result. The verifier MUST: | ||
|
|
There was a problem hiding this comment.
Updated in e15ebd6: the spec now distinguishes incomplete verification from detected violations; only compliant passes.
|
|
||
| `gh aw validate --authorization-policy` is a read-only verifier for an externally protected baseline. It MUST fail closed: any unreadable, mismatched, or unverifiable input MUST yield `incomplete` status, never a passing result. The verifier MUST: | ||
|
|
||
| - require the complete `.github/workflows` inventory (no subsets, directory overrides, or engine overrides), a checker-supplied verified repository ID and slug, and, when pinned, a matching policy SHA-256 digest; |
There was a problem hiding this comment.
Updated in e15ebd6: a verified repository ID matching policy is required; the slug is optional and validated when supplied for schedule-scattering context.
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "20445d2c38e7aa694a047e8338216ef84ca783c4",
"kind": "requested",
"schema_version": "1",
"state": "054537765136af95bbe40a9840b31146a6f9746db1df7703c64a893767268b61",
"work": [
"8f749b6d89e4c9ee20e3c4f329dee49a4030e4750e33b5a9e5996d1a004197a8",
"dcde6483fd1ae6d5378fc7bd1d593a9220f834d200885eb9c01825d051d26c4d",
"e75dec8c3ec9c02a08316fcf345e611f5962cd79d760d7af34e6803c1d09998a"
],
"workflow": "pr-sous-chef"
}
|
Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Overview
Daily compiler threat spec reconciliation for the last 2 days. All reviewed threats were already covered by existing implementation; this PR adds the missing spec mappings. No implementation changes and no new
CTR-*rules.Key metrics
specs/compiler-threat-detection-spec.md,specs/compiler-threat-detection-changelog.mdView Details
Spec additions
--exclude-envrequirement, inference/permission conflicts, noid-tokenfor custom jobs, self-hosted runner warning. Mapped topkg/workflow/token_broker.goandtoken_broker*_test.go.validate --authorization-policy, finding codes, isolated snapshot. Mapped topkg/cli/authorization_*.goand tests.GH_AW_RUNTIME_TMP_*exclusion with legacy fallback; hardenedpkg/gitutil/source_command.go.Changelog
Added a
1.0.105Version History row and aMapping Audit (2026-11-20)entry inspecs/compiler-threat-detection-changelog.md.Not new compiler threat classes
#79268 (already CTR-035–038), #79282, #79283, #79295, #79280, #79351: no compiler detection change needed.
Suppressions
No
threat-detection-suppressannotations exist in workflow sources outside the optimizer prompt, so no SLA action applies.Steering
Steering issue #79391 had no comments.
Next actions
go test ./pkg/workflow -run "TestFormal|TestTokenBroker|TestHostRuntimeTmp"in CI to confirm spec-parsing tests still pass.