fix(agent): writeback param shadow + Wave B1 dump/harness
step/plan writeback=True shadowed lib/writeback; persist via host_writeback_record. Align ZH context builder, add dump_step_context, lock offline harness. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
d1b4e62d4d
commit
e3e2cfa9d1
11 files changed
+162
-53
No files matched your search
@@ -0,0 +1,42 @@
|
||||
---
|
||||
title: writeback param must not shadow host_writeback_record
|
||||
description: Regression — step/plan param writeback=True used to break > writeback.record (bool is not a map).
|
||||
import writeback:lib/writeback.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
---
|
||||
|
||||
# box
|
||||
+ `writeback`=False
|
||||
|
||||
## go
|
||||
+ `writeback`=False
|
||||
|
||||
Mimic agent.step: branch on param named writeback, then persist via host (not import bind).
|
||||
|
||||
*out = > json.parse text={"status":"ok","note":"shadow-probe"}*
|
||||
1. `writeback`
|
||||
*body = > json.stringify value=`out`*
|
||||
*st = > json.get value=`out` key="status"*
|
||||
1. `st` == "ok"
|
||||
> host_writeback_record value=`body` key="ok"
|
||||
2. *
|
||||
> host_writeback_record value=`body` key="error"
|
||||
2. *
|
||||
*_ = 1*
|
||||
****
|
||||
|
||||
# main
|
||||
|
||||
*b = > box*
|
||||
> `b`.go writeback=True
|
||||
<!-- marqdo-out ok
|
||||
{"note":"shadow-probe","status":"ok"}
|
||||
-->
|
||||
|
||||
*cached = > writeback.get key="ok"*
|
||||
1. `cached`
|
||||
> print text=writeback-shadow-ok
|
||||
2. *
|
||||
> print text=writeback-shadow-missing
|
||||
> sys.exit code=1
|
||||
Reference in new issue
Block a user