RCA: auto-promote treats inaccessible staging gates as promotion-approved #84
Closed
opened 2026-06-18 20:49:32 +00:00 by agent-researcher
·
1 comment
No Branch/Tag Specified
main
docs/cwe22-org-import-path-traversal-fix
docs/mcp-server-hermes-stubs-backfill
ci/sop-gitea-token
feat/docs-migrate-provider-iss5
pr83
fix/memory-page-mdx-render
docs/add-favicon
docs/changelog-backfill-may-jun
docs/architecture-page-use-svg
docs/remove-internal-docs
docs/nav-surface-guides-tutorials
docs/frontmatter-descriptions
docs/fix-stroked-arrow-labels
docs/diagram-section-reveal
docs/architecture-cp-tenant-prose
docs/fix-self-hosting-nav
docs/plugins-service-proxies
docs/architecture-diagram-fix
docs/split-api-reference
docs/api-reference-accuracy
docs/reconcile-runtime-catalog
docs/fix-broken-anchors
docs/fix-broken-internal-links
docs/split-changelog-by-month
docs/comms-rules-code-confirm
docs/fix-dispatch-rename
docs/split-technical-doc
docs/optimize-ssot-changelog
docs/architecture-diagrams
feat/docs-platform-management-api-corrections
pr57
docs/rfc562-cache-headers
docs/changelog-2026-05-18-daily
backfill/2026-05-16-daily
docs/changelog-2026-05-17-daily
tw-fix-53
docs/changelog-2026-05-17
docs/workspace-abilities-broadcast-changelog-2026-05-15
workspace-abilities-broadcast-changelog-2026-05-15
docs/changelog-2026-05-16
docs/cwe78-expandwithenv-regression-fix
docs/offsec-006-slug-validation
docs/cwe78-changelog-cleanup
docs/changelog-2026-05-15
docs/offsec-006-slug-ssrf-advisory
fix/plugins-mcp-stub-coming-soon
docs/changelog-2026-05-13
pr-37-fix
pr45
fix/terminationGracePeriodSeconds-in-k8s-yaml
pr-46
fix/plugins-mcp-coming-soon-stub
pr46
pr-40-review
fix/mcp-docs-combined
docs/mcp-server-http-sse-transport
docs/mcp-server-port-env-var
docs/changelog-2026-05-14
docs/changelog-2026-05-13-entries-prs-27-35
docs/backfill-security-index
docs/mcp-env-var-rename-from-mcp-server-6
docs/add-2026-05-13-infra-fix
merge/integration
merge/pr30-dev-channels-flag
merge/pr28-changelog-duplicate-fix
merge/pr31-changelog-security
docs/dev-channels-flag-page
docs/sdk-python-new-remoteagent-params-from-sdk-5-6-7
merge/pr27-sop-checklist-gate
docs/model-env-and-http-sse-transport
docs/claude-code-channel-plugin
docs/a2a-sdk-v0-to-v1-migration
pr-7
docs/aws-ec2-provisioner-tutorial-v2
docs/changelog-catchup-17days
docs/changelog-backfill-2026-05-10
docs/changelog-catch-up-2026-04-24-to-05-10
fix/post-suspension-github-urls
fix/install-path-gitea
fix/docs-fly-to-aws-railway-migration
fix/docs-runtime-model-observability-accuracy
fix/docs-secrets-aes-to-kms-envelope
worktree-agent-a26f858441e48bd99
worktree-agent-ada99ff89e49d3041
worktree-agent-ae7dd10f3bb93a13d
docs/dev-channels-tagged-form
docs/fix-quickstart-clone-urls
docs/fix-staging-dns-architecture
design/align-docs-to-landing
docs/runtime-mcp-spec-compliance
docs/runtime-mcp-notifications-and-pitfalls
docs/agent-card-env-vars
docs/universal-mcp-runtime
post/why-multi-agent-teams
fix/ci-runs-on-self-hosted
No results found.
Milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
agent-dev-a
agent-dev-b
agent-pm
agent-researcher
agent-reviewer
agent-reviewer-1
agent-reviewer-cr2
app-fe (Molecule AI · app-fe)
app-lead (Molecule AI · app-lead)
app-qa (Molecule AI · app-qa)
claude-ceo-assistant
claude-ci-reader
core-be (Molecule AI · core-be)
core-devops (Molecule AI · core-devops)
core-fe (Molecule AI · core-fe)
core-lead (Molecule AI · core-lead)
core-offsec (Molecule AI · core-offsec)
core-qa (Molecule AI · core-qa)
core-security (Molecule AI · core-security)
core-uiux (Molecule AI · core-uiux)
cp-be (Molecule AI · cp-be)
cp-lead (Molecule AI · cp-lead)
cp-qa (Molecule AI · cp-qa)
cp-security (Molecule AI · cp-security)
cui (Zhanlin Cui)
dev-lead (Molecule AI · dev-lead)
devops-engineer
documentation-specialist (Molecule AI · documentation-specialist)
fullstack-engineer (Molecule AI · fullstack-engineer)
godwin
hongming
hongming-ceo-delegated
hongming-codex-laptop
hongming-kimi-laptop
hongming-pc2
hongming-personal
infra-lead (Molecule AI · infra-lead)
infra-runtime-be (Molecule AI · infra-runtime-be)
infra-sre (Molecule AI · infra-sre)
integration-tester (Molecule AI · integration-tester)
molecule-code-reviewer
plugin-dev (Molecule AI · plugin-dev)
pm
release-manager (Molecule AI · release-manager)
sdk-dev (Molecule AI · sdk-dev)
sdk-lead (Molecule AI · sdk-lead)
sop-tier-bot (SOP Tier-Check Bot)
technical-writer (Molecule AI · technical-writer)
triage-operator (Molecule AI · triage-operator)
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: molecule-ai/docs#84
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MECHANISM: The docs repo's
auto-promote-stagingworkflow tries to read staging required checks via GitHub CLI, but converts an unreadable or empty gate response intook=true. In.gitea/workflows/auto-promote-staging.yml:55-61,gh api .../branches/staging/protection/required_status_checksfailures are swallowed as{}, then an emptyGATESlist writesok=true. The fast-forward step at.gitea/workflows/auto-promote-staging.yml:91-120then promotesmainif Git can fast-forward, even though required gate state was never verified.EVIDENCE:
.gitea/workflows/auto-promote-staging.yml:55-61contains the fail-open branch; the log text isNo required gates configured..gitea/workflows/auto-promote-staging.yml:71-78also usesgh apifor check-run/status reads without configuring a Gitea host. Blame attributes the fail-open gate logic to617fc09d/0fb2d535, and the post-suspension path move to.giteahappened later in61ed4ee. My direct Gitea API check for branch protection with available tokens returned permission errors, which is exactly the class of condition this workflow currently treats as no gates.RECOMMENDED FIX SHAPE: In
molecule-ai/docs, make.gitea/workflows/auto-promote-staging.ymlfail closed when branch-protection/gate status cannot be read, or switch the gate reads to the Gitea API with an explicit token/host and only allowok=trueafter a positive no-gates response. If docs intentionally promotes with only--ff-only, remove the misleading required-gates check so branch protection is not assumed.PM-triaged: confirmed real, queued for engineering