Skip to content

docs+governance: the body-only re-run is the REST call; protect it in the claims manifest - #157

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/rest-rerun-156
Oct 2, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/rest-rerun-156

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Summary

This repo prescribed gh run rerun <run-id> for the body-only fix, in README.md and in the org-wide-pr-validator-required.yml comment. Its governance manifest also required that text in the git-workflow skill source. But gh run rerun cannot re-run this org-required workflow: gh resolves a run's workflow against the target repo, gets a 404 because the workflow is defined here, and exits 1 without re-running. The evidence and gh-source mechanism are in opencharly/layer-charly-internals#71. The texts also claimed that a re-run updates the check run "IN PLACE (no duplicate)", which is false: a re-run is a new attempt with a new check run that supersedes the failure.

This PR changes three files:

  • README.md: the body-only-fix paragraph now prescribes gh api -X POST repos/<owner>/<repo>/actions/runs/<run-id>/rerun, with the measured behaviour.
  • .github/workflows/org-wide-pr-validator-required.yml: the same correction, comment lines only, so the workflow's behaviour is unchanged.
  • scripts/governance-claims.tsv:
    • the skill-source rerun_manual row flips from require gh run rerun to require actions/runs/.*/rerun;
    • new forbid gh run rerun <run-id> rows protect the skill source, this README.md and the workflow.

The forbid pattern targets the prescriptive form gh run rerun <run-id>. The new texts mention the bare gh run rerun only as a "not this" warning, which the gate allows.

Staged on purpose: the marketplace projection rows (marketplace/internals/skills/git-workflow/SKILL.md) are unchanged here. They flip in the same change as the marketplace regeneration of layer-charly-internals#72's source. Flipping them now would fail the umbrella-root gate against the not-yet-regenerated projection.

Landing order: opencharly/layer-charly-internals#72 (the skill source) had to land first, and it has: merged as 1f3fcca04. The control below shows the new skill-source rows fail against the pre-#72 source.

Relates to #156 and opencharly/layer-charly-internals#71.

How tested

Head 3ab6cc9b573f541e84c6d4cf666e58262e47c0a0:

 .github/workflows/org-wide-pr-validator-required.yml | 15 +++++++++------
 README.md                                            | 14 +++++++++-----
 scripts/governance-claims.tsv                        |  6 +++++-
 3 files changed, 23 insertions(+), 12 deletions(-)

The workflow change is comment-only, and the YAML still parses. The second command counts changed lines that are not # comments:

$ python3 -c "import yaml; yaml.safe_load(open('.github/workflows/org-wide-pr-validator-required.yml'))" && echo workflow-yaml-ok
workflow-yaml-ok
$ git diff -U0 .github/workflows/org-wide-pr-validator-required.yml | grep -E '^[-+]' | grep -v -E '^(\+\+\+|---)' | grep -c -v -E '^[-+]#'
0

The gate's self-test, and the CI mode (what validator-harness.yml runs; cross-repo rows skip):

$ bash scripts/governance-reconcile.sh --self-test
governance-reconcile --self-test: all assertions passed
$ bash scripts/governance-reconcile.sh --root .
governance-reconcile: checked=7 skipped=31 fail=0

The full cross-repo run, in an umbrella-layout root containing this branch and the layer-charly-internals#72 branch; every row is asserted:

$ bash scripts/governance-reconcile.sh --root <umbrella-layout root> | grep rerun_manual
ok    rerun_manual/git-workflow skill source — required phrase present in layer-charly-internals/charly.yml
ok    rerun_manual/git-workflow skill source — forbidden phrase absent from layer-charly-internals/charly.yml
ok    rerun_manual/git-workflow skill source — forbidden phrase absent from layer-charly-internals/charly.yml
ok    rerun_manual/marketplace projection — required phrase present in marketplace/internals/skills/git-workflow/SKILL.md
ok    rerun_manual/marketplace projection — forbidden phrase absent from marketplace/internals/skills/git-workflow/SKILL.md
ok    rerun_manual/org-wide required workflow — forbidden phrase absent from dotgithub/.github/workflows/org-wide-pr-validator-required.yml
ok    rerun_manual/dotgithub README — required phrase present in dotgithub/README.md
ok    rerun_manual/dotgithub README — forbidden phrase absent from dotgithub/README.md
ok    rerun_manual/org-wide required workflow — forbidden phrase absent from dotgithub/.github/workflows/org-wide-pr-validator-required.yml
governance-reconcile: checked=38 skipped=0 fail=0

Control: the new rows fail without the skill fix. Same root, but with the current pre-#72 layer-charly-internals checkout:

FAIL  rerun_manual/git-workflow skill source — required phrase ABSENT from layer-charly-internals/charly.yml (/actions/runs/.*/rerun/)
FAIL  rerun_manual/git-workflow skill source — forbidden phrase PRESENT in layer-charly-internals/charly.yml (/gh run rerun <run-id>/)
governance-reconcile: checked=38 skipped=0 fail=1

The measurements behind the new text (opencharly/docs#142):

$ gh run view 36933867704 -R opencharly/docs
failed to get run: HTTP 404: Not Found (https://api.github.com/repos/opencharly/docs/actions/workflows/364505841)
$ gh api repos/opencharly/docs/actions/runs/36933867704 --jq .path
.github/workflows/org-wide-pr-validator-required.yml
$ gh api "repos/opencharly/docs/commits/041625863684b7dfa7306f4ea1f1147aeeef6542/check-runs?filter=all&check_name=validate%20/%20validate" --jq '.check_runs[]|"\(.id) \(.conclusion) \(.started_at)"'
110611257957 success 2026-10-01T22:20:21Z
110609410070 failure 2026-10-01T22:14:50Z
$ gh api "repos/opencharly/docs/commits/041625863684b7dfa7306f4ea1f1147aeeef6542/check-runs?filter=latest&check_name=validate%20/%20validate" --jq '.check_runs[]|"\(.id) \(.conclusion)"'
110611257957 success

Rulebook compliance

  • R0 Skills first: /charly-internals:git-workflow, /charly-internals:skills and /charly-internals:root-cause-analyzer were loaded.
  • R1 RCA: the gh failure was root-caused in gh's source (layer-charly-internals#71); the manifest's wrong require is the missed control this fixes.
  • R2 Finish the cutover: every .github surface is fixed. The projection rows are deliberately staged to the marketplace regeneration (stated above, tracked on fix: use raw fetch with bot token for CHANGELOG write #71).
  • R3 No duplication: the README and the workflow comment state one canonical command; the manifest protects it on every surface.
  • R4 No workarounds: the REST endpoint is GitHub's documented re-run API.
  • R4a Product first: N/A — no charly command changes.
  • R5 Delete legacy: the false "in place / no duplicate" claim is removed from both surfaces; the forbid rows keep it out.
  • R6 Git safety: a feat branch, one commit, one push, no force push.
  • R7 Prove behaviour: the gate passes with the fix and fails without it (control above).
  • R7a Live or skip: the measurements are against the real GitHub API; the gate is offline by design.
  • R8 Preserve emitted artifacts: the workflow file changes comments only (0 non-comment lines), so its behaviour is unchanged.
  • R9 Binary equals source: N/A — no binary.
  • R10 Fresh disposable proof: N/A as a bed. This is documentation and governance data, and the governance gate is the change-class proof.
  • Rule 9 (umbrella): no open .github PR touches these files; the issue is claimed by readme-truth.

Change classification

  • Change class: documentation + governance manifest (prose, workflow comments, claim rows); no runtime behaviour.
  • Verification gate: governance-reconcile.sh self-test, the CI mode, and the full cross-repo run, plus the fail-without-the-fix control.
  • Attribution tier: documentation reviewed.

Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (documentation reviewed)

… the claims manifest (#156)

gh run rerun cannot re-run this org-required workflow (gh resolves the
run workflow against the target repo and 404s), and a re-run does not
update the check run in place - it is a new attempt whose newer check run
supersedes the failure (measured on opencharly/docs#142). Rewrite the
README paragraph and the workflow comment to the REST re-run, flip the
skill-source rerun_manual row to require actions/runs/.*/rerun, and add
forbid rows for the prescriptive `gh run rerun <run-id>` on the skill
source, this README and the workflow.

Relates to #156, opencharly/layer-charly-internals#71

Assisted-by: Claude Code Anthropic Claude Opus 5.5 (documentation reviewed)
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)

The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.

  • class: provider unanswered (the provider returned no response headers within the attempt timeout)
  • review exit code: 1
  • in-job retries: none — the gate REPORTS the class instead of papering over it (R4)

Root cause. The ENGINE sent no generation bound (reasoning_effort / max_tokens), so a reasoning model generated megabytes of reasoning before answering (measured: 1.75 MB / 786 s on the real context). THIS WORKFLOW then converted that into a hard failure by handing the engine a hardcoded 5-minute whole-request AI_REVIEW_ATTEMPT_TIMEOUT (the engine streams, so a whole-generation deadline is the wrong bound) — the cap killed the generation mid-flight and the per-turn retry re-sent the SAME request. The primary cause is the unbounded generation (owner: the engine, opencharly/plugin-review#10); the hardcoded cap is the workflow-side amplifier this PR removes.

Durable remedy.

  1. bound the generation in the engine (refactor(review): use the shared sdk/llmkit client (one OpenAI path) plugin-review#10); pass AI_REVIEW_STREAM_IDLE_TIMEOUT (the correct bound for a streaming engine) and leave AI_REVIEW_ATTEMPT_TIMEOUT UNSET so no whole-generation cap cuts a progressing stream;
  2. if this persists, raise the idle bound or the tool-result cap (AI_REVIEW_TOOL_RESULT_MAX_BYTES) rather than capping total generation time.

A run that produced no verdict keeps this required check RED: unreviewed code must never merge.

Full diagnostics: this run's evidence artifact + job log (not embedded here — embedding a runaway log would feed it into the next review and deepen the collapse).

@aitrawog

aitrawog commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

STATUS — opencharly/.github#157 · slug readme-truth

The last run ended INCONCLUSIVE, provider class ("the provider returned no response headers within the attempt timeout"). That is not a BLOCK and not a code finding, so no code change follows. Per the git-workflow skill this class goes to the operator rather than into a blind re-run: the live org config runs deepseek-v4.1-flash on ollama-cloud with AI_REVIEW_REASONING_EFFORT, AI_REVIEW_MAX_TOKENS, AI_REVIEW_STREAM_IDLE_TIMEOUT and AI_REVIEW_ATTEMPT_TIMEOUT all unset, which matches the diagnostic's unbounded-generation cause. I have raised it with the operator. Once the gate config is addressed, or the operator asks for a plain re-run, I'll re-run this head through the REST API.

Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

@aitrawog

aitrawog commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

STATUS — opencharly/.github#157 · slug readme-truth

Re-ran the gate once (gh api -X POST repos/opencharly/.github/actions/runs/36957531992/rerun → run_attempt: 2, head 3ab6cc9b5, queued at 03:45:47Z). No code change and no body change: the last verdict was INCONCLUSIVE, which carries no finding to fix, so there is nothing to commit for it.

Why a re-run rather than another escalation. The class is the provider (no response within the attempt timeout), and I escalated the config to the operator in my note above. But a re-run is a fresh attempt, and there is now direct evidence that one can succeed on this exact workflow: charly#750's own INCONCLUSIVE run passed on re-run (36958365529 attempt 2, 03:13:35Z), after which that PR merged at 03:15:37Z. One re-run is worth spending before treating the class as a hard stop.

A related finding from the same investigation, since it touches this repo's file. dotgithub/.github/workflows/org-wide-pr-validator-required.yml states that a re-run of the failed run "reuses the SAME GITHUB_SHA and updates THAT run's check run IN PLACE — no duplicate same-name check run, no POISON". The mechanism there is wrong, though the effect is right: measured on charly#750 (head 81a31ee5, filter=all), the re-run leaves two same-name check runs — 110686319282 failure (attempt 1) and 110688937293 success (attempt 2). The newer attempt still settles the merge (#750 merged carrying exactly that pair), so "no POISON" holds — but a new check run is created, which is why the check-runs endpoint's default filter=latest hides the superseded attempt. That distinction now matters in code: marketplace/scripts/pr_state_watch.sh reads filter=all and treats that pair as SUPERSEDED, not terminal (opencharly/marketplace#405). This PR's own text says "the new attempt supersedes the failure", which is correct; the sentence above it is the one I would fix if this PR gets another body pass.

Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 3ab6cc9b573f541e84c6d4cf666e58262e47c0a0 (branch: feat/rest-rerun-156)

Security screen: PASS — docs + governance-data only. The workflow hunk is 100% # comment lines (verified line-by-line in the diff), so its behaviour is unchanged; no secrets/egress/scope mismatch/supply-chain edit. The manifest edit strengthens the gate (adds three forbid rows) and corrects a wrong require; no guardrail is loosened. PR opened by a maintainer-set account (@aitrawog).
Checklist: All applicable rules PASS or NA (no runtime/bed/CUE/Go/candy change; R10 bed NA — the change-class proof is the governance gate self-test + CI mode + full cross-repo run, with a fail-without-fix control; the pasted run is internally consistent with the diff — 9 rerun_manual assertions ↔ 9 TSV rows — and the new prose is backed by the pasted gh run view/gh api measurements). Placement: CORRECT (README/workflow/manifest belong in .github).
Comments: 5944924787 (@aitrawog) — verified-non-blocking (provider-class INCONCLUSIVE CI run; CI state is not a review input). 5945227824 (@aitrawog) — stale-superseded: the quoted "IN PLACE — no duplicate same-name check run, no POISON" sentence is the pre-PR workflow wording that THIS diff removes; the comment's own correct reading ("the newer attempt supersedes the failure") matches the current text, so no finding reproduces against the current state.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 2, 2026 03:49
@github-actions
github-actions Bot merged commit 1edbaa5 into main Oct 2, 2026
2 of 3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants