Add SDLC pointer manager and guarded-run wrapper (closes #19)#20
Merged
Conversation
Implements issue #19: persistent chore/task pointer stored in .sdlc/pointer with flock-backed reads/writes, run_against_pointer guard, and CLI aliases (/sdlc-set-pointer, /sdlc-get-pointer, etc.). - Add agent-context/sdlc-pointer.sh with safer quoting than the draft - Document usage in agent-context/README.md - Wire into init/upgrade, start-agent-session (--work-id), and install verify - Ignore .sdlc/ as local agent state - Add regression tests and CI workflow Co-authored-by: John Menke <jmjava@gmail.com>
8 tasks
4 tasks
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements #19: a persistent SDLC chore/task pointer with guarded execution wrappers so agents refuse to run commands against the wrong Work ID.
Added
agent-context/sdlc-pointer.sh— pointer get/set/reset,run_against_pointer, and CLI aliases (set,get,reset,init,run, plus/sdlc-set-pointerstyle names).sdlc/pointer(gitignored as local agent state)flockis unavailablebash -cargs instead of interpolated into flock command strings)Wired into framework
init-project.sh/upgrade-project.sh— ship the script to target projectsstart-agent-session.sh— sets the pointer when--work-idis providedverify-project-install.sh— checks for executableagent-context/sdlc-pointer.shagent-context/README.md— usage snippet and examplesTests
tests/test-sdlc-pointer.sh— CLI round-trip, guarded run,sdlc_initoverride, session integration, init install.github/workflows/test-sdlc-pointer.yml— CI regression gateREASONS Canvas
Checklist
validate-command-adapters,test-adapter-install,validate-canvas,validate-diagrams,test-sdlc-pointer)Manual Smoke (Required for high-risk changes)
verify-agent-command-effects.sh— n/aTest Plan
./tests/test-sdlc-pointer.sh(7 assertions, all passing locally)bash -non modified shell scripts