Skip to content

feat(goal): 4 new subcommands for issue #140 fusion (status/complete/subtask/report)#219

Merged
Delqhi merged 1 commit into
mainfrom
feat/issue-140-goal-fusion
Jun 16, 2026
Merged

feat(goal): 4 new subcommands for issue #140 fusion (status/complete/subtask/report)#219
Delqhi merged 1 commit into
mainfrom
feat/issue-140-goal-fusion

Conversation

@Delqhi

@Delqhi Delqhi commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Implements 4 of the 8 tools from the external SIN-Code-Goal-Mode-Skill Python MCP server. The remaining 2 (goal_checkpoint + goal_rollback) are deferred to v1 because the Queue has no Checkpoint table yet.

What ships

  • cmd/sin-code/goal_cmd.go — 4 new subcommands:
    • goal status <id> — show one goal with subtasks
    • goal complete <id> — mark a goal as verified/done
    • goal subtask <parent-id> <prompt> — add a subtask
    • goal report [--format md|json] — progress report
  • cmd/sin-code/goal_fusion_test.go — 11 unit tests for parseGoalID
  • CHANGELOG entry

Mapping to the 8 external tools

External tool Native equivalent
goal_start goal add (existing)
goal_status goal status (NEW)
goal_list goal list (existing)
goal_complete goal complete (NEW)
goal_subtask goal subtask (NEW)
goal_report goal report (NEW)
goal_checkpoint Deferred to v1 (no storage yet)
goal_rollback Deferred to v1 (no storage yet)

6 of 8 tools are now native. The 2 deferred are documented in the CHANGELOG with a clear v1 migration path.

Hard mandates honored

  • M2 (single binary): no new deps
  • M3 (verify gate sacred): goal complete is the entry-point the stop-gate uses
  • M7 (race-clean): 11/11 tests pass under go test -race -count=1

Live smoke test

$ sin-code goal --help
Manage the autonomous goal queue

Available Commands:
  add         Enqueue a goal for the daemon
  complete    Mark a goal as verified/done (issue #140 fusion; maps to q.Complete)
  discover    Scan the repo for latent work (TODO/FIXME, MASTER_TODO) and enqueue goals
  list        List goals
  report      Generate a progress report across all goals (issue #140 fusion)
  status      Show one goal's progress, attempts, and children (issue #140 fusion)
  subtask     Add a subtask under a parent goal (issue #140 fusion; maps to q.AddSub)

Diffstat

 3 files changed, 248 insertions(+), 1 deletion(-)

Closes

…subtask/report)

What ships:
  - cmd/sin-code/goal_cmd.go — 4 new subcommands:
    - 'goal status <id>' — show one goal with subtasks (children)
    - 'goal complete <id>' — mark a goal as verified/done
    - 'goal subtask <parent-id> <prompt>' — add a subtask
    - 'goal report [--format md|json]' — progress report
  - cmd/sin-code/goal_fusion_test.go — 11 unit tests for
    parseGoalID helper (accepts 42, #42, whitespace)
  - CHANGELOG entry

Mapping to the 8 external tools from issue #140:
  - goal_start     -> existing 'goal add'
  - goal_status    -> NEW 'goal status'
  - goal_list      -> existing 'goal list'
  - goal_complete  -> NEW 'goal complete'
  - goal_subtask   -> NEW 'goal subtask'
  - goal_report    -> NEW 'goal report'
  - goal_checkpoint / goal_rollback  -> DEFERRED to v1
    (no Checkpoint storage yet; the Queue has no Checkpoint table)
  - 6 of 8 external tools are now native; the 2 deferred are
    documented in the CHANGELOG with a clear v1 migration path

Hard mandates honored:
  - M2 (single binary): no new deps, all changes are in
    cmd/sin-code/goal_cmd.go
  - M3 (verify gate sacred): 'goal complete' is invoked by
    the stop-gate after the verify-gate passes; the operator
    can also call it manually
  - M7 (race-clean): 11/11 tests pass under go test -race -count=1

Refs: #140
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sin-code Ready Ready Preview, Comment, Open in v0 Jun 16, 2026 6:59pm

@github-actions

Copy link
Copy Markdown

🏆 CEO Audit — A+ (100.0/100)

Metric Value
Grade A+
Score 100.0/100
Critical findings 0
High findings 0
Profile QUICK
Min grade gate B

📥 Download full report (Markdown)
📊 Download SARIF (for Code Scanning)

Run ~/.config/opencode/skills/ceo-audit/scripts/audit.sh . --profile=QUICK locally to reproduce.

@github-actions

Copy link
Copy Markdown

🏆 CEO Audit — A+ (100.0/100)

Metric Value
Grade A+
Score 100.0/100
Critical findings 0
High findings 0
Medium findings 0
Profile QUICK
Min grade gate B

📥 Download full report (Markdown)

Run ID: 27640731554 · Commit: ${github.sha}

Run ~/.config/opencode/skills/ceo-audit/scripts/audit.sh . --profile=QUICK locally to reproduce.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant