@webpieces/rules-config 0.4.634 → 0.4.636

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webpieces/rules-config",
3
- "version": "0.4.634",
3
+ "version": "0.4.636",
4
4
  "description": "Shared webpieces.config.json loader. Single source of truth for validation rule configuration consumed by @webpieces/ai-hook-rules, @webpieces/code-rules, and @webpieces/nx-webpieces-rules.",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -94,12 +94,26 @@ one commit. And since this repo squash-merges PRs anyway, those individual commi
94
94
  survive into main's history — the `<feature>PreMerge<n>` snapshot branches exist precisely to preserve
95
95
  the original pre-squash history for debugging, which is their entire purpose.
96
96
 
97
- **Consequence — never sync a branch you do not own.** Because the flow rewrites history and
98
- force-pushes, **never run `pnpm wp-start-upsert-pr` (or `pnpm wp-start-update`) against a branch that
99
- another process, session, or agent owns.** This is not caution or etiquette, it is a correctness
100
- requirement: that other process's fork point and its `PreMerge<n>` snapshot trail would be replaced
101
- underneath it mid-flight, and the work it was holding becomes unrecoverable-by-construction. If you
102
- find yourself looking at an open PR on a branch this session did not create, leave it alone.
97
+ **Consequence — never sync a branch something is ACTIVELY holding.** Because the flow rewrites history
98
+ and force-pushes, **never run `pnpm wp-start-upsert-pr` (or `pnpm wp-start-update`) against a branch a
99
+ live process, session, or agent is working on right now.** This is not caution or etiquette, it is a
100
+ correctness requirement: that process's fork point and its `PreMerge<n>` snapshot trail would be
101
+ replaced underneath it mid-flight, and the work it was holding becomes unrecoverable-by-construction.
102
+
103
+ **The test is LIVENESS, not authorship.** "This session did not create it" is the wrong question — a
104
+ branch whose owner has finished is not owned by anyone, and taking it over is often exactly what needs
105
+ to happen (an agent that stalled mid-flow leaves a real PR that still has to land). Ask instead whether
106
+ anything is holding it *now*:
107
+
108
+ - `git worktree list` marks a live agent's worktree **`locked`** — the harness locks it for the agent's
109
+ lifetime and releases it on completion. Locked means hands off.
110
+ - An agent that has finished, stalled, or been interrupted is NOT holding its branch. Prefer waking that
111
+ agent — it still has the context — but if it is genuinely gone, the branch is yours to finish.
112
+ - Two LIVE sessions on one branch is the case this forbids, and it stays forbidden.
113
+
114
+ Conflicts themselves are not a reason to stop: the 3-point merge shows you base, ours and theirs, so
115
+ both sides' intent is visible and `/wp-merge` resolves them. Escalate to a human only when the two
116
+ intents genuinely disagree — not merely because the text does.
103
117
 
104
118
  Sync only via the gated 3-point squash-update — `pnpm wp-start-update` when no PR is open,
105
119
  `pnpm wp-start-upsert-pr` when one is (see "Which flow?" below).