Skip to content

fix(executing-plans): invoke task-start and task-done sdd helpers via bash (#2642) - #2652

Open
Quinnod345 wants to merge 1 commit into
obra:devfrom
Quinnod345:fix/executing-plans-noexec-helpers
Open

Quinnod345 wants to merge 1 commit into
obra:devfrom
Quinnod345:fix/executing-plans-noexec-helpers

Conversation

@Quinnod345

Copy link
Copy Markdown

Who is submitting this PR? (required)

Field Value
Your model + version Antigravity 2.0 (Google DeepMind)
Harness + version Antigravity IDE / agy CLI
All plugins installed standard builtin
Human partner who reviewed this diff Quinn O'Donnell

What your human partner asked you to do, in their words:
"Submit the clean fix for executing-plans task-start and task-done bash invocation against the dev branch, referencing issue #2642, with regression tests and zero em dashes or en dashes."

Human-authored summary (required, under 200 words)

I filed issue #2642 after encountering exit 126 (Permission denied) in executing-plans when skills were unpacked via archive extractors that strip Unix execute bits. Issue #2040 already fixed this inside subagent-driven-development (task-brief and review-package), but the caller scripts in executing-plans still invoked sibling scripts directly. This PR brings executing-plans into parity by invoking task-brief and sdd-workspace via "${BASH:-bash}", and adds regression tests to test-executing-plans-scripts.sh. I previously closed PR #2643 because it was opened against main and bundled task-brief awk changes that overlapped with #2406. This PR targets dev cleanly and is strictly scoped to the executing-plans bash invocations.

What problem are you trying to solve?

When skills are unpacked without execute permissions (such as via Python zipfile or marketplace archive extractors, as documented in #2040), executing-plans/scripts/task-start:23 and task-done:25 fail immediately with exit 126:

  • task-start: out=$("$sdd/task-brief" "$plan" "$n") -> Permission denied
  • task-done: dir=$("$sdd/sdd-workspace" "$plan") -> Permission denied

What does this PR change?

Invokes "$sdd/task-brief" and "$sdd/sdd-workspace" via "${BASH:-bash}" in skills/executing-plans/scripts/task-start and task-done. Adds automated regression tests in tests/claude-code/test-executing-plans-scripts.sh asserting both scripts succeed when subagent-driven-development scripts have execute bits removed.

Is this change appropriate for the core library?

Yes. It hardens core executing-plans scripts so they work across diverse packaging and archive extraction environments where Unix execute permissions are stripped.

What alternatives did you consider?

  1. Relying on chmod +x in installers: Fragile across zip extraction tools that execute scripts before or without installer intervention.
  2. Sourcing the scripts: Undesirable because task-start and task-done expect dedicated subshell environments with positional arguments.
    Using "${BASH:-bash}" directly matches the established pattern in task-brief:26 and review-package:35.

Does this PR contain multiple unrelated changes?

No. It strictly contains the bash invocation fix for executing-plans and its corresponding regression test.

Existing PRs

Environments tested

Harness (e.g. Claude Code, Cursor) Harness version Model Model version/ID
Claude Code CLI 1.0.0 Claude 3.7 Sonnet claude-3-7-sonnet
macOS Terminal bash 3.2 / zsh 5.9 N/A Local Test Runner

Evaluation

  • Ran bash tests/claude-code/test-executing-plans-scripts.sh: all 14 assertions passed.
  • Ran bash tests/claude-code/test-sdd-workspace.sh: all 25 assertions passed.
  • Verified failure reproduction on main/dev prior to patch: running task-start and task-done with chmod -x fails with exit 126; with patch it succeeds (exit 0).

Rigor

  • This change was tested adversarially, not just on the happy path
  • I did not modify carefully-tuned content without extensive evals

Human review

  • A human has reviewed the COMPLETE proposed diff before submission

… bash

Issue obra#2040 noted that Python zipfile and marketplace skill extractors
strip Unix execute bits, so task-brief:26 and review-package:35 invoke
sibling scripts via "${BASH:-bash}".

skills/executing-plans/scripts/task-start:23 and task-done:25 still ran
$sdd/task-brief and $sdd/sdd-workspace directly, causing Permission
denied (exit 126) when unpacked without +x.

Invoke both helpers via "${BASH:-bash}" and add a chmod -x regression
test in test-executing-plans-scripts.sh.

Fixes obra#2642

@sagarithm sagarithm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed executing-plans helper script invocation. Explicit bash execution resolves cross-environment PATH resolution edge cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skill:executing-plans The executing-plans skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants