Skip to content

Commit bd40de2

Browse files
committed
chore(adr-anchors): anchor engine-secret-internal-fields.ts to ADR-0100 and ADR-0128
The two ADR-0128 D1 citations in the moved encrypt and decrypt bodies left engine.ts's anchored surface with them (decision-letter citations 1,844 at base, 1,842 after the move). This entry anchors the new module, so the letters are verified where the code now lives (1,845 at head). Claude-Session: https://claude.ai/code/session_01FCw8ckDE3VXVavCoqsMQ3u Co-authored-by: Claude <noreply@anthropic.com>
1 parent d82fcf7 commit bd40de2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"file": "packages/objectql/src/engine-secret-internal-fields.ts",
3+
"adrs": [
4+
"ADR-0100",
5+
"ADR-0128"
6+
],
7+
"invariant": "ADR-0100's credential channels at the engine: `encryptSecretFields` encrypts a `secret` value through the ICryptoProvider into a `sys_secret` row and stores only the opaque ref, and fails CLOSED (throws) with no provider or no `sys_secret` store, never persisting cleartext; a `password` value is stored as-is; an echoed mask is dropped, `\"\"` is refused, `null` clears. The read path masks both (`maskSecretFields`) and then OMITS `internal: true` fields (`omitInternalFields`), the stricter disposition last; the only way back to a value is the three named privileged verbs (`resolveSecret`, `resolveSecretField`, `resolveInternalField`), each refusing a field outside its own channel. ADR-0128 D1: both the encrypt and the decrypt here name the object-secret-field producer's own scope (`object_secret_field`), so no other producer's ciphertext opens through this path; never borrow another producer's scope."
8+
}

0 commit comments

Comments
 (0)