* feat(system-prompt): admit section updates incrementally * docs(system-prompt): accept retirement restart gap * test(system-prompt): cover retirement and reentry before admission * test(system-prompt): align rebase fixtures and persistence history * fix: align section prompt consumers and CI fixtures * test: pin credentials for section snapshot fixtures * test: align remaining snapshots with section admission * test: preserve section metadata in Web and PowerShell replays * refactor(system-prompt): retire sections through Cordis cleanup * chore: refresh section admission history after rebase * fix(system-prompt): advance admission head after compaction * fix(system-prompt): trim sections before admission hashing * docs: move system upgrade guides to current version * docs: add system message contribution cookbook * perf(system-prompt): avoid indexing history for admission * refactor(system-prompt): derive admission from logged sections * test(system-prompt): update lifecycle and compaction consumers * test(system-prompt): refresh CLI section event expectations * test(system-prompt): refresh question composer section metadata * feat(system-prompt): resolve same-name sections by scope * refactor(persona): use ordinary section registrations * refactor(system-prompt): clarify assembly and related control flow * test(system-prompt): reconcile rebased section snapshots * test(python): use current system text helper after rebase * test(system-prompt): refresh CLI expected section blocks * test(system-prompt): reconcile latest master integration * test(agent-loop): seed tools before deferred addition assertion * refactor(compaction): replace system heads when compacting prefixes * refactor(system-prompt): separate source text and notice attribution * fix(system-prompt): preserve legacy instructions in compaction snapshots * refactor(compaction): build system snapshots while reading the summary prefix * refactor(compaction): rebuild current system instructions * refactor(system-prompt): defer compaction rebuild to admission * refactor(system-prompt): remove redundant fixtures and setup * fix(plan-mode): announce committed user transitions * docs(system-prompt): reconcile section lifecycle and compaction design * refactor(system-prompt): consolidate projection version increments * fix(system-prompt): reconcile master integration and replay fixtures * docs(system-prompt): align upgrade guide with current release * refactor(system-prompt): make admission operations explicit * fix(system-prompt): reconcile master API and release changes * docs(system-prompt): regenerate catalogs after master refresh * refactor(llm-pi-ai): delegate text rendering to pi-ai * fix(llm-pi-ai): preserve blank lines between system text parts * refactor(system-prompt): remove redundant retirement metadata * refactor(system-prompt): own admission and use canonical surface targets * refactor(system-prompt): compare captured sections at commitment Assembly fixes section text and lifecycle; PromptAssembly.systemUpdates() compares them with the committed projection when the loop commits. This replaces SystemPrompt.admit(), needsRebuild() and isCurrent(), the SystemAdmission export, the loop's reassembly after compaction, and SessionSurface.systemHeadResetSeq. The projection records a pending rebuild as a boolean that an attributed reset clears. After a compaction inside a step, the rebuilt head uses the sections captured for that step; later source changes arrive as ordinary updates at the next step. * test: await the session read fixture and type a matcher for lint * test(tool-executor-ptc): describe same-name section override on executor replacement Duplicate section names no longer reject a scoped executor; the earlier registration is overridden and returns as an ordinary update when the executor leaves. * docs(upgrade-guide): move system-prompt integrations to v0.2.2-rc.3 The root version on master is 0.2.2-rc.3; verify-upgrade-guides rejects a guide added under an earlier version directory. * refactor(system-prompt): rebuild over system messages without sections A system message without source.sections now marks rebuilding pending, like a compaction summary. The next model attempt replaces the head with current sections and clears later system messages. This removes the separate legacy flag and its appended whole-prompt replacement and notice. Sessions written by earlier releases, migrated logs, and imported DeepSeek conversations take the same path, so the importer and its tests return to their master versions. * test(web): refresh the imported-conversation recording and drop a stray bytecode file The Web recording for a resumed DeepSeek import was recorded while the prompt was appended after the imported history; the head is replaced again, as on master. The .pyc under the macOS signing skill was staged by accident in an earlier merge. * refactor(session): scan system nodes on read surface.systemNodes is read only when a system rebuild is written. Scanning the current surface nodes on each read restores the surface fold's plan types and state to their master definitions, which no longer carry the system message. * refactor(session): rename SystemSurfaceNode.hasContent to isEmpty The flag reports that the logged content array has no blocks. isEmpty matches the documented "empty head" wording and covers a head that was written empty without ever being cleared. * refactor(llm): join system text through extractTextContent extractTextContent gains a trim option that trims each text block and omits blocks left empty. The DeepSeek serializer, the pi-ai converter, and the prompt inspector use it with a blank-line separator in place of three hand-written joins. The pi-ai converter now trims system and developer text like the other two, so whitespace-only blocks are omitted there as well. * test(snapshots): refresh the PowerShell and cordis-inspect recordings The two PowerShell scenarios still held the initial system message as one unattributed block; replay now writes one block per section with its attribution. The cordis-inspect-jsdoc recording embeds the API catalog, which names SystemSurfaceNode.isEmpty since the rename. * test(plan-mode,harness-dev-context): cover a rejected pre-step and a repeated legacy prompt A rejected pre-step must leave a queued plan-mode switch pending and unannounced until the next accepted step. A second unattributed system message with the same legacy paragraphs must keep the admitted paragraphs. * test(web): refresh Web recordings for section-attributed system messages Twenty-seven Web recordings still held the initial system message as one unattributed block. Replay now writes one text block per section with its attribution; twenty-six recordings differ only in that line. plan-review also records the plan-mode switch notice before the first prompt and appends a plan:status update on exit in place of a head replacement and a series header, so its expanded golden gains the notice row. The Creator persona test joins the system text blocks with blank lines, as the adapters do, before matching the persona line. * refactor(system-prompt): require the retry argument of systemUpdates The agent loop passes it on every attempt. A custom loop that omitted it on a retry received a full comparison in place of the pending rebuild, with no diagnostic; the type now makes each caller state which attempt it is. * docs(upgrade-guide): move the system prompt integrations guide to v0.2.2-rc.5 The root version is 0.2.2-rc.5 after the master merge, and verify-upgrade-guides rejects a guide added under an earlier version directory. * test(web): refresh the mention path presence recording for section-attributed system messages * test: align two specs that master left failing The DeepSeek settings spec waited for a saved notice carrying the provider label from before the rename to DeepSeek API. The Windows packaging workflow spec seeded one of the two helpers that the Stage workflow helpers step copies. * chore: remove a Python cache file committed by mistake
46 lines
44 KiB
JSON
46 lines
44 KiB
JSON
{"type":"session","version":4,"id":"{{session:1}}","createdAt":0,"cwd":"{{cwd}}","isSeeded":false,"delegationDepth":0}
|
|
{"type":"permission/preset","data":{"preset":"danger-full-access"}}
|
|
{"type":"sandbox/mode","data":{"mode":"danger-full-access"}}
|
|
{"type":"approval/policy","data":{"policy":"never"}}
|
|
{"type":"workspace-root/change","data":{"cwd":"/tmp"}}
|
|
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"inserted":[{"content":[{"type":"text","text":"Establish a durable compaction premise before continuing. Record every part of this historical evidence: the snapshot uses keyless replay; persistence uses JSONL; the assembled headless application loads its real Cordis composition; model-visible inputs remain logged; tool calls and results remain paired and ordered; output reservation reduces the message budget before proactive compaction; compaction opens with compaction/start and closes with compaction/end; a successful auxiliary summary records compaction/summary source metadata; the replacement surface shadows only an older balanced range; the checkpoint remains smaller than the history it replaces; the newest tool result remains verbatim; the next request sees that checkpoint; the final response proves the same turn continued; deterministic snapshot evidence stays separate from the live-provider smoke; and no external API key is needed. Emit one alpha marker through bash, then finish the task after proactive compaction with the exact words PROACTIVE COMPACTION COMPLETE."}],"source":{"kind":"user"},"role":"user","id":"{{message:1}}"}]}}
|
|
{"type":"turn/start","data":{"turn":1}}
|
|
{"type":"agent/inbox/spliced","data":{"target":"next-turn","start":0,"removedCount":1,"inserted":[]}}
|
|
{"type":"step/start","data":{"turn":1,"step":1}}
|
|
{"type":"system/message","data":{"turn":1,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt","sections":[{"name":"harness:identity","order":-1000,"state":"active","contentIndex":0},{"name":"deployment:persona-prefix","order":0,"state":"active","contentIndex":1},{"name":"snapshot:model-switch-guidance","order":700,"state":"active","contentIndex":2},{"name":"tool:bash","order":1000,"state":"active","contentIndex":3},{"name":"tool:read","order":1100,"state":"active","contentIndex":4},{"name":"tool:write","order":1200,"state":"active","contentIndex":5},{"name":"tool:edit","order":1300,"state":"active","contentIndex":6},{"name":"tool:glob","order":1400,"state":"active","contentIndex":7},{"name":"tool:grep","order":1500,"state":"active","contentIndex":8},{"name":"tool:jobs","order":1600,"state":"active","contentIndex":9},{"name":"tool:web_search","order":2000,"state":"active","contentIndex":10},{"name":"tool:web_fetch","order":2100,"state":"active","contentIndex":11},{"name":"tool:goal","order":2400,"state":"active","contentIndex":12},{"name":"tool:workflow","order":2600,"state":"active","contentIndex":13},{"name":"tool:subagent","order":2800,"state":"active","contentIndex":14}]},"id":"{{message:2}}"}},"surfaceOp":"append"}
|
|
{"type":"user/message","data":{"content":[{"type":"text","text":"Establish a durable compaction premise before continuing. Record every part of this historical evidence: the snapshot uses keyless replay; persistence uses JSONL; the assembled headless application loads its real Cordis composition; model-visible inputs remain logged; tool calls and results remain paired and ordered; output reservation reduces the message budget before proactive compaction; compaction opens with compaction/start and closes with compaction/end; a successful auxiliary summary records compaction/summary source metadata; the replacement surface shadows only an older balanced range; the checkpoint remains smaller than the history it replaces; the newest tool result remains verbatim; the next request sees that checkpoint; the final response proves the same turn continued; deterministic snapshot evidence stays separate from the live-provider smoke; and no external API key is needed. Emit one alpha marker through bash, then finish the task after proactive compaction with the exact words PROACTIVE COMPACTION COMPLETE."}],"source":{"kind":"user"},"role":"user","id":"{{message:1}}"},"surfaceOp":"append"}
|
|
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"/tmp\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nYou are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names.\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"/tmp\"."},{"name":"sandbox:policy","text":"Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."},{"name":"approval:policy","text":"Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."},{"name":"subagent:identity","text":"You are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names."}]},"role":"user","id":"{{message:3}}"},"surfaceOp":"append"}
|
|
{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"deepseek-v4-flash","maxTokens":1000},"adapterDefaults":{"maxTokens":true},"tools":"{{tools}}"},"reason":"initial"}}
|
|
{"type":"request/context","data":{"provider":"deepseek-official","model":"deepseek-v4-flash","contextWindow":100000}}
|
|
{"type":"session/title","data":{"title":"Establish a durable compaction premise","messageSeqs":[9],"source":{"kind":"fallback"}}}
|
|
{"type":"assistant/message","data":{"turn":1,"step":1,"message":{"role":"assistant","content":[{"type":"tool-call","id":"call_compaction_history","name":"bash","arguments":"{\"command\":\"for i in $(seq 1 320); do printf 'Historical evidence %s: preserve the admitted system section.\\\\n' \\\"$i\\\"; done\",\"description\":\"Emit deterministic historical evidence\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash"},"id":"{{message:4}}"},"usage":{"inputTokens":20,"outputTokens":4},"stream":[{"type":"chunk","time":1794213955591,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}},{"type":"tool-call-chunks","time0":1794213955591,"index":0,"dt":[],"id":"call_compaction_history","name":"bash","args":["{\"command\":\"for i in $(seq 1 320); do printf 'Historical evidence %s: preserve the admitted system section.\\\\n' \\\"$i\\\"; done\",\"description\":\"Emit deterministic historical evidence\"}"]},{"type":"chunk","time":1794213955591,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"call_compaction_history","name":"bash","arguments":"{\"command\":\"for i in $(seq 1 320); do printf 'Historical evidence %s: preserve the admitted system section.\\\\n' \\\"$i\\\"; done\",\"description\":\"Emit deterministic historical evidence\"}"}}},{"type":"chunk","time":1794213955591,"chunk":{"type":"usage","usage":{"inputTokens":20,"outputTokens":4}}},{"type":"chunk","time":1794213955591,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}]},"surfaceOp":"append"}
|
|
{"type":"tool/call","data":{"turn":1,"step":1,"callId":"call_compaction_history","name":"bash","arguments":"{\"command\":\"for i in $(seq 1 320); do printf 'Historical evidence %s: preserve the admitted system section.\\\\n' \\\"$i\\\"; done\",\"description\":\"Emit deterministic historical evidence\"}"}}
|
|
{"type":"job/registered","data":{"jobId":"{{id:1}}","owner":"{{session:1}}","kind":"bash","label":"for i in $(seq 1 320); do printf 'Historical evidence %s: preserve the admitted system section.\\n' \"$i\"; done","startedAt":1794213955599,"toolCall":{"callId":"call_compaction_history","rootCallId":"call_compaction_history"}}}
|
|
{"type":"job/settled","data":{"jobId":"{{id:1}}","owner":"{{session:1}}","kind":"bash","label":"for i in $(seq 1 320); do printf 'Historical evidence %s: preserve the admitted system section.\\n' \"$i\"; done","startedAt":1794213955599,"toolCall":{"callId":"call_compaction_history","rootCallId":"call_compaction_history"},"finishedAt":1794213955605,"status":"completed","cause":"producer","producerReported":true,"detail":"exit code: 0"}}
|
|
{"type":"tool/result","data":{"turn":1,"step":1,"message":{"role":"tool","source":{"kind":"tool","callId":"call_compaction_history"},"toolCallId":"call_compaction_history","content":[{"type":"text","text":"Historical evidence 1: preserve the admitted system section.\nHistorical evidence 2: preserve the admitted system section.\nHistorical evidence 3: preserve the admitted system section.\nHistorical evidence 4: preserve the admitted system section.\nHistorical evidence 5: preserve the admitted system section.\nHistorical evidence 6: preserve the admitted system section.\nHistorical evidence 7: preserve the admitted system section.\nHistorical evidence 8: preserve the admitted system section.\nHistorical evidence 9: preserve the admitted system section.\nHistorical evidence 10: preserve the admitted system section.\nHistorical evidence 11: preserve the admitted system section.\nHistorical evidence 12: preserve the admitted system section.\nHistorical evidence 13: preserve the admitted system section.\nHistorical evidence 14: preserve the admitted system section.\nHistorical evidence 15: preserve the admitted system section.\nHistorical evidence 16: preserve the admitted system section.\nHistorical evidence 17: preserve the admitted system section.\nHistorical evidence 18: preserve the admitted system section.\nHistorical evidence 19: preserve the admitted system section.\nHistorical evidence 20: preserve the admitted system section.\nHistorical evidence 21: preserve the admitted system section.\nHistorical evidence 22: preserve the admitted system section.\nHistorical evidence 23: preserve the admitted system section.\nHistorical evidence 24: preserve the admitted system section.\nHistorical evidence 25: preserve the admitted system section.\nHistorical evidence 26: preserve the admitted system section.\nHistorical evidence 27: preserve the admitted system section.\nHistorical evidence 28: preserve the admitted system section.\nHistorical evidence 29: preserve the admitted system section.\nHistorical evidence 30: preserve the admitted system section.\nHistorical evidence 31: preserve the admitted system section.\nHistorical evidence 32: preserve the admitted system section.\nHistorical evidence 33: preserve the admitted system section.\nHistorical evidence 34: preserve the admitted system section.\nHistorical evidence 35: preserve the admitted system section.\nHistorical evidence 36: preserve the admitted system section.\nHistorical evidence 37: preserve the admitted system section.\nHistorical evidence 38: preserve the admitted system section.\nHistorical evidence 39: preserve the admitted system section.\nHistorical evidence 40: preserve the admitted system section.\nHistorical evidence 41: preserve the admitted system section.\nHistorical evidence 42: preserve the admitted system section.\nHistorical evidence 43: preserve the admitted system section.\nHistorical evidence 44: preserve the admitted system section.\nHistorical evidence 45: preserve the admitted system section.\nHistorical evidence 46: preserve the admitted system section.\nHistorical evidence 47: preserve the admitted system section.\nHistorical evidence 48: preserve the admitted system section.\nHistorical evidence 49: preserve the admitted system section.\nHistorical evidence 50: preserve the admitted system section.\nHistorical evidence 51: preserve the admitted system section.\nHistorical evidence 52: preserve the admitted system section.\nHistorical evidence 53: preserve the admitted system section.\nHistorical evidence 54: preserve the admitted system section.\nHistorical evidence 55: preserve the admitted system section.\nHistorical evidence 56: preserve the admitted system section.\nHistorical evidence 57: preserve the admitted system section.\nHistorical evidence 58: preserve the admitted system section.\nHistorical evidence 59: preserve the admitted system section.\nHistorical evidence 60: preserve the admitted system section.\nHistorical evidence 61: preserve the admitted system section.\nHistorical evidence 62: preserve the admitted system section.\nHistorical evidence 63: preserve the admitted system section.\nHistorical evidence 64: preserve the admitted system section.\nHistorical evidence 65: preserve the admitted system section.\nHistorical evidence 66: preserve the admitted system section.\nHistorical evidence 67: preserve the admitted system section.\nHistorical evidence 68: preserve the admitted system section.\nHistorical evidence 69: preserve the admitted system section.\nHistorical evidence 70: preserve the admitted system section.\nHistorical evidence 71: preserve the admitted system section.\nHistorical evidence 72: preserve the admitted system section.\nHistorical evidence 73: preserve the admitted system section.\nHistorical evidence 74: preserve the admitted system section.\nHistorical evidence 75: preserve the admitted system section.\nHistorical evidence 76: preserve the admitted system section.\nHistorical evidence 77: preserve the admitted system section.\nHistorical evidence 78: preserve the admitted system section.\nHistorical evidence 79: preserve the admitted system section.\nHistorical evidence 80: preserve the admitted system section.\nHistorical evidence 81: preserve the admitted system section.\nHistorical evidence 82: preserve the admitted system section.\nHistorical evidence 83: preserve the admitted system section.\nHistorical evidence 84: preserve the admitted system section.\nHistorical evidence 85: preserve the admitted system section.\nHistorical evidence 86: preserve the admitted system section.\nHistorical evidence 87: preserve the admitted system section.\nHistorical evidence 88: preserve the admitted system section.\nHistorical evidence 89: preserve the admitted system section.\nHistorical evidence 90: preserve the admitted system section.\nHistorical evidence 91: preserve the admitted system section.\nHistorical evidence 92: preserve the admitted system section.\nHistorical evidence 93: preserve the admitted system section.\nHistorical evidence 94: preserve the admitted system section.\nHistorical evidence 95: preserve the admitted system section.\nHistorical evidence 96: preserve the admitted system section.\nHistorical evidence 97: preserve the admitted system section.\nHistorical evidence 98: preserve the admitted system section.\nHistorical evidence 99: preserve the admitted system section.\nHistorical evidence 100: preserve the admitted system section.\nHistorical evidence 101: preserve the admitted system section.\nHistorical evidence 102: preserve the admitted system section.\nHistorical evidence 103: preserve the admitted system section.\nHistorical evidence 104: preserve the admitted system section.\nHistorical evidence 105: preserve the admitted system section.\nHistorical evidence 106: preserve the admitted system section.\nHistorical evidence 107: preserve the admitted system section.\nHistorical evidence 108: preserve the admitted system section.\nHistorical evidence 109: preserve the admitted system section.\nHistorical evidence 110: preserve the admitted system section.\nHistorical evidence 111: preserve the admitted system section.\nHistorical evidence 112: preserve the admitted system section.\nHistorical evidence 113: preserve the admitted system section.\nHistorical evidence 114: preserve the admitted system section.\nHistorical evidence 115: preserve the admitted system section.\nHistorical evidence 116: preserve the admitted system section.\nHistorical evidence 117: preserve the admitted system section.\nHistorical evidence 118: preserve the admitted system section.\nHistorical evidence 119: preserve the admitted system section.\nHistorical evidence 120: preserve the admitted system section.\nHistorical evidence 121: preserve the admitted system section.\nHistorical evidence 122: preserve the admitted system section.\nHistorical evidence 123: preserve the admitted system section.\nHistorical evidence 124: preserve the admitted system section.\nHistorical evidence 125: preserve the admitted system section.\nHistorical evidence 126: preserve the admitted system section.\nHistorical evidence 127: preserve the admitted system section.\nHistorical evidence 128: preserve the admitted system section.\nHistorical evidence 129: preserve the admitted system section.\nHistorical evidence 130: preserve the admitted system section.\nHistorical evidence 131: preserve the admitted system section.\nHistorical evidence 132: preserve the admitted system section.\nHistorical evidence 133: preserve the admitted system section.\nHistorical evidence 134: preserve the admitted system section.\nHistorical evidence 135: preserve the admitted system section.\nHistorical evidence 136: preserve the admitted system section.\nHistorical evidence 137: preserve the admitted system section.\nHistorical evidence 138: preserve the admitted system section.\nHistorical evidence 139: preserve the admitted system section.\nHistorical evidence 140: preserve the admitted system section.\nHistorical evidence 141: preserve the admitted system section.\nHistorical evidence 142: preserve the admitted system section.\nHistorical evidence 143: preserve the admitted system section.\nHistorical evidence 144: preserve the admitted system section.\nHistorical evidence 145: preserve the admitted system section.\nHistorical evidence 146: preserve the admitted system section.\nHistorical evidence 147: preserve the admitted system section.\nHistorical evidence 148: preserve the admitted system section.\nHistorical evidence 149: preserve the admitted system section.\nHistorical evidence 150: preserve the admitted system section.\nHistorical evidence 151: preserve the admitted system section.\nHistorical evidence 152: preserve the admitted system section.\nHistorical evidence 153: preserve the admitted system section.\nHistorical evidence 154: preserve the admitted system section.\nHistorical evidence 155: preserve the admitted system section.\nHistorical evidence 156: preserve the admitted system section.\nHistorical evidence 157: preserve the admitted system section.\nHistorical evidence 158: preserve the admitted system section.\nHistorical evidence 159: preserve the admitted system section.\nHistorical evidence 160: preserve the admitted system section.\nHistorical evidence 161: preserve the admitted system section.\nHistorical evidence 162: preserve the admitted system section.\nHistorical evidence 163: preserve the admitted system section.\nHistorical evidence 164: preserve the admitted system section.\nHistorical evidence 165: preserve the admitted system section.\nHistorical evidence 166: preserve the admitted system section.\nHistorical evidence 167: preserve the admitted system section.\nHistorical evidence 168: preserve the admitted system section.\nHistorical evidence 169: preserve the admitted system section.\nHistorical evidence 170: preserve the admitted system section.\nHistorical evidence 171: preserve the admitted system section.\nHistorical evidence 172: preserve the admitted system section.\nHistorical evidence 173: preserve the admitted system section.\nHistorical evidence 174: preserve the admitted system section.\nHistorical evidence 175: preserve the admitted system section.\nHistorical evidence 176: preserve the admitted system section.\nHistorical evidence 177: preserve the admitted system section.\nHistorical evidence 178: preserve the admitted system section.\nHistorical evidence 179: preserve the admitted system section.\nHistorical evidence 180: preserve the admitted system section.\nHistorical evidence 181: preserve the admitted system section.\nHistorical evidence 182: preserve the admitted system section.\nHistorical evidence 183: preserve the admitted system section.\nHistorical evidence 184: preserve the admitted system section.\nHistorical evidence 185: preserve the admitted system section.\nHistorical evidence 186: preserve the admitted system section.\nHistorical evidence 187: preserve the admitted system section.\nHistorical evidence 188: preserve the admitted system section.\nHistorical evidence 189: preserve the admitted system section.\nHistorical evidence 190: preserve the admitted system section.\nHistorical evidence 191: preserve the admitted system section.\nHistorical evidence 192: preserve the admitted system section.\nHistorical evidence 193: preserve the admitted system section.\nHistorical evidence 194: preserve the admitted system section.\nHistorical evidence 195: preserve the admitted system section.\nHistorical evidence 196: preserve the admitted system section.\nHistorical evidence 197: preserve the admitted system section.\nHistorical evidence 198: preserve the admitted system section.\nHistorical evidence 199: preserve the admitted system section.\nHistorical evidence 200: preserve the admitted system section.\nHistorical evidence 201: preserve the admitted system section.\nHistorical evidence 202: preserve the admitted system section.\nHistorical evidence 203: preserve the admitted system section.\nHistorical evidence 204: preserve the admitted system section.\nHistorical evidence 205: preserve the admitted system section.\nHistorical evidence 206: preserve the admitted system section.\nHistorical evidence 207: preserve the admitted system section.\nHistorical evidence 208: preserve the admitted system section.\nHistorical evidence 209: preserve the admitted system section.\nHistorical evidence 210: preserve the admitted system section.\nHistorical evidence 211: preserve the admitted system section.\nHistorical evidence 212: preserve the admitted system section.\nHistorical evidence 213: preserve the admitted system section.\nHistorical evidence 214: preserve the admitted system section.\nHistorical evidence 215: preserve the admitted system section.\nHistorical evidence 216: preserve the admitted system section.\nHistorical evidence 217: preserve the admitted system section.\nHistorical evidence 218: preserve the admitted system section.\nHistorical evidence 219: preserve the admitted system section.\nHistorical evidence 220: preserve the admitted system section.\nHistorical evidence 221: preserve the admitted system section.\nHistorical evidence 222: preserve the admitted system section.\nHistorical evidence 223: preserve the admitted system section.\nHistorical evidence 224: preserve the admitted system section.\nHistorical evidence 225: preserve the admitted system section.\nHistorical evidence 226: preserve the admitted system section.\nHistorical evidence 227: preserve the admitted system section.\nHistorical evidence 228: preserve the admitted system section.\nHistorical evidence 229: preserve the admitted system section.\nHistorical evidence 230: preserve the admitted system section.\nHistorical evidence 231: preserve the admitted system section.\nHistorical evidence 232: preserve the admitted system section.\nHistorical evidence 233: preserve the admitted system section.\nHistorical evidence 234: preserve the admitted system section.\nHistorical evidence 235: preserve the admitted system section.\nHistorical evidence 236: preserve the admitted system section.\nHistorical evidence 237: preserve the admitted system section.\nHistorical evidence 238: preserve the admitted system section.\nHistorical evidence 239: preserve the admitted system section.\nHistorical evidence 240: preserve the admitted system section.\nHistorical evidence 241: preserve the admitted system section.\nHistorical evidence 242: preserve the admitted system section.\nHistorical evidence 243: preserve the admitted system section.\nHistorical evidence 244: preserve the admitted system section.\nHistorical evidence 245: preserve the admitted system section.\nHistorical evidence 246: preserve the admitted system section.\nHistorical evidence 247: preserve the admitted system section.\nHistorical evidence 248: preserve the admitted system section.\nHistorical evidence 249: preserve the admitted system section.\nHistorical evidence 250: preserve the admitted system section.\nHistorical evidence 251: preserve the admitted system section.\nHistorical evidence 252: preserve the admitted system section.\nHistorical evidence 253: preserve the admitted system section.\nHistorical evidence 254: preserve the admitted system section.\nHistorical evidence 255: preserve the admitted system section.\nHistorical evidence 256: preserve the admitted system section.\nHistorical evidence 257: preserve the admitted system section.\nHistorical evidence 258: preserve the admitted system section.\nHistorical evidence 259: preserve the admitted system section.\nHistorical evidence 260: preserve the admitted system section.\nHistorical evidence 261: preserve the admitted system section.\nHistorical evidence 262: preserve the admitted system section.\nHistorical evidence 263: preserve the admitted system section.\nHistorical evidence 264: preserve the admitted system section.\nHistorical evidence 265: preserve the admitted system section.\nHistorical evidence 266: preserve the admitted system section.\nHistorical evidence 267: preserve the admitted system section.\nHistorical evidence 268: preserve the admitted system section.\nHistorical evidence 269: preserve the admitted system section.\nHistorical evidence 270: preserve the admitted system section.\nHistorical evidence 271: preserve the admitted system section.\nHistorical evidence 272: preserve the admitted system section.\nHistorical evidence 273: preserve the admitted system section.\nHistorical evidence 274: preserve the admitted system section.\nHistorical evidence 275: preserve the admitted system section.\nHistorical evidence 276: preserve the admitted system section.\nHistorical evidence 277: preserve the admitted system section.\nHistorical evidence 278: preserve the admitted system section.\nHistorical evidence 279: preserve the admitted system section.\nHistorical evidence 280: preserve the admitted system section.\nHistorical evidence 281: preserve the admitted system section.\nHistorical evidence 282: preserve the admitted system section.\nHistorical evidence 283: preserve the admitted system section.\nHistorical evidence 284: preserve the admitted system section.\nHistorical evidence 285: preserve the admitted system section.\nHistorical evidence 286: preserve the admitted system section.\nHistorical evidence 287: preserve the admitted system section.\nHistorical evidence 288: preserve the admitted system section.\nHistorical evidence 289: preserve the admitted system section.\nHistorical evidence 290: preserve the admitted system section.\nHistorical evidence 291: preserve the admitted system section.\nHistorical evidence 292: preserve the admitted system section.\nHistorical evidence 293: preserve the admitted system section.\nHistorical evidence 294: preserve the admitted system section.\nHistorical evidence 295: preserve the admitted system section.\nHistorical evidence 296: preserve the admitted system section.\nHistorical evidence 297: preserve the admitted system section.\nHistorical evidence 298: preserve the admitted system section.\nHistorical evidence 299: preserve the admitted system section.\nHistorical evidence 300: preserve the admitted system section.\nHistorical evidence 301: preserve the admitted system section.\nHistorical evidence 302: preserve the admitted system section.\nHistorical evidence 303: preserve the admitted system section.\nHistorical evidence 304: preserve the admitted system section.\nHistorical evidence 305: preserve the admitted system section.\nHistorical evidence 306: preserve the admitted system section.\nHistorical evidence 307: preserve the admitted system section.\nHistorical evidence 308: preserve the admitted system section.\nHistorical evidence 309: preserve the admitted system section.\nHistorical evidence 310: preserve the admitted system section.\nHistorical evidence 311: preserve the admitted system section.\nHistorical evidence 312: preserve the admitted system section.\nHistorical evidence 313: preserve the admitted system section.\nHistorical evidence 314: preserve the admitted system section.\nHistorical evidence 315: preserve the admitted system section.\nHistorical evidence 316: preserve the admitted system section.\nHistorical evidence 317: preserve the admitted system section.\nHistorical evidence 318: preserve the admitted system section.\nHistorical evidence 319: preserve the admitted system section.\nHistorical evidence 320: preserve the admitted system section.\n"}],"isError":false,"id":"{{message:5}}"},"meta":{"cwd":"/tmp"}},"sourceEventSeqs":[15],"surfaceOp":"append"}
|
|
{"type":"step/end","data":{"turn":1,"step":1}}
|
|
{"type":"step/start","data":{"turn":1,"step":2}}
|
|
{"type":"system/message","data":{"turn":1,"step":2,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt","sections":[{"name":"snapshot:model-switch-guidance","order":700,"state":"active","contentIndex":1,"noticeIndex":[0]}]},"id":"{{message:6}}"}},"surfaceOp":"append"}
|
|
{"type":"assistant/message","data":{"turn":1,"step":2,"message":{"role":"assistant","content":[{"type":"tool-call","id":"call_compaction_marker","name":"bash","arguments":"{\"command\":\"printf 'alpha\\\\n'\",\"description\":\"Emit the retained compaction marker\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash"},"id":"{{message:7}}"},"usage":{"inputTokens":20,"outputTokens":4},"stream":[{"type":"chunk","time":1794213955617,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}},{"type":"tool-call-chunks","time0":1794213955617,"index":0,"dt":[],"id":"call_compaction_marker","name":"bash","args":["{\"command\":\"printf 'alpha\\\\n'\",\"description\":\"Emit the retained compaction marker\"}"]},{"type":"chunk","time":1794213955617,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"call_compaction_marker","name":"bash","arguments":"{\"command\":\"printf 'alpha\\\\n'\",\"description\":\"Emit the retained compaction marker\"}"}}},{"type":"chunk","time":1794213955617,"chunk":{"type":"usage","usage":{"inputTokens":20,"outputTokens":4}}},{"type":"chunk","time":1794213955617,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}]},"surfaceOp":"append"}
|
|
{"type":"tool/call","data":{"turn":1,"step":2,"callId":"call_compaction_marker","name":"bash","arguments":"{\"command\":\"printf 'alpha\\\\n'\",\"description\":\"Emit the retained compaction marker\"}"}}
|
|
{"type":"job/registered","data":{"jobId":"{{id:2}}","owner":"{{session:1}}","kind":"bash","label":"printf 'alpha\\n'","startedAt":1794213955623,"toolCall":{"callId":"call_compaction_marker","rootCallId":"call_compaction_marker"}}}
|
|
{"type":"job/settled","data":{"jobId":"{{id:2}}","owner":"{{session:1}}","kind":"bash","label":"printf 'alpha\\n'","startedAt":1794213955623,"toolCall":{"callId":"call_compaction_marker","rootCallId":"call_compaction_marker"},"finishedAt":1794213955625,"status":"completed","cause":"producer","producerReported":true,"detail":"exit code: 0"}}
|
|
{"type":"model/selection","data":{"provider":"deepseek-official","model":"deepseek-v4-pro"}}
|
|
{"type":"tool/result","data":{"turn":1,"step":2,"message":{"role":"tool","source":{"kind":"tool","callId":"call_compaction_marker"},"toolCallId":"call_compaction_marker","content":[{"type":"text","text":"alpha\n"}],"isError":false,"id":"{{message:8}}"},"meta":{"cwd":"/tmp"}},"sourceEventSeqs":[23],"surfaceOp":"append"}
|
|
{"type":"step/end","data":{"turn":1,"step":2}}
|
|
{"type":"step/start","data":{"turn":1,"step":3}}
|
|
{"type":"compaction/prune","data":{"shadowedRange":{"start":18,"end":18},"shadowedSeqs":[18],"shadowedTokenCount":5021}}
|
|
{"type":"tool/result","data":{"turn":1,"step":1,"message":{"role":"tool","source":{"kind":"tool","callId":"call_compaction_history"},"toolCallId":"call_compaction_history","content":[{"type":"text","text":"Historical evidence 1: preserve the admitted system section.\nHistorical evidence 2: preserve the admitted system section.\nHistorical evidence 3: preserve the admitted system section.\nHistorical evidence 4: preserve the admitted system section.\nHistorical evidence 5: preserve the admitted system section.\nHistorical evidence 6: preserve the admitted system section.\nHistorical evidence 7: preserve the admitted system section.\nHistorical evidence 8: preserve the admitted system section.\nHistorical evidence 9: preserve the admitted system section.\nHistorical evidence 10: preserve the admitted system section.\nHistorical evidence 11: preserve the admitted system section.\nHistorical evidence 12: preserve the admitted system section.\nHistorical evidence 13: preserve the admitted system section.\nHistorical evidence 14: preserve the admitted system section.\nHistorical evidence 15: preserve the admitted system section.\nHistorical evidence 16: preserve the admitted system section.\nHistorical evidence 17: preserve the admitted system section.\nHistorical evidence 18: preserve the admitted system section.\nHistorical evidence 19: preserve the admitted system section.\nHistorical evidence 20: preserve the admitted system section.\nHistorical evidence 21: preserve the admitted system section.\nHistorical evidence 22: preserve the admitted system section.\nHistorical evidence 23: preserve the admitted system section.\nHistorical evidence 24: preserve the admitted system section.\nHistorical evidence 25: preserve the admitted system section.\nHistorical evidence 26: preserve the admitted system section.\nHistorical evidence 27: preserve the admitted system section.\nHistorical evidence 28: preserve the admitted system section.\nHistorical evidence 29: preserve the admitted system section.\nHistorical evidence 30: preserve the admitted system section.\nHistorical evidence 31: preserve the admitted system section.\nHistorical evidence 32: preserve the admitted system section.\nHistorical evidence 33: preserve the admitted system section.\nHistorical evidence 34: preserve the admitted system section.\nHistorical evidence 35: preserve the admitted system section.\nHistorical evidence 36: preserve the admitted system section.\nHistorical evidence 37: preserve the admitted system section.\nHistorical evidence 38: preserve the admitted system section.\nHistorical evidence 39: preserve the admitted system section.\nHistorical evidence 40: preserve the admitted system section.\nHistorical evidence 41: preserve the admitted system section.\nHistorical evidence 42: preserve the admitted system section.\nHistorical evidence 43: preserve the admitted system section.\nHistorical evidence 44: preserve the admitted system section.\nHistorical evidence 45: preserve the admitted system section.\nHistorical evidence 46: preserve the admitted system section.\nHistorical evidence 47: preserve the admitted system section.\nHistorical evidence 48: preserve the admitted system section.\nHistorical evidence 49: preserve the admitted system section.\nHistorical evidence 50: preserve the admitted system section.\nHistorical evidence 51: preserve the admitted system section.\nHistorical evidence 52: preserve the admitted system section.\nHistorical evidence 53: preserve the admitted system section.\nHistorical evidence 54: preserve the admitted system section.\nHistorical evidence 55: preserve the admitted system section.\nHistorical evidence 56: preserve the admitted system section.\nHistorical evidence 57: preserve the admitted system section.\nHistorical evidence 58: preserve the admitted system section.\nHistorical evidence 59: preserve the admitted system section.\nHistorical evidence 60: preserve the admitted system section.\nHistorical evidence 61: preserve the admitted system section.\nHistorical evidence 62: preserve the admitted system section.\nHistorical evidence 63: preserve the admitted system section.\nHistorical evidence 64: preserve the admitted system section.\nHistorical evidence 65: preserve the admitted system section.\nHistorical evidence 66: preserve the admitted system section.\nHistorical ev\n\n[... tool result middle pruned ...]\n\nsystem section.\nHistorical evidence 305: preserve the admitted system section.\nHistorical evidence 306: preserve the admitted system section.\nHistorical evidence 307: preserve the admitted system section.\nHistorical evidence 308: preserve the admitted system section.\nHistorical evidence 309: preserve the admitted system section.\nHistorical evidence 310: preserve the admitted system section.\nHistorical evidence 311: preserve the admitted system section.\nHistorical evidence 312: preserve the admitted system section.\nHistorical evidence 313: preserve the admitted system section.\nHistorical evidence 314: preserve the admitted system section.\nHistorical evidence 315: preserve the admitted system section.\nHistorical evidence 316: preserve the admitted system section.\nHistorical evidence 317: preserve the admitted system section.\nHistorical evidence 318: preserve the admitted system section.\nHistorical evidence 319: preserve the admitted system section.\nHistorical evidence 320: preserve the admitted system section.\n"}],"isError":false,"id":"{{message:5}}"},"meta":{"cwd":"/tmp"}},"sourceEventSeqs":[18],"surfaceOp":{"op":"replace","startSeq":18,"endSeq":18}}
|
|
{"type":"compaction/start","data":{"compactionId":"{{id:3}}","turn":1}}
|
|
{"type":"compaction/summary","data":{"compactionId":"{{id:3}}","summary":[{"type":"text","text":"The request established a durable compaction premise."}],"rawOutput":[{"type":"text","text":"The request established a durable compaction premise."}],"llmStreamCall":true,"shadowedRange":{"start":9,"end":21},"shadowedSeqs":[9,10,14,31,21],"shadowedTokenCount":1818,"provider":"deepseek-official","model":"deepseek-v4-flash","maxTokens":32,"usage":{"inputTokens":20,"outputTokens":4}}}
|
|
{"type":"user/message","data":{"content":[{"type":"text","text":"This is an automatically generated checkpoint condensing an earlier span of the conversation to free up context. Treat the captured context as established background and build on it without restating it. Continue the task directly from the messages that follow, without acknowledging this checkpoint.\n\n<compacted-summary>"},{"type":"text","text":"The request established a durable compaction premise."},{"type":"text","text":"</compacted-summary>"}],"source":{"kind":"compact-checkpoint","compactionId":"{{id:3}}"},"role":"user","id":"{{message:9}}"},"sourceEventSeqs":[32,33,9,10,14,31,21],"surfaceOp":{"op":"replace","startSeq":9,"endSeq":21}}
|
|
{"type":"compaction/end","data":{"compactionId":"{{id:3}}","turn":1}}
|
|
{"type":"system/message","data":{"turn":1,"step":3,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"},{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt","sections":[{"name":"harness:identity","order":-1000,"state":"active","contentIndex":0},{"name":"deployment:persona-prefix","order":0,"state":"active","contentIndex":1},{"name":"snapshot:model-switch-guidance","order":700,"state":"active","contentIndex":2},{"name":"tool:bash","order":1000,"state":"active","contentIndex":3},{"name":"tool:read","order":1100,"state":"active","contentIndex":4},{"name":"tool:write","order":1200,"state":"active","contentIndex":5},{"name":"tool:edit","order":1300,"state":"active","contentIndex":6},{"name":"tool:glob","order":1400,"state":"active","contentIndex":7},{"name":"tool:grep","order":1500,"state":"active","contentIndex":8},{"name":"tool:jobs","order":1600,"state":"active","contentIndex":9},{"name":"tool:web_search","order":2000,"state":"active","contentIndex":10},{"name":"tool:web_fetch","order":2100,"state":"active","contentIndex":11},{"name":"tool:goal","order":2400,"state":"active","contentIndex":12},{"name":"tool:workflow","order":2600,"state":"active","contentIndex":13},{"name":"tool:subagent","order":2800,"state":"active","contentIndex":14}],"reset":true},"id":"{{message:10}}"}},"sourceEventSeqs":[8],"surfaceOp":{"op":"replace","startSeq":8,"endSeq":8}}
|
|
{"type":"user/message","data":{"content":[{"type":"text","text":"[model changed: assistant turns above this point were generated by deepseek-v4-flash; the session continues with deepseek-v4-pro]"}],"source":{"kind":"model-selection","form":"notice","summary":"deepseek-v4-flash → deepseek-v4-pro"},"role":"user","id":"{{message:11}}"},"surfaceOp":"append"}
|
|
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session. It replaces earlier versions of this context, including any retained in conversation summaries.\n\nCurrent working directory: \"/tmp\".\n\nCurrent DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\nApproval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\nYou are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names.\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"/tmp\"."},{"name":"sandbox:policy","text":"Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations."},{"name":"approval:policy","text":"Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`)."},{"name":"subagent:identity","text":"You are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names."}]},"role":"user","id":"{{message:12}}"},"surfaceOp":"append"}
|
|
{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"deepseek-v4-pro","maxTokens":1000},"adapterDefaults":{"maxTokens":true},"tools":"{{tools}}"},"reason":"change","startsSeries":true}}
|
|
{"type":"request/context","data":{"provider":"deepseek-official","model":"deepseek-v4-pro","contextWindow":8792}}
|
|
{"type":"assistant/message","data":{"turn":1,"step":3,"message":{"role":"assistant","content":[{"type":"text","text":"PROACTIVE COMPACTION COMPLETE"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-pro"},"id":"{{message:13}}"},"usage":{"inputTokens":20,"outputTokens":4},"stream":[{"type":"chunk","time":1794213955646,"chunk":{"type":"block-start","index":0,"blockType":"text"}},{"type":"text-chunks","time0":1794213955646,"index":0,"dt":[],"texts":["PROACTIVE COMPACTION COMPLETE"]},{"type":"chunk","time":1794213955646,"chunk":{"type":"block-end","index":0,"block":{"type":"text","text":"PROACTIVE COMPACTION COMPLETE"}}},{"type":"chunk","time":1794213955646,"chunk":{"type":"usage","usage":{"inputTokens":20,"outputTokens":4}}},{"type":"chunk","time":1794213955646,"chunk":{"type":"finish","reason":{"kind":"stop"}}}]},"surfaceOp":"append"}
|
|
{"type":"step/end","data":{"turn":1,"step":3}}
|
|
{"type":"turn/end","data":{"turn":1,"reason":{"kind":"completed"}}}
|