Skip to content

✨ Bound agent visual context#316

Merged
Robdel12 merged 2 commits into
mainfrom
rd/bounded-agent-context
Jul 22, 2026
Merged

✨ Bound agent visual context#316
Robdel12 merged 2 commits into
mainfrom
rd/bounded-agent-context

Conversation

@Robdel12

Copy link
Copy Markdown
Contributor

Why

The compact build handoff could still overwhelm an agent with duplicated group trees while also hiding the render and Honeydiff facts needed to explain a visual change. Worse, it filled missing status and summary fields with client-authored booleans and zeroes, so unknown API state could look authoritative.

Approach

This makes the compact contract one bounded, 10-record evidence queue. Failed captures come first, then comparison variants are selected breadth-first in API order so one screenshot cannot crowd out the rest. Each record keeps its small group summary, review state, current/baseline/diff URLs, render metadata, and compact Honeydiff projection. Raw region geometry remains opt-in through --include diffs.

The API remains the source of truth for status, summaries, review facts, and analysis values. Raw JSON and --agent --full still return the API response unchanged. The compact request asks for details=summary by default and details=diffs only when requested.

This deliberately replaces generic next_actions prose with executable suggested_commands for comparison context, screenshot history, raw diff diagnostics, and the full build when evidence was truncated.

Evidence

Coverage exercises grouped and legacy response shapes, reviewed groups, failed captures, explicit includes, raw/full pass-through, and bounded breadth-first selection. A real CLI process talks to a loopback API to verify the requested detail level and confirms that raw Honeydiff regions only appear on the explicit diff path. The full 2,312-test suite, lint, formatting, type definitions, and production build are clean.

Risk

The compact agent JSON contract changes by removing next_actions. That is intentional: these consumers can follow concrete CLI commands, and keeping both fields would preserve vague client-authored guidance we no longer want.

Robdel12 added 2 commits July 21, 2026 22:09
Give agents one reviewable evidence queue with API-backed status, assets, review state, and Honeydiff context. Keep raw context lossless and make deeper inspection explicit through executable CLI commands.
Document why the evidence queue preserves server authority, selects across groups, distinguishes failed captures, and keeps raw diagnostics opt-in.
@Robdel12
Robdel12 marked this pull request as ready for review July 22, 2026 03:20
@Robdel12
Robdel12 merged commit 2736ef9 into main Jul 22, 2026
30 checks passed
@Robdel12
Robdel12 deleted the rd/bounded-agent-context branch July 22, 2026 03:20
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