Skip to content

fix(rlm): correct P2 prompt accuracy and feedback defects - #240

Merged
AdarGit008 merged 2 commits into
mainfrom
P2
Sep 16, 2026
Merged

AdarGit008 merged 2 commits into
mainfrom
P2

Conversation

@AdarGit008

Copy link
Copy Markdown
Owner

Summary

Fixes the 7 P2 (medium) conflicts found by a 5-agent review of the RLM prompt vs. actual sandbox behavior.

Changes

  1. Module list — added binascii/unicodedata to CANDIDATE_MODULES, removed stale collections from BLOCKED_EXAMPLES, softened "ONLY these modules exist" → "these modules are available".
  2. llm_query — description corrected from "reasoning help" to "self-contained answer" (it uses the code-generation system prompt).
  3. SUBMIT contract — rules reworded to match reality (plain-text final answers are accepted; "exactly once" dropped).
  4. Language-limit claims — added yield/generators to the unsupported list, qualified "no filesystem" as default-only, noted stdout is capped (32 KiB / 1000 lines) with no stderr, reconciled the last-expression rule.
  5. buildFeedback quoting — stdout is now > -line-quoted (forged stdout: delimiters can't align at column 0); the history-drop notice phrase is neutralised in untrusted data.
  6. renderToolDocs — now renders parameter descriptions (e.g. edit's JSON edits); read description corrected to text-only.
  7. aborted/crashed feedback — aborted is now terminal in the loop; crashed advice branches on timed-out vs worker-death.

Verification

  • npm test: 0 fail (11 pre-existing todo).
  • npm run check (tsc --noEmit): clean.
  • biome check on changed files: clean.

Note: shares an overlapping region in src/registry.ts (renderPythonToolRules) with the separate P1 branch — expect a small merge conflict if both land.

@AdarGit008 AdarGit008 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Stamp (delegating-agent review) — verified, not auto-approved (GitHub forbids self-approval on the author's own token).

  • Source changes match the task spec and the 5-agent conflict findings.
  • Added tests are substantive and assert the new behavior.
  • npm test: 0 fail (11 pre-existing todo); npm run check (tsc --noEmit): clean.

Ready for maintainer review.

@AdarGit008
AdarGit008 merged commit a1731de into main Sep 16, 2026
12 checks passed
@AdarGit008
AdarGit008 deleted the P2 branch September 16, 2026 16:32
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.

1 participant