Skip to content

Commit 1bdcae1

Browse files
committed
fix(coding-agent): restore v1.1.11 guidance and repair continuation controls
1 parent 870d4bf commit 1bdcae1

45 files changed

Lines changed: 1488 additions & 616 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- Changed the default prompts and task guidance back to v1.1.11.
2+
- Added explicit continuation holds for external blockers without completing the active goal.
3+
- Added live autonomous gate replacement without resetting run budgets.
4+
- Fixed reopening sessions with pending tool continuations.
5+
- Fixed session catalog reads failing when an index worker exits before its final reply is read.
6+
- Improved session-creation timeouts to report the last observed startup phase when supported by the daemon.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# v1.1.13
2+
3+
Restored the v1.1.11 prompts and task guidance, with targeted runtime fixes.
4+
5+
- Added `continuation.block()` and `/continuation` controls for explicit external blockers. A hold stops automatic continuation, preserves the unfinished goal and owned work, and remains until explicit user or host resume.
6+
- Added `/autonomous gates set <JSON-array>` to replace gate commands without resetting run budgets. Delayed results from replaced commands cannot restore obsolete failures.
7+
- Fixed reopening sessions with pending tool continuations.
8+
- Fixed a session-catalog race when an index worker exits before its final reply is read.
9+
- Added optional startup progress to session-creation timeout diagnostics. Older clients and daemons continue to work without it.
10+
11+
This release is not the earlier partial-rollback benchmark candidate. No new TerminalBench results or measured accuracy, time or cost parity are claimed.

‎packages/coding-agent/docs/rlm-runtime.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,15 @@ test_review = await rlm("review the tests", name="test-reviewer")
184184
audit = await rlm("slow independent audit", name="audit-reviewer")
185185
```
186186

187-
End the turn instead of waiting for completion. Use `agent_message.send` for short coordination and `await agent_message.send_result(summary, findings, receiver_role="parent")` for substantial findings or final reports. Replies arrive over later turns; recover capsule details only when needed. Include decisive contrary evidence and corrective caveats in the summary or `outcome`, not only archived findings. Keep unresolved evidence and its report references in parent decisions until resolved against the user request; a newer report does not automatically replace it. Without that capability, use files for fan-in. The host runs each admitted child as an independent `AgentSession`; daemon-backed children can be retained as independently addressable session workers.
187+
End the turn instead of waiting for completion. Use `agent_message.send` for short coordination and `await agent_message.send_result(summary, findings, receiver_role="parent")` for substantial findings or final reports. Replies arrive over later turns; recover capsule details only when needed. Without that capability, use files for fan-in. The host runs each admitted child as an independent `AgentSession`; daemon-backed children can be retained as independently addressable session workers.
188188

189189
## Parent-Scoped Sub-Agent Registry
190190

191191
The TypeScript parent maintains the authoritative direct-child registry. `await rlm.list_subagents()` returns stable child IDs, active-session IDs when daemon-backed, session IDs, names, directories, and running/completed status.
192192

193193
This registry survives kernel restart, compaction, and parent restore. Successfully completed daemon-backed children are rehydrated from the parent artifact registry. Inline children remain inspectable in the current process but have no active-session ID.
194194

195-
The parent can continue a retained daemon child with `await agent_message.send(..., receiver_role="child", receiver_name=child.session_name)`. `rlm.delete_subagent()` accepts an exact child ID, active-session ID, session ID, or unique name. Deletion cancels or closes the runtime, writes a durable tombstone, removes the child from messaging and observation, and cleans up child runtime artifacts. Deleting a busy child can discard an unsent correction. For routine cleanup, first receive the requested result and observe idle; a delivered or queued message receipt is not completion. Intentional cancellation remains allowed and should be reported as cancellation, not completed work. Reports already archived in the recipient remain subject to that session's retention and branch scope.
195+
The parent can continue a retained daemon child with `await agent_message.send(..., receiver_role="child", receiver_name=child.session_name)`. `rlm.delete_subagent()` accepts an exact child ID, active-session ID, session ID, or unique name. Deletion cancels or closes the runtime, writes a durable tombstone, and removes the child from messaging and observation. It does not erase the transcript or artifacts on disk.
196196

197197
Registry scope follows the parent transcript. An unrelated new parent session does not inherit children.
198198

‎packages/coding-agent/docs/rlm.md‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ receipt = await agent_message.send_result(
102102

103103
The recipient stores the full public report in its own session before receiving the capsule. The report is not added to the recipient's model context. The capsule and `receipt["resultRef"]` identify the retained source, entry and findings field. The recipient can use the existing `prime_context` read/search operations (or `rlm.prime_context` in an active kernel call) to request selected lines or search for a relevant section. The report remains available after the child runtime stops, within normal recipient-session retention and branch scope.
104104

105-
Capsules are child-authored conclusions, not verified facts. Put decisive contrary evidence, corrected premises, material caveats, unresolved decisions and observed artifact changes in the summary or `outcome`, not only the archived findings. Identify earlier report refs that the capsule revises or replaces. A parent should read the capsules first and retrieve relevant report sections; a newer message does not automatically replace independent findings or unresolved blockers. Keep unresolved evidence and its references in current decisions and final briefs until resolved against the user request. A narrower brief or more favorable report is not itself a resolution. Older reports remain readable.
105+
Capsules are child-authored conclusions, not verified facts. Include material caveats, unresolved decisions and observed artifact changes. Identify earlier report refs that the capsule revises or replaces. A parent should read the capsules first and retrieve only the latest relevant report sections; a newer message does not automatically replace independent findings or unresolved blockers. Older reports remain readable.
106106

107107
Summaries must fit 2,000 characters. The complete encoded report uses the existing native source size limit; oversize reports refuse instead of being clipped. This operation adds no summarization-model call. Ordinary short questions and progress messages stay inline:
108108

@@ -132,14 +132,12 @@ for child in children:
132132
print(child.session_name, child.status, child.active_session_id)
133133
```
134134

135-
Successfully completed daemon-backed children remain addressable while their parent session is open. For routine cleanup, receive the requested result, observe idle, and delete the child when its context is no longer needed:
135+
Successfully completed daemon-backed children remain addressable while their parent session is open. Delete a child only when its context is no longer needed:
136136

137137
```python
138138
await rlm.delete_subagent(children[0])
139139
```
140140

141-
Deleting a busy child cancels active work and can discard an unsent correction. A delivered or queued `agent_message.send` receipt does not establish that the follow-up finished. Intentional cancellation remains available; report it as cancellation, not completed work. Reports already archived in the parent remain available under the parent's normal retention and branch scope.
142-
143141
The default maximum recursion depth is `2`, with the root at depth `0`. The host enforces the accepted session limit. See [recursive-agent settings](settings.md#recursive-agents) for the global creation default.
144142

145143
### 3. Skills add programmatic capability

‎packages/coding-agent/docs/task-workflows.md‎

Lines changed: 7 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,12 @@ included section, fields are required unless marked optional below.
2424
| --- | --- |
2525
| `rules`, `hard_bounds`, `targets`, `references`, `assumptions` | Lists of strings |
2626
| `output_meanings` | Map of output names to string meanings, including units and rounding when relevant |
27-
| `stages` | List of named interfaces: `name`: string; `input_meanings` and `output_meanings`: maps of names to string meanings; optional `assumptions`: list of strings |
2827
| `objective` | `components`: ordered list of strings; `direction`: `maximize` or `minimize`; optional `target`: string; `work_limit`: positive safe integer |
2928
| `delivery` | `workspace`: string; optional `consumer_root` and `mode`: strings; `files`: list of `{path, dependencies?}` with string paths and optional lists of string dependencies |
3029
| `integration_owner`, `activation_owner` | Strings naming responsible agents or people, not granting permission |
31-
| `boundary_case` | `description`: string; optional `command`, `expected_behavior`, `consumer`, `runtime`, and `cwd`: strings |
30+
| `boundary_case` | `description`: string; optional `command`: string |
3231

33-
Use `stages` only when a task crosses interfaces whose meanings matter. For
34-
example, a table conversion could declare:
35-
36-
```python
37-
contract = {
38-
"stages": [
39-
{"name": "read rows",
40-
"input_meanings": {"table": "UTF-8 CSV; identifiers are strings"},
41-
"output_meanings": {"rows": "Rows in source order; retain leading zeros"},
42-
"assumptions": ["The supplied delimiter is correct"]},
43-
{"name": "write report",
44-
"input_meanings": {"rows": "Rows in source order; identifiers unchanged"},
45-
"output_meanings": {"report": "One JSON object per row, not a summary"}},
46-
],
47-
}
48-
```
49-
50-
These are descriptive interfaces, not a required sequence of reviews or a new
51-
execution workflow. Preserve each meaning and assumption literally. Do not
52-
promote a stage assumption or a desired target to a hard rule. Names and values
53-
are task-supplied text; the runtime does not interpret them or infer missing
54-
stages. A contract can omit stages entirely.
55-
56-
A file task might need only delivery and boundary information:
32+
For example, a file task might need only delivery and boundary information:
5733

5834
```python
5935
child = await rlm(
@@ -68,31 +44,15 @@ child = await rlm(
6844
{"path": "helpers.py"}],
6945
},
7046
"integration_owner": "parent",
71-
"boundary_case": {
72-
"description": "Empty input through the consumer CLI",
73-
"command": ".venv/bin/python cli.py empty.json",
74-
"expected_behavior": "Exit 0 and write an empty JSON array",
75-
"consumer": "Transferred CLI files, not the development workspace",
76-
"runtime": "Consumer project's .venv Python",
77-
"cwd": "/srv/consumer",
78-
},
47+
"boundary_case": {"description": "Run the CLI with empty input from the consumer root."},
7948
},
8049
)
8150
```
8251

83-
Every `boundary_case` field is descriptive. Neither a command nor an expected
84-
behavior executes anything, grants permission, or establishes a passing result.
85-
`consumer` identifies the actual consumer representation or interface; `runtime`
86-
names its environment or interpreter; `cwd` records its working directory. These
87-
fields do not select a runtime, change directories, or stage files. Supply only
88-
known context, not the REPL environment or a guessed path. Missing fields remain
89-
unknown.
90-
91-
For an already-authorized check, compare the observed behavior with
92-
`expected_behavior` at the declared consumer boundary. A workspace-only result
93-
cannot establish behavior in a different consumer/runtime/cwd. If testing is
94-
warranted, select a relevant public-interface or state-boundary edge within the
95-
task's existing test budget. Do not add an indiscriminate test suite.
52+
`boundary_case.command` is descriptive. It does not execute a command or grant
53+
permission to run one. If testing is warranted, select one relevant
54+
public-interface or state-boundary edge within the task's existing test budget.
55+
Do not add an indiscriminate test suite.
9656

9757
## Separate observations from conclusions
9858

‎packages/coding-agent/skills/agent-message/SKILL.md‎

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,6 @@ report or reports. Older reports remain readable. Do not treat unrelated
8787
findings or unresolved blockers as replaced merely because a newer report
8888
arrived. There is no automatic latest-wins, dropping, or coalescing.
8989

90-
Put decisive contrary evidence, corrected premises, and explicit caveats in the
91-
summary or `outcome`, not only the archived findings. Parents keep these facts
92-
and claims, with their report references, in current decisions and final briefs
93-
until resolved against the user request. Do not hide an unresolved conflict in
94-
a narrower brief or treat a more favorable report as its resolution. State what
95-
remains uncertain when the available evidence does not settle it.
96-
9790
## Optional structured outcome
9891

9992
Use only fields relevant to the report. Unknown fields and invalid shapes are
@@ -139,11 +132,10 @@ task contracts, delivery staging, and bounded search.
139132
- Avoid routine acknowledgements and repeated status broadcasts. Messaging an
140133
idle child can start another turn; not every message needs a reply.
141134

142-
- `await rlm.delete_subagent(child)` cancels a busy child's active work and can
143-
discard an unsent correction. For routine cleanup, receive the requested result
144-
and observe idle before deletion. A delivered or queued `send` receipt does not
145-
mean the follow-up finished. Intentional cancellation remains allowed; report
146-
it as cancellation, not completed work.
135+
- Do not delete a child immediately after `send`: delivered follow-ups may still
136+
be running and queued receipts have not run yet. Wait until observation shows
137+
the child is idle and its context is no longer needed before calling
138+
`await rlm.delete_subagent(child)`.
147139
- Reach is limited to parent, siblings, and direct children; relay through an
148140
intermediate child instead of messaging grandchildren or cousins directly.
149141
- Sender identity is daemon-derived and cannot be spoofed from Python.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: continuation
3+
description: Hold automatic continuation for an explicit external blocker when no independent work remains, or inspect that hold from the Python REPL.
4+
---
5+
6+
# Continuation
7+
8+
Use an explicit external blocker hold only when required input or another
9+
external dependency is unavailable and no independent work remains. The host
10+
does not infer blockers from messages or tool results.
11+
12+
```python
13+
await continuation.block(reason="required input unavailable")
14+
await continuation.status()
15+
```
16+
17+
## API
18+
19+
- `await continuation.block(reason=...)` records an external blocker hold with
20+
a nonempty reason and returns the current continuation status.
21+
- `await continuation.status()` returns `{"status": "ready"}` or
22+
`{"status": "blocked_external", "hold": {"kind": "external_blocker", "reason": "..."}}`.
23+
24+
After setting the hold, report the blocker and end the turn. The hold stops
25+
automatic continuation, not user input. Ordinary input does not resume it.
26+
The user can resume with `/continuation resume`. Resume is controlled by the
27+
user or host; this skill has no model resume or gate replacement API.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[project]
2+
name = "continuation"
3+
version = "0.1.0"
4+
description = "Base Context continuation skill: explicit external blocker holds"
5+
requires-python = ">=3.10"
6+
dependencies = []
7+
8+
[build-system]
9+
requires = ["hatchling"]
10+
build-backend = "hatchling.build"
11+
12+
[tool.hatch.build.targets.wheel]
13+
packages = ["src/continuation"]
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
"""Explicit external blocker holds through the Base Context host bridge."""
2+
3+
from __future__ import annotations
4+
5+
from typing import Literal, TypedDict, cast
6+
7+
from rlm import host_request
8+
9+
10+
class ExternalBlockerHold(TypedDict):
11+
kind: Literal["external_blocker"]
12+
reason: str
13+
14+
15+
class _ContinuationState(TypedDict):
16+
status: Literal["ready", "blocked_external"]
17+
18+
19+
class ContinuationStatus(_ContinuationState, total=False):
20+
hold: ExternalBlockerHold
21+
22+
23+
async def block(*, reason: str) -> ContinuationStatus:
24+
"""Hold automatic continuation for an external blocker with no independent work.
25+
26+
The hold is explicit. Ordinary input does not resume continuation; only the
27+
user or host can resume it.
28+
"""
29+
if not isinstance(reason, str):
30+
raise TypeError(f"reason must be str, got {type(reason).__name__}")
31+
if not reason.strip():
32+
raise ValueError("reason must not be empty")
33+
return cast(ContinuationStatus, await host_request("continuation_block", {"reason": reason}))
34+
35+
36+
async def status() -> ContinuationStatus:
37+
"""Read whether automatic continuation is ready or externally blocked."""
38+
return cast(ContinuationStatus, await host_request("continuation_status", {}))

0 commit comments

Comments
 (0)