Repository navigation
feat(registry): managed lists and classification domains - #7
Merged
Merged
Conversation
Clients, projects and applications are chosen from managed lists instead of typed: unknown names are rejected by the API, store and CLI (which gains --create). A Lists tab creates, renames, retires, restores and merges entries and suggests likely duplicates. Domains (Tier, Type, Lifecycle, Stack seeded, all editable) classify repositories singly or in bulk; values in use are retired, not deleted. Classifications are exported to portfolio.json with explicit empty lists. Migration 4 keeps existing names and assignments. Editing a source now validates the client before changing anything. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Validate a repository assignment before saving the excluded flag, so a rejected PATCH leaves the repository unchanged. - Keep domain headings to the label; the Rename control sits beside them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
L-01 and L-02 remediated in d7eb401 and awaiting independent verification. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Repository properties are now chosen from lists set up beforehand instead of typed as free text.
addandassigntake--createto add a name on purpose.portfolio.jsonlists every active domain per repository (empty list when unassigned) plus a domain catalog with labels. It updates on the worker's next collection.enabledbefore failing. The client is now checked first.Excluded: automatic tier rules, scope selector and dashboard filters, per-client access, domains on anything other than repositories, and classifications in per-source
repositories.json, which the collector writes without reading the registry. Self-hosted, single-administrator admin UI only; the public Pages build is unaffected.Changes
Migration 4:
retired_aton client/project/application;domain,domain_valueandrepository_classificationtables; seeded domains.registry/catalog.py,registry/domains.py,api/catalog_routes.py(takes over the client/project/application routes fromapp.py)test_classification.py,test_classification_api.py,Classification.test.jsx; existing tests updatedDOCKER_DEPLOYMENT.md26 files, +3842 / -325.
Verification
./run-validation.ps1: exit 0. pip check, black, flake8, mypy (76 files), pytest 572 passed, config validate, pip-audit (no known vulnerabilities), npm ci, lint, prettier check, vitest 168 passed with coverage, build, npm audit (0 vulnerabilities).--createand API auth; frontend tests cover cascading dropdowns, no free text, bulk classify, the gap filter and both new tabs.main(schema 3, free-text names including a case-variant duplicate), then opened it with this branch through the real API. All assignments, including an internal project, survived. The duplicate was suggested, a typo was rejected, merge moved 1 repository and 1 source, bulk classify and the export worked, and the pre-migration backup was written.Quality Gates
No gate artifacts found. Knowledge is ready; no
.knowledge/nodes changed.Deployment status
Ready to deploy, not deployed. After deploy: back up the server registry, then confirm on the Lists tab that existing clients and assignments are intact and merge any suggested duplicates.
Notes
store.py(581 lines before this change) gets the size-justification comment the constitution requires; it is now 521.main); it passes in PowerShell and CI.🤖 Generated with Claude Code