Skip to content

docs(openspec): record the token and audit tables as an ADR-128 exception - #948

Draft
rubenvdlinde wants to merge 1 commit into
developmentfrom
docs/adr-lib-db-exception
Draft

rubenvdlinde wants to merge 1 commit into
developmentfrom
docs/adr-lib-db-exception

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Exception ADR required by ADR-128 (ConductionNL/hydra#804) and gate-23's new row (ConductionNL/.github#983), part of the ADR compaction in ConductionNL/hydra#801.

Adds openspec/architecture/ with its first record, adr-008-local-tables-for-tokens-and-the-audit-trail.md. It is numbered after docs/adr/ 0001 to 0007 and listed in that index, because gate-23 reads exception ADRs from openspec/architecture/ only.

What it records

The four classes in lib/Db/ map two tables, both frozen on the old app id:

  • app_versions_pats (Pat, PatMapper): forge tokens, encrypted with ICrypto. The local encrypted credential table that ADR-132 (ConductionNL/hydra#807) allows. Permanent.
  • app_versions_audit (AuditEntry, AuditEntryMapper): the immutable record of installs, rollbacks and pins. Versioniq installs and rolls back OpenRegister itself and runs without it, so the trail of those operations cannot live in OpenRegister. Permanent, not dated.

Both carry a review sunset of 2027-12-31. The parser warns on every run without one; the date is a review, not a migration.

Verified

  • Gate 23 (lint-or-abstraction-anti-patterns.sh from .github#983's branch) on development: exit 1, the hard or-capability:local-tables row fires.
  • Same gate on a read-only archive of this branch: exit 0, all 4 files suppressed by ADR-008, no "no gate 23 rules" or "no sunset" warning.

Docs only, no code change.

🤖 Generated with Claude Code

…tion

ADR-008 is the first ADR under openspec/architecture/, numbered after
docs/adr 0001-0007. It names the two tables in lib/Db/: the encrypted PAT
table (the credential-table class ADR-132 allows) and the version audit
trail, which records installs and rollbacks of OpenRegister itself and so
cannot live in it. Both are permanent exceptions; the sunset 2027-12-31 is
a review date. Gate-23's new hard row (or-capability:local-tables) needs
this record.

Assisted-by: ClaudeCode:claude-opus-5-5
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/versioniq @ b2f4f11

Check PHP Vue Security License Tests
lint ✅
phpcs ✅
phpmd ✅
psalm ❌
phpstan ✅
phpmetrics ✅
eslint ❌
stylelint ❌
build ✅
composer ✅ ✅ 58/58
npm ❌ ✅ 529/529
app:check-code ⏭️
info.xml ✅
REUSE ❌
lockfile sync ✅
PHPUnit 🚨 NO VERDICT — enabled but never ran
Newman ⏭️
Playwright ⏭️ deferred: E2E runs locally and on the promotion path only. This pull request targets development, so the suite is asked once per promotion into beta and main rather than once per push per open pull request. Run it locally with npx playwright test, or from the Actions tab on a branch with no open pull request into development.
Hydra gates ⏭️

Quality workflow — 2026-12-01 07:19 UTC

Download the full PDF report from the workflow artifacts.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant