fix: restrict explicit force release to verified user document clients
This commit is contained in:
1 parent
e4266ae88c
commit
e53c5d0e92
18 files changed
+2090
-1623
No files matched your search
@@ -4,7 +4,7 @@
|
||||
|
||||
**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.
|
||||
**Architecture:** Keep automatic verification and checking cooperative. A separate explicit force action can end supported document clients only after scope, exact process identity, current user SID and Windows session 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.
|
||||
|
||||
@@ -20,25 +20,25 @@
|
||||
|
||||
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.
|
||||
- [x] 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.
|
||||
- [x] 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.
|
||||
- [x] 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.
|
||||
- [x] Keep excluded servers in the release result and require the existing independent release proof; process exit never means repaired/READY.
|
||||
- [x] 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`.
|
||||
Files: `pyproject.toml`, `README.md`, `SOP.md`, `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.
|
||||
- [x] Identify the actual tracked SOP before editing; update README, SOP and manual together.
|
||||
- [x] 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.
|
||||
- [x] 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.
|
||||
- [x] 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.
|
||||
- [x] Create ordered branches with one concrete feature commit per review unit, no rewriting the existing umbrella history.
|
||||
- [x] 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
|
||||
|
||||
Reference in new issue
Block a user