Protect mail evidence and assessment from rendered HTML destinations #227
No reviewers
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mail-mind-mcp!227
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/225-protect-html-hrefs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Preserve the current read and search representation while protecting the inputs used by signatures, delimited sign-offs and full-mode assessment. Verified visible text and verified sign-offs are stored separately. When a historical row lacks provenance, consumers omit the affected field.
Closes #225. This precedes HTML body selection in #224. Operator rulings and ADR ratification
Evidence
At the baseline, a generated HTML anchor could put its destination into a signature, a delimited sign-off or a full-mode excerpt. At
97c7b39a3a9858986f5afc5707c8d0036621f6fe, generated MIME and matching JMAP fixtures preserve visible words and exclude the destination in both public evidence tools and the constructed assessor payload. The fixtures cover old rows, plain and mixed mail, malformed markup, truncation, and IMAP section fetches. The v18 upgrade fixture preserves prior stored read/search data and withholds fields without provenance.Local Ruff formatting and lint, mypy, and the non-integration suite passed with 1,671 passing tests, 8 skipped model tests, and 30 deselected integration tests. Generated fixtures establish fixture behavior. Live IMAP/JMAP, deployed mirror coverage, and external assessor calls were outside this check.
Merge Danger
The additive schema upgrade affects mail mirrors. Protected fields for pre-upgrade rows may become empty until separately verified provenance is available. Rolling back the application can restore the former exposure path. Physical re-derivation is tracked in #226 under separate authorization.
Independent Standards review · PASS · 0 open findings
Exact head
97c7b39a3a9858986f5afc5707c8d0036621f6fe. The reviewer verified the single co-author trailer, the verified text and sign-off rules in SECURITY.md, and the consistency of evidence statistics with both evidence tools. The revised parser and fixture changes raised no additional Standards findings.git diff --check ec11afc...HEADpassed.Independent Spec review · PASS · 0 open findings
Exact head
97c7b39a3a9858986f5afc5707c8d0036621f6fe. The reviewer verified matching MIME and JMAP fixtures for delimited and undelimited linked signatures in both evidence tools, and confirmed that the constructed assessor payload keeps visible words and omits the destination. Hidden script text and entity recovery cases were checked across Python 3.12, 3.13 and 3.14. On Python 3.12, a semicolonless entity at the very end of malformed HTML can stay literal in protected text where the legacy renderer decodes it.§19 security review · PASS · 0 open findings
Exact head
97c7b39a3a9858986f5afc5707c8d0036621f6feagainstec11afc2e43bc8b3674449990e6e84184b6f4eab.§19 follow-up · merge paused
During #224 acceptance-test tracing, a generated check found a collision with the existing untrusted-content fence in
mail_read. The #225 change preserves that read path. The #224 grant requires an operator ruling before the merge proceeds. Finding and proposed dispositionExact-head CI and raw-log audit · PASS
Woodpecker validation for
97c7b39a3a9858986f5afc5707c8d0036621f6feis green on both the forge status and pipeline 128. The clone log confirms the exact SHA. The check step exited zero after Ruff, mypy, 1,671 passing tests, 8 skipped local-model tests, 30 deselected integration tests and the dependency audit.Direct run under the operator grant. Audited all 684 records of the raw clone and check logs and the full project-environment local validation log for
command not found,errors during collection,= not found,ran outside the project environmentand"is_error":truewith optional JSON whitespace. Zero matches. The remote test log includes a test-session teardown logging traceback and pytest reported successful completion.Decoded raw Woodpecker JSONL digests (SHA-256):
55e09bd1f180252653a817b91cb7e1439f446f6cd901092f5327bbd6822a9f71ab200bc89ebbbae6aef82f078e7e9989f04594487787b26858051d09108a0072The separate operator stop on the existing fence boundary is still in force. Woodpecker validation · Stop record
§19 follow-up · operator disposition recorded
The generated fence-marker collision is pre-existing and outside the evidence/assessment remediation in #227. #227 may merge after the exact-head grant gates. The local remediation for all three wrapper call sites is tracked in #228, which must merge before new #224 feature work. The generated check establishes the extra literal marker. Deployed occurrence and reader interpretation remain unmeasured. Operator ruling · Fence remediation