Skip to content

docs(engine): script_error_at's doc names the refusals that leave no mark (#2937) - #2962

Merged
jgregoriorincon merged 1 commit into
opengeos:mainfrom
jgregoriorincon:docs/2937-script-error-at-doc
Nov 25, 2026
Merged

jgregoriorincon merged 1 commit into
opengeos:mainfrom
jgregoriorincon:docs/2937-script-error-at-doc

Conversation

@jgregoriorincon

@jgregoriorincon jgregoriorincon commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #2937. The doc of script_error_at (crates/engine/src/cmd/workflows.rs) said a run ahead's refusal names no line, so it leaves no mark. That is not true of every refusal of a run ahead: check_prepared_prefix's refusal reads line {n} ({id}) cannot be prepared…, so it names its line and is marked like any other stop.

The doc now names the three stops that name no line (the line cap, NOT_AHEAD, and the refusal of a script that can't prepare its queries or table writes under its permissions) and says check_prepared_prefix's refusal names its line. Raised in #2820.

Doc comment only: no code change. The doc says the test pins the stops that start with a line and the line cap, which is what it does today (NOT_AHEAD, the non-native refusal and check_prepared_prefix's are not in it).

Reaches: nothing: a comment, so no surface (desktop, browser, command line, Python, MCP, plugins) changes.

Testing

Docs-only, so no checks.sh run. Each claim checked against main: the line cap (script_commands), NOT_AHEAD (gp.rs), the non-native refusal (script_ahead) and check_prepared_prefix (format!("line {n} …")). rustfmt --check on the file: exit 0.

UI evidence

No visible UI change.

Related issue

Closes #2937.

Summary by CodeRabbit

  • Documentation
    • Clarified how script failures are reported, distinguishing errors that are associated with a specific script line from those that are not. The updated guidance explains how this distinction applies to several types of script execution and query preparation failures.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The script_error_at documentation now identifies which script refusals name a line and which leave no mark. No code behavior changed.

Changes: Script error documentation

Layer / File(s) Summary
Document refusal line-mark behavior
crates/engine/src/cmd/workflows.rs
The documentation lists the line cap, NOT_AHEAD, and permission-based prepare refusal as stops that name no line. It states that check_prepared_prefix refusals name a line and are marked.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other · Severity of issue fixed: Low

Possibly related PRs

Suggested reviewers: mavrick-f, giswqs

Merge Risk: Minimal · up to f9dae

This PR only corrects the documentation of which script refusals name a line. It changes no runtime behavior, so merge risk is minimal.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Issue #2937 requires a doc-only change to the doc comment of script_error_at in crates/engine/src/cmd/workflows.rs. The doc must name three stops that name no line: the line cap, NOT_AHEAD, and … Provide the readable diff of crates/engine/src/cmd/workflows.rs between the merge base and head, or the text of the script_error_at doc comment at head. Then confirm that the doc names the three no-line stops and states that the `check_…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names the docs change to script_error_at and the refusals that leave no mark, which matches the raw summary. It is specific and follows the conventional type(scope) pattern. It is a PASS.
Description check Passed The description follows the template. It has Summary, Testing, UI evidence, and Related issue sections. The UI section correctly says there is no visible UI change. It explains the doc correction, the…
Out of Scope Changes check Passed The change set, per the summary and PR description, is limited to a doc comment in crates/engine/src/cmd/workflows.rs (+7/-3, no declaration changes, no code change). The described text addresses on…
Full details: Description check

Explanation

The description follows the template. It has Summary, Testing, UI evidence, and Related issue sections. The UI section correctly says there is no visible UI change. It explains the doc correction, the three stops that name no line, and the check_prepared_prefix refusal. It lists the testing done (claims checked against main, rustfmt --check exit 0) and links #2937. It is a PASS.

Full details: Out of Scope Changes check

Explanation

The change set, per the summary and PR description, is limited to a doc comment in crates/engine/src/cmd/workflows.rs (+7/-3, no declaration changes, no code change). The described text addresses only issue #2937. No unrelated file or behavior change is described. The diff itself could not be read, so this verdict rests on the summary and PR description, not on the full diff.

Full details: Linked Issues check

Explanation

Issue #2937 requires a doc-only change to the doc comment of script_error_at in crates/engine/src/cmd/workflows.rs. The doc must name three stops that name no line: the line cap, NOT_AHEAD, and the non-native prepare refusal (script_ahead). It must also state that the check_prepared_prefix refusal names its line. The whole-PR diff (merge base ced7c3d to head f9dae95) could not be read because changed blobs are missing from the checkout. A focused file read at head returned the start of the file, which was truncated before script_error_at, so the doc text was not seen. The AI-generated summary and the PR description both state the new doc content matches the issue. That is a secondary claim, not source evidence. No automated test is required by the issue, and none is in the PR. Requirement compliance is therefore not confirmed from source.

Resolution

Provide the readable diff of crates/engine/src/cmd/workflows.rs between the merge base and head, or the text of the script_error_at doc comment at head. Then confirm that the doc names the three no-line stops and states that the check_prepared_prefix refusal names its line.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit reads the notes with care,
“These stops leave no line to mark.”
One refusal names its line,
So marks can follow in their wake.
The page is clear; I hop away.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 8c14d85e-518a-49f2-89d3-8e9f8f617245
Commits

Reviewing files that changed from the base of the PR and between b595175 and f9dae95.

Files selected for processing: 1

  • crates/engine/src/cmd/workflows.rs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor

Code review

Doc-only change to script_error_at's comment in crates/engine/src/cmd/workflows.rs. I found nothing worth raising inline and posted no comments.

Bugs: None found. I checked each claim in the new doc against the code, and all hold:

  • The line cap (MAX_SCRIPT_LINES, script_commands, workflows.rs:1534-1537) returns "the script has more than … lines", which doesn't start with line , so it names no line. The test pins it as None (tests.rs:3470-3472).
  • NOT_AHEAD (workflows.rs:1472-1473, gp.rs:892) returns a bare string with no line prefix.
  • The non-native refusal in script_ahead (workflows.rs:1176-1181) doesn't start with line .
  • check_prepared_prefix (workflows.rs:1215-1217) formats line {n} ({id})…, which script_error_at does mark, and the new doc says so.
  • Every other stop inside the run loop is wrapped as line {n}: … (workflows.rs:1484, 1489, 1491, 1501), so the list of three no-line stops is complete for the loop. script is required (workflows.rs:1459) comes before any line, so the "of a script's lines" scope excludes it correctly.
  • The test comment's statement that a_scripts_error_says_where_it_stopped pins line-prefixed stops and the line cap is accurate. The test doesn't cover NOT_AHEAD, the non-native refusal, or check_prepared_prefix, which matches the PR body.

Security: None. No code changed.

Performance: None. No code changed.

Quality: None worth an inline comment. The paragraph is dense but accurate.

AGENTS.md: One low-confidence note (confidence about 40%). AGENTS.md says to run cargo xtask ci before every commit. The PR body says only rustfmt was checked, and I could not run anything here to confirm formatting. For a comment-only edit the risk is very low, so this is a process gap rather than a defect.

Prior review threads: none on this PR, so no earlier concerns were left alone.

Change size

Compared with the base branch (merge base ced7c3d to PR head f9dae95), the whole PR.

Measure Value
Files changed 1 (added 0, modified 1, removed 0, renamed 0)
Size before 142.5 KB (145,953 B)
Size after 142.9 KB (146,324 B)
Total size change +371 B
Path Before After Change
crates/engine/src/cmd/workflows.rs 142.5 KB 142.9 KB +371 B

@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs preview

Item Value
Preview https://preview.rustgis.app/pr-2962/
Web app https://preview.rustgis.app/pr-2962/app/
Commit f9dae95

GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the preview label (once per commit).

@jgregoriorincon
jgregoriorincon added this pull request to the merge queue Nov 25, 2026
Merged via the queue into opengeos:main with commit def0c5c Nov 25, 2026
28 checks passed
@jgregoriorincon
jgregoriorincon deleted the docs/2937-script-error-at-doc branch November 25, 2026 20:21
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.

[Feature]: script_error_at's doc names the refusals that leave no mark

1 participant