Fully Automated - 100% Backpressure - Pipeline runner ๐Ÿƒ for AI workflows. ๐Ÿš€

Commit 1770969e

1770969e740fMerged

Scott Nixon <[email protected]> ยท 5 months ago ยท 7 files ยท ~7 modified

Description

fix: fresh-eyes review โ€” 7 bugs found and fixed

  • quality_handler: context key "n" โ†’ "workdir" (matching all other handlers and cmd_run); the "n" key always returned None so --workdir was silently ignored; fix test to match
  • quality_handler: str slice at byte 2048 for failure_footprint could panic when from_utf8_lossy inserted 3-byte replacement chars; walk to nearest char boundary instead
  • engine: loop_restart cleared completed_nodes/node_outcomes but left quality_loop_counters intact, causing premature max_fix_iterations abort on the next iteration
  • engine: prev_node_id was read from already-cleared completed_nodes after loop_restart, producing empty string and creating a wrong loop-key bucket; capture just_completed before the clear
  • checkpoint: remove with_counters (dead, never called, silently zeroed quality counter state unlike with_quality_counters)
  • engine/lib: remove PipelineConfig (dead, never used or passed anywhere)
  • trust: remove TrustError::Untrusted variant (defined, never returned)
  • init: use cached non_interactive instead of calling is_non_interactive() twice

Security: filed attractor-tg7 (P0) โ€” is_trusted() is never called before manifest stages execute; trust gate is fully implemented but dead.

Details

Commit
1770969e740f
Parent
71c31e71ec7f

crates/attractor-cli/src/commands/init.rsmodifiedView file

@@ -197,7 +197,7 @@
197197 let mut manifest_content = build_manifest(root, &toolchains);
198198
199199 // โ”€โ”€ interactive preview / edit โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
200- if !opts.is_non_interactive() && !opts.dry_run {
200+ if !non_interactive && !opts.dry_run {
201201 // Print detected toolchains summary
202202 if toolchains.is_empty() {
203203 println!("Detected: (none)");