Skip to content

Commit c7b10fc

Browse files
committed
fix(installer): resolve F-08 implicit enrollment
1 parent 26cf4f4 commit c7b10fc

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/autopilot-org-installer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
if [ -n "${existing}" ]; then
6565
gh issue comment -R ${ORG}/${repo} "${existing}" -b "${body}"
6666
else
67-
gh issue create -R ${ORG}/${repo} -t "Autopilot intake not installed" -b "${body}" -l "autofix,queued,docs"
67+
gh issue create -R ${ORG}/${repo} -t "Autopilot opt-in available" -b "${body}"
6868
fi
6969
continue
7070
fi
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# F-08 non-actionable opt-in notice
2+
3+
Issue Description: The installer queued an autofix issue in repositories that had not opted in.
4+
State: A notification issue itself satisfied the operator execution gate.
5+
Action: Changed the pre-opt-in notice to an unlabeled informational issue.
6+
Result: Non-opted-in repositories cannot be enrolled through an automated issue side effect.
7+
Diff Patch: Removed actionable labels and clarified the notice title.
8+
Rationale: Enrollment must be an explicit repository-owner decision.

tests/contract-tests.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function Assert-NotContains {
1212

1313
$operator = Get-Content -Raw "scripts/autopilot-operator.ps1"
1414
$workflow = Get-Content -Raw ".github/workflows/autopilot-operator.yml"
15+
$installer = Get-Content -Raw ".github/workflows/autopilot-org-installer.yml"
1516

1617
Assert-Contains $operator 'label:autofix label:queued' "Operator must require autofix and queued labels."
1718
Assert-NotContains $operator 'no:label' "Operator must not execute unlabeled issues."
@@ -22,4 +23,6 @@ Assert-Contains $operator 'ALLOW_UNVERIFIED' "Operator must enforce verification
2223
Assert-Contains $workflow 'secrets\.ORG_AUTOPILOT_TOKEN' "Workflow must use an explicit org mutation token."
2324
Assert-NotContains $workflow 'GH_TOKEN: \$\{\{ secrets\.GITHUB_TOKEN \}\}' "Workflow must not use repository token for org mutations."
2425

26+
Assert-NotContains $installer 'autofix,queued,docs' "Installer must not queue automation before repository opt-in."
27+
2528
Write-Host "Control-plane contract tests passed."

0 commit comments

Comments
 (0)