T-NXAM-task-doc-edit-commit-on-main
Status: closed/superseded · Impact: medium · Complexity: small
This task closes a gap on the sdlc-plugin (dev) repo surfaced while working
T-U6W3-document-moon-npm-script-wrapping on
https://github.com/sksizer/markdown-contract: the /sdlc:task-work Step 5
task-body fix lands edits on origin/main, but there is no sanctioned CLI verb
for that push, so the flow falls back to an ad-hoc default-branch push the
sandbox guard blocks. Add a sdlc task doc-edit --commit-on main helper that
mirrors the existing ephemeral-worktree push so those edits get a first-class,
sanctioned path to origin/main.
The relevance-driven task-doc body fix in
/sdlc:task-workStep 5 (landing task-body edits onorigin/mainbefore the readiness gate) has no sanctioned CLI verb — an ad-hocgit push origin HEAD:mainis blocked by the sandbox default-branch-push guard, even though the flow’s ownensure_ready_mutate.ts/start_task.tspush to main fine via an ephemeral worktree. Add a smallsdlc task doc-edit --commit-on mainhelper that mirrors that ephemeral-worktree push so task-body edits get a first-class, sanctioned path toorigin/maininstead of being folded into the implementation PR.—
T-U6W3-document-moon-npm-script-wrapping
TBD — receiver to fill before promoting from planning/draft.
Proposed
Section titled “Proposed”TBD — receiver to fill before promoting from planning/draft.
Approach
Section titled “Approach”TBD — receiver to fill before promoting from planning/draft.
Files to touch
Section titled “Files to touch”TBD — receiver to fill before promoting from planning/draft.
Acceptance criteria
Section titled “Acceptance criteria”TBD — receiver to fill before promoting from planning/draft.
Out of scope
Section titled “Out of scope”TBD — receiver to fill before promoting from planning/draft.
Dependencies
Section titled “Dependencies”TBD — receiver to fill before promoting from planning/draft.
Discovery context
Section titled “Discovery context”Spawned by /sdlc:spawn-task-pr on 2026-07-02 UTC from
T-U6W3-document-moon-npm-script-wrapping in
https://github.com/sksizer/markdown-contract.
- Duplicate draft proposed in #625 (
T-LCTU-task-amend-on-main-verb); folded by /sdlc:consolidate-task-prs into this task.