Skip to content

H1: qualify native report delivery feasibility — DO NOT MERGE - #272

Draft
bateau84 wants to merge 8 commits into
mainfrom
research/h1-native-report-delivery
Draft

bateau84 wants to merge 8 commits into
mainfrom
research/h1-native-report-delivery

Conversation

@bateau84

Copy link
Copy Markdown
Owner

Qualification-only candidate against ARS-018 §7 at e80f2ace. Related #227 / #271.

Uses exact installed OpenCode CLI/public SDK 2.4.2 and existing isolated host infrastructure; registers only a harmless synthetic loom.history producer. CI captures direct/Code Mode inner/outer transport, provider exposure, history and fork, retention, native permission/refusal/revocation and cancellation. No production changes, user profile, external model, report publication, alternate server, or merge. The actual intended client must open the native tool file through its own supported action; SDK and source evidence do not qualify opening. Local human procedure is in tests/h1-report-host/README.md. Verdict remains UNQUALIFIED pending runtime and actual-client evidence. Preserve all attempts.

Copy link
Copy Markdown
Owner Author

H1 attempt 1 preserved: 84c7ad8a2ead5ef7383957fa893d10af42f007eb, run 46434033420, artifact 15386886684, ZIP SHA-256 599a57c07c954853b99bb88a32cf32ffa3dafd36f8488c769d8e6ca8066db212 independently verified from download; retained in personal Library /Loom-H1/h1-attempt-1-84c7ad8.zip. Actual host 2.4.2 / SDK 2.4.2 booted, native loom_history and outer execute completed on discover, but the initial history oracle failed because the nonempty page exposed a continuation cursor. No report-delivery verdict from that run. 4518beca627627910c7df9e731089bf8fe0aad59 corrects only the pagination oracle using R06's bounded cursor traversal. Native client opening remains unrun.

Copy link
Copy Markdown
Owner Author

H1 installed-host qualification — transport PASS; delivery UNQUALIFIED

Tested head: 4518beca627627910c7df9e731089bf8fe0aad59; integrated base 9e7729a4ba7effd37b0b268276bd96eda1917da5; source fc31a485317970bcf6be7b431a9830aaef875731. Run 46434548467 completed successfully. Installed CLI and public SDK 2.4.2, Linux/x86-64, Bun 1.4.2, Node 22.23.5, flags sqlite_fts,-media_blob,-full_codemode. CLI/platform binary SHA-256 523b1502d1d556998b0904235cef65eb1d8cf8362b4e2faa7ae7a170c9a44cd4; report fixture 1793 bytes, SHA-256 b4fb2d4ff6f2c82c990f782abc3a65bbd3618452b87556eb1fa19a124334f2d9. This is a fixture digest, not a production renderer qualification.

30/30 assertions PASS (counted from archive report.json); 740 audit rows, 1,719,275 bytes, SHA-256 a72a08cff2d8b040744372dfb2ca5042f688f153b15698de6d663984012139ae. Direct and Code Mode inner/outer exact native file and text envelope; exact retained public SDK originals across restart; both named synthetic inspections; foreign fixture handle rejected; refusal with feedback and terminal refusal, live policy revocation before release, subsequent denied open/inspect, interruption all yielded no file; simulated unsupported returns text-only; stale fixture handle rejected after restart.

Material actual host boundary observations (not positive authorization assertions):

  • Both direct and Code Mode next local AI SDK provider request contained exact HTML as typed file-data (filename, MIME, all 1793 bytes). Independently decoded and hash-matched from archived audit. No external provider used. Text-only model metadata does not make the file user-only.
  • Native same-server foreign Session read included the full JSON page/output, handle in call input and filename, but no exact HTML file bytes. Wrong Session/message pair gave HTTP 404. Native fork by the same authenticated operator copied the exact HTML; independently decoded/hash-matched. No independent principal, cross-project read qualification or general ACL proof.
  • Native sanitized export redacted filename/URI and omitted exact HTML and synthetic correction text; file MIME/type placeholder remains. Unsanitized export not tested. Base64 found in disposable data/opencode/opencode.db live and stopped; no other exact-byte/base64 match in bounded scanned paths. This cannot rule out alternate encodings, client caches, other profiles or all retention.
  • No actual client opening/rendering/return observation. Pinned TS TUI source shows generic filename/URI text and image-only preview; no established supported HTML action. Rust TUI/GUI not qualified. No client runtime, network, keyboard/focus, inert rendering or client cache evidence. Local procedure: README at tested revision. The fixture simulates unsupported delivery and does not establish detection; no real production source-release fence binding complete native envelope, post-inner outer release race or independent provider authorization is proven.

Preservation: both original attempt 1 and attempt 2 ZIPs saved in personal Library /Loom-H1/h1-attempt-1-84c7ad8.zip and /Loom-H1/h1-attempt-2-4518bec.zip. Independent download and Library readback both match original GitHub digests: 599a57c07c954853b99bb88a32cf32ffa3dafd36f8488c769d8e6ca8066db212 and c5e2fd723a52fafd89922cda813cb6ed0fef673b9e3e96f0d18314b83e3fe12c. Attempt 2 archive CRC passes; audit hash matches. First attempt stopped at wrong pagination oracle, corrected on separate commit; no evidence overwritten.

Disposition: native transport technically feasible, ordinary authorized report delivery remains UNQUALIFIED / unavailable under ARS-018 §7. Client opening and recipient/provider/fork/history authorization must be established, not inferred from the passing transport job. No fallback publication, extra server, production changes or merge. Text/agent foundation and named reads remain independently available; assembled H1/I5/QS acceptance is not established.

Copy link
Copy Markdown
Owner Author

H1.1 — Native disclosure and retention boundary (research handoff)

Disposition: ordinary independently authorized text/agent access may proceed; H1 HTML delivery remains unavailable. Neither representation qualifies protected transfer by itself. No new permission or retention policy is selected here. This is source assessment against the pinned installed host and existing H1 evidence, not another transport experiment, implementation acceptance, or an upstream publication request.

Evidence and governing contracts

  • Qualification head 4518bec, H1 final evidence, successful run: 30/30 synthetic transport assertions. Reused the prior verified evidence, not a new archive audit or rerun. OpenCode CLI/plugin/SDK 2.4.2 source fc31a485; Loom integrated main 9e7729a4.
  • Accepted semantic engineering Anchor: retain ordinary authorized inspection independently of protected transfer. Learning OC-003: inspection does not grant disclosure/retention, including derivatives. ARS-003: protected exact native original release needs current source/recipient authority and revocation ordered at the owner release boundary; the historical proposal label of OC-003 does not reverse the accepted baseline. ADR-001: exact-destination native policy is the live peer-question delivery gate; a native wildcard may cover that resource; not a general source-release grant or independent human consent receipt. ARS-018 §7 is a candidate, not shipped behavior; its conditional text fallback is only a permitted foundation. ARS-014 explicitly separates ordinary authorized inspection, actual recipient transfer, Q4 and Q5.

Actual boundary on 2.4.2

OpenCode server authentication is a shared server/operator access boundary. auth.ts accepts the password or a pairing token signed under it; middleware gates API access rather than establishing source-specific reader identities. This is not proof of independent authenticated principals for two Sessions. Equally, a common operator, project, location or native parent/fork relation does not establish source-specific authority for a different execution recipient. Native agent/Session policy is real and useful at its enforcement points, not a process/security-principal separation guarantee. Model/provider and effective route/account are actual additional audiences, not just names of agents or Sessions. Trust assumptions include the operator and trusted host/plugins; no new multi-tenant or malicious-operator security claim.

Loom already derives actual caller/agent/invocation, checks discovery before lookup, inspection and recipient-specific disclosure resources separately (plugin.ts 625–690); known-root contributor union and membership checks precede matching (757–866). It can hash exact returned serialized bytes and make the final assertion after source checks (2135–2185). These are supported controls over new Loom reads, not downstream custody. Ordinary native current-context resolution is restricted by Loom to actual caller; foreign native raw transfer is unsupported, not cured by invoking a trusted plugin's context method with another ID. ARD-007 expressly distinguishes native ordinary history retention from new Loom raw retention or delivery to another agent/provider.

Native assert returns void, not an immutable source/view/recipient grant. Configured policy is evaluated before an awaited hook; a pending approval is later resolved (permission.ts 190–224, 286–318, 336–385); the selected reply does not atomically re-evaluate and consume policy at the eventual return. Metadata digest is evidence of the asserted view, not enforced binding. Even a final synchronous Loom return precedes host result hooks/normalization, outer Code Mode assembly and native persistence/provider lowering. H1's denial before final assertion, refusal and cancellation controls do not prove post-assertion race safety or protected transfer.

Disclosure paths, not interchangeable with new source reads

Path Observed or source-established behavior Consequence
Direct/Code Mode text, JSON, Markdown Text is ordinary model-facing tool output. The Code Mode implementation returns text values into the executing program and outer output; tool.ts includes after-hook and normalization stages. H1 actually observed the structured decision foundation in native historical read. JSON/Markdown/summary is not declassification. The permitted envelope and every material dependency must be authorized.
Native HTML attachment H1 direct and outer Code Mode retained exact 1793-byte file; both next local AI SDK provider requests contained exact HTML file-data despite text-only capabilities; exact bytes in native database after restart. AI SDK conversion and Code Mode independently collected file parts explain the path. Not a client-only channel, no automatic provider exclusion, no format-based boundary. Actual external provider policy/transmission and intended interactive client remain unqualified.
Native replay, agent/model changes, compaction context.ts selects agent/tools and loads history for resolved model; to-llm-message.ts replays completed tool content, including across changed models (provider-native metadata has separate compatibility filtering); model-request.ts prepares requests and routes. history.ts active context is not the complete stored history; compaction can carry derivatives. Disabling a tool or changing agent/model is not retroactive removal of its output. A new unauthorized provider or restricted agent cannot inherit authority because Session ID is unchanged. Source-backed, not an additional executed switch/compaction experiment.
Native search/read session-search.ts behind sqlite_fts, registry whole-tool deny, no per-source assert on execute; search.ts full reads include text/input/output and file labels. H1 foreign Session received JSON and filename, not exact attachment bytes. R06.1 separately observed cross-project native read; tool outputs not indexed directly, but assistant text/derivatives can appear in search. Authorized native history reader may legitimately inspect a previously disclosed view; native tool availability/project filter is not a source/recipient ACL. Absence of file bytes in that projection is not confinement.
SDK/history/fork session.ts native fork copies history before the post-fork hook (hook failures logged); projector copies rows/parts; session.ts history retrieves native history. Wrong Session/message 404 in H1 establishes identity matching, not caller authorization. H1 actual fork copies exact HTML under same authenticated operator. Operator retrieval is not an independent restricted-agent grant. Fork and subsequent execution can introduce a different recipient. Post-fork hook is too late as a pre-copy fence. External public SDK used as test oracle is not an authorized plugin historical-source adapter.
Export/restore transfer.ts export returns settled message history, sanitizer optional; sanitizer removes tool text/file URI/name content while retaining structure. H1 sanitized export withheld fixture content; unsanitized path source-backed, not exercised. Sanitization is not source-specific authorization or guaranteed noninterference for metadata. Import/export/restore/copy can change recipients; previously disclosed history is not a transferable grant.
Existing hooks, storage, publication Plugin context/model/transport hooks can inspect or shape particular requests, not an owner-enforced durable policy across all readers/retention/forks/replay. Native media blob flag changes storage form, not authority; H1 tested inline storage. Client caches/provider retention unqualified. ARS-018 rejects broader native artifact publication and workaround paths. No new plugin permission store, duplicate transcript, artifact publication, SDK self-impersonation, file extraction or temporary server as a substitute.

Safe ordinary slice and explicit fail-closed boundary

The relevant unit is the specific view + material source dependencies + actual recipient/use + authorized retention, not HTML vs text and not Session locality alone.

  1. Ordinary inspection may return a bounded, qualified text/structured view under existing independently established discovery, inspection, disclosure and retention authority, when the existing source owner's permitted view is compatible with the actual ordinary native conversation audience and lifecycle (including the applicable provider and retained history). Same-caller current native context and independently authorized retained ledger/document/external views are candidates; not a blanket qualification of all sources, models, providers or future Sessions. Existing effective native allows, including an applicable wildcard, remain legitimate; do not impose universal new per-read approval or require Q5 for every ordinary read. Selection/identity/retention checks still apply. Source matching only after admission; do not include hidden denied dependencies, counts, existence, ordering or navigation. Existing source-specific stricter restrictions win.
  2. A legitimately disclosed and retained historical copy may continue to exist and be consulted within its already-authorized audience/use and retention rules. Already delivered bytes cannot be recalled. Reading one's authorized historical copy is not recomputing the current source view or restoring a grant. Do not silently treat an old report as current. A new Loom read/expand/regeneration uses current source/recipient authority; a reference or old handle is not a grant. If a source/recipient policy requires withdrawal from future reads or replay, the native history copy cannot be treated as exempt merely because it predates revocation. Where current authorization is required for a native sink, it must be enforced there or that route cannot carry the protected view.
  3. Fork, export/import, provider change, recipient/agent change, foreign history retrieval and context re-delivery are not necessarily forbidden (including same operator); each is a new disclosure when it introduces an audience, purpose or retention beyond what was already authorized. Ordinary same-recipient continuation within the authorized native lifecycle does not require an invented approval on every token/turn. However 2.4.2 does not enforce Loom source-specific revocation on those later native paths. A copied handle may fail yet copied content remain readable. Do not treat initial source read permission, successful rendering, operator access, an agent role, or an inspect-only grant as covering this wider use.
  4. If an exact view or any material derivative requires narrower access, provider exclusion, non-retention, a protected release fence, or later source-specific enforcement that cannot be established for the actual path, withhold it before native result admission. Return only independently authorized surviving material or safe unavailable/insufficient status (respect ARS-017's separate scope semantics). Fresh selection cannot reuse stale grants. No raw HTML fallback and no laundering restricted source information through a summary. ARS-003 still blocks protected native original transfer; full Q5 is separate. Automatic capture stays within existing authorized fields; no new retained raw material.

This permits independently useful ordinary text/agent work without claiming H1/I5/QS acceptance. A production profile must establish actual allowed audience and retention for its sources; no evidence that every current deployment does. The exact mixed-domain admission limitation belongs to A02.3; this assessment does not redefine the accepted independent-source outcome.

Smallest meaningful upstream seams (only where the existing authority requires them)

  • Historical owner read and atomic release are separate. #57424 requests supported plugin history parity; #54863 requests indexed SDK discovery. #65076 delivered model-facing search/read, intentionally no per-call prompt and no HTTP/SDK change. None supplies protected exact source release. ARS-003 needs owner-established exact source namespace/session/message/part/revision, representation/coverage and bounded output, actual host-bound recipient/purpose, complete source-resource/view/byte binding and current decision at a documented release linearization point. Refuse before forbidden bytes enter result/history when revocation wins. #57614 is a policy revision/lease at effect admission request, with older shell ordering observations, not a delivered source-release mechanism; #61645 requests race-safe single-use permission admission. Align with their compare/revalidate/consume direction instead of inventing a Loom authority. Permission provenance/receipts (#61767, #64383) help evidence, not enforcement.
  • Protected native result custody, if needed for ordinary recipient-specific restrictions. A result admission contract must bind complete text/file/outer result to the actual allowed audience and permitted retention and either authorize subsequent sinks under existing source-owner policy or prevent that result entering an unsupported sink. A first-release fence alone cannot constrain later replay/history reads. If separately authorized retention/re-delivery requires source-specific enforcement, host-owned durable binding must govern history/SDK/client reads, model/agent changes, compaction/derived context, forks/export/restore and applicable downstream routes, or deny those routes for the protected result. No claim that this is available, no new grant store or generic ACL selection. If the desired report is user-only, a native client-recipient presentation route that does not enter model history is a narrower meaningful capability to investigate, with actual viewer authorization and permitted retention/retrieval; a filename, MIME or UI hiding flag is insufficient. #55072 explicitly requests model-facing attachments, not this separated audience. #63705 proposes configuration restrictions/context reset, not source ACL; #48090 requests selective pruning, not safe initial admission; #58060 ephemeral sessions are not a recipient guarantee or the ordinary working Session experience. Related requests are not implementation or maintainer acceptance. No matching complete custody contract established in bounded issue inspection.
  • Q5 remains broader. Sealed protected recipient ingress (including alternate inline input), retained context, tools, notifications, derived outputs and actual authorized transfer must be qualified together where required. Do not substitute first-release authorization, deletion after exposure or an attachment feature for sealed execution. Production inference remains disconnected under its separate authority.

Falsifiable future qualification: independently authorized ordinary positive case remains usable; inspect-only grant cannot release; same operator/different restricted recipient, same Session/different agent/provider, native history/replay/fork/export/import/restore and compaction controls; authorization revocation racing complete direct/outer result admission with no forbidden bytes when revocation wins; historical already-disclosed copies explicitly distinguished from newly unauthorized release; denied material/metadata/derivative noninterference; actual allowed provider and native retention under the exact profile and source policy. Test client opening only after viable authorized delivery scope. No blanket recall promise or assertion of protection against an arbitrary trusted operator.

Handoff to A02/D02: treat report route as unavailable until authorized; apply the audience/retention qualification to text/agent views too, without turning protected transfer into a blanket prerequisite for independent ordinary inspection. Clarify historical retained copy vs newly authorized release. Keep current native owner checks, exact-source D2 and Q5 boundaries, independent mixed-domain work, and actual assembled acceptance separate. No new production or fixture changes, #271 specification edits, permissions, retention expansion, upstream posting, rerun or merge. H1.1 is complete as a boundary assessment; remaining host capability/profile/acceptance questions are explicitly unqualified.

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