Envelope and schema gaps: step id, ping result, SessionContext, payload limits, language tags, skill attestations

Open
#536 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
json, typescript

Research direction

Start by reading the referenced envelope and hook schemas, the specification sections cited in each checklist item, and the linked related issues and pull requests. The work spans request identity, ping results, SessionContext, payload limits, language tags, and skill attestations across multiple schemas and spec text. Done means all checklist items are resolved and their schema and specification changes agree.

Written by the indexing model from the issue text.

Description

priority:P2 scope:deferred status:accepted type:proposal workstream:spec

Yaron Sheffer (@yaronf) reviewed the ACS docs and specification at release 0.1.4 and wrote up his notes in yaronf/ACS-Notes. This issue groups his notes on gaps in the request and response envelopes and the hook schemas. Each item is one of his notes, re-checked against integration at db457a8, and the line numbers are at that commit.

  • Each step carries two identifiers, the JSON-RPC id (specification/v0.1.0/request-envelope.json lines 16 to 18) and params.request_id (lines 32 to 35), and replay (§10.3, docs/spec/instrument/specification.md line 383), the audit chain (context-entry.json line 15), and trace all key on the second. Constrain the JSON-RPC id to a UUID unique within the session, use it as the step id, treat a duplicate as REPLAY_DETECTED, and drop params.request_id and its copy on the result. request_hash (context-entry.json line 24) would then stop covering the step identity, so say in that rule that entry_hash still binds it through step_id, and note that PR #496 (deferred_request_id) and PR #294 (approvals keyed on request_id) would need the same rename.
  • handshake/hello has a named result shape in response-envelope.json (ServerHello, lines 16 to 19), but the system/ping reply exists only as prose in §13 (specification.md line 428) and as an example in the payload description (lines 85 to 88), and payload accepts any object. Give the ping response its own subschema as an AcsResult whose payload requires status, echo, and server_timestamp, and reference it from result the way ServerHello is referenced. Issue #129 (the reference Guardian does not implement system/ping) is the implementation side.
  • §8 names the SessionContext members (specification.md line 266) and then declines to schematize the container (line 268), although ContextEntry is also server-side state and still has a schema that fixes its canonical form (line 277). Publish a schema that declares session_id, chain_hash as the lowercase-hex head, entries as an array of ContextEntry, provenance_summary, and optional intent by $ref, and leave further members open with additionalProperties or unevaluatedProperties, as platform_context and modifications already are. Issue #18 (no cross-Guardian verification protocol) is related but asks for something else.
  • The spec gives an oversized hook body no defined outcome. Streaming is deferred (specification.md line 73), no schema has a truncation mode, flag, or compression field, and only the Observed Agent declares a size (max_payload_size_bytes, handshake.json lines 36 to 39), so the Guardian cannot bound its memory or learn that it saw a partial body. Say which path an oversized body takes (refusal, a hash or summary, compression, or a later stream), add a Guardian receive limit to ServerHello, and define how the Guardian knows it did not see the full body. Issue #155 (truncation flag for toolCallResult) covers one hook, and the issue #32 ruling that an unsigned refusal blocks the step closes the fail-open bypass but not the limit or the indicator.
  • No ACS field carries a language tag, though user text (hooks/user-message.json lines 16 and 17), Intent.raw (hooks/session-start.json line 26), tool-call framing, retrieved text, reasoning (response-envelope.json lines 44 to 46), and the ASK question and context (ask-details.json lines 32 and 33) are all natural language. A policy or intent parser reads an untagged string in whatever language its rules use, so a false friend can trip a deny word or slip past a keyword list, and a display or approver can misread the text. Add a BCP 47 tag (RFC 5646) to those values, per content part where a message can mix languages, and to reasoning and the ASK prompt, but not to identifiers, enums, or hashes.
  • ACS puts skill scanning and publisher reputation outside its scope (docs/spec/instrument/hooks.md line 268, specification/proposals/skill-lifecycle/README.md line 83), and registration_provenance (hooks/skill-register.json lines 59 to 61) is a plain Provenance object with no signature, scan result, or registry verdict. That forces a Guardian to re-derive trust from the raw definition on every register or load, and it leaves an enterprise no field for policy such as "only digests in our registry" or "this scan passed". ACS need not run the scanner, but skillRegister and skillLoad need a place to carry a prior attestation, a publisher identity, or a registry decision that policy can rely on.
  • Folded from issue #155 (bounded toolCallResult payloads). outputs[].value in hooks/tool-call-result.json (line 34) is {} with no type or size bound, and no schema has a truncated, digest, or content_ref field. A Guardian that scans a truncated result can allow on partial evidence while the chain commits to a body the tool never returned, and an attacker who can pad a result can push the interesting part past the cut. Issue #155 proposes inlining the first N bytes with a digest over the full body, a flag marking the inline part partial, and a reference the Guardian can fetch. Settle that shape as part of the large-payload item above.

A PR that fixes only some of these items should say Refs with this issue number rather than Closes, so the issue stays open until the last item lands.

Dominant language
TypeScript
Stars
183
Forks
56
Avg merge
3d 1h
Merged PRs (30d)
67

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenAI-Security-Project/agent-control-standard

All issues in GenAI-Security-Project/agent-control-standard

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.