Repository navigation
Description
What happens
.github/workflows/upstream-assessment.yml has failed on every scheduled run since 08-31 (08-31, 09-07, 09-14, 09-21), in the step Run upstream assessment. The first cause was the missing assessment label, which src/lib/upstream/issues.ts:296 applies. That label was created on 2026-09-25.
A second failure sits behind it. The Commit report and baseline step (upstream-assessment.yml:131-146) runs git commit and then a bare git push to main. Since #1109 (2026-09-20), main rejects direct pushes (ruleset CC, GH013), so a run that gets past the label still fails at the push. The next scheduled run is Monday 2026-09-28 09:00 UTC.
Expected
The report and baseline under .sequant/upstream/ land through a PR, as every other commit to main does (#1109, #1131). The owner decided on 2026-09-25 to keep committing reports, via a PR.
Acceptance criteria
Tier: mechanical · Graph: 2026-09-w3 (docs/internal/graph-2026-09-w3/issue-graph.md)
Owner decision (2026-09-25): the report lands through a PR opened with a GitHub App token. QA on PR #1155 showed the plain-GITHUB_TOKEN route can't work: Actions isn't allowed to create PRs here (403), and a PR opened by GITHUB_TOKEN never starts the required test/canary checks. The rejected alternatives were enabling that setting (report PRs stay unmergeable without a manual nudge), not committing reports (loses history), and a ruleset bypass for github-actions (reopens direct pushes to main).
- AC-1: the workflow never pushes to
main; it commits the report toupstream/<version>and opens a PR — Evidence:grep -n "git push" .github/workflows/upstream-assessment.ymlshows onlygit push origin "$BRANCH" - AC-2: the push and
gh pr createauthenticate as a GitHub App (actions/create-github-app-token, repo variableUPSTREAM_APP_CLIENT_ID, secretUPSTREAM_APP_PRIVATE_KEY), andGITHUB_TOKENis reduced tocontents: read+issues: write— Evidence:grep -nE "create-github-app-token|steps.app.outputs.token|contents: read" .github/workflows/upstream-assessment.ymlmatches all three - AC-3: without the App configured, the run still succeeds: the report is uploaded as the
upstream-assessmentartifact with a::warning::, and no push is attempted — Evidence:grep -n "upload-artifact\|::warning::" .github/workflows/upstream-assessment.ymlmatches both - AC-4: a new report is actually staged despite
**/.sequant/in.gitignore— Evidence:grep -n "git add -f .sequant/upstream/" .github/workflows/upstream-assessment.ymlmatches - AC-5: when nothing under
.sequant/upstream/changed, no branch or PR is created — Evidence: thegit status --porcelain .sequant/upstream/guard wraps the push andgh pr create(read the step) - AC-6: owner step, after merge: with the App installed and
UPSTREAM_APP_CLIENT_ID/UPSTREAM_APP_PRIVATE_KEYset, a dispatched run completes green and opens a report PR on whichtestandcanaryrun — Evidence:gh run list --workflow upstream-assessment.yml --limit 1 --json conclusion --jq '.[0].conclusion'printssuccess, andgh pr checks <report PR>liststestandcanary
Non-Goals
- A ruleset bypass for
github-actions: rejected, because it reopens direct pushes tomain(gate(owner): apply themainruleset — target~DEFAULT_BRANCH, require thetestcheck, strict up-to-date #1109). - Changing
scripts/upstream/assess.tsor the issues it files. release.yml's direct push: tracked in fix(ci): release.yml pushes the version bump straight to main, which the #1109 ruleset rejects #1162.
Activity
admarble commentedon Sep 25, 2026
Runner context (graph 2026-09-w3,
docs/internal/graph-2026-09-w3/issue-graph.md, PR #1154) — these rules apply to the spec, exec AND qa phases:npm test. Verify each AC with its own verify command and run only the named test files. The runner runs the full suite once per PR, serially — three phase agents share this machine and a full-suite call inside a phase can hit the 30-minute no-progress wall.timeout; neverrun_in_background.<!-- SEQUANT_MUTATION: {...} -->marker needsfailedTestto start with the test file path (src/.../x.test.ts > describe > case), or /qa §6i floors it to AC_NOT_MET.[Unreleased]line.admarble commentedon Sep 25, 2026
Complexity: Standard (4 ACs, 1 directory)
AC Quality Check
Clean. Every AC has a verify command. AC-4 can only be checked after merge and needs a live run.
Scope Assessment
Non-Goals:⚠️ Not stated. Implied: the label fix already landed, and the assessment logic in
scripts/upstream/assess.tsis untouched..github/workflows/)Verdict: ✅ SCOPE_OK
Acceptance Criteria
AC-1: the workflow pushes only an
upstream/<version>branch, nevermainVerification: Manual Test (read the step and run the grep)
Scenario: Given the workflow file → When
grep -n "git push"runs → Then the only match pushesupstream/$VERSION.AC-2: the job has
pull-requests: writeVerification: Manual Test (grep)
Scenario: Given the
assessjob → When grepped → Thenpull-requests: writeis present.AC-3: no changes under
.sequant/upstream/means no branch and no PRVerification: Manual Test (read the step)
Scenario: Given a run that changes nothing → Then the guard skips both
git pushandgh pr create.AC-4: a post-merge
workflow_dispatchrun with the latest version is green and opens a PRVerification: Manual Test (
gh workflow runthengh run list). This is post-merge and needs a human.Implementation Plan
Phase 1: Rewrite the
Commit report and baselinestep (upstream-assessment.yml:131-146)pull-requests: writeunderpermissions:(line ~28).GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}to the step env.gh pr createneeds it.git switch -c "upstream/$VERSION",git add,git commit, thengit push origin "upstream/$VERSION".gh pr create --base main --head "upstream/$VERSION" --title "docs: Upstream assessment for $VERSION" --body ....upstream/$VERSIONalready exists on origin, skip or update instead of failing. A failed first attempt or a second dispatch for the same version would otherwise fail on the push.git diff --quietto[ -z "$(git status --porcelain .sequant/upstream/)" ].git diff --quietignores untracked files, and a new${VERSION}.mdreport is untracked. It only works today becausebaseline.jsonis modified too. This is a small robustness fix inside the same guard, and AC-3 still holds.Design Review
gh pr create. Rejected: a bot PAT or GitHub App token (more secrets), and a ruleset bypass for the bot (weakens gate(owner): apply themainruleset — target~DEFAULT_BRANCH, require thetestcheck, strict up-to-date #1109)./releaseStep 6 (bug(release): /release Step 6 pushes to main, which the #1109 ruleset now rejects (GH013) — land the release commit through a PR #1131) also lands through a PR.GITHUB_TOKENdo not triggerpushorpull_requestworkflows. The requiredtestandcanarychecks would never start, and the PR would sit unmergeable.Feature Quality Planning
gh pr createfails with a 403 even withpull-requests: write. Add a check in AC-4 verification.VERSIONcomes frominputs.version. Keep it inenv:as the step does today, never inline${{ }}. Validate it against^v?[0-9]+\.[0-9]+\.[0-9]+$before using it as a branch name.grepoversrc/,tests/andscripts/found none). Verification is grep plus the dispatch run. Adding a gate test is optional. If one is added, it needs mutation verification per CLAUDE.md.Derived ACs
upstream/<version>branch or PR already exists does not fail the jobVERSIONis validated before it is used in a branch nameOpen Questions
GITHUB_TOKENPRs do not trigger workflows, sotestandcanarynever report and the strict ruleset blocks the merge. Recommendation: accept a manual step (the owner closes and reopens the PR, or pushes an empty commit, to trigger CI). This is a documented GitHub limitation, and a PAT or App token would add a secret. Impact if wrong: the PR is created but cannot merge without that step.gh api repos/admarble/sequant/actions/permissions/workflow --jq .can_approve_pull_request_reviews. Recommendation: enable it if it is off. Impact if wrong: AC-4 fails with a 403.Recommended Workflow
Phases: exec → qa
Quality Loop: disabled
Reasoning: A single-file CI workflow edit with manual and grep verification. No Unit or Integration Test ACs, so testgen is skipped. The
testandsecurity-reviewphases are not needed.Label Review
Current: bug, upstream
Recommended: bug, upstream (add
planned)Quality Loop: Won't auto-enable
Runner context (graph 2026-09-w3): qa does not run the full
npm test. It runs each AC's verify command. exec commits WIP first and stops at the PR without merging. CHANGELOG gets one[Unreleased]line.admarble commentedon Sep 25, 2026
QA Verdict: AC_NOT_MET
AC coverage: 0/3 met
Gaps:
Suggestions:
GH_TOKEN(for the push andgh pr create) resolves Issues 2 and 4 together and is the conventional fix for both. That is an owner decision (secret provisioning) rather than something QA should pick.admarble commentedon Sep 25, 2026
Runner verification of the QA findings (PR #1155): all three blockers reproduce.
git check-ignore -v --no-index .sequant/upstream/v9.9.9.md→.gitignore:52:**/.sequant/. The later**/.sequant/rule overrides the!.sequant/upstream/negation on line 50, sogit add .sequant/upstream/rejects a new report. This bug predates the PR. Fixable in scope, withgit add -for by reordering.gitignore.gh api repos/sequant-io/sequant/actions/permissions/workflow→{"default_workflow_permissions":"read","can_approve_pull_request_reviews":false}. The job-levelpull-requests: writecan't override the repo policy, sogh pr createreturns 403.GITHUB_TOKENstarts no workflow runs, so the ruleset's requiredtestandcanarychecks never report, and the report PR can't merge.Items 2 and 3 need an owner decision (a token secret, a repo setting, or dropping the committed report). The runner is holding this node until that decision is made.
docs(#1153): graph w3 execution log — #1145 blocked by #1122, #1153 h…
docs(#1153): graph w3 close — 4 merged, #1153 awaiting token decision
docs(#1153): graph 2026-09-w3 plan for #1145, #1153, #1122 and #1141 (#…
fix(#1153): open the report PR with a GitHub App token; artifact fall…
admarble commentedon Sep 25, 2026
Runner, qa phase: the ACs were rewritten on 09-25 for the owner's GitHub App decision. Verify AC-1 to AC-5 with their literal commands. AC-6 is owner/post-merge. Workflow dispatch is blocked by the hook here, so don't try it. No full
npm testis needed (YAML and CHANGELOG only; CI at the head SHA is green).admarble commentedon Sep 25, 2026
QA Verdict: NEEDS_VERIFICATION
AC coverage: 0/2 met
Gaps:
mainruleset — target~DEFAULT_BRANCH, require thetestcheck, strict up-to-date #1109 GH013 rejection this issue fixes for upstream-assessment; no open issue covers it.github/workflows/upstream-assessment.yml:165-167— the comment states the opposite of what the code does. It says "porcelain, notgit diff: a new report is untracked, andgit diffonly sees the modified baseline.json." But the new report is ignored, not merely untracked, sogit status --porcelaindoes not see it either. Measured, not reasoned: with.sequant/upstream/v9.9.9.mdpresent,git status --porcelain .sequant/upstream/returns empty;--ignoredreturns!! .sequant/upstream/v9.9.9.md. The guard opens only because trackedbaseline.jsonis rewritten byupdateBaseline()on every non-dry run (src/lib/upstream/assessment.ts:284-287) — i.e. via exactly the signal the comment attributes togit diff. It works, but the coupling is undocumented and load-bearing: ifupdateBaselineever writes identical bytes, the report is dropped under "No changes to commit" with a green run.git status --porcelain --ignored .sequant/upstream/(or testing the report path directly) would make the guard mean what the comment claims.Suggestions:
.github/workflows/release.yml:87still runs a baregit pushaftergit commit -m "chore: bump version to $VERSION"undercontents: write. Dispatched frommain, that hits the sameGH013rejection fix(ci): upstream-assessment pushes its report straight to main, which the #1109 ruleset rejects #1153 exists to fix. bug(release): /release Step 6 pushes to main, which the #1109 ruleset now rejects (GH013) — land the release commit through a PR #1131 moved/release's step 6 to a PR but did not touch this workflow. No open issue covers it — worth filing as a follow-up.fix(#1153): the no-changes guard sees a new ignored report (--ignored)
fix(#1153): upstream-assessment lands its report via PR (#1155)
admarble commentedon Sep 25, 2026
Merged in #1155 (
ed79d880). Reopened for AC-6 only. The owner still needs to create the App, setUPSTREAM_APP_CLIENT_IDandUPSTREAM_APP_PRIVATE_KEY, dispatch once, and confirm the report PR runstestandcanary. Until then, runs pass and upload the report as an artifact with a warning. Sibling found by QA:release.ymldirect push → #1162.admarble commentedon Sep 26, 2026
AC-6 met (2026-09-26). The
sequant-upstream-botApp is installed on sequant-io, withUPSTREAM_APP_CLIENT_IDandUPSTREAM_APP_PRIVATE_KEYset. Dispatch run 36210408001 (version=v2.1.283) succeeded through the App path, filing assessment #1171 and findings #1172–#1177. The bot opened report PR #1178, wheretestandcanaryboth ran and passed; it merged as the next commit onmain, and the baseline is nowv2.1.283. Two setup fixes along the way: the App needed installing on the org (the first run returned a 404 from the installation lookup), and theneeds-triageandpriority:highlabels were missing (the partial issue #1170 was closed).docs(upstream): merge the report PR after triage; triage procedure an…