Skip to content

Verify non-capture capability declarations at install time (contract clause 6) #573

Backlog

Description

@ocsi-reviewer

Residual from the full review of the OpenCode adapter PR (#564). setupMemory derives capture availability from the port's method presence, so a capture lie is structurally impossible — but the remaining declared fields (tools, identityEvents, usageReceipts, toolEvents, promptEvents, context.*, compaction, shutdown) are trusted: the core never cross-checks a declaration against the ports or observed behavior at install time. A behavioral lie IS caught later by the conformance bank (measured: disabling usage decoding under a truthful-looking declaration fails 7+ named tests), but the declaration check clause 6 asks for — "a declaration the core does not check is a comment" — exists only for capture. Unblock: an install-time cross-check (declared true requires the supporting port surface), or amend host-contract.md to state plainly that non-capture declarations are informational and conformance-time-checked, so the next adapter author does not assume enforcement.

Activity

  1. added
    test-integrity
    severity:medium
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    severity:mediumtest-integrity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions