1.8 KiB
1.8 KiB
#703 Git Wrapper Interactive and Auth Resilience
Objective
Restore the deployed Git wrapper contract: issue-create supports interactive invocation and Gitea mutation behavior tolerates a stale Tea authenticated user by validating current identity and using the existing host-scoped API fallback.
Scope
packages/mosaic/framework/tools/git/issue-create.shpackages/mosaic/framework/tools/git/detect-platform.sh- Git wrapper regression harnesses
- This scratchpad
Requirements / acceptance evidence
issue-create -iand--interactiveprompt for missing issue fields without exposing credentials.- Explicit command-line fields retain precedence and do not trigger prompt input.
- Gitea wrapper resolves the current user dynamically from the target host and does not rely on the saved Tea user identity.
- A Tea
GetUserByNamefailure falls back to authenticated API creation. - Existing body-safety, login-resolution, issue-create, and pr-create paths remain green.
- Source framework is re-seeded to deployed
~/.config/mosaic, then deployed wrappers are verified end to end.
Plan
- Add failing shell regression harness for interactive input and stale Tea user fallback.
- Implement minimal helper and parser changes.
- Run wrapper harnesses, syntax checks, and repository baseline checks.
- Re-seed deployed framework and run live wrapper verification.
- Commit, queue guard, push, open PR, and stop for independent review.
Progress
- Issue #703 filed before code; issue comment records #536 root cause and stale-login trigger.
- Deployed wrapper
issue-create.sh -ireproduced:Unknown option: -i(exit 1). - Live Tea mutation did not reproduce
GetUserByNameon this host because the current mosaicstack Tea login is valid. The test harness will model the reported stale authenticated-user condition.