Skip to content

Commit 5f3f187

Browse files
fix(orchestrator): refine pipeline stage transitions and clean stale beads history
Improve orchestrator stage transition logic (+20 lines) with better error boundary handling. Rotate 6 stale beads history snapshots and add new tracker entries. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5248ad5 commit 5f3f187

8 files changed

Lines changed: 119 additions & 3 deletions

.beads/.br_history/issues.20260312_105809_885514022.jsonl renamed to .beads/.br_history/issues.20260314_184153_376917750.jsonl

Lines changed: 32 additions & 1 deletion
Large diffs are not rendered by default.

.beads/.br_history/issues.20260312_105537_557227609.jsonl.meta.json renamed to .beads/.br_history/issues.20260314_184153_376917750.jsonl.meta.json

File renamed without changes.

.beads/.br_history/issues.20260312_105804_692097619.jsonl renamed to .beads/.br_history/issues.20260314_184156_519028935.jsonl

Lines changed: 33 additions & 0 deletions
Large diffs are not rendered by default.

.beads/.br_history/issues.20260312_105804_692097619.jsonl.meta.json renamed to .beads/.br_history/issues.20260314_184156_519028935.jsonl.meta.json

File renamed without changes.

.beads/.br_history/issues.20260312_105537_557227609.jsonl renamed to .beads/.br_history/issues.20260314_184347_580424323.jsonl

Lines changed: 34 additions & 1 deletion
Large diffs are not rendered by default.

.beads/.br_history/issues.20260312_105809_885514022.jsonl.meta.json renamed to .beads/.br_history/issues.20260314_184347_580424323.jsonl.meta.json

File renamed without changes.

.beads/issues.jsonl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
{"id":"bd-5eqc","title":"Random audit pass across replay pack workflow","status":"closed","priority":1,"issue_type":"task","created_at":"2026-03-13T04:11:06.774537676Z","created_by":"ubuntu","updated_at":"2026-03-13T04:13:35.765069569Z","closed_at":"2026-03-13T04:13:35.764379812Z","close_reason":"Completed","source_repo":".","compaction_level":0,"original_size":0}
130130
{"id":"bd-5fq9","title":"Align robot schema document version with ROBOT_SCHEMA_VERSION","description":"robot_schema_value() currently emits top-level version=1.0 while schema_version and all event envelopes use ROBOT_SCHEMA_VERSION=1.0.0. Standardize the schema document version to ROBOT_SCHEMA_VERSION and adjust tests/docs if needed so introspection does not publish conflicting versions.","status":"closed","priority":2,"issue_type":"bug","assignee":"CyanAnchor","created_at":"2026-03-12T11:03:31.756100893Z","created_by":"ubuntu","updated_at":"2026-03-12T11:04:12.334034359Z","closed_at":"2026-03-12T11:04:12.329479671Z","close_reason":"Aligned robot_schema_value() top-level version field with ROBOT_SCHEMA_VERSION and added a regression test so schema introspection no longer reports 1.0 alongside schema_version 1.0.0.","source_repo":".","compaction_level":0,"original_size":0}
131131
{"id":"bd-631d","title":"Refresh robot event coverage docs to match current NDJSON contract","description":"docs/FEATURE_PARITY.md understates robot mode event coverage and still lists only the four core lifecycle events. Audit README/PROPOSED_ARCHITECTURE/docs parity language and update the docs to match the current robot NDJSON surface, including backend discovery, health, routing-history output, and speculation events.","status":"closed","priority":2,"issue_type":"task","assignee":"CyanAnchor","created_at":"2026-03-12T10:52:28.259180860Z","created_by":"ubuntu","updated_at":"2026-03-12T10:53:26.091927967Z","closed_at":"2026-03-12T10:53:26.091032833Z","close_reason":"Updated docs/FEATURE_PARITY.md and PROPOSED_ARCHITECTURE.md so robot event coverage matches the current NDJSON contract, including backends.discovery, health.report, routing_decision output, and speculation events.","source_repo":".","compaction_level":0,"original_size":0}
132+
{"id":"bd-6jfa","title":"Punctuation stage should not treat comma/semicolon as sentence-ending","status":"closed","priority":1,"issue_type":"bug","created_at":"2026-03-14T18:41:53.332394187Z","created_by":"ubuntu","updated_at":"2026-03-14T18:43:47.447762049Z","closed_at":"2026-03-14T18:43:47.447189586Z","close_reason":"Completed","source_repo":".","compaction_level":0,"original_size":0}
132133
{"id":"bd-6qt","title":"Add tests for bridge_error_recoverable and bridge_native_recovery_enabled","description":"Cover untested pure functions in backend/mod.rs: bridge_error_recoverable (matches on FwError variants) and bridge_native_recovery_enabled (env var parsing). These support the bd-2w3 native fallback feature.","status":"closed","priority":3,"issue_type":"task","assignee":"RubyBear","created_at":"2026-02-26T03:37:15.127626380Z","created_by":"ubuntu","updated_at":"2026-02-26T03:44:15.546167088Z","closed_at":"2026-02-26T03:44:15.546036613Z","source_repo":".","compaction_level":0,"original_size":0,"labels":["test-coverage"]}
133134
{"id":"bd-748p","title":"Make rch worker quarantine effective during gate retries","status":"closed","priority":1,"issue_type":"task","created_at":"2026-03-12T17:05:42.181432847Z","created_by":"ubuntu","updated_at":"2026-03-12T17:08:50.770945446Z","closed_at":"2026-03-12T17:08:50.770080493Z","close_reason":"Completed","source_repo":".","compaction_level":0,"original_size":0}
134135
{"id":"bd-8t0n","title":"Deep review pass across streaming/speculation workflow","status":"closed","priority":1,"issue_type":"task","created_at":"2026-03-14T00:43:52.919015510Z","created_by":"ubuntu","updated_at":"2026-03-14T00:46:37.887748115Z","closed_at":"2026-03-14T00:46:37.886832578Z","close_reason":"Completed","source_repo":".","compaction_level":0,"original_size":0}

src/orchestrator.rs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2962,7 +2962,7 @@ fn punctuate_segments(
29622962
let ends_with_punct = text
29632963
.chars()
29642964
.last()
2965-
.is_some_and(|c| c == '.' || c == '?' || c == '!' || c == ',' || c == ';');
2965+
.is_some_and(|c| c == '.' || c == '?' || c == '!');
29662966
if !ends_with_punct {
29672967
text.push('.');
29682968
}
@@ -8272,6 +8272,24 @@ mod tests {
82728272
);
82738273
}
82748274

8275+
#[test]
8276+
fn punctuate_terminal_comma_still_gets_period() {
8277+
let token = CancellationToken::no_deadline();
8278+
let mut segments = vec![make_segment(0.0, 1.0, "hello,")];
8279+
let report = punctuate_segments(&mut segments, &token).unwrap();
8280+
assert_eq!(report.segments_modified, 1);
8281+
assert_eq!(segments[0].text, "Hello,.");
8282+
}
8283+
8284+
#[test]
8285+
fn punctuate_terminal_semicolon_still_gets_period() {
8286+
let token = CancellationToken::no_deadline();
8287+
let mut segments = vec![make_segment(0.0, 1.0, "hello;")];
8288+
let report = punctuate_segments(&mut segments, &token).unwrap();
8289+
assert_eq!(report.segments_modified, 1);
8290+
assert_eq!(segments[0].text, "Hello;.");
8291+
}
8292+
82758293
#[test]
82768294
fn punctuate_handles_exclamation() {
82778295
let token = CancellationToken::no_deadline();

0 commit comments

Comments
 (0)