Require safe repo sync at task start
This commit is contained in:
@@ -9,6 +9,8 @@ Read manifest.json first.
|
||||
Use its copyMap for file destinations.
|
||||
Use new-repository.md or existing-project.md as the task workflow.
|
||||
Use matching profiles/*.md guidance after detecting the stack.
|
||||
At the start of each user-requested task, check for upstream repository updates and apply them immediately with a safe fast-forward pull when the working tree is clean.
|
||||
If local changes exist, do not overwrite them; fetch or report the blocker before editing.
|
||||
For releasable projects, add or preserve scheduled security automation.
|
||||
For active projects, add or preserve non-destructive scheduled repository cleanup checks.
|
||||
For Codex-maintained projects, add or preserve dependency, release dry-run, and template compliance checks when useful.
|
||||
@@ -62,6 +64,10 @@ Did you read manifest.json?
|
||||
yes -> use copyMap and placeholders from it
|
||||
no -> read it before editing
|
||||
|
||||
Is the working tree clean at task start?
|
||||
yes -> run a fast-forward update check such as git pull --ff-only before editing
|
||||
no -> do not overwrite local changes; fetch or report the blocker before editing
|
||||
|
||||
Does a stack profile match?
|
||||
yes -> read the matching profiles/*.md file and adapt commands carefully
|
||||
no -> continue with universal rules only
|
||||
|
||||
Reference in New Issue
Block a user