Skip to content

feat(fullsend): automate environments with safe-settings - #84

Closed
rh-hemartin wants to merge 2 commits into
mainfrom
automate-fullsend-environments
Closed

rh-hemartin wants to merge 2 commits into
mainfrom
automate-fullsend-environments

Conversation

@rh-hemartin

Copy link
Copy Markdown
Member

Fixes #83

Declare all 10 deployment environments of fullsend-ai/fullsend in repos/fullsend.yml so the safe-settings environments plugin owns them.

  • The plugin is total-state: every environment is listed, none get deleted
  • e2e-org-pool and github-pages keep their custom branch policy (only main can deploy)
  • can_admins_bypass is not managed by the plugin; it stays at the default (true), matching live state

The PR dry-run job (FULL_SYNC_NOP=true) should report zero mutations.

Assisted-By: GLM-5.3 (pi)

Declare all 10 deployment environments of fullsend-ai/fullsend in
repos/fullsend.yml so the safe-settings environments plugin owns them.
The plugin is total-state, so every environment is listed; e2e-org-pool
and github-pages keep their custom branch policy allowing only main.

Fixes #83

Assisted-By: GLM-5.3 (pi)
@rh-hemartin
rh-hemartin requested a review from a team as a code owner November 23, 2026 12:53
@qodo-code-review

qodo-code-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Manage fullsend deployment environments with safe-settings

⚙️ Configuration changes 🕐 10-20 Minutes

Grey Divider

AI Description

• Declare all 10 fullsend deployment environments so safe-settings can reconcile their complete
 inventory.
• Preserve main-only deployment policies for e2e-org-pool and github-pages.
• Leave admin bypass unmanaged, matching the stated live configuration.
Merge Risk 🟡 Medium

Blast radius 🟢 Low 💥 1 capability

  • 1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
  • The manifest, reconciled environment objects, and deployments that target those environments are one bounded deployment-management integration.
  • The named environments represent deployment targets within that integration, not separate technical scopes; the propagation path is from this manifest to reconciled environment state and then to deployment jobs targeting that state.
  • The branch restrictions are part of the same bounded environment-deployment integration as the environment inventory.
  • They alter which deployment jobs can reach two named environments; this is a distinct failure mode of the same end-to-end deployment capability, not an independent functional scope.
Sources

repos/fullsend.yml[2-3]

# Environments are total-state: unlisted ones are deleted on apply.
environments:

repos/fullsend.yml[4-24]

- name: dev
- name: e2e-org-pool
  # safe-settings cannot manage environment secrets; these three live only on
  # GitHub (write-only via the API): TEST_ACTOR_TRIAGE_PAT,
  # TEST_ACTOR_WRITE_PAT, TEST_BOTSEND_PAT.
  deployment_branch_policy:
    protected_branches: false
    custom_branch_policies:
    - main
- name: evals
- name: forgejo-dev
- name: forgejo-stage
- name: functional-tests
- name: github-pages
  deployment_branch_policy:
    protected_branches: false
    custom_branch_policies:
    - main
- name: site-preview
- name: site-production
- name: stage
Behavioral complexity 🟡 Medium 🧩 Interacting branches, Compatibility cases

  • Before: the manifest did not declare the repository environment inventory in this file, so the relevant live environment state was not represented here.
  • After: it declares a total desired state, with omission meaning deletion, and introduces per-environment branch-policy rules.
  • New correctness conditions: the declared inventory must remain synchronized with every live environment and its persistent settings, and policy evaluation must remain compatible with all supported deployment branch states.
  • The incremental comments add no executable branch, transformation, or state transition; they only document that three secrets are outside safe-settings management.
  • The complexity therefore remains attributable to the original interaction between live state, declarative reconciliation, deletion semantics, and deployment eligibility, not to the YAML comments or file size.
Sources

repos/fullsend.yml[2-3]

# Environments are total-state: unlisted ones are deleted on apply.
environments:

repos/fullsend.yml[4-24]

- name: dev
- name: e2e-org-pool
  # safe-settings cannot manage environment secrets; these three live only on
  # GitHub (write-only via the API): TEST_ACTOR_TRIAGE_PAT,
  # TEST_ACTOR_WRITE_PAT, TEST_BOTSEND_PAT.
  deployment_branch_policy:
    protected_branches: false
    custom_branch_policies:
    - main
- name: evals
- name: forgejo-dev
- name: forgejo-stage
- name: functional-tests
- name: github-pages
  deployment_branch_policy:
    protected_branches: false
    custom_branch_policies:
    - main
- name: site-preview
- name: site-production
- name: stage

repos/fullsend.yml[6-8]

  # safe-settings cannot manage environment secrets; these three live only on
  # GitHub (write-only via the API): TEST_ACTOR_TRIAGE_PAT,
  # TEST_ACTOR_WRITE_PAT, TEST_BOTSEND_PAT.
Potential damage 🟡 Medium 🩹 Temporary loss

  • A deleted or missing environment can cause jobs targeting that environment to fail or become unavailable.
  • This affects the deployment behavior itself, not merely configuration presentation.
  • The capability is generally recoverable by correcting the manifest and reapplying it.
  • The newly documented three e2e-org-pool secrets are stored directly in GitHub rather than managed by safe-settings, so they are not shown as being deleted by this manifest; other environment-scoped settings, approvals, or secrets may still require separate restoration.
  • Source rollback can restore the declaration, but it does not prove automatic recreation of deleted environment-scoped state.
  • Supported recovery is to correct the inventory, reapply it, recreate missing environments if necessary, and restore any lost environment-specific configuration.
  • The comments specifically indicate that TEST_ACTOR_TRIAGE_PAT, TEST_ACTOR_WRITE_PAT, and TEST_BOTSEND_PAT live only in GitHub and are outside safe-settings management.
  • No reachable automatic repair worker is present in the inspected repository.
Sources

repos/fullsend.yml[2-3]

# Environments are total-state: unlisted ones are deleted on apply.
environments:

repos/fullsend.yml[6-8]

  # safe-settings cannot manage environment secrets; these three live only on
  # GitHub (write-only via the API): TEST_ACTOR_TRIAGE_PAT,
  # TEST_ACTOR_WRITE_PAT, TEST_BOTSEND_PAT.
Assessed commit 1b35b46
Diagram

graph TD
  C["fullsend config"] --> S["safe-settings"] --> E["GitHub environments"]
  W["PR dry run"] --> S
Loading
High-Level Assessment

Declaring the complete inventory in the existing safe-settings repository configuration fits its total-state model. Separate API automation would duplicate the established reconciliation workflow; review the dry-run output for unexpected mutations before merging.

Files changed (1) +21 / -0

Other (1) +21 / -0
fullsend.ymlDeclare fullsend's 10 deployment environments +21/-0

Declare fullsend's 10 deployment environments

• Adds the complete environment inventory for safe-settings management, including main-only custom deployment branch policies for e2e-org-pool and github-pages. Does not configure admin bypass or change the existing ruleset.

repos/fullsend.yml

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:56 PM UTC · Completed 1:00 PM UTC

Commit: ff12bc9 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.72

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can keep summaries lean with Findings visible per group, which tucks the rest behind a View link

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@fullsend-ai-review fullsend-ai-review Bot added the risk/low PR risk: low label Nov 23, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Risk Assessment: low (1/5)

Details

Single-file declarative configuration change codifying existing deployment environments with zero protected path impacts, no dependency changes, and complete alignment with the linked issue.

Previous run

Risk Assessment: low (1/5)

Details

Single-file declarative configuration change codifying existing deployment environments with zero protected path impacts, no dependency changes, and complete alignment with the linked issue.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Looks good to me

Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOltdfQ== -->

Looks good to me

Previous run (2)

<!-- fullsend:review-diff-hash:b8f79cb9a0d1046c91fef0cd5ff1c4955bc6204443aa1ad808240f8c3c8e483f -->
<!-- fullsend:review-head:ff12bc90240eb7ab8a7ca4a7d8c307bd285c1f3d -->
<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOltdfQ== -->

Looks good to me

Previous run (3)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOltdfQ== -->

Looks good to me

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Nov 23, 2026
The safe-settings environments plugin cannot manage secrets. Document
the three that live only on GitHub so nobody expects them in config.

Assisted-By: GLM-5.3 (pi)
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 1:05 PM UTC · Completed 1:09 PM UTC

Commit: 1b35b46 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.60

@fullsend-ai-review fullsend-ai-review Bot removed the ready-for-merge All reviewers approved — ready to merge label Nov 23, 2026
@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review November 23, 2026 13:09

Superseded by updated review

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Nov 23, 2026
@rh-hemartin

Copy link
Copy Markdown
Member Author

Closed in favor of implementing it directly on the fullsend repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge All reviewers approved — ready to merge risk/low PR risk: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automate fullsend environments with safe-settings

1 participant