Skip to content

feat(spec-resolver): warn when a spec carried a dropped analytic_binders key - #561

Merged
dwolfson merged 2 commits into
odpi:mainfrom
dwolfson:feat/binder-deprecation-warning
Nov 9, 2026
Merged

dwolfson merged 2 commits into
odpi:mainfrom
dwolfson:feat/binder-deprecation-warning

Conversation

@dwolfson

@dwolfson dwolfson commented Nov 9, 2026

Copy link
Copy Markdown
Member

feat(spec-resolver): warn when a spec carried a dropped analytic_binders key

RS-W2-4 PR-0, owner decision O1-a (2026-11-08). Branch feat/binder-deprecation-warning, one signed commit 062e4897 on top of 71b88942 (6.2.27).

Why

pyegeria 6.2.26 (RS-W2-3 PR-B, #553) removed analytic_binders. A shim accepts the key for one release. It drops a non-empty key with a DeprecationWarning and a log line. Nothing recorded the drop, so the Portal and other callers could not tell that a spec had carried a binder. The Portal SPA update (W2-4) tags such specs by a resolver warning, and this PR produces that warning.

What changes

  • ActionParameter._drop_deprecated_binders (pyegeria/view/_output_format_models.py) is now a wrap validator. It still pops the key and warns as before. It also records the dropped parameter names on the built model as the private attribute _dropped_binders. That attribute is excluded from dumps and is kept through model_copy.
  • spec_resolver.resolve() adds a warning to warnings when the spec carried a non-empty binder:
    deprecated: analytic_binders ignored (binders for: <sorted names>); declare these arguments as the routine's inputs, which the environment's role supply provides
    • The prefix is exported as spec_resolver.BINDERS_DEPRECATED_PREFIX = "deprecated: analytic_binders ignored".
    • It works for loaded FormatSets (read from _dropped_binders) and for plain dict specs (read from the action's key).
    • It appears on both ResolvedSpec and Unrunnable.
  • Empty keys ({}, None, []; there are 274 in generated sets) stay silent: no DeprecationWarning and no resolver warning.

The diff is +31/−7 across two source files, plus one new test file. It does not touch the registry, and no other resolver logic changes.

Tests

New file: tests/micro-tests/test_rs_w2_4_binder_deprecation_warning.py (8 tests).

  • A loaded spec with a non-empty binder carries exactly one warning with the exact prefix and the sorted names.
  • The note survives model_copy(deep=True).
  • A plain dict spec carries the same warning.
  • An empty binder ({}, None, []) gives no warning and raises no DeprecationWarning.
  • Census: no registered spec carries the warning, because no built-in, demo or generated spec sets a non-empty binder. The existing census and resolver tests pass unchanged.

Full micro-suite on Python 3.13 (uv run -p 3.13 pytest tests/micro-tests/): 2308 tests, 0 failures, 0 errors, 3 skipped.

Release

This ships in the next pyegeria release after 6.2.27. The Portal SPA marker turns on once the Portal is on that release.

Coordinator gate and read-back

  • Full micro-suite on Python 3.13 at 062e489: 2,308 tests, 0 failed, 0 errors, 3 skipped. The Architect's own run matches.
  • Architect read-back: PASS. P3 note: the marker is a private attribute, so it does not survive model_dump and reload; the registry validates once at load, so this does not matter today.
  • Interaction with the RS-EGERIA-TIER stage-1 PR: an analytic_binders key on an Egeria-held stage must be passed through, so this warning fires for it. That lands with whichever PR merges second.

🤖 Generated with Claude Code

…ers key

RS-W2-4 PR-0, owner decision O1-a (2026-11-08). The PR-B shim drops a
non-empty analytic_binders key with a DeprecationWarning, but nothing
recorded it, so callers could not tell a spec had carried it.

- The shim (now a wrap validator) notes the dropped parameter names on
  the ActionParameter as the private attribute _dropped_binders.
- resolve() adds a warning with the stable prefix
  "deprecated: analytic_binders ignored (binders for: <names>)"
  (spec_resolver.BINDERS_DEPRECATED_PREFIX), for loaded specs and for
  plain dict specs alike, on both ResolvedSpec and Unrunnable.
- Empty keys stay silent; no registered spec carries the warning.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson merged commit 9f829bd into odpi:main Nov 9, 2026
6 checks passed
dwolfson added a commit that referenced this pull request Nov 9, 2026
…ning, Asset-Graph, Data-Classes) (#564)

* fix(view): an Egeria-held spec's analytic_binders warns as a local one does (O1-a)

Architect read-back P2 of RS-EGERIA-TIER stage 1 (#563) against RS-W2-4 PR-0 (#561):
a stage's analytic_binders key on a spec held in Egeria was recorded only as a
generic "ignored" note, so #561's BINDERS_DEPRECATED_PREFIX warning never fired for
the very case owner decision O1-a was for.

- microflow_to_format_set now passes a stage's analytic_binders into the action. The
  PR-B ActionParameter shim drops it there, raises its DeprecationWarning and records
  the names, and the spec resolver warns with BINDERS_DEPRECATED_PREFIX, the same text
  as for a local spec. An empty binder stays silent; other unknown stage keys are
  still notes. Works for format 0 and microflow/1, and on every tier load, since the
  tier rebuilds from the cached micro-flow text, which keeps the key.
- PR-0 P3: the shim's docstring now says the marker survives model_copy but not
  model_dump and a reload.
- Tests: a synced Egeria-held spec (format 0 and microflow/1) with a non-empty binder
  resolves with exactly the #561 warning; empty, None, [] and absent stay silent.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* feat(view): a positive find-method allowlist for specs held in Egeria

The Architect's stage-2 allowlist items (read-back of RS-EGERIA-TIER stage 1, P2 and
note (a) on 224f189), pulled forward so pyegeria 6.2.28, the first release with the
EGERIA tier, ships them.

- The find_/get_/list_ prefix rule is gone. FIND_METHOD_ALLOWLIST is a positive list of
  Class.method entries (an _async_ twin is allowed too). It is _CENSUS_FIND_METHODS,
  the 45 find methods today's runnable built-in specs name (taken from the 437-spec
  census; the two unrunnable specs' missing methods are left out), plus
  FIND_METHOD_ADDITIONS, the reviewed additions, which is empty for now. A method not on it
  is refused with words, whatever its prefix.
- FIND_METHOD_DENYLIST is kept as a second, independent check: it is tested first, it
  denies on any class, and a test fails if the two lists overlap.
- The write-word scan now runs over the allowlist itself, on the name and on the first
  docstring line of both the sync method and its _async_ twin. The reviewed reads are
  keyed by Class.method: DataDiscovery.get_security_posture_history and
  ServerClient.get_attached_comments.
- New test: every runnable built-in or generated spec's function is on the list, so
  the stage-2 seed cannot be refused. Plus tests that every entry resolves, that an
  _async_ twin is allowed, and that same-method different-class spellings are refused.
- microflow-1.json and the module docstring describe the allowlist.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* fix(view): repoint the two unrunnable built-in specs; census 0 unrunnable

The owner's fix for the census's two unrunnable specs (pyegeria 6.2.28).

- Asset-Graph named ServerClient.get_asset_graph, which no longer exists. It now calls
  AssetCatalog.get_asset_graph_by_guid. The required parameter is now guid instead of
  asset_guid; the optional ones are start_from and page_size. commands/cat/
  get_asset_graph.py (the hey_egeria asset graph command) passes the new name.
- Data-Classes named DataDesigner.find_data_classes, which no longer exists. It now
  calls DataDesigner.find_data_value_specifications with
  spec_params={"metadata_element_subtypes": ["DataClass"]}. DataClass is a
  DataValueSpecification subtype that shares the same search endpoint, and the filter
  travels in the search body as metadataElementSubtypeNames (through **kwargs into
  _async_find_request). The two subtype keys are removed from the spec's optional
  params so a caller cannot override the filter.
- Live READ against qs-view-server (no writes):
  - The DataClass filter returns 6 DataClass elements; DataGrain returns none, so
    the filter is honoured.
  - Data-Classes DICT returns 6 DataClass rows. It fills the same columns as
    Data-Value-Spec does on the same data.
  - Asset-Graph DICT and MERMAID run on a real asset guid.
- AssetCatalog.get_asset_graph_by_guid is added to the positive allowlist (46
  entries). find_data_value_specifications was already on it. The every-runnable-
  built-in test now covers both specs.
- Census: 437 specs, 376 runnable, 61 format-only, 0 unrunnable (was 374 / 61 / 2).
  The resolver tests that used Data-Classes as their unrunnable example now register
  a probe spec. KNOWN_UNRUNNABLE is now empty. The log_lines fixture re-enables the
  pyegeria logger, because another module's test can leave it disabled.
- Docs: the census numbers in output-formats-and-report-specs.md are updated, and
  the two "unrunnable today" examples are now history with their fix. A new
  docs/release-notes/6.2.28.md is added.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* fix(view): Asset-Graph renders the asset graph in every format it declares

This fixes the Architect's P2 on e2e8a8c (READBACK-allowlist-specfix-cappedscans-2026-11-09 §2).
Asset-Graph resolved and ran, but its output was not the graph.

What was actually wrong, checked live and against a recorded response:
- The anchor graph column's key was misspelt `anchorMermaidGRaph`, so Anchor Graph was
  always empty. It is now `anchorMermaidGraph`, and an Action Graph column
  (`actionMermaidGraph`, which the response also carries) is added.
- The spec declared only ALL. Requesting ALL as an output format returned a 62-82 char
  markdown string holding just the asset's name, labelled kind "json".
- Requesting MD or FORM rendered a Dr.Egeria "Update Asset" form, and LIST a markdown table,
  none of which can show a graph.

Two read-back findings did not reproduce:
- REPORT and MERMAID were not empty. They return kind "text" with the graph in `content`
  (`data` is not used for text results). The read-back read `data`.
- DICT's single row is the asset itself. On this repository the first find_assets result is a
  GovernanceActionProcessInstance, whose display name reads like an audit message. DICT gave
  one row equal to the asset on four asset types live.

Changes:
- Asset-Graph declares DICT/TABLE/JSON, REPORT/HTML and MERMAID:
  - DICT, TABLE and JSON give the asset's own fields plus the graphs as text.
  - REPORT and HTML give the fields, with the asset, anchor and action graphs rendered as
    mermaid.
  - MERMAID gives the asset graph.
  - The columns are a named ASSET_GRAPH_COLUMNS list. ALL, MD, FORM and LIST are dropped, with
    the reason in a comment. Asking for one now raises the executor's existing error, which
    lists the declared formats.
- format_set_executor: a ValueError from the find path was printed and swallowed, so the call
  returned None. It is now logged and re-raised.
- Tests (17) against a recorded get_asset_graph_by_guid response
  (tests/micro-tests/data/asset_graph_by_guid_response.json, from qs-view-server, read only,
  relationships trimmed). They run the real path from exec_report_spec down to
  _generate_asset_output; only the HTTP request is replaced, and building a real client fails
  the test. They cover:
  - each declared format, with DICT a single row that is the asset and has all three graphs;
  - REPORT with three mermaid blocks;
  - MERMAID equal to the rendered mermaidGraph;
  - ALL, MD, FORM and LIST raising with words;
  - no declared format returning None.
- Live READ against qs-view-server, after the fix:
  - DICT is 1 row with Mermaid 740 / Anchor 878 / Action 804 characters.
  - REPORT has 3 mermaid blocks; HTML and MERMAID carry the graph.
  - ALL and MD raise with words.
  - DICT is one row, the asset itself, on Notification, EngineAction and
    ConnectorActivityReport assets.
- docs/release-notes/6.2.28.md is updated.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* feat(view): Asset-Graph is an edge table, with a shape per output format

The owner asked what it means for a table to return a graph: after 883d33e,
TABLE/DICT returned one row holding ~740 characters of mermaid text. The owner's
direction: "A table of edges and a different shape for other OutputTYpes".

New pyegeria/view/asset_graph.py (pure functions) gives each declared format a shape:
- DICT and TABLE: one row per edge, with From Display Name / From Type / From GUID /
  Relationship / To Display Name / To Type / To GUID.
  - The asset's own relationships (top-level lists such as governedBy and
    requestedActions) are included.
  - Direction comes from relatedElementAtEnd1 and startingElementGUID.
  - Each relationship is listed once, by relationship GUID.
  - Rows are sorted, so the order never depends on Egeria's. Paging stays Egeria's,
    on the graph request.
- LIST: the nodes (the asset, its anchored elements, the related elements), with
  their role.
- REPORT and MD: the asset summary, its graph(s) as mermaid, then the edge table.
  HTML renders that document.
- MERMAID: the graph.
- JSON: the full graph response.
- FORM and ALL are not declared, so asking for them is an error that names the
  declared formats.

Supporting changes:
- AssetCatalog._generate_asset_graph_output applies these shapes for
  get_asset_graph_by_guid. MERMAID and other formats take the generic asset path.
- The Architect's P3: a by-GUID REPORT no longer says "found from the search string".
- markdown_to_html now enables GFM tables. The CommonMark preset had them off, so
  markdown tables came out as plain text in HTML, although the page CSS styles tables.

Tests and checks:
- The tests use a complete recorded response, rewritten to cover each format, the
  hand-read expected edges (5, one reported twice), deterministic order under a
  shuffled response, the no-edge case, and the P3 wording.
- Live READ: edge rows equal the distinct relationship GUIDs on three asset types
  (5, 6 and 3), node counts are right, and REPORT never says "search string".
- The spec docs (output-formats-and-report-specs.md) and the 6.2.28 note record
  the shape per format.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* feat(view): Asset-Graph declares DICT/JSON for code, REPORT/HTML/MERMAID for people

The Architect's choice, accepted by the owner. Supersedes the edge table
of 5fbc3c4.

- Asset-Graph no longer declares TABLE. A TABLE (or LIST, MD, FORM, ALL)
  request is refused with words naming the declared formats; a named
  NO_TABLE_FALLBACK set stops the generic TABLE->DICT fallback for this
  spec only.
- DICT is the asset itself with its graph fields; JSON is the full graph
  response; REPORT and HTML render the asset's fields and graphs; MERMAID
  is the graph.
- pyegeria/view/asset_graph.py is trimmed to the edge/node helpers kept
  for the Wave 3 edge-table spec; no spec uses them yet (tested directly).
- Keeps the P3 fix: a fetch by GUID no longer says "search string"; a
  search REPORT still names its search string.
- Tests, docs and the 6.2.28 note updated; the note says the edge table
  is planned as its own spec in Wave 3.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

---------

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
dwolfson added a commit that referenced this pull request Nov 9, 2026
…er as named (6.2.28) (#567)

* fix(view): an Egeria-held spec's analytic_binders warns as a local one does (O1-a)

Architect read-back P2 of RS-EGERIA-TIER stage 1 (#563) against RS-W2-4 PR-0 (#561):
a stage's analytic_binders key on a spec held in Egeria was recorded only as a
generic "ignored" note, so #561's BINDERS_DEPRECATED_PREFIX warning never fired for
the very case owner decision O1-a was for.

- microflow_to_format_set now passes a stage's analytic_binders into the action. The
  PR-B ActionParameter shim drops it there, raises its DeprecationWarning and records
  the names, and the spec resolver warns with BINDERS_DEPRECATED_PREFIX, the same text
  as for a local spec. An empty binder stays silent; other unknown stage keys are
  still notes. Works for format 0 and microflow/1, and on every tier load, since the
  tier rebuilds from the cached micro-flow text, which keeps the key.
- PR-0 P3: the shim's docstring now says the marker survives model_copy but not
  model_dump and a reload.
- Tests: a synced Egeria-held spec (format 0 and microflow/1) with a non-empty binder
  resolves with exactly the #561 warning; empty, None, [] and absent stay silent.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* feat(view): a positive find-method allowlist for specs held in Egeria

The Architect's stage-2 allowlist items (read-back of RS-EGERIA-TIER stage 1, P2 and
note (a) on 224f189), pulled forward so pyegeria 6.2.28, the first release with the
EGERIA tier, ships them.

- The find_/get_/list_ prefix rule is gone. FIND_METHOD_ALLOWLIST is a positive list of
  Class.method entries (an _async_ twin is allowed too). It is _CENSUS_FIND_METHODS,
  the 45 find methods today's runnable built-in specs name (taken from the 437-spec
  census; the two unrunnable specs' missing methods are left out), plus
  FIND_METHOD_ADDITIONS, the reviewed additions, which is empty for now. A method not on it
  is refused with words, whatever its prefix.
- FIND_METHOD_DENYLIST is kept as a second, independent check: it is tested first, it
  denies on any class, and a test fails if the two lists overlap.
- The write-word scan now runs over the allowlist itself, on the name and on the first
  docstring line of both the sync method and its _async_ twin. The reviewed reads are
  keyed by Class.method: DataDiscovery.get_security_posture_history and
  ServerClient.get_attached_comments.
- New test: every runnable built-in or generated spec's function is on the list, so
  the stage-2 seed cannot be refused. Plus tests that every entry resolves, that an
  _async_ twin is allowed, and that same-method different-class spellings are refused.
- microflow-1.json and the module docstring describe the allowlist.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* fix(view): repoint the two unrunnable built-in specs; census 0 unrunnable

The owner's fix for the census's two unrunnable specs (pyegeria 6.2.28).

- Asset-Graph named ServerClient.get_asset_graph, which no longer exists. It now calls
  AssetCatalog.get_asset_graph_by_guid. The required parameter is now guid instead of
  asset_guid; the optional ones are start_from and page_size. commands/cat/
  get_asset_graph.py (the hey_egeria asset graph command) passes the new name.
- Data-Classes named DataDesigner.find_data_classes, which no longer exists. It now
  calls DataDesigner.find_data_value_specifications with
  spec_params={"metadata_element_subtypes": ["DataClass"]}. DataClass is a
  DataValueSpecification subtype that shares the same search endpoint, and the filter
  travels in the search body as metadataElementSubtypeNames (through **kwargs into
  _async_find_request). The two subtype keys are removed from the spec's optional
  params so a caller cannot override the filter.
- Live READ against qs-view-server (no writes):
  - The DataClass filter returns 6 DataClass elements; DataGrain returns none, so
    the filter is honoured.
  - Data-Classes DICT returns 6 DataClass rows. It fills the same columns as
    Data-Value-Spec does on the same data.
  - Asset-Graph DICT and MERMAID run on a real asset guid.
- AssetCatalog.get_asset_graph_by_guid is added to the positive allowlist (46
  entries). find_data_value_specifications was already on it. The every-runnable-
  built-in test now covers both specs.
- Census: 437 specs, 376 runnable, 61 format-only, 0 unrunnable (was 374 / 61 / 2).
  The resolver tests that used Data-Classes as their unrunnable example now register
  a probe spec. KNOWN_UNRUNNABLE is now empty. The log_lines fixture re-enables the
  pyegeria logger, because another module's test can leave it disabled.
- Docs: the census numbers in output-formats-and-report-specs.md are updated, and
  the two "unrunnable today" examples are now history with their fix. A new
  docs/release-notes/6.2.28.md is added.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* feat: search and get filters universal, checked and typed (6.2.28)

Every public find_*/get_* method that sends a request body (509, sync and
async) now accepts **kwargs and forwards them to the shared request helper;
the 53 that dropped them (find_all_data_structures/find_all_data_fields,
the RuntimeManager lookups, get_collection_hierarchy, ...) are fixed.

pyegeria.core.request_filters is the one source:
- GetFilters / ListFilters / SearchFilters / FindFilters TypedDicts (PEP 692,
  a docstring per field); 281 methods annotate **kwargs: Unpack[...]. The
  other 208 name some filters explicitly, which PEP 692 forbids repeating in
  the TypedDict, so they keep plain **kwargs.
- filter_body_kwargs(kind, kwargs), called by every shared helper, derives
  the valid names from the request-body model, maps the public spellings to
  wire names, and warns (UnknownFilterWarning, also logged) on unknown names.
  Report-spec spec_params reach the same check through the executor.
- filter_reference_markdown() renders the tables in
  docs/search-and-get-filters.md; micro-tests fail if the TypedDicts, models
  or docs drift.

Unknown names warn in 6.2.28; a later release will raise.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* fix(view): Asset-Graph renders the asset graph in every format it declares

This fixes the Architect's P2 on e2e8a8c (READBACK-allowlist-specfix-cappedscans-2026-11-09 §2).
Asset-Graph resolved and ran, but its output was not the graph.

What was actually wrong, checked live and against a recorded response:
- The anchor graph column's key was misspelt `anchorMermaidGRaph`, so Anchor Graph was
  always empty. It is now `anchorMermaidGraph`, and an Action Graph column
  (`actionMermaidGraph`, which the response also carries) is added.
- The spec declared only ALL. Requesting ALL as an output format returned a 62-82 char
  markdown string holding just the asset's name, labelled kind "json".
- Requesting MD or FORM rendered a Dr.Egeria "Update Asset" form, and LIST a markdown table,
  none of which can show a graph.

Two read-back findings did not reproduce:
- REPORT and MERMAID were not empty. They return kind "text" with the graph in `content`
  (`data` is not used for text results). The read-back read `data`.
- DICT's single row is the asset itself. On this repository the first find_assets result is a
  GovernanceActionProcessInstance, whose display name reads like an audit message. DICT gave
  one row equal to the asset on four asset types live.

Changes:
- Asset-Graph declares DICT/TABLE/JSON, REPORT/HTML and MERMAID:
  - DICT, TABLE and JSON give the asset's own fields plus the graphs as text.
  - REPORT and HTML give the fields, with the asset, anchor and action graphs rendered as
    mermaid.
  - MERMAID gives the asset graph.
  - The columns are a named ASSET_GRAPH_COLUMNS list. ALL, MD, FORM and LIST are dropped, with
    the reason in a comment. Asking for one now raises the executor's existing error, which
    lists the declared formats.
- format_set_executor: a ValueError from the find path was printed and swallowed, so the call
  returned None. It is now logged and re-raised.
- Tests (17) against a recorded get_asset_graph_by_guid response
  (tests/micro-tests/data/asset_graph_by_guid_response.json, from qs-view-server, read only,
  relationships trimmed). They run the real path from exec_report_spec down to
  _generate_asset_output; only the HTTP request is replaced, and building a real client fails
  the test. They cover:
  - each declared format, with DICT a single row that is the asset and has all three graphs;
  - REPORT with three mermaid blocks;
  - MERMAID equal to the rendered mermaidGraph;
  - ALL, MD, FORM and LIST raising with words;
  - no declared format returning None.
- Live READ against qs-view-server, after the fix:
  - DICT is 1 row with Mermaid 740 / Anchor 878 / Action 804 characters.
  - REPORT has 3 mermaid blocks; HTML and MERMAID carry the graph.
  - ALL and MD raise with words.
  - DICT is one row, the asset itself, on Notification, EngineAction and
    ConnectorActivityReport assets.
- docs/release-notes/6.2.28.md is updated.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* fix: report specs filter as named; hard-coded filters no longer collide

Dr.Egeria find_constraints (edited via the Spec Editor API, then
refresh_specs --merge-reports; generated outputs as written):
- 6 external-reference Create commands: metadata_element_types: ["X"] ->
  metadata_element_type: "X" (the validator's preferred form; Dr.Egeria
  processing reads it the same way). Their report specs now return only
  their own type: Cited-Document 87 -> 2 rows, Related-Media 87 -> 4,
  External-Data-Source/-Model-Source/-Source-Code/-Standard 87 -> 0
  (quickstart).
- Create Question: classification: "Question" (read by nothing) ->
  include_only_classified_elements: ["Question"]. Question-DrE-* now
  returns the 152 Question terms instead of failing.

58 call sites passed a filter such as metadata_element_type explicitly
beside **kwargs, so a caller or spec passing that filter raised TypeError
("multiple values") -- why Question-DrE-* failed. The built-in value is now
a default in the splat that the caller's keyword overrides; a micro-test
keeps it that way.

KNOWN_BAD_SPEC_PARAMS is gone: every built-in spec's spec_params must name
a filter or parameter of the method it calls.

Release note states the row-count changes, including classification_names
now filtering on a find (Data-Sharing-Agreement 1000+ -> 598;
Digital-Product-Catalog 1000+ -> 0 because DigitalProductCatalog is a
type, not a classification -- its spec needs metadata_element_type).

The two template diffs are pre-existing drift rewritten by refresh_specs.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* fix: Digital-Product-Catalog report spec filters by type

Create Digital Product Catalog's find_constraints said
classification_names: ["DigitalProductCatalog"], but DigitalProductCatalog
is a type, not a classification. Now metadata_element_type:
"DigitalProductCatalog" (edited via the Spec Editor API, then
refresh_specs --merge-reports; generated output as written).
Digital-Product-Catalog-DrE-* returns the 3 catalogs on the quickstart,
where it used to list every collection (and, with classification_names now
filtering, would have listed none). Release note updated.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* feat(view): Asset-Graph is an edge table, with a shape per output format

The owner asked what it means for a table to return a graph: after 883d33e,
TABLE/DICT returned one row holding ~740 characters of mermaid text. The owner's
direction: "A table of edges and a different shape for other OutputTYpes".

New pyegeria/view/asset_graph.py (pure functions) gives each declared format a shape:
- DICT and TABLE: one row per edge, with From Display Name / From Type / From GUID /
  Relationship / To Display Name / To Type / To GUID.
  - The asset's own relationships (top-level lists such as governedBy and
    requestedActions) are included.
  - Direction comes from relatedElementAtEnd1 and startingElementGUID.
  - Each relationship is listed once, by relationship GUID.
  - Rows are sorted, so the order never depends on Egeria's. Paging stays Egeria's,
    on the graph request.
- LIST: the nodes (the asset, its anchored elements, the related elements), with
  their role.
- REPORT and MD: the asset summary, its graph(s) as mermaid, then the edge table.
  HTML renders that document.
- MERMAID: the graph.
- JSON: the full graph response.
- FORM and ALL are not declared, so asking for them is an error that names the
  declared formats.

Supporting changes:
- AssetCatalog._generate_asset_graph_output applies these shapes for
  get_asset_graph_by_guid. MERMAID and other formats take the generic asset path.
- The Architect's P3: a by-GUID REPORT no longer says "found from the search string".
- markdown_to_html now enables GFM tables. The CommonMark preset had them off, so
  markdown tables came out as plain text in HTML, although the page CSS styles tables.

Tests and checks:
- The tests use a complete recorded response, rewritten to cover each format, the
  hand-read expected edges (5, one reported twice), deterministic order under a
  shuffled response, the no-edge case, and the P3 wording.
- Live READ: edge rows equal the distinct relationship GUIDs on three asset types
  (5, 6 and 3), node counts are right, and REPORT never says "search string".
- The spec docs (output-formats-and-report-specs.md) and the 6.2.28 note record
  the shape per format.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* feat: one name for the type filters (metadata_element_type / _subtypes)

Owner: "Make it consistent with either metadata_element_type_name or
metadata_element_type everywhere". metadata_element_type matches the
SearchFilters/GetFilters TypedDicts and the search helper, so:

- 135 signatures renamed (124 metadata_element_type_name, 8
  metadata_element_sub_type, 2 metadata_element_subtype, 1
  metadata_element_name), with their body uses, docstrings and every
  in-repo call site (keywords, **params dicts, spec cache).
- request_filters.DEPRECATED_NAMES + @deprecated_names: the old spelling
  still works with one DeprecationWarning naming the new one; a lone string
  for the subtype list becomes a list; old and new with different values
  raise TypeError. filter_body_kwargs applies the same to **kwargs.
- The report executor renames old spellings quietly (spec vocabulary is
  not the caller's code).
- 10 methods whose renamed parameter now repeats a TypedDict key drop the
  Unpack annotation (PEP 692).
- Tests: no signature uses a deprecated name; alias warns/maps/refuses;
  by-name wrappers take both spellings; test fakes follow the new name.
- Docs page section + generated "Deprecated spellings" table; 6.2.28 note.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* feat(view): Asset-Graph declares DICT/JSON for code, REPORT/HTML/MERMAID for people

The Architect's choice, accepted by the owner. Supersedes the edge table
of 5fbc3c4.

- Asset-Graph no longer declares TABLE. A TABLE (or LIST, MD, FORM, ALL)
  request is refused with words naming the declared formats; a named
  NO_TABLE_FALLBACK set stops the generic TABLE->DICT fallback for this
  spec only.
- DICT is the asset itself with its graph fields; JSON is the full graph
  response; REPORT and HTML render the asset's fields and graphs; MERMAID
  is the graph.
- pyegeria/view/asset_graph.py is trimmed to the edge/node helpers kept
  for the Wave 3 edge-table spec; no spec uses them yet (tested directly).
- Keeps the P3 fix: a fetch by GUID no longer says "search string"; a
  search REPORT still names its search string.
- Tests, docs and the 6.2.28 note updated; the note says the edge table
  is planned as its own spec in Wave 3.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* feat: generic-search report specs use ClassificationExplorer with their own type

The 40 Dr.Egeria *-DrE-* specs that called
MetadataExpert.find_metadata_elements_with_string with no type now call
ClassificationExplorer.find_elements_by_property_value (owner: it returns
a more standard shape). Only find_method changed in the 20 compact
commands (Spec Editor); gen_report_specs derives each spec's
metadata_element_type from the command's OM_TYPE (OpenMetadataRoot when
empty) and property_names displayName/qualifiedName.

- The 9 technology commands (Kafka, Postgres server/database, Unity
  Catalog) also get deployed_implementation_type, from one table
  (automated_curation.ELEMENT_TEMPLATE_TECHNOLOGY) that their
  create-from-template calls now use too, plus a Deployed Implementation
  Type column. '*' lists exactly that technology (matched by Egeria, so
  paging holds); a search string matches names within the supertype.
- find_elements_by_property_value: '*' with a type lists that type via
  get_elements, at most 100 per call (caller's page_size, default 100);
  '*' with no type or OpenMetadataRoot/Referenceable is refused: "give a
  search string or a narrower type" (a whole-repository listing helped
  run the quickstart platform out of heap on 2026-11-09).
- find_metadata_elements_with_string refuses an untyped '*' in words
  instead of passing Egeria's "searchString is null" through.
- Report executor: a run's search_string reaches a property_value method;
  a caller's parameter the report does not take warns
  (UnknownFilterWarning); spec_params still win on a collision (docs say
  so); the sync exec_report_spec re-raises ValueError instead of printing
  it and returning None.
- Tests: census (every generic-search spec names a type), generator
  derivation, technology column, '*' paths and caps, refusals, both type
  spellings through ClassificationExplorer, executor warnings.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* fix: technology report specs match the technology exactly, ANDed server-side

Architect read-back of 88ab777:
- P2: a technology spec with a search string returned other technologies
  (Postgres-Server-Element-DrE-Basic "Coco" gave 10 non-Postgres
  SoftwareServers).
- P3: the technology match was "contains" (UC-Server '*' included
  "Databricks Unity Catalog Server").

find_elements_by_property_value with deployed_implementation_type now
sends one ClassificationExplorer complex query (find_root_elements,
/elements/by-complex-query): deployedImplementationType EQ the
technology AND, for a search string, ANY of property_names matching it,
with STARTS_WITH / ENDS_WITH / EQ / LIKE (CASE_INSENSITIVE_* for
ignore_case) chosen from the search options. Egeria's Postgres repository
matches LIKE literally (it escapes % and _), so no regex is sent. Paging
stays exact; nothing is filtered client-side. The technology conditions
win over a caller's search_properties.

Live as erinoverview, page_size 25: Postgres-Server "Coco" -> empty;
UC-Server '*' -> 2, both "Unity Catalog Server" (was 3 incl. Databricks);
all 9 technology specs return only their exact technology, in 0.2 s each
instead of 11-20 s. Docstring, docs page and release note drop the
limitation text.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* feat: technology report specs take the technology as a run parameter ("*" = any)

Owner: "For the technology specs we should allow the tech type to be a
wildcard?"

The 9 technology specs (and their -Advanced twins) now pin
default_deployed_implementation_type (from ELEMENT_TEMPLATE_TECHNOLOGY via
the generator) and declare deployed_implementation_type as an optional run
parameter, so it is not an unknown filter and the Portal's run form shows
it. spec_params still win on a collision (section 9.13 unchanged), which
is why the default is a separate parameter and not a pinned
deployed_implementation_type.

find_elements_by_property_value: technology = deployed_implementation_type
or default_deployed_implementation_type;
- not given: the spec's technology, exact, ANDed server-side with the name
  match;
- "*": no technology condition; the report searches every element of its
  type ('*' lists via get_elements, at most 100 per call; a root type is
  still refused);
- anything else: that technology, exact.

Live as erinoverview, Postgres-Server-Element-DrE-Basic, page_size 25:
default '*' -> 1 PostgreSQL Server; technology "*" -> 19 SoftwareServers
across 14 technologies; default "Coco" -> empty; technology "*" + "Coco"
-> 10. No UnknownFilterWarning. Census 437/376/0/61.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* fix: technology match is exact but ignores case

Architect read-back of 4bbcc6c (P3): "postgresql server" returned empty
with no explanation because the deployedImplementationType condition was
case-sensitive EQ. It is now CASE_INSENSITIVE_EQ: still an exact match,
ignoring case. "*" still means any technology.

Live as erinoverview, Postgres-Server-Element-DrE-Basic, page_size 25:
deployed_implementation_type="postgresql server" -> 1 PostgreSQL Server.
Docstrings, docs page and release note say "ignoring case".

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

---------

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson deleted the feat/binder-deprecation-warning branch November 20, 2026 19:14
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