Define what a MODIFY replaces, starting with modified_content
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- json, typescript
- Domain
- ai-infra-agents, documentation
Research direction
Start with docs/spec/instrument/hooks.md and docs/spec/instrument/specification.md, then compare the relevant hook definitions with specification/v0.1.0/modifications.json at the referenced integration commit. Resolve all four MODIFY semantics items, including the size-forced preCompact behavior; check the existing examples and related issue #181 and PR #517. Done means each item's replacement target, delivery or audit effect, provenance and hash behavior, or forced-compaction outcome is specified consistently.
Written by the indexing model from the issue text.
Description
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 MODIFY semantics across hooks. Each item is one of his notes, re-checked against integration at db457a8, and the line numbers are at that commit.
- A wholesale MODIFY is typed as a string (
specification/v0.1.0/modifications.jsonlines 8 to 11, and §6.3 atdocs/spec/instrument/specification.mdline 187 calls it "an opaque replacement string"), but hook payloads are objects, anduserMessage.contentis an array of typed parts. Typemodified_contentas the replacement payload object with the same shape as the hook'sparams.payload, or at least as an open object, and keepredactionsandparameter_overridesfor partial edits. Issue #181 (the reference host adapter fails closed onmodified_content) is the implementer pain this causes. - The
agentTriggerDecision line (docs/spec/instrument/hooks.mdline 106) says the Guardian MAY rewrite the trigger payload "before activation", which does not say which bytes change or who consumes them. If MODIFY changes what the agent receives when it starts on the trigger, say "before delivery to the agent" asuserMessagedoes on line 132. If the rewrite only changes the audit record, say that instead. - A
postCompactMODIFY has no defined target (docs/spec/instrument/hooks.mdline 232), becausemodified_contentis one string standing in for an object of summary, provenance, compacted entries, and chain hashes, and only an unnamed JSON-pointer redaction of/summary/valuefits the example. Say that apostCompactMODIFY replacessummary.valuein the context window, what provenance the replacement carries (§6.3 line 194 defines no Guardian-injected origin), and which of the two summaries the chain hash covers. PR #517 (postCompact fields a sender cannot fill) moves the post-compaction hash from the payload to the responsechain_hash, so the hash question applies to that field once it merges. -
hooks.mdline 220 lets a Guardian DENYpreCompactuntil trusted re-grounding, but whentriggered_byissize_thresholdthe runtime is already out of room, so a refusal leaves no usable context and no defined next step. Say what happens instead of an open-ended block: drop specific entries, compact with the tainted lineage preserved, or end the session. Treat size-forced compaction as inevitable and put the control on what the summary may claim.
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GenAI-Security-Project/agent-control-standard
-
status:needs-triage type:bug workstream:refimpl
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
GenAI-Security-Project/agent-control-standard#764 ·
Maintainers usually reply within 1 day
-
status:needs-triage type:docs
Difficulty 1/5 Under an hour Newbie friendliness 96/100
GenAI-Security-Project/agent-control-standard#717 ·
Maintainers usually reply within 1 day
-
status:needs-triage type:docs
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
GenAI-Security-Project/agent-control-standard#650 ·
Maintainers usually reply within 1 day
-
priority:P1 status:needs-triage type:conformance
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
GenAI-Security-Project/agent-control-standard#614 · 1 comment ·
Maintainers usually reply within 1 day
-
[Conformance] Tool-call trace spans are dropped by a GenAI backend: no gen_ai.operation.name, span name is not execute_toolMay be free again A pull request for this issue was closed without being merged. Openstatus:needs-triage type:conformance
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
GenAI-Security-Project/agent-control-standard#520 · 1 comment ·
Maintainers usually reply within 1 day
All issues in GenAI-Security-Project/agent-control-standard
Similar issues
-
[Bug]: A Markdown link with both a :line suffix and a #L fragment opens a path containing ":line"Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
TanbirRamim/vibereel#39 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 72/100
lingdojo/kana-dojo#34988 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
mastra-ai/mastra#32336 · 1 comment ·
Maintainers usually reply within 1 day