Repository navigation
Conversation
UX Review (Opus 5.5) — ⏭️ skippedRevision |
Design Review (Opus 5.5) — ✅ PASSDesign-level review of Design-Verdict: PASS Nothing blocks: every new path sits behind Notes
[DESIGN-REVIEWED] 163fb75 Description read[DESCRIPTION-READ] e7cbdcf2c1cb386cd0e02b796b393ad6116573b363118f9f50508196ae348e60 That sha256 names everything this verdict read: the PR description, plus the 1 evidence file(s) the workflow collected from it and handed this review. It covers that evidence because the media strip replaces every attachment URL with the same placeholder, so an edit swapping one attachment for another would leave the description's captured text identical while what this review judged changed. Recompute it with |
First Principles Review (Opus 5.5) — ✅ PASSPremise-level review of First-Principles-Verdict: PASS Nothing blocks: the feature sits behind Notes
Inventory (9 items) — 7 justifiedIntent: when pinned memory is on, the agent learns the tool exists and is asked to pin before a compaction and to tidy as pins grow. ADDITION.
[FIRST-PRINCIPLES-REVIEWED] 163fb75 Description read[DESCRIPTION-READ] 79923c0f4cb6107253c26ebc33d67f19be34e55f955ebc998cf832113ae65ff4 That sha256 names the PR description this verdict read. Recompute it with |
5076814 to
589b4b0
Compare
GPT 6.1 Review — ✅ no blocking findings (all downgraded on adjudication)GPT 6.1 flagged blocking issues on This comment is updated in place on each push. Review detailsBLOCKING -- src/kiro_crew/pinned_memory_upkeep.py:185 -- Attribute post-compaction pin changes to the new fill
Adjudication (Opus 5.5) — is blocking on each finding proportionate?F1 — Harm rung: LOW. The bug requires all of these: a reading-bearing chat, so False positive or not applicable? A repository writer can comment: |
Opus 5.5 Review — ✅ no blocking findingsReviewed Verdict parsed from the review's SHA-scoped output markers for commit False positive or not applicable? A repository writer can comment: |
589b4b0 to
0b1c0db
Compare
dfb09af to
13009bb
Compare
0b1c0db to
b6e9d2c
Compare
7da9780 to
bec5ec5
Compare
b6e9d2c to
e1286bd
Compare
bec5ec5 to
c1d3a59
Compare
e1286bd to
95ecfe4
Compare
c1d3a59 to
30bc840
Compare
95ecfe4 to
05b04eb
Compare
3d47e26 to
9a76fd2
Compare
f182731 to
3d7aa54
Compare
9a76fd2 to
a63385b
Compare
3d7aa54 to
211e63a
Compare
a63385b to
c0843a1
Compare
211e63a to
0d28ae4
Compare
c0843a1 to
033bc45
Compare
0d28ae4 to
4432ba2
Compare
|
Dispositions for GPT 6.1 Review on
Each fix was reverted in turn, and each revert turned a test red. The spec paragraph in |
With pinned memory on, nothing told an agent the feature existed, and nothing asked it to pin before a compaction or to tidy once the pins grew: the tool was deferred and its description said to keep it small. While memory.pinned_memory is on: - The agent prompt's capability list carries one pinned_memory line, and a bot's member section one sentence. Both ride the agent prompt, so every harness gets them at session start and after a compaction; a chat that started before the switch gets the line once on its next turn. - A chat's next turn carries one line at four stages: the context at the warn point (60%) and halfway to compaction (65%), once per fill, read from each turn's context reading whatever the backend decides (KAS and Claude Code included), or from the turn count when there is no reading; the pins at 80% of the 30,000 characters one block sends; and the pins over it, naming the ones left out of the next send. - pinned_memory list reports the block's size and, per fill, the reminders given and the pins and unpins made. The tool description drops "Keep it small": a fuller set is fine, and the agent tidies when asked.
A fill kept every reminder given, with no cap; it now keeps the newest 20 and counts the rest. A /compact before the warn point never ended the fill, because only a fired stage did; the first reading after a context re-send that is lower than the fill's highest now ends it too.
A reset without replay starts a full session under the same key, but the upkeep state kept told, so a custom agent whose prompt has no pinned-memory line never got its intro again. A full start now counts as a context re-send, as a compaction does.
|
Disposition for GPT 6.1 Review on
|
Problem / Motivation
Goal: With pinned memory on, an agent is told the feature exists and is reminded, on its next turn, to pin before a compaction and to tidy once its pins grow.
With
memory.pinned_memoryon, no prompt text names the feature: thepinned_memorytool is deferred behind tool search on KAS and kiro-cli, and its description told the agent to "keep it small". Nothing asks the agent to pin as its context fills, or to tidy once the pins near the 30,000 characters one block sends. A bot pinned only because its owner asked it to. This is part 3 of pinned memory; it stacks on #46364 (part 1), which now also carries what was #46450 (part 2).Why it matters
Pinned memory only protects what the agent pins. If the agent does not know the tool, or is never asked at the moment it matters, the person's rules still drop out at the next compaction, which is the problem the feature exists to fix.
Not a goal
memory.pinned_memoryswitch.What changed (motivation → approach → change)
Goal → tell the agent once, remind it at the moments that matter, and let it read how that went → three parts, all behind
memory.pinned_memory, none costing an extra model turn.Tell.
config/prompt.mdgains a{{PINNED_MEMORY_BLOCK}}line in the capability list.context_assembly/agent_spec._resolve_prompt_templatesresolves it live throughsections.resolve_pinned_memory: the line while the switch is on andpinned_memory.may_pin(thechat_bindingrule) accepts the chat, nothing otherwise. The agent prompt takes one path on every harness, at session start and after each compaction, so kiro-cli, KAS and Claude Code all get it the same way. A chat whose prompt was built before the switch went on, by an earlier gateway, or by a custom agent without the token, gets the line once on its next turn (pinned_memory_upkeep.intro_due). A bot's member section gets one sentence (conductor.pinned_memory_item).Remind.
pinned_memory_upkeep.py(new).CompactionCoordinator.check_context_usagehands each turn's reading toobserve, whatever the backend decides about compacting. The next turn (context_assembly/turn.pinned_upkeep_parts) carries one line at:warn: the warn point, 60% by default (autocompact_pct−CONTEXT_WARN_MARGIN_PCT);last: halfway to the compaction point, 65%;full: the pins at 80% ofHARD_CHARS, measured at each pin, unpin and send (pinned_memory.measure, which reads records as the send does);over: the guard leaves pins out; the line names them.warnandlastfire once per fill. A backend with no reading counts turns instead (40 and 60). One line a turn, the most urgent. A stage armed on a turn that cannot carry it (pinning off, a minimal or read-blocked turn) is not spent. 80% leaves about 13 pins of the ~450 characters seen in real use before anything is left out, and one tidy pass frees about a fifth, which brings the set back under the share.Read back.
pinned_memory listreports the block's size against the total and, per fill, the reminders given and the pins and unpins made, so the agent can review its own upkeep without reading a file.Tool description. "Keep it small" is gone: pins are sent whole after every compaction, a fuller set is fine, and the agent tidies when asked.
Docs:
memory-skills-hooks.md(Pinned memory).Backwards compatibility
Compatible: with
memory.pinned_memoryoff (the default) every new path returns nothing, and the prompt line resolves to no line.Removes nothing: the tool keeps its ops and arguments; only its description text and its
listanswer grow.Tests
test/test_pinned_memory_upkeep.py(new): each stage's trigger and once-only rule; the turn-count fallback; a rebuild with and without a reading; a stage crossed while off is given once on; full and over, and over naming the left-out pins; the counters; the prompt line present only while on and only for a chat that may pin; the resolver marks a told chat; the intro once for a running chat; nothing on minimal or read-blocked turns; a chat that may not pin is not read again; the bot sentence only while on.test/test_pinned_memory.py: a pin and an unpin are counted andlistreports the size.test/test_prompt_compact_contract.py: the new slot.Proof: not provable -- other: a new feature, so there is no fix to revert; mutation-checked instead (the once-per-fill guard and the route counter each turn tests red).
Manual verification
Pending: a pod with pinned memory on, driving a chat past 60% and 65% and pinning past 80%.
Real-machine verification
Pending, with the manual verification above.
Screenshots / video
N/A -- no frontend file changes; every new line is agent-facing.
Related Issues
Part of #46328
Checklist
feat|fix|docs|style|refactor|perf|test|chore|ci|build|revert: ...); PR Hygiene does not count commitsContribution License Agreement
Contributions are accepted under the project's Apache-2.0 license; see the Licensing section of CONTRIBUTING.md.