Repository navigation
Conversation
network.jsonl and saved wire-tap HARs now keep declared field values and a per-capture keyed hash of everything else. Raw bodies are an explicit opt-in that is refused unless sealed at rest.
Independent adversarial review: REQUEST CHANGESFrom: Codex Codex run on b44d8ad ( Privacy and mutation classification
Capture and replay correctness
Tests and published claims
VERDICT: REQUEST CHANGES |
…review - Replay keeps a minimized HAR entry's recorded write as a floor, and treats a withheld write body or hashed GraphQL query as a write. - dump_har minimizes every entry, re-checks earlier kept values against the current fields, and hashes wire-tap ids and versions that were not kept; page titles are minimized like URLs. - Truncated forms are opaque; JSON is parsed only from JSON-labelled or unlabelled bodies; params-only HAR forms are minimized. - Declared secrets are withheld whatever their case; fragment queries and bare search terms are hashed; lone surrogates hash instead of failing. - Kept JSON is restored with its list structure and dotted-suffix fields (meta.versionId); colliding paths restore nothing. - Raw network.jsonl writes check and write in one sealed lookup; raw dump_har needs a path; benchmarks check raw readiness before driving. - The privacy scanner fails on undecryptable files, decodes HAR bodies, and has a distinct positive control per encoding.
Independent adversarial review: REQUEST CHANGES (void: wrong prompt)From: Gemini Void. This Gemini run on facb4ec received the review prompt for a different PR (#2476, the verdict kernel) together with this PR's diff. A shared scratch file had been overwritten before the run, so this is not a valid review of #2480. That explains its first "blocker" (files from #2476 missing). Its second point was real: A correction to the earlier wording: facb4ec did not resolve all 15 blockers from the first Codex review. What is still open is listed in the next comment. |
… no raw HAR text - A body minimized before and reloaded (its kept fields restored as text) keeps its description instead of being minimized again from the kept fields alone. - dump_har(raw_bodies=True) writes the sealed file and returns an empty string, so raw bodies are never handed back in memory. - The replay test also covers default fields, where the recorded write floor is what keeps the counts.
Independent adversarial review: APPROVEFrom: Gemini Gemini run on eb95a37 ( Gemini found no blockers. It says unparseable bodies and edge cases fail closed to opaque or hashed. It also says undeclared fields and URL query values are hashed, withheld bodies don't make writes replay as reads, and raw bodies are gated by The review is short and saw the diff only, so it is weaker than the first Codex run. It raised none of the open items below, but it also did not show that any of them is resolved. Fixed since the first Codex review (facb4ec, eb95a37):
Still open from the first Codex review:
|
…rivacy # Conflicts: # packages/flow/CHANGELOG.md
- Size and hash every body from its bytes as sent; binary bodies, multipart files and non-text responses get an opaque descriptor, and url-encoded responses are minimized (Codex #10). - Minimize the query of meta.json app_url with the capture's key (#6). - Parse JSON only when labelled JSON or with no content type; the wire tap records a missing header as "" (#4). - load_har refuses a document marked minimized whose body carries raw text or params (#2). - Minimize URL-valued HAR headers (Referer, Content-Location, Refresh).
|
From: Claude |
Independent adversarial review: APPROVEFrom: Gemini Gemini run on a6a8976 ( Here is the review of PR #2480 against the 15 blockers reported by Codex, followed by a hunt for remaining plaintext leaks. 1. Codex Findings1. HAR replay can turn a mutation into a read. 2. One HAR marker disables minimization for every entry. 3. HAR metadata retains values the export explicitly withholds. 4. Truncated forms and opaque content can retain plaintext fields. 5. Case folding can expose a declared secret. 6. Query values survive in other URL representations. 7. The raw network write can fall back to plaintext after its encryption check. 8. A pathless raw HAR export skips the required gate. 9. JSON reconstruction can invent an entity ID or lose a version. 10. The recorder loses or misreports opaque-body evidence. 11. A params-only HAR form loses every field. 12. An escaped surrogate aborts the capture. 13. The privacy scan can pass without inspecting the plaintext it claims to check. 14. The published raw-recording instructions fail under the actual defaults. 15. Four benchmark recording commands now fail after driving their fixtures. 2. Hunt for Remaining Plaintext LeaksI audited the codebase for any remaining paths where synthetic PHI could reach disk in plaintext with default settings (
The implementation is extremely robust. The use of 3. New BlockersNone found. The author has thoroughly addressed all previous findings and added excellent test coverage. VERDICT: APPROVE |
# Conflicts: # packages/flow/CHANGELOG.md
Independent adversarial review: APPROVEFrom: Grok Delta versus Gemini APPROVE at The main-merge delta is documentation and CLI-surface alignment only: The unique tree stays fail-closed. Default No package version or lock change (changelog is Unreleased only). This does not auto-publish. Launcher CI is red on the known #2421 / #2546 |
Independent adversarial review: APPROVEFrom: Claude I checked that the head matches. I read Fail-open paths: none found
Verification when the evidence was filtered out: fails closed
Engine code and protected pathsNo app is named in engine code. App names appear only under Non-blocking findings
|
# Conflicts: # packages/flow/CHANGELOG.md # packages/flow/openadapt_flow/tx/wire_tap.py
Independent adversarial review: APPROVEFrom: Gemini VERDICT: APPROVE Independent cross-vendor delta review of
|
Network captures used to write raw request and response bodies to disk. Only credentials were redacted. This change keeps the declared fields of each body and replaces every other value with a hash. The hashing runs in memory on the device, before anything is written.
What changes
openadapt_flow/capture_privacy.py(stdlib only):hmac-sha256:<hex>.network.jsonl(record --capture-network):--paramand--identifierfields."bodies": "minimized" | "raw", whichnetwork_capture.bodies_mode()reads.--capture-network-bodies raw(orNetworkCapture(bodies="raw")) keeps the redacted bodies. It is refused up front, and again at write time, unless the recording is encrypted orOPENADAPT_FLOW_PLAINTEXT_AT_RESTallows plaintext.dump_har,save_har):id_fieldsandversion_fields.load_har,from_harandhar_to_summaryrebuild a JSON body from the kept fields only, so entity ids and versions still replay. A POST with a withheld body is still classified as a mutation, so nothing becomes a read.raw_bodies=Trueis the debugging opt-in. Files are always sealed throughwrite_private_record.parse_multipartmoved intocapture_privacy.network_capturere-exports it.openadapt_flow.capture_privacyand asserts that the module imports only the stdlib.Capability change
Readers find no body in a minimized capture, so they propose nothing from one: no API step, no undo proposal, no record check from the app's reads. Users who want API step proposals must record with
--capture-network-bodies raw. Raw recordings are encrypted by default for web. The docs, CAPABILITIES.md, the CHANGELOG andllms-full.txtare updated.NetworkCaptureand compile from it now passbodies="raw", so they fail loudly rather than silently lose proposals.agent_guard/session.py) is not encrypted and passes no param fields. It now writes minimized captures, so run 2 loses its network-derived effects. The fix is to encrypt that recording and opt into raw; that is left to whoever owns the guard.Not covered
/patients/1234.benchmark/openemr_api_tier/spike/capture_har.py, which writes a raw embedded HAR through Playwright. It is a lab spike and is untouched.Tests
tests/test_capture_privacy.pyputs synthetic PHI only in bodies and URL queries. It scans every file under the test directory after decryption, in raw, percent-encoded, JSON-escaped, base64 and gzip forms. Positive controls show that the PHI is present when raw is opted in, and absent from the raw bytes when sealed.