Skip to content

Add color-coded repository filtering to extract, fix registry resolution bugs, and track file/component provenance - #304

Closed
g5t wants to merge 1 commit into
mainfrom
enhance-embedded-provenance
Closed

Add color-coded repository filtering to extract, fix registry resolution bugs, and track file/component provenance#304
g5t wants to merge 1 commit into
mainfrom
enhance-embedded-provenance

Conversation

@g5t

@g5t g5t commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator
  • mccode-antlr extract -l/--list now color-codes output by source and adds REPOSITORY/LOCATION columns; new -r/--repository glob filter selects by originating repository (matches a remote registry's URL or a local registry's root path).
  • Fix resolve_registry_and_path's unanchored substring matching, which could misattribute a file to the wrong registry when one registry's filename is a substring of another's (e.g. "Masked_ESS_butterfly.comp" falsely matching a lookup for "ESS_butterfly.comp").
  • Deduplicate manifest entries when a file is both embedded and resolvable from a live (e.g. --trust-local-registries) registry.
  • Track per-file provenance for embedded dependency files (InMemoryRegistry.origins) and per-component provenance (Comp.origin), so mccode-antlr extract -l can attribute a file/component to its originating local directory even when the original registry isn't currently trusted or resolvable -- without ever exposing a filesystem path.
  • Rename tests/reader/in_memory_registry.py to test_in_memory_registry.py: it didn't match pytest's discovery pattern and was silently never run, including in CI.

…ion bugs, and track file/component provenance

- mccode-antlr extract -l/--list now color-codes output by source and adds
  REPOSITORY/LOCATION columns; new -r/--repository glob filter selects by
  originating repository (matches a remote registry's URL or a local
  registry's root path).
- Fix resolve_registry_and_path's unanchored substring matching, which could
  misattribute a file to the wrong registry when one registry's filename is a
  substring of another's (e.g. "Masked_ESS_butterfly.comp" falsely matching a
  lookup for "ESS_butterfly.comp").
- Deduplicate manifest entries when a file is both embedded and resolvable
  from a live (e.g. --trust-local-registries) registry.
- Track per-file provenance for embedded dependency files
  (InMemoryRegistry.origins) and per-component provenance (Comp.origin), so
  mccode-antlr extract -l can attribute a file/component to its originating
  local directory even when the original registry isn't currently trusted or
  resolvable -- without ever exposing a filesystem path.
- Rename tests/reader/in_memory_registry.py to test_in_memory_registry.py:
  it didn't match pytest's discovery pattern and was silently never run,
  including in CI.
@g5t

g5t commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator Author

😨 This was already merged in #303

@g5t g5t closed this Aug 19, 2026
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