Web-model health: name the composer blocker and expose actor limits
Part of #213. This is a bounded first slice of section 8E: it makes the existing read-only web-model health projection name the composer blocker and publish the actor limits peers need, without adding a recovery action.
Summary
Two blind spots make a web-model actor look healthier than it is:
- When the ChatGPT composer already holds text or an attachment, health still says Choose a conversation. The operator is sent to conversation selection, which cannot clear the draft.
- Peers can see that an actor is a web model, but not that it cannot return file attachments and has reply/inbound size limits. They learn the limit only after an oversized send or a missing attachment.
Both belong in the same read-only projection: the next safe action for the operator, and the transport limits a peer must respect.
Claim labels
Source-confirmed at 66e26c85 (v0.4.54):
- The health
next_actionbranch fortarget_statemissing,invalidorunavailablereturnsbind_chat/ Choose a conversation without looking at the composer (crates/cccc-web/src/routes/web_model_browser.rs:596-597). - The readiness payload already carries
composer_charsandcomposer_has_attachments(crates/cccc-web/src/browser_surface/prompt_submission.rs:729-732). The open and bind paths use those fields only to preserve the page or reject navigation (crates/cccc-web/src/routes/web_model_browser.rs:128-129,:206-207); they do not reachnext_action. - The health payload is
cccc.web_model.health.v1and contains browser, target, delivery and next-action observations (crates/cccc-web/src/routes/web_model_browser.rs:624-657). It is returned ashealth_snapshot(:710,:717) and has no capability block. actor_listserializes the actor and runtime/queue observations, but no capability fields (crates/cccc-daemon/src/ops/actor_listing.rs:37-82;crates/cccc-daemon/src/ops/actor_runtime/confirmation.rs:54-67;crates/cccc-contracts/src/actor.rs:217-274).cccc_bootstrapsummarizes each member with onlyactor_id,runtime,role,enabledand an optionalsource_id(crates/cccc-mcp/src/bootstrap.rs:247-273). Its tool description says the same (resources/mcp_tools.json:19).- The
cccc_message_sendandcccc_file_senddescriptions do not mention recipient capabilities or web-model limits (resources/mcp_tools.json:178,:642).
Reported:
- ChatGPT web actors do not return file attachments in their replies, and their reply and inbound prompt sizes are capped. The report does not supply exact character limits, so this draft does not claim numeric values.
- Peers currently have no field to discover either limitation before sending.
Proposed:
- Add a
clear_composernext action ahead ofbind_chatwhen target selection is required, with a fixed reason that names the character count or attachment. - Add a nullable
capabilitiesblock to the web-model actor projection and health snapshot, and carry it into the bootstrap member summary and tool descriptions. Unknown values staynull; they are not rendered as zero or "unlimited". - Keep this read-only. No retry, reset, cancel, automatic chunking or delivery-state change.
Repro
A. Composer text hides the real next action
- Use a web-model actor with no saved conversation target and an open, ready ChatGPT page.
- Put text in the composer without sending it. An unsent attachment is equivalent for this check.
- Read the actor's web-model health payload.
Actual: target.state is missing, and next_action.recommended is bind_chat with label Choose a conversation (web_model_browser.rs:596-597). The same response contains composer_chars > 0 in its readiness data, but next_action does not use it.
Expected: next_action.recommended is clear_composer, with a label such as Clear the message box and a fixed reason naming the character count or the attachment. It ranks ahead of bind_chat, because choosing a conversation cannot clear the draft.
B. Peer-visible limits are missing
- As a peer, read
cccc_bootstrapor the actor listing for a Group containing a web-model actor. - Inspect the member/actor row.
Actual: the row identifies runtime: web_model but has no attachments_out, max_reply_chars or max_inbound_chars field. A peer cannot tell that files will not come back or that a long prompt may be truncated.
Expected: a capabilities object is present for the web-model actor, and the bootstrap member summary carries the same object. A peer can choose text-only delivery and a bounded size before sending.
Source references at 66e26c85
| Area | Reference |
|---|---|
| Wrong next action | crates/cccc-web/src/routes/web_model_browser.rs:596-597 |
| Composer observations already collected | crates/cccc-web/src/browser_surface/prompt_submission.rs:729-732 |
| Composer used only for page preservation / navigation guard | crates/cccc-web/src/routes/web_model_browser.rs:128-129, :206-207 |
| Health schema and next-action payload | crates/cccc-web/src/routes/web_model_browser.rs:624-657 |
| Health snapshot returned | crates/cccc-web/src/routes/web_model_browser.rs:710, :717 |
| Actor response has no capability block | crates/cccc-daemon/src/ops/actor_runtime/confirmation.rs:54-67 |
| Actor fields have no capability block | crates/cccc-contracts/src/actor.rs:217-274 |
| Actor listing adds runtime/queue fields only | crates/cccc-daemon/src/ops/actor_listing.rs:37-82 |
| Bootstrap member summary omits capabilities | crates/cccc-mcp/src/bootstrap.rs:247-273 |
| Bootstrap tool description omits capabilities | resources/mcp_tools.json:19 |
| Send/file descriptions omit recipient limits | resources/mcp_tools.json:178, :642 |
Smallest proposed change
-
Health action. In
web_model_browser::payload, inside thetarget_statebranch that currently returnsbind_chat, returnclear_composerwhencomposer_chars > 0orcomposer_has_attachments == true. Build the reason from the existing readiness values; do not include raw page text or tool errors. A bound conversation's composer is not reclassified. -
Capability projection. Add one shared helper that returns the declared web-model transport capabilities:
{ "attachments_out": false, "max_reply_chars": null, "max_inbound_chars": null, "limits_source": "reported" }nullmeans unknown, not unlimited. The helper is the single source for the actor row, health snapshot and bootstrap member summary; do not duplicate the values in three places. -
Discovery. Include the same object in the
actor_listweb-model row, inhealth_snapshot.capabilities, and incccc_bootstrap'ssession.membersentry. Update thecccc_bootstrapdescription to say that a web-model member carries its declared limits and that an oversized prompt should be split into numbered parts when a limit is known. Add one sentence tocccc_message_sendandcccc_file_send: read the recipient'scapabilitiesbefore sending, because a web-model actor may not return files and may cap reply/inbound size. A peer then sees the limitation in the same cold-start payload it already reads. -
Compatibility. Adding fields to an existing JSON object is backward-compatible. Actors without declared limits omit the block rather than claiming
attachments_out: true; no storage migration is needed.
The smallest useful version is the health action plus the three read surfaces. Exact limit measurement, warning text and send-path enforcement are deliberately not bundled into this read-only change.
Acceptance tests
- Composer text beats target selection. With
active=true,ready=true,target_state="missing"andcomposer_chars=17,next_action.recommendedisclear_composer; its reason contains17and does not contain the draft text. Withcomposer_chars=0, the same target still yieldsbind_chat. - Attachment-only composer. With
composer_has_attachments=trueandcomposer_chars=0, the action isclear_composer; the reason names the attachment. - Fixed reason. The
clear_composerreason is one of a small set of fixed strings. A page-inspection error still uses the existing fixed fallback and never leaks a raw browser/tool error. - Actor row. A web-model actor's
actor_listrow hascapabilities.attachments_out=false,max_reply_chars=null,max_inbound_chars=null,limits_source="reported". A non-web actor does not receive a fabricated capability block. - Health and bootstrap agree.
health_snapshot.capabilitiesequals the actor-row object, and thecccc_bootstrapmember summary carries the same object. The bootstrap description names the fields and the numbered-part guidance; the send and file descriptions point atcapabilities. - No behavioral drift. A bound target with composer text is not reclassified, and existing delivery, pairing and recovery tests are unchanged; health remains read-only and does not retry, reset or cancel anything.
Size
M. One small branch in the health projection, one shared capability helper, and three JSON surfaces plus their descriptions. Tests and schema text dominate; there is no storage change, migration or new endpoint.
Out of scope
- Automatic chunking, truncation warnings or rejection on the send path. Those need measured limits and a separate delivery contract; this issue only makes the limitation visible.
- File output from web actors, or a new attachment transport.
- A reset button, delivery retry/cancel, pairing recovery, or changes to at-most-once delivery.
- Connector credential handling, subscription or Dots/Grok health. This is the web-model slice only.
- Raw provider/tool errors in health. Reasons stay fixed and safe.
- Exact provider limit values. They remain
nulluntil measured; a later change can fill them without changing the shape.
The composer-blocker portion shipped in 0.4.55: when choosing a target is required and the message box contains unsent text or an attachment, health recommends clearing the message box before conversation selection. Sign-in, security verification and page readiness still take precedence.
The proposed member capability block has not been added. Its file-output meaning needs a distinction: the current web-model tool set already exposes cccc_file_send for files available in the CCCC workspace, and the runtime guide documents that delivery path. A file produced only inside the provider's web sandbox is a separate export question. A blanket attachments_out: false would conflate those two paths.
We also do not have measured provider/model/account size limits to publish. Adapter text assembly, legacy truncation and tool/RPC budgets are different limits, so we should not label one of them as a universal inbound maximum. We are leaving this follow-up open while keeping the existing file-delivery path visible and avoiding unverified capability values; there is no new file transport or numeric limit promised by this assessment.