Migrate llf-schema release git calls to OsGit #1602
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#1602
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
llf-schema/lib/llf/release_build_steps.rbrunstag -l,add,commit, andtagthroughHostTransport.release_publisher.rbruns a shallow clone, then add, commit, andpush origin main. Its tests assert the recorded argv through a recording transport. These files are in thellf-schemarepository.Design:
docs/os-git/use-cases-and-domain.md(design) anddocs/os-git/call-site-checklist.md(call sites). Settled decisions are in design section 1 (docs/os-git/use-cases-and-domain.md): the gem lives inplugins/os-gitwith apath:source;git-contextandos:worktreemerge intoos-git; old wrappers go only after all references are updated; design order is use-cases, objects, interfaces;os-contextandos-vaultbecome Ruby; ticket tracking stays out ofos-git.Reproduce
n/a: migration of existing call sites; behavior stays the same unless a criterion says otherwise.
Approach
Group A-17. Use
Repository#tag?,#commit(Commit::Plan),#tag,Repository.clone(url, into:, depth: 1, timeout:), andRemote#push(branch, timeout:).HostTransportruns git on the host withOpen3, without a docker wrap: keep that by givingBackend::Clithe same run seam, or by a backend adapter that routes through the transport. The recording-transport tests then assert messages sent to aBackend::Fakeor the recorded argv of the adapter; pick one and say which in the ticket close comment. The release pushes straight tomaintoday: keep that behavior. Commit in thellf-schemarepository with explicit paths.Mark every row in the checklist from the
Donecolumn as it is replaced. Mark the matching test rows in the same change. Runbin/refresh-pluginsafter changes toSKILL.md, hooks, or CLIs.Required work: none beyond the acceptance criteria.
Acceptance criteria
origin mainwith a timeout.- [x]withReplaced byfilled in, or marked out of scope with a reason, indocs/os-git/call-site-checklist.md.Open3,system(,%x, backticks, andgitargv, then no git call remains outsideOsGitadapters, except sites marked out of scope with a reason.Blocking edges
Blocked by the core ticket (#1588).
Origin
Resolution
Done: llf-schema release steps and publisher use OsGit: tag?, commit with Commit::Plan, tag, clone depth 1, Remote#push to main with a timeout. Backend::Cli already runs on the host, so HostTransport keeps only composer, docker, and curl. Test seam: Backend::Fake messages through an injected git: that defaults to OsGit::Repository.
Evidence: llf-schema ee19c4e, not pushed: 119 runs, 467 assertions, 0 failures. Real-repository test confirms a lightweight tag; push tested on a local bare repository. No real release ran.
Follow-ups: none