Skip to content

fix(reviewer): detect quoted fabricated inputs - #38

Merged
JustinJLeopard merged 1 commit into
demo-buildfrom
justinjleopard/fix/reviewer-output-precondition
Aug 10, 2026
Merged

fix(reviewer): detect quoted fabricated inputs#38
JustinJLeopard merged 1 commit into
demo-buildfrom
justinjleopard/fix/reviewer-output-precondition

Conversation

@JustinJLeopard

Copy link
Copy Markdown
Owner

Summary\n- flag plans that fabricate a goal input through quoted shell paths\n- recognize an option terminator before the created path\n- preserve prefix-path protection\n\n## Verification\n- ...... [100%]

6 passed in 0.01s\n- \n- independent focused review: no P0/P1 findings

Flag plans that manufacture a goal's assumed input when the shell path is quoted or follows an option terminator. This preserves the reviewer’s false-completion check for ordinary shell syntax.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Copilot AI lite review requested due to automatic review settings August 10, 2026 04:32
@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
justai-demo Ready Ready Preview Aug 10, 2026 4:33am

Request Review

@JustinJLeopard
JustinJLeopard merged commit 6ced194 into demo-build Aug 10, 2026
3 checks passed
@JustinJLeopard
JustinJLeopard deleted the justinjleopard/fix/reviewer-output-precondition branch August 10, 2026 04:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR strengthens the heuristic reviewer’s ability to detect plans that “manufacture” (fabricate) a goal’s assumed input by expanding path-creation detection to handle quoted paths and an option terminator (--) before the created path.

Changes:

  • Extend _task_creates_path to recognize quoted path arguments and quoted redirection paths.
  • Support an option terminator (--) immediately before the created path argument in shell-like commands.
  • Add a regression test covering quoted fabricated input creation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
justai/reviewer.py Broadens the heuristic regex matching for “task creates goal-input path” to include quoting and -- terminator handling.
tests/test_reviewer_precondition.py Adds a new test case intended to ensure quoted fabricated-input creation is flagged.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +45 to +48
tasks=[
_task("Create source", 'touch "/data/report.csv"', "test -f /data/report.csv"),
_task("Convert it", "python convert.py /data/report.csv > /backup/report.json",
"test -s /backup/report.json", depends_on=[0]),
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