Spaces:
Running
Running
solidprivacy-nl commited on
Commit ·
9209a7a
1
Parent(s): 8d8bc75
Record WP7A reinsert helper validation
Browse files- CHANGELOG.md +23 -3
CHANGELOG.md
CHANGED
|
@@ -42,7 +42,7 @@ Files added or changed:
|
|
| 42 |
- `tests/test_scrub_key_reinsert.py`
|
| 43 |
- `WORKPACKAGES.md`
|
| 44 |
- `CHANGELOG.md`
|
| 45 |
-
- `handover/workpackages/
|
| 46 |
|
| 47 |
Main changes:
|
| 48 |
|
|
@@ -72,7 +72,8 @@ Testing:
|
|
| 72 |
- input Scrub Key immutability;
|
| 73 |
- explicit no-AI/no-cloud flags;
|
| 74 |
- deterministic placeholder detection.
|
| 75 |
-
- Local
|
|
|
|
| 76 |
|
| 77 |
Intentionally not changed:
|
| 78 |
|
|
@@ -237,7 +238,16 @@ Main changes:
|
|
| 237 |
- Added `scrub_key_import.py` as a pure helper module.
|
| 238 |
- Added `validate_scrub_key_import_text(json_text)` for safe validation errors.
|
| 239 |
- Added `normalise_scrub_key_items(scrub_key)` to convert Scrub Key items into review-table-like mapping rows.
|
| 240 |
-
- Added `build_scrub_key_import_result(json_text)` with a UI-friendly result shape
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 241 |
- Reused the existing `scrub_key_from_json(...)` and `validate_scrub_key(...)` model helpers.
|
| 242 |
- Added safe Dutch user-facing errors for empty input, invalid JSON syntax, invalid top-level structure and invalid Scrub Key content.
|
| 243 |
- Added a local-only privacy warning explaining that imported Scrub Keys make replacements locally reversible and should not be shared with AI services or third parties unless consciously intended and allowed.
|
|
@@ -300,6 +310,16 @@ Main changes:
|
|
| 300 |
- Added timestamp creation in the UI/export layer so the pure `scrub_key.py` model remains deterministic and side-effect free.
|
| 301 |
- Added the mapping hotfix so app review-table rows are converted into Scrub Key model rows before calling `build_scrub_key(...)`.
|
| 302 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 303 |
Testing and verification:
|
| 304 |
|
| 305 |
- Initial v13.1 UI implementation:
|
|
|
|
| 42 |
- `tests/test_scrub_key_reinsert.py`
|
| 43 |
- `WORKPACKAGES.md`
|
| 44 |
- `CHANGELOG.md`
|
| 45 |
+
- `handover/workpackages/20260607_1745_v13_3_reinsert_helper.md`
|
| 46 |
|
| 47 |
Main changes:
|
| 48 |
|
|
|
|
| 72 |
- input Scrub Key immutability;
|
| 73 |
- explicit no-AI/no-cloud flags;
|
| 74 |
- deterministic placeholder detection.
|
| 75 |
+
- Local targeted validation in this worker environment passed on the available/reconstructed subset:
|
| 76 |
+
- `PYTHONPATH=. pytest -q tests/test_scrub_key.py tests/test_scrub_key_import.py tests/test_scrub_key_reinsert.py` → 25 passed.
|
| 77 |
|
| 78 |
Intentionally not changed:
|
| 79 |
|
|
|
|
| 238 |
- Added `scrub_key_import.py` as a pure helper module.
|
| 239 |
- Added `validate_scrub_key_import_text(json_text)` for safe validation errors.
|
| 240 |
- Added `normalise_scrub_key_items(scrub_key)` to convert Scrub Key items into review-table-like mapping rows.
|
| 241 |
+
- Added `build_scrub_key_import_result(json_text)` with a UI-friendly result shape:
|
| 242 |
+
- `ok`;
|
| 243 |
+
- `errors`;
|
| 244 |
+
- `warnings`;
|
| 245 |
+
- `scrub_key`;
|
| 246 |
+
- `mapping_rows`;
|
| 247 |
+
- `item_count`;
|
| 248 |
+
- `reversible`;
|
| 249 |
+
- `privacy_model`;
|
| 250 |
+
- `document_label`.
|
| 251 |
- Reused the existing `scrub_key_from_json(...)` and `validate_scrub_key(...)` model helpers.
|
| 252 |
- Added safe Dutch user-facing errors for empty input, invalid JSON syntax, invalid top-level structure and invalid Scrub Key content.
|
| 253 |
- Added a local-only privacy warning explaining that imported Scrub Keys make replacements locally reversible and should not be shared with AI services or third parties unless consciously intended and allowed.
|
|
|
|
| 310 |
- Added timestamp creation in the UI/export layer so the pure `scrub_key.py` model remains deterministic and side-effect free.
|
| 311 |
- Added the mapping hotfix so app review-table rows are converted into Scrub Key model rows before calling `build_scrub_key(...)`.
|
| 312 |
|
| 313 |
+
Mapping hotfix:
|
| 314 |
+
|
| 315 |
+
- `find` → `original_value`
|
| 316 |
+
- `replace_with` → `placeholder`
|
| 317 |
+
- `entity_type` → `entity_type`
|
| 318 |
+
- `type_label` → `type_label`
|
| 319 |
+
- `source` → `source`
|
| 320 |
+
- `review_status` → `review_status`
|
| 321 |
+
- `include` → `include`
|
| 322 |
+
|
| 323 |
Testing and verification:
|
| 324 |
|
| 325 |
- Initial v13.1 UI implementation:
|