Skip to content

docs(review-gates): reframe structural vs stochastic around decision points - #241

Merged
max-sixty merged 1 commit into
mainfrom
fix/review-gates-decision-point
Apr 11, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/review-gates-decision-point

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Summary

Reframes the Structural vs. stochastic definitions in review-gates.md around a decision-point discriminator, to fix the exact misreading that produced the misclassification in #239.

Why

In #239 I classified a git checkout --ours <file> data-loss finding as structural because the tool is deterministically lossy once invoked. The intended reading of "deterministic cause" was "the same conditions produce the same failure regardless of how the bot approached the task" — but "deterministic cause" is ambiguous enough that the tool-determinism reading is plausible on first pass. Max flagged this in this comment.

The minimal fix is to replace "deterministic cause" with explicit decision-point language:

  • Structural = no decision point (environment is the failure, same outcome regardless of tool choice).
  • Stochastic = bot picked one option from several valid alternatives, including cases where the chosen tool is lossy once invoked — the choice is still a model behavior, not a structural property.

I also added "the model reached for a lossy command when a safe alternative existed" to the stochastic examples, so the --ours case has a direct analogue in the guidance.

Scope: 30% of the two suggestions in the #239 thread — just the definitional clarification, not the new "explicit replay-answer" checklist item (suggestion 2). Minimal targeted edit, no restructuring.

Test plan

  • CI green (lint)

…points

The prior wording ("failure has a deterministic cause") was misread in
PR #239 as "the tool is deterministic once invoked", leading to a
stochastic finding (bot reached for `git checkout --ours <file>` when
safer alternatives existed) being classified as structural. Reframe the
definitions around the decision-point discriminator: structural means
the environment produces the failure with no bot decision point;
stochastic covers model choices even when the chosen tool is
deterministically lossy once invoked.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@max-sixty
max-sixty merged commit 3a95e12 into main Apr 11, 2026
3 checks passed
@max-sixty
max-sixty deleted the fix/review-gates-decision-point branch April 11, 2026 16:43
tend-agent added a commit that referenced this pull request Apr 11, 2026
Reduces #241 to a minimal definitional tweak per
#239 (comment): keep the "did the bot have a decision
point?" framing and the trimmed structural definition, but revert the
stochastic paragraph to its pre-#241 wording. That removes the two
object-level references to the `git checkout --ours` case — the
"deterministically lossy once invoked" parenthetical and the "lossy
command when a safe alternative existed" example — which tied the
meta-guidance to a specific incident rather than staying at the
classification-framework level.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
tend-agent pushed a commit that referenced this pull request Apr 11, 2026
…ression

PR #226 (`fix(ci-runner): filter CI polling by run URL, not workflow name`)
reintroduced the exact poisoned-text regression that PR #234 fixed. Its diff
on plugins/tend-ci-runner/skills/review/SKILL.md and
plugins/tend-ci-runner/skills/running-in-ci/SKILL.md reverted the CI-polling
comment from the PR #234 wording back to the pre-#234 wording containing
`` `if \!` ``, which the slash-command preprocessor scans and exec's as bash.

Since #226 merged at 2026-04-11 15:01:22 UTC, every `/review` invocation has
failed identically with the 5-line trace: queue/dequeue, command-caveat,
command-name, local-command-stderr, then nothing. Three tend-review runs in
this hour's window (PRs #240, #241, #242) all produced that exact trace and
posted zero reviews.

Rephrase the CI-polling comment in both files to avoid any `\!` adjacent to a
backtick. The guidance is unchanged. Matches the wording that PR #234 already
merged successfully — this is a straight restoration of that fix.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
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