docs(email): record shared context evidence
CI and Deploy / test (pull_request) Successful in 4m23s
CI and Deploy / deploy (pull_request) Has been skipped

This commit is contained in:
cesnimda
2026-08-10 09:36:50 +02:00
parent ff547df175
commit 73ee095795
7 changed files with 43 additions and 22 deletions
+10
View File
@@ -489,3 +489,13 @@
- **Consequences:** wording can evolve without breaking CI while the page-to-builder navigation contract remains protected. Replacement CI and live deployment verification are still required.
- **User approval required:** No; this is a focused correction to a stale test exposed by the user-authorized deployment repair.
- **Reversible:** Yes. Revert the focused smoke change, though run 608 would fail again until the expectation or page behavior is reconciled.
## DEC-050 — Share correspondence context without broadening mailbox authority
- **Date:** 2026-08-10
- **Decision:** Give the shared correspondence component a minimal company/recruiter/role context contract and supply it from both the job dialog and Application Workspace. Do not add provider mutation buttons or scopes in this increment.
- **Reason/evidence:** the workspace reused the correct correspondence domain but passed `null as any`, so its suggestion surface lost job context. Gmail currently grants readonly plus send, Graph grants read plus send, and IMAP is read-only; none has a safe read/write mutation seam. Focused tests and the full frontend/build pass.
- **Alternatives considered:** duplicate the correspondence implementation; expand the workspace aggregate with a full job object; silently request Gmail modify/Graph read-write scopes; display unsupported actions. These add coupling, authority or misleading behavior.
- **Consequences:** both application surfaces now generate the same optional contextual searches without automatic linking. Provider category mutations remain explicit remaining work that requires a separately reviewed scope/re-consent design.
- **User approval required:** No; this is a local shared-view correction inside active MAIL-001 and invokes no provider.
- **Reversible:** Yes. Revert the context-prop changes and test; stored data, scopes and provider grants are unchanged.