Skip to content

test(conformance): script Pi overflow recovery - #6050

Closed
giuliolovisotto wants to merge 2 commits into
glovisotto/terminus-scripted-compactionfrom
glovisotto/pi-scripted-compaction
Closed

giuliolovisotto wants to merge 2 commits into
glovisotto/terminus-scripted-compactionfrom
glovisotto/pi-scripted-compaction

Conversation

@giuliolovisotto

@giuliolovisotto giuliolovisotto commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Pi can compact and resume the same agent invocation after a context-limit response. This adds a PiProbe selected only by the compaction scenario: real shell output makes history eligible for compaction, and an explicit reply schedule emits tools, HTTP 400, summary, and final answer. Normal replies and evidence capture reuse the existing probe. All four probe classes (Probe, OpenClawProbe, NOOAProbe, and PiProbe) live in probes.py; NOOA runtime and sandbox helpers remain in nooa.py. Imports and configured class paths use the consolidated module.

Stacked on #6049. No separate issue is needed for this focused continuation of the conformance fixture work. No production adapter or conformance-check changes; no public configuration or benchmark-result changes.

Validation:

  • Pinned Pi 0.80.2 in a full local Linux Gym episode: 14 executed tools, one context-limit error, one summary call, and a resumed policy request containing the summary. Episode finished with no protocol violations.
  • Conformance remains failing: aggregate usage omits the helper tokens. The existing compaction checker requires successful-response IDs for every attempt, so the scripted HTTP error leaves its behavioral checks unevaluable. The saved overflow event also has no helper references and wraps the summary. These limitations remain visible.
  • Conformance fixture and compaction checker tests: 244 passed, 14 skipped.
  • pre-commit run --all-files: passed.
  • After consolidating the classes: 244 passed, 14 skipped again; a fresh full Pi episode retained the same request sequence, summary reuse, and every conformance check status.

Kept as a draft for inspection of the overflow fixture and its reporting limitations.

@copy-pr-bot

copy-pr-bot Bot commented Nov 12, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/terminus-scripted-compaction branch from 0bdd1e7 to 5dfe2c1 Compare November 12, 2026 11:53
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/pi-scripted-compaction branch from 03ea870 to a9a48ff Compare November 12, 2026 11:53
@giuliolovisotto
giuliolovisotto marked this pull request as ready for review November 12, 2026 16:31
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 12, 2026 16:32
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/pi-scripted-compaction branch from a9a48ff to 90424f0 Compare November 12, 2026 16:42
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/terminus-scripted-compaction branch from 5dfe2c1 to d630e15 Compare November 12, 2026 16:42
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/terminus-scripted-compaction branch from d630e15 to 903fc65 Compare November 12, 2026 17:02
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/pi-scripted-compaction branch from 90424f0 to 050e5fc Compare November 12, 2026 17:02
@yaoyu-33
yaoyu-33 requested a review from ananthsub November 12, 2026 18:03
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/terminus-scripted-compaction branch from 903fc65 to 8385f71 Compare November 13, 2026 10:15
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/pi-scripted-compaction branch from 050e5fc to 6eb8750 Compare November 13, 2026 10:15
@giuliolovisotto
giuliolovisotto removed this pull request from stack #6062 November 13, 2026 10:46
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