cccc icon indicating copy to clipboard operation
cccc copied to clipboard

Web-model health: name the composer blocker and expose actor limits

Open chriscoveries opened this issue 3 weeks ago • 1 comments

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:

  1. 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.
  2. 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_action branch for target_state missing, invalid or unavailable returns bind_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_chars and composer_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 reach next_action.
  • The health payload is cccc.web_model.health.v1 and contains browser, target, delivery and next-action observations (crates/cccc-web/src/routes/web_model_browser.rs:624-657). It is returned as health_snapshot (:710, :717) and has no capability block.
  • actor_list serializes 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_bootstrap summarizes each member with only actor_id, runtime, role, enabled and an optional source_id (crates/cccc-mcp/src/bootstrap.rs:247-273). Its tool description says the same (resources/mcp_tools.json:19).
  • The cccc_message_send and cccc_file_send descriptions 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_composer next action ahead of bind_chat when target selection is required, with a fixed reason that names the character count or attachment.
  • Add a nullable capabilities block to the web-model actor projection and health snapshot, and carry it into the bootstrap member summary and tool descriptions. Unknown values stay null; 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

  1. Use a web-model actor with no saved conversation target and an open, ready ChatGPT page.
  2. Put text in the composer without sending it. An unsent attachment is equivalent for this check.
  3. 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

  1. As a peer, read cccc_bootstrap or the actor listing for a Group containing a web-model actor.
  2. 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

  1. Health action. In web_model_browser::payload, inside the target_state branch that currently returns bind_chat, return clear_composer when composer_chars > 0 or composer_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.

  2. 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"
    }
    

    null means 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.

  3. Discovery. Include the same object in the actor_list web-model row, in health_snapshot.capabilities, and in cccc_bootstrap's session.members entry. Update the cccc_bootstrap description 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 to cccc_message_send and cccc_file_send: read the recipient's capabilities before 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.

  4. 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

  1. Composer text beats target selection. With active=true, ready=true, target_state="missing" and composer_chars=17, next_action.recommended is clear_composer; its reason contains 17 and does not contain the draft text. With composer_chars=0, the same target still yields bind_chat.
  2. Attachment-only composer. With composer_has_attachments=true and composer_chars=0, the action is clear_composer; the reason names the attachment.
  3. Fixed reason. The clear_composer reason 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.
  4. Actor row. A web-model actor's actor_list row has capabilities.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.
  5. Health and bootstrap agree. health_snapshot.capabilities equals the actor-row object, and the cccc_bootstrap member summary carries the same object. The bootstrap description names the fields and the numbered-part guidance; the send and file descriptions point at capabilities.
  6. 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 null until measured; a later change can fill them without changing the shape.

chriscoveries avatar Nov 11 '26 08:11 chriscoveries

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.

ChesterRa avatar Nov 20 '26 10:11 ChesterRa