Skip to content

Commit bdd9d93

Browse files
authored
Merge pull request #42 from HodeTech/development
feat(identity): add revision-pinned membership custom fields
2 parents 570c4cc + b96c2f6 commit bdd9d93

407 files changed

Lines changed: 45919 additions & 4116 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.claude/skills/run-tests-locally/SKILL.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,15 @@ dotnet test --configuration Release backend/tests/LearnStack.Tests.Architecture
125125
--no-restore
126126
```
127127

128+
Catalogue status, owner or published-count edits also require the focused
129+
`CorpusConsistencyTests` group, even when only Markdown changes. Its counts use
130+
compiled reflection, not source-text attribute counts:
131+
132+
```bash
133+
dotnet test --configuration Release backend/tests/LearnStack.Tests.Architecture \
134+
--no-restore --filter FullyQualifiedName~CorpusConsistencyTests
135+
```
136+
128137
Common failure messages and fixes, from the rules that are **implemented today**.
129138
A rule you expected and do not see here is probably **Registered** against a later
130139
phase — check its Status line in

‎.env.example‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ LEARNSTACK_BFF_ENABLED=false
9898
# Identity__NativeSession__HttpsPort=3000
9999
# Global account creation stays disabled unless the API explicitly opts in.
100100
# Identity__SelfBootstrap__Enabled=false
101+
# Custom-field and consent mutations require an independently provisioned,
102+
# deployment-shared HMAC ring. Retain old keys for physical rows and backups;
103+
# see ADR-0095 § Derived replay fingerprints. No key is generated by the launcher.
104+
# Idempotency__CustomFields__CurrentKeyId=local-v1
105+
# Idempotency__CustomFields__Keys__local-v1=<private canonical base64 32-byte key>
101106

102107
# ─── Vault (-dev mode; token shared with Dapr secret-store component) ────
103108
# Boots the `vault` compose service via `-dev-root-token-id` AND is passed

‎.github/CONTRIBUTING.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ Configure these in **GitHub → Settings → Branches → Branch protection rule
7373
every other protection setting unchanged. The
7474
[packet delivery record](../docs/roadmap/phase-02d-delivery-log.md#p02d-4-step-4-contract-sdk-and-ci)
7575
records the successful job and activation proof.
76+
[ADR-0096](../docs/decisions/0096-p035-administration-contract-baseline.md)
77+
permits one exact, explicitly approved P03-5 incompatibility; raw findings
78+
remain retained. Additional findings, altered approval/comparison inputs or
79+
failed tools/controls still refuse. Actual API/SDK behavior and final-source
80+
CI qualification remain separate; the job is not a general pre-MVP bypass.
7681
- `public demo + lighthouse` — **required since P02d-7, 2026-10-11.** The
7782
first complete [real PR run](https://github.com/HodeTech/LearnStack/actions/runs/38106505383)
7883
passes before activation. Downloaded artifacts confirm all nine pages,

‎README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ The planned surfaces serve the people on each side of that experience:
5353
| **Learner portal** | Enrolled learners | Work through lessons, track progress and join live sessions. |
5454
| **Optional Course Marketplace** | Learners and participating institutions | Shared discovery and central checkout; endorsed target, architecture approval pending. |
5555

56-
The public catalog, course and lesson pages are implemented. Studio and learner
57-
portal remain scaffolds; the status below separates delivered work from remaining
58-
product and validation obligations.
56+
The public catalog, course and lesson pages and bounded Studio/member-account
57+
forms are implemented. Phase 06 owns the full renderer, Studio and portal
58+
expansion; the status below separates delivered foundations from that work.
5959

6060
**Built for different ways of teaching.** Content types and level taxonomies already
6161
have a validated customization model. The wider design covers page blocks, lesson
@@ -75,9 +75,9 @@ for identity, membership and authorization work; the
7575

7676
| Area | Delivered now | Next milestone |
7777
|---|---|---|
78-
| **Tenancy** | Tenant provisioning, organizations, locales, typed settings/branding reads, host resolution and database isolation | Organization management endpoints in [Phase 03](docs/roadmap/phase-03-identity-admin.md) |
79-
| **Identity** | Global User binding, contextual Membership/Profile/Role foundations, live scoped authorization, bounded member directory and trusted denial evidence | Protected administration, new-user entry and validated scope switching in [Phase 03](docs/roadmap/phase-03-identity-admin.md) |
80-
| **Customization** | Content types, level taxonomies, exact-definition and generation-cached batched display readers, text-card metadata validation, create-only provisioning defaults and semantic built-in seed verification | Remaining authoring capabilities across [Phases 04–08a](docs/roadmap/README.md) |
78+
| **Tenancy** | Tenant provisioning, organizations, locales, typed settings/branding reads, host resolution and database isolation, plus bounded organization, default, locale and setting administration | Full organization and settings editors in [Phase 06](docs/roadmap/phase-06-renderer-admin-studio.md) |
79+
| **Identity** | Global User binding, contextual Membership/Profile/Role foundations, live scoped authorization, bounded member directory and trusted denial evidence, protected Studio membership and Role administration, native new-user entry and scope switching, verified invitations with automatic email, and revision-pinned Membership custom values with personal consent | Provider event ingress, back-channel revocation, federation, platform authority and DSAR in [Phase 03](docs/roadmap/phase-03-identity-admin.md) |
80+
| **Customization** | Content types, level taxonomies, exact-definition and generation-cached batched display readers, text-card metadata validation, finite Membership field definition authoring, create-only provisioning defaults and semantic built-in seed verification | Remaining authoring capabilities across [Phases 04–08a](docs/roadmap/README.md) |
8181
| **Audit** | Classified write path and transactional durability for business changes | Operational hardening in [Phase 11](docs/roadmap/phase-11-production-hardening.md) |
8282
| **Education** | Course and Lesson aggregates, translations, protected-content policy, scoped authoring commands, complete demo seeds and isolated public GET/HEAD reads | Full versioned curriculum in [Phase 05](docs/roadmap/phase-05-education-learning-content.md) |
8383
| **API foundation** | Error contracts, validation, tenancy, concurrency, observability, durable events/subscriber delivery, background jobs, the closed tenant bearer/AccountSite boundary and development realm reconciliation | Protected native administration operations in [Phase 03](docs/roadmap/phase-03-identity-admin.md); current exit state in [Phase 02b](docs/roadmap/phase-02b-events-auth.md) |

‎backend/openapi/policy/README.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,32 @@ The installer is Linux AMD64 only and verifies the approved archive before
5050
extracting/executing it. A workstation can pass a separately checksum-verified
5151
executable of the same pinned version. The first baseline is proved by building
5252
and serving the verified base Program; a missing file alone is insufficient.
53+
54+
55+
## Approved P03-5 comparison
56+
57+
[ADR-0096](../../../docs/decisions/0096-p035-administration-contract-baseline.md)
58+
approves one development-only incompatibility after the maintainer's usage
59+
confirmation. Its Accepted tables own the exact snapshots, complete canonical
60+
raw/normalized/companion finding sets and comparison identities. The sole
61+
`transition-0096.json` carrier must match those tables; repointing it cannot
62+
approve another pair. The existing comparison algorithm and all 60 policy
63+
controls remain unchanged.
64+
65+
Only the verified Git-snapshot wrapper can admit that transition, after normal
66+
comparisons and fresh successful controls. File/fixture/bootstrap paths cannot.
67+
Tool/report/control failures remain failures even for matching snapshot hashes.
68+
Each invocation uses fresh output; original findings remain beside a distinct
69+
approval result. A green approved comparison is not raw compatibility or proof
70+
of runtime/SDK behavior. Coordinate API/SDK/native/web replacement and verify
71+
actual registry, Role, capabilities and complete replacement separately.
72+
[Phase 03 Status](../../../docs/roadmap/phase-03-identity-admin.md) owns extension
73+
implementation and complete hosted qualification.
74+
75+
76+
Approval artifacts explicitly state `compatibility: false` and
77+
`runtimeBehaviorVerified: false`. The six pinned identities cover comparator
78+
inputs/tool bytes; `openapi-ci.py`, `openapi-transition.py` and the ADR status
79+
reader are reviewed gate implementation, not additional pinned inputs. Their
80+
changes require code review and the wrapper's positive/negative controls; this
81+
mechanism is not a cryptographic attestation of its own implementation.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"adr": "0096",
3+
"baseSha256": "80b319161acf2893b33b4d23731faf720df55828e6af67bd17e57307ae33ed56",
4+
"findings": {
5+
"companion": {
6+
"count": 54,
7+
"sha256": "30995cc1910a22269e1db3d4eb6093e6d19a772958c41e37dfc3d69c9d799b1a"
8+
},
9+
"normalized": {
10+
"count": 5,
11+
"sha256": "0f182c772e6393871a0d61aefafd495eb26f797d1baccb99af86a63c1665afd8"
12+
},
13+
"raw": {
14+
"count": 5,
15+
"sha256": "0f182c772e6393871a0d61aefafd495eb26f797d1baccb99af86a63c1665afd8"
16+
}
17+
},
18+
"headSha256": "a32f7813870d729cc17ae6c72fa6a5b291ae5823ba77c6c627fe1e7e0c018b51",
19+
"inputs": {
20+
"Linux AMD64 oasdiff 1.33.0 executable": "fa65aae43c867e9f79da9cb121d3c1a113637883afe014c0680fd5b50696f416",
21+
"backend/openapi/policy/fixtures/base.json": "be0413c7fbc306fc6008928e8571d30168116425eeb48fd6113afaba84ac2ae0",
22+
"backend/openapi/policy/fixtures/cases.json": "68810bfb29f42ff2a4dfa8628bd8db9a2b6a0c1866adc9efb6c097dd2037e21c",
23+
"backend/openapi/policy/oasdiff.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356",
24+
"backend/openapi/policy/severity.txt": "59c9b14bf09cbf0278c08c950472cc217a35518bf67dc54d26acec80d7ef4f4f",
25+
"scripts/openapi-policy.py": "409651c82d5af4bcf3e88bc2ae93ebe0fbd1b7d161f25ee24c0a774fc7ec8bb9"
26+
},
27+
"schemaVersion": 1
28+
}

0 commit comments

Comments
 (0)