@imdeadpool/guardex 7.0.14 → 7.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -4
- package/bin/multiagent-safety.js +1236 -171
- package/package.json +3 -2
- package/templates/scripts/agent-branch-finish.sh +35 -6
- package/templates/scripts/agent-branch-merge.sh +421 -0
- package/templates/scripts/agent-branch-start.sh +93 -15
- package/templates/scripts/agent-worktree-prune.sh +78 -44
- package/templates/scripts/codex-agent.sh +96 -4
- package/templates/scripts/guardex-docker-loader.sh +123 -0
- package/templates/scripts/openspec/init-plan-workspace.sh +42 -0
|
@@ -54,6 +54,10 @@ write_if_missing "$PLAN_DIR/README.md" "# Plan Workspace: ${PLAN_SLUG}
|
|
|
54
54
|
|
|
55
55
|
Durable pre-implementation planning workspace.
|
|
56
56
|
|
|
57
|
+
Each role folder includes a copyable \`prompt.md\` for joined Codex helpers.
|
|
58
|
+
Helpers reuse the owner branch/worktree, claim the role files they touch, and
|
|
59
|
+
leave PR merge + sandbox cleanup to the owner change lane.
|
|
60
|
+
|
|
57
61
|
Use this command to update checkpoints:
|
|
58
62
|
|
|
59
63
|
\`\`\`bash
|
|
@@ -89,10 +93,39 @@ for role in "${ROLES[@]}"; do
|
|
|
89
93
|
write_if_missing "$ROLE_DIR/README.md" "# ${role}
|
|
90
94
|
|
|
91
95
|
Role workspace for \`${role}\`.
|
|
96
|
+
"
|
|
97
|
+
|
|
98
|
+
write_if_missing "$ROLE_DIR/prompt.md" "# ${role} prompt
|
|
99
|
+
|
|
100
|
+
You are the \`${role}\` lane for shared plan \`${PLAN_SLUG}\`.
|
|
101
|
+
|
|
102
|
+
## Scope
|
|
103
|
+
|
|
104
|
+
- Work inside \`openspec/plan/${PLAN_SLUG}/${role}/\` plus directly-related shared plan files you explicitly claim.
|
|
105
|
+
- Reuse the owner's branch/worktree instead of creating a separate sandbox unless the owner says otherwise.
|
|
106
|
+
|
|
107
|
+
## Ownership
|
|
108
|
+
|
|
109
|
+
- Before editing, claim this role's files in the shared owner lane:
|
|
110
|
+
\`python3 scripts/agent-file-locks.py claim --branch <owner-branch> openspec/plan/${PLAN_SLUG}/${role}/README.md openspec/plan/${PLAN_SLUG}/${role}/prompt.md openspec/plan/${PLAN_SLUG}/${role}/tasks.md openspec/plan/${PLAN_SLUG}/checkpoints.md\`
|
|
111
|
+
- Record branch, worktree, and scope in \`tasks.md\`.
|
|
112
|
+
- Do not change another role's files without reassignment.
|
|
113
|
+
|
|
114
|
+
## Deliverables
|
|
115
|
+
|
|
116
|
+
- Complete the role checklist in \`tasks.md\`.
|
|
117
|
+
- Leave a handoff with files changed, verification, and risks.
|
|
118
|
+
- The owner alone runs the change completion flow and sandbox cleanup after change tasks 4.1-4.3 are done.
|
|
92
119
|
"
|
|
93
120
|
|
|
94
121
|
write_if_missing "$ROLE_DIR/tasks.md" "# ${role} tasks
|
|
95
122
|
|
|
123
|
+
## Ownership
|
|
124
|
+
|
|
125
|
+
- [ ] Claim this role's files in the shared owner branch/worktree before editing.
|
|
126
|
+
- [ ] Record branch, worktree, and scope for this role.
|
|
127
|
+
- [ ] Copy or hand off \`prompt.md\` when another agent joins this role.
|
|
128
|
+
|
|
96
129
|
## 1. Spec
|
|
97
130
|
|
|
98
131
|
- [ ] Define requirements and scope for ${role}
|
|
@@ -111,6 +144,15 @@ Role workspace for \`${role}\`.
|
|
|
111
144
|
## 4. Checkpoints
|
|
112
145
|
|
|
113
146
|
- [ ] Publish checkpoint update for this role
|
|
147
|
+
|
|
148
|
+
## 5. Collaboration
|
|
149
|
+
|
|
150
|
+
- [ ] Leave a role handoff with files changed, verification, and risks.
|
|
151
|
+
- [ ] Owner records \`accept\`, \`revise\`, or \`reject\` for joined output, or marks \`N/A\` if no helper joined.
|
|
152
|
+
|
|
153
|
+
## 6. Completion
|
|
154
|
+
|
|
155
|
+
- [ ] Keep sandbox cleanup blocked until change tasks 4.1-4.3 are complete.
|
|
114
156
|
"
|
|
115
157
|
done
|
|
116
158
|
|