Skip to content

feat: add bidirectional repository consistency validation to registry validator - #1856

Open
jyotish6699 wants to merge 1 commit into
steam-bell-92:mainfrom
jyotish6699:feat/bidirectional-registry-validation
Open

feat: add bidirectional repository consistency validation to registry validator#1856
jyotish6699 wants to merge 1 commit into
steam-bell-92:mainfrom
jyotish6699:feat/bidirectional-registry-validation

Conversation

@jyotish6699

Copy link
Copy Markdown
Contributor

Description

This PR enhances the registry validator by introducing bidirectional repository consistency validation to improve synchronization between the repository structure and projects_registry.json.

Previously, the validator only verified that registered projects referenced existing repository files (Registry → Repository). This enhancement also validates the reverse direction by detecting project directories that exist in the repository but are missing from the registry.

Closes #1855


Changes

Bidirectional Repository Validation

  • Added repository consistency validation.
  • Detect project directories present in the repository but missing from projects_registry.json.
  • Continue validating that registered project paths exist in the repository.

Automatic Project Discovery

  • Discover project directories dynamically for consistency checks.
  • Ignore standalone files and non-project entries during discovery.
  • Compare discovered repository projects with registered project entries.

Reporting Improvements

  • Added repository consistency results to the CLI validation report.
  • Included repository consistency information in JSON output.
  • Added descriptive validation errors for unregistered repository projects.

Tests

Added unit tests covering:

  • Detection of unregistered repository projects.
  • Successful repository consistency validation.
  • Repository consistency in JSON output.
  • Existing validator behavior remains unchanged.

Benefits

  • Keeps the repository and registry synchronized.
  • Detects forgotten registry updates before changes are merged.
  • Improves repository maintenance and validation reliability.
  • Enhances validator coverage without affecting existing functionality.

Testing

PYTHONPATH=. pytest tests/test_registry_validator.py -v

Add repository consistency validation to detect project directories that exist in the repository but are missing from the registry.

Improve project discovery by scanning repository project directories and comparing them against registered entries.

Enhance validation reporting with repository consistency information in both human-readable and JSON output.

Add comprehensive unit tests covering:
- Repository consistency validation
- Unregistered project detection
- Successful consistency validation
- Existing registry validation behavior

This helps maintainers keep projects_registry.json synchronized with the repository structure.
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

@jyotish6699 is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Enhance Registry Validator with Bidirectional Repository Consistency Validation

1 participant