Compare commits

...
8 Commits
Author SHA1 Message Date
conductor e2e7b74a8e chore(release): auto-bump version to 0.83.2 — earned by #331 (fix(t21.5): pending-class re-arm — residual nonterminal-return generator closed)
Promotion record: conductor/rune#331
2026-09-17 17:51:11 +01:00
conductor db4ce7f6a6 Merge pull request 'fix(t21.5): pending-class re-arm — residual nonterminal-return generator closed' (#331) from t21.5-pending-class-fix into master 2026-09-17 17:50:49 +01:00
Nick 505209b839 chore(deps): re-lock requirements-ci.txt (upstream idna 3.20) — dep-lock gate 2026-09-17 17:45:38 +01:00
Nick f7256aa29e fix(t21.5): pending-class verdicts and not-started operations re-arm internally — residual nonterminal-return generator closed (§18 audit) 2026-09-17 17:38:06 +01:00
conductor 26e3765319 chore(release): auto-bump version to 0.83.1 — earned by #330 (chore(t21.5): final gate evidence (G13/G14, MINOR 0.4.0, PATCH 1.0.4))
Promotion record: conductor/rune#330
2026-09-17 14:36:38 +01:00
conductor e6451a5afc Merge pull request 'chore(t21.5): final gate evidence (G13/G14, MINOR 0.4.0, PATCH 1.0.4)' (#330) from t21.5-gate-evidence into master 2026-09-17 14:36:12 +01:00
Nick 7008743620 chore(t21.5): gate evidence G13/G14 + event-wait-resume MINOR 0.4.0 + scaffolding-v1 PATCH 1.0.4 2026-09-17 14:29:56 +01:00
conductor f545f1ed8d chore(release): auto-bump version to 0.83.0 — earned by # (minor: converged release (push-to-master bump))
Promotion record: (unknown)
2026-09-17 13:47:17 +01:00
9 changed files with 97 additions and 32 deletions

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
# Rune
**Current release: v0.83.0**
**Current release: v0.83.2**
**Rune is a persistent personal agent designed to accumulate experience, develop reusable competence, and remain recognisably the same agent even when its underlying foundation model changes.**
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "rune"
version = "0.83.0"
version = "0.83.2"
description = "Rune — a stateful coding assistant with persistent memory, orchestration, and TUI"
requires-python = ">=3.10"
+2 -2
View File
@@ -1,5 +1,5 @@
# This file was autogenerated by uv via the following command:
# uv pip compile pyproject.toml -o requirements-ci.txt --extra dev --extra memory --python-version 3.11
# uv pip compile pyproject.toml -o /tmp/regen-req.txt --extra dev --extra memory --python-version 3.11
aiohappyeyeballs==2.7.1
# via aiohttp
aiohttp==3.14.3
@@ -34,7 +34,7 @@ httpcore==1.0.9
# via httpx
httpx==0.28.1
# via rune (pyproject.toml)
idna==3.19
idna==3.20
# via
# anyio
# httpx
+33 -18
View File
@@ -134,6 +134,17 @@ OPERATION_SPECS = {
DEFAULT_OP_TYPE = "master_ci"
def normalize_verdict(verdict: str) -> str:
"""T21.5 §18 audit fix: pending-class verdicts are ALL nonterminal.
deploy_qualify emits "pending (probe failed)" for a transient probe
failure — that is pending, never a terminal answer. The wait loop
must not return control to the model over a string variant."""
v = (verdict or "").strip().lower()
if v.startswith("pending"):
return "pending"
return (verdict or "").strip()
def op_spec(op_type: str) -> dict:
spec = OPERATION_SPECS.get(op_type)
if spec is None:
@@ -290,9 +301,9 @@ def run(*, sha: str, deadline_secs: int,
"%Y-%m-%dT%H:%M:%SZ", time.gmtime())
resumed_at = event_at
# the event is a WAKE, never truth — canonical authority decides
verdict = authority_after_wake(op_type, sha)
verdict = normalize_verdict(authority_after_wake(op_type, sha))
if verdict == "pending" and not op_ci_alive(op_type, sha):
verdict = op_authority_verdict(op_type, sha)
verdict = normalize_verdict(op_authority_verdict(op_type, sha))
mode = ("event_replayed" if verdict != "pending"
else "authority_unresolved")
verdict_at = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime())
@@ -340,7 +351,7 @@ def run(*, sha: str, deadline_secs: int,
time.gmtime())
# WAKE received — canonical authority decides, never the
# event payload
verdict = authority_after_wake(op_type, sha)
verdict = normalize_verdict(authority_after_wake(op_type, sha))
if verdict != "pending":
mode = "event"
break
@@ -360,7 +371,7 @@ def run(*, sha: str, deadline_secs: int,
"%Y-%m-%dT%H:%M:%SZ", time.gmtime())
resumed_at = time.strftime("%Y-%m-%dT%H:%M:%SZ",
time.gmtime())
verdict = authority_after_wake(op_type, sha)
verdict = normalize_verdict(authority_after_wake(op_type, sha))
if verdict != "pending":
mode = "event_recovered_from_durable_record"
break
@@ -374,26 +385,30 @@ def run(*, sha: str, deadline_secs: int,
rearm_reason = ("watchdog expiry; op runs non-terminal "
"in Gitea — internal re-arm")
continue
# no live runs for THIS op's authority: terminal-in-Gitea but
# possibly aggregator-lagging — bounded re-read, then resolve
verdict = op_authority_verdict(op_type, sha)
if verdict == "pending":
# T21.4 cause C fixed: a pending verdict with no live runs
# may still be a lagging aggregator; one more bounded
# re-read before resolving truthfully. Still no control
# returned to the model — deadline governs.
verdict = op_authority_verdict(op_type, sha)
if verdict == "pending":
mode = "watchdog_lost_event_no_verdict"
else:
# no live runs visible for THIS op's authority: either the
# operation has not started yet (EXPECTED nonterminal — the
# §18-audit generator: this must re-arm, never return to the
# model) or it finished between probes. Bounded re-read.
verdict = normalize_verdict(op_authority_verdict(op_type, sha))
if verdict != "pending":
mode = "watchdog_authority_recovered"
break
break
verdict = normalize_verdict(op_authority_verdict(op_type, sha))
if verdict != "pending":
mode = "watchdog_authority_recovered"
break
# still pending: runs not started OR lagging aggregator —
# internal re-arm; the deadline is the only other exit
rearm_count += 1
rearm_reason = ("watchdog expiry; op pending (not started or "
"lagging) — internal re-arm")
continue
finally:
os.close(fifo_fd)
if verdict == "pending":
if mode == "event":
mode = "deadline_pending"
verdict = op_authority_verdict(op_type, sha) # final one-shot truth
verdict = normalize_verdict(op_authority_verdict(op_type, sha)) # final one-shot truth
verdict_at = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime())
out = {
"sha": sha,
+1 -1
View File
@@ -6,7 +6,7 @@ This is the main entry point for the Rune program.
import json
from pathlib import Path
__version__ = "0.83.0"
__version__ = "0.83.2"
# One build identity (handoff 2026-09-10 §4): the semantic version above is
# the repo-level truth (auto-bumped at merge); the DEPLOYED revision (exact
+1 -1
View File
@@ -231,7 +231,7 @@ def main() -> int:
)
check(
"Rune minor version advertises provisioning and restore verification",
'__version__ = "0.83.0"' in rune_version,
'__version__ = "0.83.2"' in rune_version,
failures,
)
# #169 policy update: auto-bump on merge is sanctioned (Nick directive:
+2 -2
View File
@@ -8,7 +8,7 @@ mode system, subject header, shared memory and identity.
This is not an interface. This is how I see, speak, and interact with the world.
Version: v0.83.0
Version: v0.83.2
Features: 41 (24 original + 17 new native commands)
Usage:
@@ -1885,7 +1885,7 @@ class RuneApp(App):
# Show version info
self.chat_channel.add_message(
"system",
f"[dim]Rune v0.83.0 | Textual TUI | {len(loaded)} native modules[/dim]",
f"[dim]Rune v0.83.2 | Textual TUI | {len(loaded)} native modules[/dim]",
)
# Auto-show night mode suggestion if evening/night hours
+6 -6
View File
@@ -44,25 +44,25 @@
"gate_id": "G13_MATERIAL_CHANGE_AND_EXISTING_V1_REGRESSION",
"mandatory": true,
"requirement": "material-change closure still live; affected T21.4 proof areas re-run",
"status": "UNRUN",
"evidence": "",
"status": "PASS",
"evidence": "T21.4 proof areas re-run: rollback 10/10; auto-cwd 8/8 + resolve_cwd + cwd_guard 20/20; material closure 4/4 (+T21.5 ledger-path fix for project scaffolds, regression-covered); CI wait 11/11; event_wa",
"blocker": "",
"waiver_reason": "",
"waived_by": "",
"declared_at": "2026-09-17T11:03:16Z",
"resolved_at": ""
"resolved_at": "2026-09-17T13:29:55Z"
},
{
"gate_id": "G14_FINAL_TEST_GATES",
"mandatory": true,
"requirement": "full established test/validation stack green",
"status": "UNRUN",
"evidence": "",
"status": "PASS",
"evidence": "Full battery: pytest 2156 passed + 84 subtests; type ratchet PASS; lint ratchet PASS; Henxels exit 0; diff-cover changed-lines 94% (>=70); structural coverage re-audit: 242 modules, meaningful 100% (1",
"blocker": "",
"waiver_reason": "",
"waived_by": "",
"declared_at": "2026-09-17T11:03:16Z",
"resolved_at": ""
"resolved_at": "2026-09-17T13:29:55Z"
},
{
"gate_id": "G15_FINAL_DEPLOY_CONVERGENCE",
+50
View File
@@ -134,6 +134,56 @@ def test_single_logical_wait_survives_nonterminal_wakes(wr_daemon, monkeypatch):
assert n >= 3 # authority re-read internally after each wake
def test_pending_probe_failed_is_nonterminal(wr_daemon, monkeypatch):
"""§18 audit fix: "pending (probe failed)" is a pending-class verdict —
the tool must re-arm internally, never return it as terminal."""
mod = _load()
assert mod.normalize_verdict("pending (probe failed)") == "pending"
assert mod.normalize_verdict("pending") == "pending"
assert mod.normalize_verdict("success") == "success"
# live: authority alternates probe-failure and pending, then success;
# ONE run() call absorbs all of it
rc, n = _single_wait_scenario(
wr_daemon, monkeypatch,
["pending (probe failed)", "pending", "success"])
assert rc == 0
assert n >= 3
def test_not_started_operation_rearms_internally(wr_daemon, monkeypatch):
"""§18 audit fix: runs not visible yet is EXPECTED nonterminal —
internal re-arm, no model return."""
mod = _load()
seq = {"n": 0}
def authority(op_type, sha):
seq["n"] += 1
return "pending" if seq["n"] <= 2 else "success"
monkeypatch.setattr(mod, "op_authority_verdict", authority)
monkeypatch.setattr(mod, "op_ci_alive", lambda t, sha: False)
def post_wakes():
for _ in range(3):
deadline = time.time() + 10
while time.time() < deadline:
if ew.operation_wait(OP) is not None:
wr_daemon.post_event({"operation_id": OP,
"provider": "gitea",
"event_type": "ci_completed",
"sha": SHA, "exit_code": 0,
"completed_at": time.time()})
break
time.sleep(0.05)
time.sleep(1.0)
threading.Thread(target=post_wakes, daemon=True).start()
rc = mod.run(sha=SHA, deadline_secs=30, watchdog_secs=3,
op_type="branch_ci", daemon_url=wr_daemon.url())
assert rc == 0
assert seq["n"] >= 3
def test_deadline_is_the_only_model_return_for_pending(wr_daemon,
monkeypatch):
"""Authority stays pending the whole time: run() returns only at real