docs: plan scoped release contract and ordered PR reviews
This commit is contained in:
1 parent
9a9fbce9b2
commit
e4266ae88c
1 file changed
+48
@@ -0,0 +1,48 @@
|
||||
# PR #3 comment 249 implementation plan
|
||||
|
||||
**Goal:** Make the force-release contract explicit and keep shared native servers out of forced termination; replace the large PR as the merge entry with smaller, ordered review branches.
|
||||
|
||||
**Authorization:** The user requested implementation of comment 249. Earlier user decisions retain explicit user-confirmed residual release, manual backups and no release/issue closure before field acceptance. These decisions take precedence over changing Draft status merely to make a merge button available.
|
||||
|
||||
**Architecture:** Keep automatic verification and checking cooperative. A separate explicit force action can end supported document clients only after scope and exact process identity are checked. Native database servers and unknown processes remain observable and cannot be force terminated. Every force request must persist consent intent before any termination and still obtain independent library-release proof afterward.
|
||||
|
||||
**Review split:** Preserve #3 as an unmerged umbrella. Create a dependent review chain: (1) read-only owner probing and cooperative queue; (2) native backend, manifests, library coordination and transactions; (3) background checks and application UI integration; (4) residual-session release, its explicit contract, version and documentation. `management_transaction` imports management and lock APIs, and semantic manifests depend on recognized coordination checkpoints; they belong with the backend rather than pretending to be standalone read-only utilities. The existing #5 remains a prerequisite document review, not an automatically merged change.
|
||||
|
||||
## Global constraints
|
||||
|
||||
- Python/PySide6, Windows and Mentor EE7.9.5 remain the supported implementation stack.
|
||||
- Never kill native servers or operate production libraries in this development task.
|
||||
- No automatic Repair, Restore, version choice, issue closure, publishing or PR merge.
|
||||
- Each split PR states visible behavior, failure safety and rollback.
|
||||
- Preserve the current user test workspace; work in the PR worktree.
|
||||
|
||||
## Task 1: Force-release boundary
|
||||
|
||||
Files: `residual_sessions.py`, `ui/residual_release_dialog.py`, `tests/test_residual_sessions.py`, `tests/test_residual_release_dialog.py`.
|
||||
|
||||
- [ ] Add failing tests: a scoped iCDB server cannot reach `_force_close`; direct force requests against server/unsupported names never obtain a terminate-capable handle; missing consent evidence causes zero termination calls; mixed client/server previews list only supported clients in the confirmation; rejected/reused process identities remain unchanged.
|
||||
- [ ] Define one shared force-eligibility function allowing only recognized document clients with confirmed scope and matching captured executable identity. Enforce it again at dispatch and at the exact handle boundary.
|
||||
- [ ] Persist `consent.json` with target library, exact preview identities and allowed/excluded targets before processing a force request. A write failure returns before native actions.
|
||||
- [ ] Keep excluded servers in the release result and require the existing independent release proof; process exit never means repaired/READY.
|
||||
- [ ] Run focused regressions and the complete suite with an isolated test mutex.
|
||||
|
||||
## Task 2: Version and operating contract
|
||||
|
||||
Files: `pyproject.toml`, `README.md`, `SOP-CBB-Refresh-After-Upload.md` (if present; otherwise the repository's actual SOP path), `docs/ICDB-MANUAL-REPAIR-AND-UPDATE.md`, `docs/releases/v0.2.4-beta.1.md`.
|
||||
|
||||
- [ ] Identify the actual tracked SOP before editing; update README, SOP and manual together.
|
||||
- [ ] Set `0.2.4b1` and document the user-confirmed client-only exception to the automatic no-force contract. Explain server handling, evidence, failure states, manual recovery and rollback.
|
||||
- [ ] Keep field ICDB recovery, Win10 and multiuser shared-library acceptance explicitly unverified.
|
||||
|
||||
## Task 3: Review branches
|
||||
|
||||
- [ ] Inventory final files against main and assign each file to the smallest dependency-closed review stage. Keep UI/release hooks unavailable until their backend exists; do not publish branches with broken normal operation.
|
||||
- [ ] Create ordered branches with one concrete feature commit per review unit, no rewriting the existing umbrella history.
|
||||
- [ ] Test each review stage using appropriate unit/full checks; preserve all final regressions and verify the final source tree against the umbrella snapshot.
|
||||
- [ ] Push branches without force and create draft PRs with explicit base dependencies. Link them from #3 and record the splitting rationale.
|
||||
|
||||
## Task 4: Delivery
|
||||
|
||||
- [ ] Commit and push the safety fixes and validation record to #3.
|
||||
- [ ] Verify remote heads, PR descriptions and clean review worktrees. Keep #3 and issues open and do not merge #5.
|
||||
- [ ] Report PR links, passing tests and remaining field-acceptance limits to the user.
|
||||
Reference in new issue
Block a user