Files
kandev/docs/plans/noninteractive-git-execution/task-05-guidance.md
T
2026-09-13 21:57:54 +01:00

4.2 KiB

id, title, status, wave, depends_on, plan, requirements, acceptance_criteria, system_design
id title status wave depends_on plan requirements acceptance_criteria system_design
05-guidance Document Git failure and recovery done 5
04-comparison-recovery
plan.md
REQ-PLATFORM-GIT-SUBPROCESS-ADMISSION-002
AC-PLATFORM-GIT-SUBPROCESS-ADMISSION-002.1
AC-PLATFORM-GIT-SUBPROCESS-ADMISSION-002.2
AC-PLATFORM-GIT-SUBPROCESS-ADMISSION-002.3
AC-PLATFORM-GIT-SUBPROCESS-ADMISSION-002.4
AC-PLATFORM-GIT-SUBPROCESS-ADMISSION-002.5
AC-PLATFORM-GIT-SUBPROCESS-ADMISSION-002.6
../../specs/platform/system-design/git-subprocess-execution.md

Task 05: Document Git failure and recovery

Summary

Public recovery guidance matches shipped behavior; all task checks and platform limitations have accurate recorded results.

In scope

Update the existing Git operations how-to with concise failure/recovery guidance. Link to the merged host-bridge guidance in docs/public/integrations.md instead of repeating its setup instructions. Working SSH and eligible host HTTPS setups need no new user configuration for this fix. Explain existing-helper retry versus launch/resume re-evaluation when optional bridge registration was skipped. Preserve backend-account/profile credential-directory scope and remote-executor exclusions. Do not state that gh auth token success proves repository access or token validity. Explain noninteractive failure and repair in the selected credential environment without asserting token revocation from a provider error. Do not instruct automatic logout, credential replacement, or transport switching. Update scoped backend guidance with the required final preparation and direct execution lifecycle helper. Synchronize design, caller inventory, work-order results, and linked companion-plan follow-up notes with the actual implementation. Do not overwrite historical test results or mark unrun Windows checks complete. No push, issue publication, PR, or live-instance operation is authorized by this package.

Out of scope

Credential-authority changes, transport fallback, live-instance changes, and unrelated refactors.

Acceptance

  • Public recovery guidance matches shipped behavior; all task checks and platform limitations have accurate recorded results.
  • Record the implementation work orders' actual checks; run the documentation validators below.
  • Preserve the contracts and exclusions in the linked design.

Verification

node --test scripts/validate-public-docs.test.mjs
node scripts/validate-public-docs.mjs
python3 scripts/list-docs.py validate
python3 scripts/lint-spec-files.py --all
git diff --check

Files likely touched

  • docs/public/git-operations.md
  • apps/backend/AGENTS.md
  • docs/specs/platform/system-design/git-subprocess-execution.md
  • docs/specs/platform/system-design/workspace-git-status.md
  • docs/plans/noninteractive-git-execution/
  • docs/plans/noninteractive-comparison-target-git/plan.md
  • docs/plans/fork-pr-comparison-targets/plan.md
  • docs/plans/git-subprocess-admission/plan.md

Dependencies

04-comparison-recovery.

Risks

Credential helper and process-lifecycle compatibility require real subprocess evidence. Do not infer success from environment assertions alone.

Parallelism

sequential

Inputs

Results

Implemented after Task 04 on the verified PR #3635 descendant 9cc146ee21c296d553ae684531219a5c711a4213.

Results: public Git Operations guidance now describes bounded noninteractive authentication failures, selected executor credential repair, existing-helper retry, and launch/resume re-evaluation for a skipped optional host bridge. The scoped backend guide and platform designs describe final preparation, owned lifecycle cleanup, finite post-admission budgets, and exact comparison-ref recovery. Companion plans link to this package without rewriting their historical results.

Checks passed:

  • node --test scripts/validate-public-docs.test.mjs
  • node scripts/validate-public-docs.mjs
  • python3 scripts/list-docs.py validate
  • python3 scripts/lint-spec-files.py --all
  • git diff --check