Development record
Rule injection has no per-repo size budget: recall keywords and rule bodies are repo-controlled, so a hostile or bloated rules.json can push roughly 260KB into a session's context in one turn (recurring, not once: the refresh backstop clears the dedup ledger every 15 prompts by default and it is also cleared on every SessionStart/PreCompact, so the payload re-lands at least every 15 turns and after each compaction). The existing 256KiB read cap bounds the file, not the injected total across domains. Decide and enforce a per-repo injection budget with loud truncation.
Rule injection has no per-repo size budget: recall keywords and rule bodies are repo-controlled, so a hostile or bloated rules.json can push roughly 260KB into a session's context in one turn (recurring, not once: the refresh backstop clears the dedup ledger every 15 prompts by default and it is also cleared on every SessionStart/PreCompact, so the payload re-lands at least every 15 turns and after each compaction). The existing 256KiB read cap bounds the file, not the injected total across domains. Decide and enforce a per-repo injection budget with loud truncation.
Frontmatter
| id | iss-2608261551077971 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-2608261551077971-rule-injection-has-no-per-repo-size.md
open on GitHub ↗ · commit history ↗