Repository navigation
docs(review-gates): reframe structural vs stochastic around decision points - #241
Merged
Merged
Conversation
…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]>
1 task
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]>
1 task
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]>
This was referenced Apr 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reframes the Structural vs. stochastic definitions in
review-gates.mdaround 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:
I also added "the model reached for a lossy command when a safe alternative existed" to the stochastic examples, so the
--ourscase 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