Skip to content

Commit 7ad4b91

Browse files
committed
docs: place provenance amendment and clarify test logging
Keep the delivery amendment under Amendments without changing its text or anchors. Explain the test-only driver logging injection while retaining production callers and disabled parameter logging. ADR: 0036
1 parent 7e07613 commit 7ad4b91

2 files changed

Lines changed: 18 additions & 12 deletions

File tree

‎backend/src/LearnStack.Infrastructure/Persistence/ApplicationDataSource.cs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ public static class ApplicationDataSource
1515

1616
public static NpgsqlDataSource Build(string? connectionString) => Build(connectionString, null);
1717

18+
/// <summary>Builds the guarded pool with driver logging for test fault injection.</summary>
19+
/// <remarks>
20+
/// Test hosts inject logging to observe or fault setup commands. Production
21+
/// callers use <see cref="Build(string)"/> without an injected logger factory.
22+
/// This overload does not enable parameter logging.
23+
/// </remarks>
1824
public static NpgsqlDataSource Build(string? connectionString, ILoggerFactory? loggerFactory)
1925
{
2026
Validate(connectionString);

‎docs/decisions/0036-tenant-resolution-trusted-inputs.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,18 @@ Carrier updates: API/security standards, context/gateway/isolation architecture,
10281028
frontend standards, Education/Tenancy public specs, glossary and catalogue; the
10291029
phase package owns the concrete public route/eligibility contract.
10301030

1031+
### 2026-10-05 — Amendment 9: public host provenance delivery
1032+
1033+
This delivery note changes no decision. Amendment 8's pending status records
1034+
acceptance on 2026-10-03. P02d-4 Step 1 subsequently delivered factory-only
1035+
immutable `HostScope`, matching public admission and host-scope intersection with
1036+
normal tenant/organization filters and RLS. Both independent review rounds and
1037+
focused fix verification passed.
1038+
[ADR-0052 Amendment 1](0052-anonymous-public-read-boundary.md#amendment-1--p02d-4-foundation-delivery-2026-10-03)
1039+
and the [Step 1 delivery record](../roadmap/phase-02d-walking-skeleton.md#p02d-4-step-1-authority-and-read-only-foundation)
1040+
own the implementation and evidence. Amendment 8 remains historical; the
1041+
reconciliation matrix and trusted-input contract are unchanged.
1042+
10311043
## References
10321044

10331045
- [ADR-0003 Tenant Isolation Defense in
@@ -1055,15 +1067,3 @@ phase package owns the concrete public route/eligibility contract.
10551067
- [architecture/13 Identity and Auth](../architecture/13-identity-and-auth.md)
10561068
- [architecture/14 Frontend Architecture](../architecture/14-frontend-architecture.md)
10571069
- [architecture/30 API Gateway](../architecture/30-api-gateway.md)
1058-
1059-
### 2026-10-05 — Amendment 9: public host provenance delivery
1060-
1061-
This delivery note changes no decision. Amendment 8's pending status records
1062-
acceptance on 2026-10-03. P02d-4 Step 1 subsequently delivered factory-only
1063-
immutable `HostScope`, matching public admission and host-scope intersection with
1064-
normal tenant/organization filters and RLS. Both independent review rounds and
1065-
focused fix verification passed.
1066-
[ADR-0052 Amendment 1](0052-anonymous-public-read-boundary.md#amendment-1--p02d-4-foundation-delivery-2026-10-03)
1067-
and the [Step 1 delivery record](../roadmap/phase-02d-walking-skeleton.md#p02d-4-step-1-authority-and-read-only-foundation)
1068-
own the implementation and evidence. Amendment 8 remains historical; the
1069-
reconciliation matrix and trusted-input contract are unchanged.

0 commit comments

Comments
 (0)