Skip to content

[compiler-threat-spec] docs(specs): compiler threat spec 1.0.105 mapping audit (2026-11-20) - #79394

Merged
pelikhan merged 2 commits into
mainfrom
compiler-threat-spec-sync-2026-11-20-bbc52ae73308c5c4
Nov 20, 2026
Merged

pelikhan merged 2 commits into
mainfrom
compiler-threat-spec-sync-2026-11-20-bbc52ae73308c5c4

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

  • Threats reviewed: 13 recent commits touching compiler/CLI/runtime boundaries
  • Already covered, spec updated: 3 boundary groups
  • Required implementation: 0
  • Rule IDs added/changed: none (spec 1.0.104 → 1.0.105, mapping-only)
  • Files changed: specs/compiler-threat-detection-spec.md, specs/compiler-threat-detection-changelog.md
  • Tests run: none. The required Go 1.27.4 toolchain is unavailable offline (local Go is 1.26.11). Only spec/changelog text changed.
View Details

Spec additions

Changelog

Added a 1.0.105 Version History row and a Mapping Audit (2026-11-20) entry in specs/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-suppress annotations exist in workflow sources outside the optimizer prompt, so no SLA action applies.

Steering

Steering issue #79391 had no comments.

Next actions

  • Run go test ./pkg/workflow -run "TestFormal|TestTokenBroker|TestHostRuntimeTmp" in CI to confirm spec-parsing tests still pass.

Generated by 🔒 Daily Compiler Threat Spec Optimizer · copilot · routed: sonnet55 high · ~92 AIC · ⌖ ~2 AIC · ⊞ 4.9K · ◷

  • expires on Nov 26, 2026, 6:36 PM UTC-08:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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)

Comment thread specs/compiler-threat-detection-spec.md Outdated
| 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` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in e15ebd6: bootstrap exclusion now maps to ComputeAWFExcludeEnvVarNames, and custom-job permissions map to extractCustomJobCoreProperties; the self-hosted warning remains mapped separately.

Comment thread specs/compiler-threat-detection-spec.md Outdated
Comment on lines +855 to +856
`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:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in e15ebd6: the spec now distinguishes incomplete verification from detected violations; only compliant passes.

Comment thread specs/compiler-threat-detection-spec.md Outdated

`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;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in e15ebd6: a verified repository ID matching policy is required; the slug is optional and validated when supplied for schedule-scattering context.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (specs/compiler-threat-detection-spec.md:848): address unresolved feedback - Review comment
  3. Review (specs/compiler-threat-detection-spec.md:856): address unresolved feedback - Review comment
  4. Review (specs/compiler-threat-detection-spec.md:857): address unresolved feedback - Review comment

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"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

Copilot AI commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Completed in e15ebd6. make merge-main reported main was already integrated; the build and compilation of all 369 workflows passed.

Copilot AI requested a review from gh-aw-bot November 20, 2026 03:23
@pelikhan
pelikhan merged commit e5faf01 into main Nov 20, 2026
34 checks passed
@pelikhan
pelikhan deleted the compiler-threat-spec-sync-2026-11-20-bbc52ae73308c5c4 branch November 20, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants