arcane-cli 0.15.3 → 0.15.4
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.
|
@@ -102,19 +102,19 @@ Rules:
|
|
|
102
102
|
9. **Stage and commit session-close docs.**
|
|
103
103
|
|
|
104
104
|
**Remote-capability check:** classify the state created by `spell-open-session` before branching, staging, push, or PR operations.
|
|
105
|
-
- **Usable supported remote/merge path:**
|
|
105
|
+
- **Usable supported remote/merge path:** requires an authenticated supported provider (`github.com`, `dev.azure.com`, or `visualstudio.com`). Keep the current compliant session/PR/worktree branch, resolve the actual remote name and integration branch, and use the provider-neutral PR path below.
|
|
106
106
|
- **No usable remote/merge path:** remain on the current trunk. Do not create a dead session branch, push, pull, or open a PR. Apply the EF-28 interactive commit approval gate, commit locally on trunk after approval, report `Local-only close: committed on <trunk>; no remote PR/pull performed`, and skip steps 9a, 9c, and 10's remote operations.
|
|
107
107
|
- **Read-only session:** if no repository mutation occurred, do not create a branch or commit.
|
|
108
108
|
|
|
109
109
|
a. **Branch check — create a topic branch before any staging:**
|
|
110
110
|
This remote branch path applies only when the remote-capability check found a usable merge path.
|
|
111
|
-
Run `git branch --show-current`. If you are on
|
|
111
|
+
Run `git branch --show-current`. If you are on the resolved integration branch `<trunk>`, create a topic branch **now** before any `git add`:
|
|
112
112
|
|
|
113
113
|
```powershell
|
|
114
114
|
git checkout -b docs/session-close-YYYY-MM-DD
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
-
Never commit directly to
|
|
117
|
+
Never commit directly to a remotely protected integration branch — the branch policy rejects direct pushes. If a session branch already exists (created by `spell-open-session`), stay on it.
|
|
118
118
|
|
|
119
119
|
b. **Stage and apply the interactive commit gate from `spell-commit-work`:**
|
|
120
120
|
- Run `git add -A && git diff --stat --cached` to show what changed.
|
|
@@ -129,10 +129,13 @@ Rules:
|
|
|
129
129
|
- Missing/invalid authority visibly downgrades to PR creation only and requires human completion.
|
|
130
130
|
- Interactive Magus+ completion still requires separate authenticated approval tied to the exact PR ID and head SHA.
|
|
131
131
|
|
|
132
|
-
10. **
|
|
133
|
-
|
|
132
|
+
10. **Synchronize the configured integration branch after the PR merges (remote path only):**
|
|
133
|
+
- Skip this entire step for local-only and read-only sessions.
|
|
134
|
+
- Resolve `<remote>` and `<trunk>` from observed Git/provider state: use the usable authenticated remote selected in step 9 and the merged PR's target branch (falling back to that remote's default branch). Never assume `origin` or `main`.
|
|
135
|
+
- Verify through the detected provider that the PR is merged before changing branches.
|
|
136
|
+
- Run `git switch <trunk>` followed by `git pull --ff-only <remote> <trunk>`. Do not end a remote-backed session on a topic branch.
|
|
134
137
|
- Delete the local topic branch: `git branch -d <branch>`.
|
|
135
|
-
|
|
138
|
+
- Verify `git log --oneline -3` shows the merged change at HEAD.
|
|
136
139
|
- If stale local branches exist (merged or older than 7 days), list them and suggest cleanup.
|
|
137
140
|
- See [governance/git-conventions.md](../../governance/git-conventions.md) Post-Merge Cleanup section.
|
|
138
141
|
|
|
@@ -166,7 +169,7 @@ Output format:
|
|
|
166
169
|
|
|
167
170
|
## PR Readiness
|
|
168
171
|
|
|
169
|
-
Enumerate the current end state and the prescribed next action. Use this table to classify where the session landed
|
|
172
|
+
Enumerate the current end state and the prescribed next action. Use this table to classify where the session landed within the provider-neutral lifecycle above:
|
|
170
173
|
|
|
171
174
|
| End state | Next action |
|
|
172
175
|
| --- | --- |
|
|
@@ -175,8 +178,8 @@ Enumerate the current end state and the prescribed next action. Use this table t
|
|
|
175
178
|
| Open PR exists | Docs/changes reach `main` when it merges — show the PR URL. |
|
|
176
179
|
| No PR + docs-only on a branch | Run `spell-create-pull-request --docs-only`. |
|
|
177
180
|
| No PR + mixed code+docs on a branch | Run `spell-create-pull-request` once the feature is complete. |
|
|
178
|
-
| Docs-only commit on
|
|
179
|
-
| Nothing ahead of
|
|
181
|
+
| Docs-only commit on remote-backed `<trunk>` | Create a `chore/docs` branch, then run `spell-create-pull-request --docs-only`. |
|
|
182
|
+
| Nothing ahead of `<remote>/<trunk>` | Branch is fully merged — clean up local/remote branches. |
|
|
180
183
|
|
|
181
184
|
## Carry Forward
|
|
182
185
|
|
|
@@ -186,7 +189,7 @@ Enumerate the current end state and the prescribed next action. Use this table t
|
|
|
186
189
|
|
|
187
190
|
Route the user to the right next spell based on the end state:
|
|
188
191
|
|
|
189
|
-
- **Docs-only commit on
|
|
192
|
+
- **Docs-only commit on remote-backed `<trunk>`** — create a docs branch, then run `spell-create-pull-request --docs-only`.
|
|
190
193
|
- **On a feature branch, ready for review** — run `spell-create-pull-request`.
|
|
191
194
|
- **On a feature branch, still in progress** — next session, run `spell-open-session` to resume.
|
|
192
195
|
- **PR already open** — run `spell-address-review` after reviewers comment.
|