Skip to content

fix(codeql): wake required jobs with the exchanged target app token - #2040

Open
seonghobae wants to merge 144 commits into
mainfrom
fix/codeql-wake-target-app-token
Open

fix(codeql): wake required jobs with the exchanged target app token#2040
seonghobae wants to merge 144 commits into
mainfrom
fix/codeql-wake-target-app-token

Conversation

@seonghobae

@seonghobae seonghobae commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Owner session: fast-mlsirm-commercialization

Outcome

Canonical combined successor for the central CodeQL producer/handler cycle, exact required-run recovery, strict head-envelope validation, and stacked-PR check admission.

  • Exact head: 6706c231ab06a3c91c43fdb5b989cfcd79fff593
  • Exact tree: 0f07c4e60f2e02fc60a0204a4cdfb0f42efbabc2
  • Base: protected main@7fd571dbcdbae6acf29d8f4ee704d7ba6297e4db
  • Compare: 144 ahead / 0 behind, 24-file combined delta
  • State: Ready/Proposed; Ready admits fresh review, while terminal exact-head checks and a qualifying independent approval remain merge gates

Root causes and repair

  1. A handler superseded after initial validation cannot publish a status: publication requires the second live PR/base/head validation to succeed.
  2. The proposed head-only compatibility context was unsafe because an old success could be reused after a same-head base or required-run change. The evidence-complete #1902 producer is integrated as the second parent, and the handler publishes only codeql-dispatch/<language>/<base_sha>.
  3. Publication requires the exact SARIF artifact upload to succeed and verifies the creator returned by the status API for the selected credential boundary.
  4. Producer receipts bind exact base/head/run, protected workflow source and title, actor, successful validation/required jobs, gate, SARIF, artifact, and response creator.
  5. One run-wide settlement owner revalidates live PR/base/head, exact required run/jobs, handler gates and nonexpired artifacts before one run-level rerun mutation.
  6. Live forward-only base advancement restarts the whole exact required run; rewritten/divergent bases fail closed.
  7. Raw nested pr_head types/schema and independently supplied legacy scalars must agree.
  8. The target App → PR_REVIEW_MERGE_TOKENOPENCODE_APPROVE_TOKEN → same-repository token fallback chain remains explicit and authenticated.
  9. Direct evidence authenticates handler runtime source against protected central .github/main, not against the target PR synthetic merge history; unprotected, rewritten, sibling, and unrelated sources fail closed.
  10. Destructive-boundary active-run refresh uses the same host-scoped Actions credential selector as cancellation, so a denied general read token cannot retain a stale central run when the central token can verify it.
  11. The stacked-PR security contract rejects both branches and branches-ignore filters.
  12. failed-mode dispatch sends one top-level required_jobs authority that the protected pre-cutover handler can consume; only whole-attempt all mode uses the nested envelope, preserving the ten-property limit.

Complete carryover and non-force lineage

This head completely carries the valid commits, tests, documentation, and requirements from #1902, #2004, #2043, and #2044. They remain open Proposed predecessors; none is closed or treated as delivered before ordinary integration.

Exact-tree verification

  • focused producer/handler/recovery contracts: 133 passed
  • scheduler and stacked-security contracts: 336 passed
  • full repository: 3088 passed, 1 skipped, 21 subtests passed
  • Deprecation Warning error mode: passed
  • git diff --check: passed
  • exact tree matched after Git Data publication (0f07c4e60f2e02fc60a0204a4cdfb0f42efbabc2)

Fresh exact-head hosted checks

Predecessor CodeQL run 34249195529 is terminal FAILURE. Exact handler run 34249932036 proved the cutover defect: protected main received the nested-only payload as SUPPLIED_REQUIRED_JOBS: null. That failure is not transferred to the new child.

The ordinary child generated a new exact-head generation:

Merge gates

Fresh exact-head terminal checks and a qualifying current-head independent approval remain mandatory. No predecessor check or review transfers. No merge, self-approval, auto-merge authorization, protection bypass, manual rerun, synthetic status, empty push, force push, destructive rebase, or Close was performed.

Summary by CodeRabbit

  • 새 기능

    • 모든 PR 기반 브랜치에서 Python 보안 및 런타임 품질 검사가 실행됩니다.
    • CodeQL이 PR의 베이스·헤드·생성 출처를 검증하고, 실패한 필수 검사를 전체 재실행합니다.
    • 스케줄러가 저장소별 자격 증명으로 Actions 실행을 조회·취소합니다.
  • 버그 수정

    • CodeQL 재실행과 상태 판정의 누락·오용 가능성을 줄였습니다.
    • 불완전하거나 모호한 SARIF 증거로 인한 잘못된 성공 판정을 방지합니다.
  • 문서

    • CodeQL 검증, 재실행, 자격 증명 및 PR 검사 범위 문서를 보강했습니다.

seonghobae and others added 30 commits September 5, 2026 16:34
Preserve the existing four-file rerun recovery delta without emitter or concurrency policy changes.

Local contract verification: 144 passed, 2 failed. Existing verdict-reader fixtures still expect the pre-pagination gh invocation; these files and the requester are unchanged from bf732f9. Workflow actionlint and diff checks passed. No hosted dispatch or push performed.

Signed-off-by: Seongho Bae <me@seonghobae.me>
Match exact gh arguments and page-shaped responses. Preserve trusted-publisher assertions and exercise second-page success and failure after a full page of forged statuses.

Signed-off-by: Seongho Bae <me@seonghobae.me>
Request PR state in GraphQL and preserve it in REST normalization. Reject missing state and empty or malformed heads before OpenCode dispatch, Strix dispatch, or Strix job rerun.

Preserve explicit positive fixtures and add fail-closed regressions. Focused RED: 17 failed, 19 passed; final scheduler regressions: 380 passed under both normal and GITHUB_ACTIONS=true environments with warnings treated as errors. No dispatch, permission, queue, or cancellation policy changes.

Signed-off-by: Seongho Bae <me@seonghobae.me>
Validate selected check, job, run, workflow and publisher before rerunning Strix. Preserve PR-target base-SHA executions through association and target-title checks; defer dispatch runs without authenticated target provenance.

Local mock-only regressions: 402 passed in normal and CI environments with warnings treated as errors. No token, permission, queue or cancellation changes.

Signed-off-by: Seongho Bae <me@seonghobae.me>
Signed-off-by: Seongho Bae <me@seonghobae.me>
Preserve the complete prior writer history while making the final tree authoritative from protected main plus only the five CodeQL recovery paths. Scheduler/Strix commits 951d0ec, 9bfe575, and fe64f24 are carried to their own successor branch; no valid delta is retired or force-updated.
Block terminal status publication and exact-job wake when SARIF upload does not succeed. Preserve existing finding verdicts and document the unresolved receipt boundary.

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Seongho Bae <me@seonghobae.me>
Compare already-fetched live base identity with event inputs before status consumption. Keep historical verdict provenance and artifact authority as unresolved follow-ups.

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Seongho Bae <me@seonghobae.me>
Supply the real base repository, ref and SHA required by the production dispatch shell. Preserve later-attempt redispatch coverage without weakening the live-base guard.

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Seongho Bae <me@seonghobae.me>
Merge exact 82ca0b8 into the handoff branch. Consolidate equivalent publication regressions and SARIF documentation while preserving live-base validation and rerun fixtures.

Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Seongho Bae <me@seonghobae.me>

Copy link
Copy Markdown
Contributor Author

Fresh downstream ordering canary from ContextualWisdomLab/accounting-information-platform#59@b3eec228abb60b1c8b4a7bd9d010d2ed9eb7e691, required CodeQL run 34435726564.

The same-run receivers terminal-failed before the authoritative dispatch job began:

  • Python receiver 102744998251: enforcement failure at 2026-09-10T04:41:24Z (job completed 04:41:27Z).
  • Actions receiver 102744998361: enforcement failure at 2026-09-10T04:42:18Z (job completed 04:42:20Z).
  • Authoritative Dispatch current-head CodeQL scan job 102747604145 did not start until 2026-09-10T04:52:16Z and completed SUCCESS at 04:52:22Z.

This reproduces the current receiver-before-producer/dispatch settlement defect on a new downstream head. It is not an AIP source-analysis finding and does not justify a leaf rerun, synthetic status, sleep-only workaround, or weaker provenance. The canonical owner still needs receiver/current-head enforcement ordered after authenticated same-run dispatch/publication settlement (or an equivalent exact-run barrier) while retaining repository/PR/base/head/language/required-run/SARIF identity.

@seonghobae seonghobae left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fresh owner-path handoff from ConceptWeave: protected central main advanced again to cb0872c9a20d5584703dffacca65c096fc034c6c via #1938. This #2040 head is now diverged 144 ahead / 32 behind current protected truth; merge base remains historical 7fd571dbcdbae6acf29d8f4ee704d7ba6297e4db. #2051 is likewise 18 ahead / 32 behind and currently Draft/non-mergeable. Preserve #2040 producer/handler/SARIF/settlement deltas plus #2051 {base_ref,base_sha}/rollout work and #2056 complete-failed-job-set/atomic-wake work, but adopt cb0872c... by ordinary non-force integration before treating any hosted evidence as current.

The unchanged ConceptWeave #35 consumer fixture still has Security 34434790791 SUCCESS, SAST 34434790777 SUCCESS and CodeQL PR 34434790860 terminal FAILURE: its compatibility analysis timed out/fails before the later dispatch job succeeds. Do not manufacture a leaf/manual rerun. Reproduce this on a current-central successor and close the authenticated terminal-settlement gap there: exact repo/PR/head/base/required-run/language/job/SARIF evidence, bounded job-set convergence, then one run-wide wake and terminal receipt before the compatibility deadline. COMMENT only; no approval/merge claim.

Copy link
Copy Markdown
Contributor Author

Fresh LineageWeave consumer reproduction on ContextualWisdomLab/LineageWeave#996@55e9db7cb288e2dbe524942ac73030e61ca0e0ab: CodeQL PR run 34438925914 is terminal. Detect CodeQL languages job 102749675441 succeeded. Python 102751647407, Actions 102751647434, and JavaScript/TypeScript 102751647464 each succeeded at Read current-head CodeQL dispatch verdict and then failed closed at Release runner or enforce current-head CodeQL verdict. Final Dispatch current-head CodeQL scan job 102754397096 succeeded. SAST and Security are GREEN on the same consumer head; repository-local Tests are skipped because #996 remains Draft. No LineageWeave waiver, synthetic status, leaf scanner substitute, provider/model pin, or head churn is being added. Please keep owner repair focused on publishing/authenticating the exact-head terminal CodeQL verdict so the unchanged consumer head can be revalidated normally.

Copy link
Copy Markdown
Contributor Author

AIP predecessor canary: ContextualWisdomLab/accounting-information-platform@d83e5ccf761729767908f467ab97cbe89b68a3c4, required CodeQL run 34439661665. Both compatibility receivers irreversibly failed before the same-run authoritative dispatch began: actions job 102753875109 enforced failure at 2026-09-10T05:28:01Z; python job 102753875144 enforced failure at 05:30:12Z; dispatch job 102756789337 did not start until 05:35:57Z and completed SUCCESS at 05:36:02Z. This is another receiver-before-dispatch ordering reproduction on an exact PR head. Leaf AIP will not add sleeps, synthetic statuses, rerun churn, or gate weakening; canonical fix remains owned here. Predecessor evidence only, not a verdict for AIP descendant heads.

Copy link
Copy Markdown
Contributor Author

Fresh unchanged consumer canary after protected central main advanced to cb0872c9a20d5584703dffacca65c096fc034c6c: ContextualWisdomLab/Orgmetra#96@f2c6e70edcf5c62ae0f848c29efd7bd3b8d45b97, required CodeQL run 34441833995. Detect CodeQL languages succeeded. Both compatibility consumers have already terminalized FAILURE at Release runner or enforce current-head CodeQL verdict: Actions job 102760503848, Python job 102760503862. The same run's Dispatch current-head CodeQL scan job 102763941196 is only queued at this read.

Thus the consumer-before-producer settlement-ordering defect remains observable on a fresh exact head: required consumers fail before their own dispatch can produce a terminal verdict. Do not repair this in Orgmetra with sleeps/polling/no-op reruns/synthetic statuses or predecessor verdict transfer. Also note this PR still records base main@7fd571db... while protected main is now cb0872c9...; canonical writer should ordinary non-force adopt/adapt intervening protected truth (including #1938 queue semantics) before treating the proposed repair as integration-ready.

Copy link
Copy Markdown
Contributor Author

Read-only consumer handoff from ContextualWisdomLab/fast-mlsirm; no central source/ref mutation requested.

Protected .github/main has advanced to cb0872c9a20d5584703dffacca65c096fc034c6c via #1938 (Strix push-scan coalescing), while #2040 remains exact 6706c231ab06a3c91c43fdb5b989cfcd79fff593 with recorded/base authority 7fd571dbcdbae6acf29d8f4ee704d7ba6297e4db. Its current exact-head hosted generation is now terminal: Security 34251822390, Semgrep 34251822314, Python Security 34251822251, and Runtime Quality 34251822381 are SUCCESS, but CodeQL PR 34251822255 is FAILURE.

The live fast-mlsirm consumer canary #1773 exact e49e631fbd672b27d408854d6c2409eea9ae073d remains leaf-green for CI/fuzz/Security/repository CodeQL/Semgrep and central CodeQL PR RED. Please treat the intervening protected-main delta as mandatory adopt/adapt input before any normal landing decision: non-force reconcile against current protected main, preserve the exact producer/handler identity and failed-job settlement invariants, and obtain a fresh unchanged-head terminal central CodeQL generation. Do not use the old 7fd571d... hosted evidence, a manual rerun loop, or the leaf consumer's repository CodeQL success as a substitute.

seonghobae commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

AIP required-CodeQL canary refresh. The same receiver-before-dispatch settlement defect has now reproduced across 36 consecutive exact #59 generations; do not treat these leaf failures as AIP source-analysis findings and do not add leaf sleep/polling/synthetic status/PAT/no-op rerun/gate weakening.

Latest terminal canary is ContextualWisdomLab/accounting-information-platform#59@6f646060bc8fa077dbf9b7152ee4a558fffee538, required run 34607798971. Python receiver 103290495839 completed its current-head verdict read at 2026-09-11T14:05:26Z and terminal-failed enforcement at 14:05:26Z. Actions receiver 103290495772 completed its verdict read at 14:05:59Z and terminal-failed enforcement at 14:05:59Z. Authoritative same-run dispatch 103291527834 did not start until 14:06:04Z, dispatched successfully 14:06:06Z–14:06:10Z, and completed SUCCESS at 14:06:12Z. This generation again proves receiver enforcement becomes irreversible before authenticated same-run producer/publication execution begins.

Protected .github/main remains cb0872c9a20d5584703dffacca65c096fc034c6c; canonical #2040 remains exact 6706c231ab06a3c91c43fdb5b989cfcd79fff593 on recorded base 7fd571dbcdbae6acf29d8f4ee704d7ba6297e4db. The central owner must adopt/adapt the intervening protected delta and non-force reconcile before normal landing. No AIP-local workaround is requested.

Copy link
Copy Markdown
Contributor Author

LineageWeave consumer reproduction, fresh exact head 65d3020d819f9b5d294d2c80c8a4e93a7802c65f (PR #996, base main@83eba56149eb802cd63642c507c324c9976ec78e): CodeQL PR run 34449557217 is terminal FAILURE. Detect CodeQL languages job 102782088708 succeeded. All three compatibility jobs read the current-head dispatch verdict successfully and then failed only at Release runner or enforce current-head CodeQL verdict: python 102782280917, actions 102782280945, javascript-typescript 102782281189. Final Dispatch current-head CodeQL scan job 102785480234 succeeded. Same exact consumer head has SAST 34449557791 SUCCESS and Security 34449557199 SUCCESS; repository Tests are intentionally skipped because #996 remains Draft. This is evidence for the canonical central owner only; no LineageWeave waiver/substitute status/rerun shim was added.

Copy link
Copy Markdown
Contributor Author

Fresh LineageWeave consumer reproduction on PR #997 exact head c3e59191a21de955c1df5d4bdadf926989c83b32: CodeQL PR run 34453149702 detects languages successfully. Compatibility jobs javascript/typescript 102794081913, actions 102794081940, and python 102794081966 all successfully complete Read current-head CodeQL dispatch verdict and then fail only at Release runner or enforce current-head CodeQL verdict; dispatch job 102796026724 is GREEN. This is a docs/test-only consumer head with Security and SAST GREEN. No LineageWeave waiver/substitute status is being added; please retain this exact-head receipt for the canonical owner repair.

Copy link
Copy Markdown
Contributor Author

LineageWeave exact-head consumer reproduction 갱신입니다. PR #997 head b981b582132bbf4369c7e4acf7b6b19a45e03a0e, CodeQL PR run 34463126738: Detect CodeQL languages 102825388403 GREEN. Actions 102825429322, Python 102825429354, JavaScript/TypeScript 102825429439 모두 Read current-head CodeQL dispatch verdict는 GREEN으로 완료한 뒤 Release runner or enforce current-head CodeQL verdict에서 fail-closed했습니다. Final Dispatch current-head CodeQL scan 102826202182는 GREEN입니다. LineageWeave leaf에는 synthetic status/waiver/substitute scanner/model-provider pin을 넣지 않았습니다. canonical owner에서 current-head terminal verdict/release 경계를 수리한 뒤 protected immutable owner result로 소비할 수 있게 부탁드립니다.

Copy link
Copy Markdown
Contributor Author

LineageWeave fresh consumer reproduction after terminalization of exact head bc9e127e9056c2924b8e410c63065e8b7ad66b5d (#998).

Consumer CodeQL PR run 34468724626 is terminal FAILURE. Language detection 102843350543 is GREEN. All three compatibility jobs successfully read the current-head dispatch verdict and fail only at the terminal enforcement step:

  • actions 102843396112: read verdict SUCCESS -> Release runner or enforce current-head CodeQL verdict FAILURE
  • python 102843396145: read verdict SUCCESS -> enforcement FAILURE
  • javascript-typescript 102843396248: read verdict SUCCESS -> enforcement FAILURE

Final consumer dispatch 102844072788 is terminal SUCCESS. Repository Tests 34468724635 are terminal SUCCESS, including PostgreSQL full-suite job 102843422758 and frontend lint/test/build/Storybook job 102843422961; Security 34468724516 and SAST 34468724517 are also SUCCESS. No leaf rerun shim, synthetic status, workflow copy, provider/model pin, bypass, or gate weakening was introduced.

This exact reproduction is supplied to the canonical CodeQL owner because the leaf has completed its own checks and remains fail-closed solely at the central compatibility enforcement boundary. Please preserve base/head-bound evidence and repair/release the owner path rather than accepting a leaf waiver.

@seonghobae seonghobae left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

[P1 authority/ancestry finding] Fresh protected truth is .github/main@cb0872c9a20d5584703dffacca65c096fc034c6c, but this exact-head PR body still calls 7fd571dbcdbae6acf29d8f4ee704d7ba6297e4db the protected base and reports 144 ahead / 0 behind. A fresh current-main→6706c231ab06a3c91c43fdb5b989cfcd79fff593 compare reports merge-base 7fd571db..., so the branch has not adopted current protected ancestry. Treat the 133/3088 local suite and old-base hosted generation as preservation evidence only, not current-base acceptance. Please non-force reconcile all valid producer/handler/SARIF/settlement deltas onto current protected truth (or a verified versioned handler bootstrap successor) and regenerate exact-current evidence; do not close/discard this valid work, force/rebase destructively, or transfer predecessor GREEN. This also keeps ConceptWeave #35 as an unchanged-head downstream canary rather than inducing leaf churn.

Copy link
Copy Markdown
Contributor Author

Fresh Orgmetra source-change canary for the CodeQL settlement contract: ContextualWisdomLab/Orgmetra#295 exact head ecd1d8248e047c65bf483e092b0dd57e08452341 (base develop@eb9757f8649aaad026a9865508d9aad50c1a7a4f) has Foundation 34495750505, Security 34495750577, and SAST 34495750509 SUCCESS, while CodeQL PR 34495750539 is terminal FAILURE. In that exact CodeQL run, language detection 102933637332 succeeded; Python consumer 102933699549 and Actions consumer 102933699649 both read the current-head dispatch verdict and then failed at Release runner or enforce current-head CodeQL verdict; only afterward did producer Dispatch current-head CodeQL scan job 102935120089 run and finish SUCCESS. This is a real source-delta PR, not a docs-only specimen, and reproduces consumer terminalization before producer settlement. No Orgmetra leaf sleep/poll extension, synthetic status, predecessor verdict transfer, empty commit, manual bypass, or local workflow fork is being introduced. Please preserve the exact base/head/run envelope and repair via the canonical producer → authenticated receipt/publication → consumer wake/re-evaluation path.

Copy link
Copy Markdown
Contributor Author

Fresh Orgmetra source-change canary from canonical consumer #295, exact protected-base/head eb9757f8649aaad026a9865508d9aad50c1a7a4f63a1103135f7f98a55cf284e6e2ff706c60deea9 after single-writer and UUID-alias repairs. Required CodeQL run 34506404647: language detection 102969698358 SUCCESS; Python consumer 102969754156 waited for current-head dispatch verdict from 17:09:26Z then terminal FAILURE at 17:12:05Z; Actions consumer 102969754183 waited from 17:09:25Z then terminal FAILURE at 17:12:09Z. Only after both consumers had failed did producer job 102970711715 (Dispatch current-head CodeQL scan) materialize, created/queued at 17:12:10Z. Independent exact-head GHAS Analyze(python) and Analyze(javascript-typescript) checks are already SUCCESS, so this is not evidence of a leaf source analysis failure. Please preserve the canonical producer→authenticated exact-head verdict→consumer settlement order; do not repair by leaf sleep inflation, no-op push, predecessor-status reuse, synthetic success, or mutable consumer copy. Current protected central .github/main observed unchanged at cb0872c9a20d5584703dffacca65c096fc034c6c; #2040 remains the central owner lane.

Copy link
Copy Markdown
Contributor Author

Fresh Orgmetra source-change canary from PR #295 exact d15a741c10685208b124477e9d7820cdf17339e8 on base eb9757f8649aaad026a9865508d9aad50c1a7a4f reproduces the producer/consumer settlement-order defect after a real manifest RED→GREEN repair.

Required CodeQL run 34515073664:

  • Python consumer 102998401466 started 18:33:46Z, finished FAILURE 18:36:30Z; its read step completed 18:36:28Z and enforcement failed immediately.
  • Actions consumer 102998401491 started 18:33:46Z, finished FAILURE 18:36:38Z; its read step completed 18:36:37Z and enforcement failed immediately.
  • Canonical producer Dispatch current-head CodeQL scan 102999395304 was only created after both compatibility consumers had entered execution; it started 18:36:56Z and completed SUCCESS 18:37:00Z.

The same exact head already has external GHAS Analyze (python) and Analyze (javascript-typescript) SUCCESS plus repository Foundation/SAST GREEN, so this is not evidence of a leaf analysis defect. The required consumers terminalized before the authoritative producer had even started. Repair contract remains producer materialization/execution → exact-head terminal receipt/verdict → consumer wake/re-evaluation → required-check terminalization. No leaf sleep extension, empty commit, predecessor verdict transfer, synthetic success, or local workflow fork was introduced.

Copy link
Copy Markdown
Contributor Author

Fresh RCA from canonical CodeQL run 34251822255, attempt 7, dispatch job 102154736341: this is no longer an opaque consumer failure. The coordinator reaches its exact live PR/head/base validation and evidence-discovery path, then exits with CodeQL coordinator could not bind every pending language to an exact failed job. The captured matrix is actions + python; RERUN_MODE=failed builds required_jobs only from exact matrix jobs whose current attempt conclusion is failure, then requires every language still lacking authenticated evidence to appear in that failed-job set. At least one pending language is therefore not represented by a terminal failed matrix job, so unmapped_pending_languages is non-empty and dispatch fails before OIDC/app-token exchange. This is a coordinator state-binding defect, not a LineageWeave leaf issue and not a reason to weaken the gate. Repair should preserve fail-closed semantics while distinguishing a pending language whose exact job is non-failure/non-rerunnable from a genuinely missing/malformed job; then RED→GREEN the coordinator with the mixed state that reproduced attempt 7. Please do not churn a rerun before the state-binding logic is repaired.

Copy link
Copy Markdown
Contributor Author

Orgmetra #295 fresh exact-head CodeQL canary: target head a3fa3470b6b4b489889b574afcc1f672a7fdedcc, base develop@eb9757f8649aaad026a9865508d9aad50c1a7a4f, required run 34518363659. CodeQL compatibility analysis (actions) job 103010123461 read for a current-head dispatch verdict from 2026-09-10T19:11:30Z and terminalized FAILURE at 19:13:47Z. Python job 103010123468 did the same and terminalized FAILURE at 19:14:21Z. Only then did authoritative Dispatch current-head CodeQL scan job 103012168579 materialize/start at 19:14:58Z and finish SUCCESS at 19:15:04Z. This reproduces consumer-before-producer settlement on a source-changing Keyverse-adapter head even though Foundation 34518363609, SAST 34518363587, Security 34518363631, GHAS analyses, OpenCode check and Noema check are otherwise green. Please keep the repair in the canonical central producer/settlement lane: producer receipt/publication must become observable before compatibility consumers terminalize, and consumer wake/re-evaluation must bind the exact base/head/run. No leaf sleep increase, empty retrigger commit, predecessor verdict transfer, synthetic status, local workflow fork, bypass or self-approval was used.

Copy link
Copy Markdown
Contributor Author

Fresh exact consumer canary from ContextualWisdomLab/Orgmetra#295, without leaf workaround or evidence transfer.

  • Consumer exact head: 625649e1770e395e3e6f44b36235d363ebf168ea
  • Live base at admission and current re-read: develop@eb9757f8649aaad026a9865508d9aad50c1a7a4f
  • Required CodeQL run: 34530913154
  • Detect job 103052889911: SUCCESS, 2026-09-10T21:24:00Z–21:24:06Z
  • Actions consumer 103054613654: read current-head dispatch verdict from 21:28:57Z and terminalized FAILURE at 21:31:27Z
  • Python consumer 103054613613: read current-head dispatch verdict from 21:29:13Z and terminalized FAILURE at 21:31:50Z
  • Authoritative dispatch producer 103056956760: did not start until 21:35:46Z and completed SUCCESS at 21:35:53Z

Thus both required consumers reached a negative terminal conclusion roughly four minutes before the exact-run producer even started. On the same head, repository Foundation 34530912986, SAST 34530913196, Security 34530913081, GHAS Trivy and Scorecard are successful, so this specimen is a producer/consumer settlement-order RED rather than evidence of a leaf source-analysis failure.

Please preserve the owner contract already carried by #2040: a required consumer must not terminalize absence/failure before the authoritative exact-base/head producer has had a bounded opportunity to materialize and publish an authenticated receipt; settlement must wake/re-evaluate the existing required run after publication. Do not solve this by increasing leaf sleeps, empty commits, predecessor verdict reuse, synthetic statuses, self-approval, or repository-local workflow forks.

Orgmetra has since advanced ordinary-forward for a separate binding regression, so 625649e... is RCA/canary evidence only and must not be transferred to the successor head.

Copy link
Copy Markdown
Contributor Author

Fresh Orgmetra source-change canary for the canonical CodeQL settlement owner.

Target: ContextualWisdomLab/Orgmetra#295

  • protected base: develop@eb9757f8649aaad026a9865508d9aad50c1a7a4f
  • exact head: da7d005e87c906f0ed1f0e8bd91c0677b3fff5d9
  • required run: 34535654057

Observed chronology on this exact run:

  • CodeQL compatibility analysis (python) job 103068855921: enforcement failed at 2026-09-10T22:25:48Z, terminal FAILURE 22:25:50Z.
  • CodeQL compatibility analysis (actions) job 103068855849: enforcement failed at 22:25:52Z, terminal FAILURE 22:25:55Z.
  • authoritative Dispatch current-head CodeQL scan job 103072122218 did not start until 22:36:03Z and completed SUCCESS at 22:36:10Z.

Both required consumers therefore terminalized roughly ten minutes before this run's producer even started. On the same head Foundation 34535654058, SAST 34535654111, Security 34535654086, Required Noema check 103069191453, and OpenCode check 103073937736 are SUCCESS; this canary supplies no leaf CodeQL/SARIF source finding.

Current protected central truth is still .github/main@cb0872c9a20d5584703dffacca65c096fc034c6c; #2040 is not protected truth yet. This handoff requests owner-path producer→authenticated exact-head receipt/publication→consumer wake/re-evaluation settlement only. Orgmetra will not add a leaf sleep/poll, empty retrigger commit, predecessor-verdict transfer, synthetic status, or gate weakening.

Copy link
Copy Markdown
Contributor Author

Fresh LineageWeave stacked-PR consumer reproduction for the central stacked-security admission contract: ContextualWisdomLab/LineageWeave#831@5e2dbaf5fa0d9d3fe640d70e4e91e917c0087679, base feat/leftover-map-compare-axis-singular-v2510@bebd77c03e5beae469f42361c20bccc80787ebb5. A Ready transition on this unchanged head admitted repository-local Tests run 34543708668; exact-head Actions inventory currently contains only the initial action-required Tests generation and this Tests generation. No Security/SAST/CodeQL workflow run is present on the exact stacked head. Frontend job 103091694765 is GREEN; full PostgreSQL job 103091694937 is still running, so no overall GREEN/merge claim is made. This is consumer evidence only—no LineageWeave leaf workflow, synthetic status, branch filter, provider pin, bypass, or no-op commit was added. Please preserve the central owner repair and use this exact head/base pair as a stacked-PR acceptance canary after protected integration.

Copy link
Copy Markdown
Contributor Author

Fresh Orgmetra consumer canary on protected consumer base; no leaf workaround applied.

  • consumer: ContextualWisdomLab/Orgmetra#295
  • exact head: 086fe88607b1e30f72633b5222fbcaf8f846e9ca
  • live protected base: develop@eb9757f8649aaad026a9865508d9aad50c1a7a4f
  • required CodeQL run: 34540431529
  • Actions compatibility consumer 103085052055: FAILURE, 2026-09-10T23:32:06Z → 23:34:16Z
  • Python compatibility consumer 103085052049: FAILURE, 2026-09-10T23:35:39Z → 23:37:44Z
  • authoritative Dispatch current-head CodeQL scan producer 103089505093: did not start until 23:49:59Z, then SUCCESS at 23:50:09Z

The producer therefore succeeded more than 12 minutes after the last required consumer had already terminalized failure. Same-head Foundation, SAST, Security workflow, GHAS Python/JS, OpenCode and Noema are successful; this is not being classified as an Orgmetra source-analysis failure. Please preserve exact base/head/run binding and repair producer-before-consumer settlement in the canonical #2040 owner stack. No sleep increase, empty commit, predecessor verdict transfer, synthetic status, bypass, or local workflow fork was used.

Copy link
Copy Markdown
Contributor Author

Read-only consumer handoff from TEPP; no source/branch change requested here. Fresh ContextualWisdomLab/TEPP#494@ea2e5ec612b20a05f6a89bb2fc0e896ed1bc4f45 gives an unchanged-head cross-repository acceptance specimen for this producer/handler settlement work.

Required CodeQL run 34321064222, attempt 3: actions job 103083324767 and python job 103083324952 both complete Read current-head CodeQL dispatch verdict successfully and then fail at Release runner or enforce current-head CodeQL verdict; detection 103083325416 and subsequent exact-head dispatch 103087759378 succeed. The same TEPP head's Rust Foundation, Documentation Quality, Security Scan and SAST are terminal GREEN. This exact tuple was also recorded on owner issue #1929 as comment 5627182613.

Please include this unchanged-leaf tuple in #2040's hosted acceptance after its own exact-head CodeQL is repaired/terminal: repository ContextualWisdomLab/TEPP, PR 494, head ea2e5ec612b20a05f6a89bb2fc0e896ed1bc4f45, base a243f18da4a4ca8a8d068c39922537f1f8ed6ad0, languages actions/python. No predecessor receipt transfer or synthetic status should satisfy it.

Copy link
Copy Markdown
Contributor Author

Fresh Orgmetra recovery PR canary reproduces the same consumer-before-producer settlement defect against an otherwise GREEN leaf head.

Target: ContextualWisdomLab/Orgmetra#298, exact head 161468e3d17b3e1964f570ec9bf286ec4045bc8d, exact base develop@eb9757f8649aaad026a9865508d9aad50c1a7a4f, required CodeQL run 34550250077.

Chronology:

  • Python consumer 103113932491: FAILURE at 2026-09-11T01:46:20Z.
  • Actions consumer 103113932533: FAILURE at 2026-09-11T01:48:34Z.
  • Authoritative dispatch producer 103117086375: did not start until 2026-09-11T01:51:58Z; SUCCESS at 01:52:04Z.
  • Same leaf head: Recovery Rehearsal Quality 34550250081 SUCCESS, Foundation 34550250052 SUCCESS, SAST 34550250018 SUCCESS, Security 34550250001 SUCCESS.

So both required consumers terminalized before the producer could publish current-head evidence; no leaf sleep/status synthesis/predecessor verdict is appropriate.

Also, the central owner PR itself needs a fresh non-force base reconciliation before claiming 0-behind/current protected truth. Live .github/main is cb0872c9a20d5584703dffacca65c096fc034c6c; #2040's current base snapshot is 7fd571dbcdbae6acf29d8f4ee704d7ba6297e4db. A live compare shows cb0872... is 32 commits downstream of 7fd571... (merge base 7fd571...). Please read/adopt those 32 intervening protected-main commits and ordinary-forward restack/merge them into #2040 rather than reusing the stale base evidence or force-rewriting the branch.

Copy link
Copy Markdown
Contributor Author

Fresh read-only consumer canary from writer-free codec-carver#558@21824f77e9ee4c26c42bb1f21f00eaa3ae21fb6d confirms the central settlement-order defect persists; no leaf source/workflow mutation or rerun was used.

Required CodeQL run 34544998904:

  • language detection job 103095600044: SUCCESS, completed 2026-09-11T00:17:36Z;
  • compatibility/actions 103098229049: terminal FAILURE at 00:30:32Z after Read current-head CodeQL dispatch verdict succeeded and enforcement failed;
  • compatibility/python 103098229044: terminal FAILURE at 00:30:36Z on the same settlement path;
  • authoritative Dispatch current-head CodeQL scan job 103101029964 did not start until 00:38:05Z and completed SUCCESS at 00:38:14Z.

The same exact consumer head has CI 34544999020, Security Scan 34544998906, SAST 34544998881, and fuzz 34544998878 terminal SUCCESS, plus external Devin Review/CodeRabbit success. This chronology is therefore not evidence of a leaf CodeQL analysis failure; the consumers terminalize before the producer dispatch exists.

Owner GREEN acceptance remains exact-identity settlement on {repository, PR, head, base_ref, base_sha, required_run, language}: either authenticated producer receipt/verdict exists before consumer enforcement or the consumer bounded-waits/reconciles that exact identity. Unchanged consumer SHA must converge without empty/no-op pushes or manual reruns. Stale/malformed identity, genuine scan failure, and cancellation must remain fail closed.

Copy link
Copy Markdown
Contributor Author

Fresh protected-consumer canary from ContextualWisdomLab/Orgmetra#298@161468e3d17b3e1964f570ec9bf286ec4045bc8d, required CodeQL run 34550250077: Python compatibility consumer 103113932491 finished FAILURE at 01:46:20Z; Actions consumer 103113932533 finished FAILURE at 01:48:34Z. The same run's authoritative Dispatch current-head CodeQL scan job 103117086375 did not start until 01:51:58Z and completed SUCCESS at 01:52:04Z. Detect-languages 103111456430 was GREEN. This is another exact consumer-before-producer settlement reproduction, not a recovery-rehearsal source finding. Keep it in #2040 acceptance; no leaf sleep/poll/no-op commit/predecessor-status workaround is requested.

Copy link
Copy Markdown
Contributor Author

Fresh protected-consumer canary from ContextualWisdomLab/Orgmetra#300@c5fe34cd1ae4dd3a8a6b66cafc27ef82af6a7b38, required CodeQL run 34563084424: Detect-languages 103149635844 completed SUCCESS. Actions compatibility consumer 103149919150 terminalized FAILURE at 2026-09-11T04:45:55Z and Python consumer 103149919188 at 04:46:49Z; the same run's authoritative Dispatch current-head CodeQL scan job 103150760385 did not start until 04:47:10Z and completed SUCCESS at 04:47:16Z. This exact head otherwise has Foundation 34563084489, SAST 34563084539, and Security 34563084456 terminal SUCCESS. This is another consumer-before-producer settlement reproduction, not a workflow-contract source finding. No leaf sleep/poll, no-op commit, synthetic status, predecessor verdict, or gate weakening is requested.

Copy link
Copy Markdown
Contributor Author

Fresh protected-consumer canary from ContextualWisdomLab/Orgmetra#300, exact head a50e591d6b3fd690e830399b7920c383aaa6975e, base develop@eb9757f8649aaad026a9865508d9aad50c1a7a4f, reproduces the same producer/consumer settlement-order RED on required CodeQL run 34568594424.

  • Python compatibility job 103166541235: current-head verdict read completed, enforcement failed at 2026-09-11T06:18:35Z, job completed FAILURE 06:18:37Z.
  • Actions compatibility job 103166541285: current-head verdict read completed, enforcement failed at 06:18:36Z, job completed FAILURE 06:18:38Z.
  • Authoritative Dispatch current-head CodeQL scan job 103168032202 did not start until 06:28:45Z and then completed SUCCESS at 06:28:50Z.

Thus both required consumers terminalized roughly ten minutes before this run's producer existed. Orgmetra Foundation/SAST/Security are GREEN on the same exact head; no leaf CodeQL-source finding is established. Do not solve this with an unchanged-head rerun, sleep/poll extension, synthetic status, empty commit, predecessor verdict, or Orgmetra leaf workflow edit. The canonical repair remains this central owner path.

Copy link
Copy Markdown
Contributor Author

Another fresh Orgmetra consumer canary from recovery PR #298, exact 9b6eca428c9b500158e3428b9cea461483ee4bcd, base develop@eb9757f8649aaad026a9865508d9aad50c1a7a4f, required CodeQL run 34570990718:

  • Python consumer 103173279931 failed enforcement at 2026-09-11T06:47:20Z, completed FAILURE 06:47:22Z.
  • Actions consumer 103173279976 failed enforcement at 06:52:35Z, completed FAILURE 06:52:36Z.
  • Authoritative dispatch producer 103175360364 did not start until 06:56:50Z and completed SUCCESS 06:56:57Z.

The same exact head has Foundation 34570990728, Recovery Rehearsal 34570990707, SAST 34570990699, and Security 34570990713 all SUCCESS. This independently reproduces consumer terminalization before producer availability across another Orgmetra branch. No leaf workaround or predecessor verdict transfer is requested.

Copy link
Copy Markdown
Contributor Author

Fresh Orgmetra protected-consumer canaries on 2026-09-11 reproduce the same required CodeQL settlement-order defect after current leaf source had otherwise usable evidence. No leaf workaround or rerun was applied.

  1. ContextualWisdomLab/Orgmetra#304@f2f3585395239868f34e2cc28197442873974286, required CodeQL run 34572683653:

    • Python consumer 103179885363: started 07:22:38Z, terminal FAILURE 07:25:05Z.
    • Actions consumer 103179885381: started 07:25:39Z, terminal FAILURE 07:28:27Z.
    • authoritative dispatch producer 103183901521: did not start until 07:41:07Z, then SUCCESS 07:41:15Z.
      Both consumers terminalized before the producer existed successfully, so this cannot be classified as a leaf CodeQL source-analysis failure.
  2. ContextualWisdomLab/Orgmetra#305@d47e01468e55b365302b1ffaa7e1d5e73a0a95e3, required CodeQL run 34573578533:

    • Actions consumer 103183987913: started 07:42:07Z, terminal FAILURE 07:44:34Z.
    • Python consumer 103183987872: started 07:42:07Z, terminal FAILURE 07:44:44Z.
    • authoritative dispatch producer 103187923221: started only at 07:50:44Z, SUCCESS 07:50:55Z.

These are two independent exact-head consumer-before-producer receipts against the same protected Orgmetra base eb9757f8649aaad026a9865508d9aad50c1a7a4f. Preserve fail-closed semantics, but acceptance needs to prevent required consumers from finalizing failure before the authoritative producer can publish/settle the exact base/head/language evidence. Predecessor status reuse, synthetic success, empty commits, and leaf sleeps are not acceptable repairs.

Copy link
Copy Markdown
Contributor Author

Fresh exact consumer-before-producer canary from ContextualWisdomLab/Orgmetra#305, head 648aca54c30ee7879e85faeeab76609c0a70b1e5, required CodeQL run 34578194899.

  • Python consumer 103196942801: started 2026-09-11T08:26:04Z; verdict read ended 08:28:47Z; enforcement failed at 08:28:47Z; job completed FAILURE 08:28:49Z.
  • Actions consumer 103196942778: started 08:32:49Z; verdict read ended 08:35:10Z; enforcement failed at 08:35:10Z; job completed FAILURE 08:35:12Z.
  • Authoritative producer Dispatch current-head CodeQL scan 103200825822: did not start until 08:36:55Z; dispatch ran 08:36:57Z–08:37:01Z; job completed SUCCESS 08:37:03Z.

Both required consumers therefore terminalized before this run's authoritative producer existed. This is not being reclassified as an Orgmetra source-analysis defect. No unchanged-head rerun, sleep/poll workaround, synthetic status, leaf workflow edit, or predecessor-verdict transfer is used.

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

Labels

bug Something isn't working priority: high High-priority or P1 work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant