Repository navigation
refactor(settings): share the JSON record steps of the lkg, pin and policy stores - #567
Merged
Merged
Conversation
… golden Assisted-by: ClaudeCode:claude-opus-5-5
…olicy stores The three app-config stores read, list, write and decode their JSON records through one AppConfigJsonRecords trait; each keeps its key prefix, JSON depth and log messages as constants. PinStore::markDrift takes the observed drift as one PinDrift value. Assisted-by: ClaudeCode:claude-opus-5-5
…ipped one Assisted-by: ClaudeCode:claude-opus-5-5
Contributor
Quality Report — ConductionNL/versioniq @
|
| Check | PHP | Vue | Security | License | Tests |
|---|---|---|---|---|---|
| lint | ✅ | ||||
| phpcs | ✅ | ||||
| phpmd | ✅ | ||||
| psalm | ✅ | ||||
| phpstan | ✅ | ||||
| phpmetrics | ✅ | ||||
| eslint | ✅ | ||||
| stylelint | ✅ | ||||
| build | ✅ | ||||
| composer | ✅ | ✅ 32/32 | |||
| npm | ❌ | ✅ 302/302 | |||
| app:check-code | ⏭️ | ||||
| info.xml | ✅ | ||||
| REUSE | ❌ | ||||
| lockfile sync | ✅ | ||||
| PHPUnit | ✅ 875/875 · 7 skipped (8 legs) | ||||
| 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-11-02 21:55 UTC
Download the full PDF report from the workflow artifacts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The last-known-good, pin and policy stores each carried their own copy of the same steps: read one JSON record from app config, list all records under a prefix, write one, and decode it with a logged warning for malformed JSON or an invalid payload. Those steps now live once in the
AppConfigJsonRecordstrait. Each store keeps its key prefix, JSON depth (16, 16, 8) and its exact log messages as constants, and its public methods are unchanged, exceptPinStore::markDrift, which now takes the observed drift as onePinDriftvalue (its only caller,PinDriftHandler, is updated).SIG numbers (gate 122, five-star profile, PHP, against development 82474e1 / 3e6e4b8)
The last three rise only because the measured PHP code shrank by about 60 lines; no unit in those bands changed. versioniq stays 36/44 at 4-star (30/44 at 5-star with #565). Every touched or new unit is within the 5-star unit bounds (at most 14 LOC, McCabe 5, 2 params). Gate 122 ratchet: 0 findings (1 inherited,
PinDriftHandler::__construct). Gate 123 against the #564 floor: 36 held.Verification
JsonRecordStoresGoldenTest: 113 cases over every public method of the three stores (empty, valid, malformed, too deep, non-array and invalid records, unfiltered listings), comparing results and every app config, logger and audit call. Recorded on the old code; plain re-run green on old and new (the 26markDriftcases were recorded with the old signature and replay through the new one).continueturned intobreak, the prefix check); PinStore 7 of 7; no-op control survived each round.--fail-on-risky: OK (882 tests). psalm on the whole project: no errors. php-cs-fixer: only the inheritedRemoveRetiredCronJobspair. Hydra gates--scope-to-diff --base origin/development: exit 0.Inherited: php-cs-fixer flags
lib/Repair/RemoveRetiredCronJobs.phpand its test (aligned@paramcolumns), on development too.AI assisted (Claude Code); reviewed against the golden before opening.