Skip to content

pyegeria 6.3.3: report-spec audit, related-information columns, by-name guard, content status defaults to any - #609

Merged
dwolfson merged 86 commits into
odpi:mainfrom
dwolfson:claude/bundle-pyegeria-6.3.3
Nov 23, 2026
Merged

dwolfson merged 86 commits into
odpi:mainfrom
dwolfson:claude/bundle-pyegeria-6.3.3

Conversation

@dwolfson

Copy link
Copy Markdown
Member

The pyegeria 6.3.3 bundle. It's based on main at 46b092d (6.3.2) and is a fast-forward of it: 69 commits, every one SSH-signed, with Signed-off-by only. This PR doesn't bump the version or add a tag; that's the release step after merge. docs/release-notes/next.md has the user-facing notes.

Each item was read back independently against Egeria 6.4. Tests run in two environment modes (no EGERIA_* set, and dummy EGERIA_* set) show 0 new failures by name against main; the new tests fail on main as expected.

Behaviour changes (read these first)

  • Content status defaults to any (PY-27). find_data_assets, get_data_assets_by_category, find_authored_elements and find_authored_elements_by_category no longer filter on ACTIVE by default.
    • Egeria treats a null filter as "any", and stores null when no status is set, so the old default hid every element created without a status.
    • Pass content_status_list=["ACTIVE"] for the old behaviour.
  • A missing, empty or "*" name or key is refused before sending (PY-63).
    • Every Egeria 6.4 by-name and by-type endpoint we checked answers HTTP 400 for a missing name, and "*" there is an exact match. The refusal names the find method that lists everything.
    • get_platforms_by_name("*") returns the platforms of the default type.
    • hey_egeria … deployed-servers now defaults to View Server.
  • Egeria 400s are reported correctly (PY-58). A relatedHTTPCode of 400 now raises PyegeriaBadRequestException, which subclasses both PyegeriaInvalidParameterException and PyegeriaAPIException. It carries Egeria's message and message id, instead of being labelled SERVER_ERROR_500 with the message dropped.
  • Data Scope (PY-25):
    • Classify and Update Data Scope now carry every 6.4 DataScopeProperties field.
    • Description is removed, because it sent a string into a map field.
    • The six bounds must be numbers.
    • Create Data Lens gains its validity and coverage periods.
  • A failed read is not "none" (PY-22).
    • initiate_survey asks for action_target_name when the survey's action targets can't be read.
    • karma_leaderboard returns None (unknown) instead of [] when it can't read every record.

Report specs (PY-49, PY-53, PY-54, PY-55, PY-57, PY-62)

  • Generated report specs show only columns a find can fill, and lead with display name, qualified name and GUID where the type has them.
  • Column.source (class:, rel:, of:) shows classification properties, relationship properties and related-element attributes, kept aligned by position.
  • A spec can declare a minimum Egeria version, and refuses with "needs Egeria 6.4" otherwise.
  • There's a new Platform-Report spec, with its servers and their status.
  • Catalog-Target shows the CatalogTarget relationship properties for the integration connector you name.
  • The UC specs target real Egeria types.
  • The Subscription Type spec and command are removed.
  • The validator matches type names case-insensitively.

Other fixes

PY-24, PY-28, PY-36, PY-39, PY-41, PY-42, PY-43, PY-44, PY-45, PY-46, PY-47, PY-48, PY-50, PY-51 and PY-52. The release notes have one line per fix.

  • PY-24: PyegeriaException.not_visible, plus egeria_message_id on the API, BadRequest and NotFound exceptions.
  • PY-28: the search-keyword by-GUID read posts to …/retrieve.
  • PY-48: Dr.Egeria no longer reports a no-op as success.
  • PY-52: an offline template refresh writes "valid values not read" instead of silently dropping the line.

For consumers

The Egeria Portal's Overview page needs a small fix, a "Couldn't be read" state for a null leaderboard, before the Portal moves to 6.3.3. That's tracked separately in egeria-workspaces.

🤖 Generated with Claude Code

…mes in one place

Groundwork for the Egeria 6.4 additions (process variables and decisions).

- Regenerate pyegeria/view/egeria_relationship_fields.py (307 lists) and
  md_processing/md_processing_utils/properties_class_fields.py (691 classes)
  from odpi/egeria#9463 head 0dbf468774c7f3dc102dd677b720b670ed6a8e09
  (merged as 90232870b2, same tree). Both headers name that sha.
- #9463 adds 14 root-element lists and 11 Properties classes.
- Drift also picked up (Egeria main changes before #9463, base 7d0db89538):
  relationship lists asOfDataField, basisDataField, derivedFromReportType,
  providesAsOfTimeForMeasurements, providesBasisForMeasurements,
  reportTypeInstances, usedInReports, usesResultsSets added, and
  equivalentSchemaAttribute/equivalentSchemaType renamed to the plural
  (nothing in this repo reads the old names). No Properties-class drift.
- scripts/gen_egeria_relationship_fields.py gains --ref, reading the two Java
  files with git show so the Egeria checkout is never modified (the
  properties generator already worked this way).
- tests/fixtures/egeria-6.4/: the five .http collections at the PR head and
  a SOURCE file naming it.
- pyegeria/core/egeria_6_4_names.py: 11 type names, 14 lists with their
  relationship types, 11 Properties classes with the spec's keys, 31 URL
  paths. Names may change in review, so they live only here.
- tests/micro-tests/test_egeria_6_4_names.py (30 tests): the lists and
  classes are in the generated tables, the names and the .http paths agree
  both ways, and the fixtures and both tables name the same sha.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…ough the full superclass chain

scripts/gen_properties_class_fields.py read private/protected fields of
*Properties.java and properties/ files only, so it missed package-private
fields (ResourceListProperties' resourceUse/label/description/
additionalProperties) and superclasses outside properties/ (the
GetOptions -> QueryOptions -> SearchOptions chain under
FindPropertyNamesProperties and six other query classes). Dr.Egeria's
typed_properties would refuse those valid keys (A5 finding F15).

The generator now derives each class's JSON keys the way Jackson binds them
(setterVisibility=PUBLIC_ONLY, fieldVisibility=NONE): public one-argument
setters of the top-level class, through the whole superclass chain, root
first. Same ground truth as scripts/audit_properties_class_bodies.py, with:
- superclasses resolved by explicit import, then same package, then wildcard
  imports, across the whole frameworks tree (not by simple name);
- Jackson's default setter naming (setURL -> url, setGUID -> guid) and
  @JsonProperty renames (setISCQualifiedName -> iscQualifiedName);
- nested-class setters, @JsonIgnore'd and multi-argument setters excluded.
It still reads a git ref with git cat-file, never the Egeria working tree.

Regenerated from Egeria 90232870b2 (odpi/egeria#9463 merged; same tree as
A0's 0dbf468774): 691 classes as before, 14 classes gain keys, none lose
any, no kind changes. The 11 new 6.4 classes are unchanged.
test_egeria_6_4_names' source-sha check also accepts the merge commit that
tests/fixtures/egeria-6.4/SOURCE records.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
… (and a description if given)

SearchKeywordProperties reads displayName, description, typeName and extendedProperties. The call sent only 'keyword', which Egeria drops silently, so the keyword element was created empty. Public signature kept; description is a new trailing parameter.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…CompletionDate, actual*), not startDate/plannedEndDate

ProjectProperties reads plannedStartDate, actualStartDate, plannedCompletionDate and actualCompletionDate. create, update and task sent startDate and plannedEndDate, which Egeria drops silently. start_date and planned_end_date keep working, are sent under the real keys and warn; the four real names are new parameters. Dr.Egeria's Project command already sent the real keys.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…me, so its columns are checked

A spec target_type written for people ('License Type') missed the Properties-class catalog and the column check was skipped. The type is now normalised ('LicenseType'). That checks the License-Type spec for the first time: measurement, target and user_defined_status are not License Type attributes and are removed (seed rebuilt). 12 other shipped specs now show unknown columns; they are pinned in an exact allow-list in test_authoring_validate_strict.py until PY-49.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…eEnd, not startDate/endDate

CertificationProperties and LicenseProperties read coverageStart and coverageEnd. Link and Update sent startDate and endDate, dropped silently. The attribute names users type (Start Date, End Date) are unchanged; only the keys sent change.

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

FindPropertyNamesProperties inherits GetOptions.metadataElementTypeName and reads nothing called openMetadataType, so the relationship type was never applied.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…ns", as the Portal does

The lead of every 6.4 refusal said "(odpi/egeria#9463, process variables and decisions)". The Portal vendors this sentence and
now words ProcessingVariable as "configuration values" (PO-75/76); "decisions" stays, since Decision is still the Egeria name.
Only the parenthetical changes; both tails ("runs Egeria <version>. Nothing was sent to Egeria." and "does not serve this
request (HTTP 404), so nothing was changed.") are as they were. The Portal re-vendors this after the next pyegeria release.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…d decisions")

Comment-only: the module docstring still said "process variables and decisions". A test pins it with the gate sentence.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…te Certification, naming where they belong

Link/Update Certification sent entitlements, obligations and restrictions inside CertificationProperties, which does not read
them, so Egeria dropped them silently: a person who typed them got no error and no value. The Certification relationship has no
home for them. They are properties of the Certification TYPE (CertificationTypeProperties reads them), as they are of
License and LicenseType. So a Link or Update Certification given a value for any of the three is now refused with words
naming the Certification Type as where they belong; nothing is sent. The three keys are no longer in the Certification
bodies. A blank attribute is not a refusal. License is unchanged: LicenseProperties reads them.

Not done, a design question for the owner: whether Create/Update Certification Type should expose the three attributes (its
compact spec does not list them), and whether Link/Update Certification should stop listing them in the spec.

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

DeprecationWarning is ignored by default outside __main__ and test runners, so an ordinary caller of create_project, update_project
or create_project_task never saw that start_date and planned_end_date are renamed. FutureWarning is shown to every caller. The
words, the mapping onto plannedStartDate and plannedCompletionDate and the refusal of conflicting values are unchanged.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
… attributes; pin that it does

Create Certification Type already lists Entitlements, Obligations and Restrictions (the compact spec's "Terms and Conditions"
bundle) and its processor already sends them in CertificationTypeProperties (set_gov_prop_body, ISSUE-157), so no spec change
was needed. There is no "Update Certification Type" command (Create Certification Type is not an upsert), so PY-50's refusal
no longer names one. Tests pin that the spec lists the three, that the Create body carries them and that a blank sends nothing.
Live: a Certification Type created through the processor with the three read back by GUID with the values stored.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…ements, Obligations and Restrictions

The commands refuse those three (PY-50: CertificationProperties does not read them; they belong to the Certification Type), so the
compact spec, and the templates and help built from it, no longer offer fields that are refused. The spec change was made through the
Dr.Egeria Spec Editor API (PUT /api/families/commands_governance_officer_compact/commands/<name>; the family validates with the same
findings as before), and refresh_specs --merge-reports regenerated the templates. License commands keep the three; Create
Certification Type offers them. The processor's refusal stays as the backstop for a hand-written block.

refresh_specs also regenerated files that are not about this change (generated_format_sets.json, which is committed only at release
bumps, and the Create Display Data Container and Create Dashboard templates, which had already drifted). They are not included.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…ates stable, current output

Found while doing PY-50b: on main 46b092d validate_compact_specs reported 19 ERROR findings and
refresh_specs --merge-reports rewrote about 144k lines with no spec change. None was a spec defect.

- OM_TYPE_INVALID x19: all ten types are the Egeria 6.4 additions (odpi/egeria#9463: DataValue,
  DataValueSource, ProcessingVariable, EmbeddedDataValue, Branch, Decision, Outcome, Assessment,
  ProjectTarget, SupportedVariableType). The validator checks OM_TYPE against the platform it is pointed at,
  and a 6.3 platform does not list them. The validator now also accepts pyegeria.core.egeria_6_4_names.TYPE_NAMES;
  a wrong name is still an ERROR.
- generated_format_sets.json: not reordered, and regeneration is deterministic (identical bytes across runs and
  PYTHONHASHSEED values). The file was stale: every column now carries render, max_items, max_lines and label, and
  every format a document. Regenerated; a test now fails if the committed file is not what a regeneration writes.
- The four templates (Create Display Data Container, Create Dashboard; basic and advanced): the Valid Values line
  came out in whatever order the Egeria server returned the values, which differs between servers. The values from
  the server are now written sorted. The spec's own valid_values are left as written.
- CLAUDE.md: refresh_specs needs the EGERIA_* settings to reach a platform, or the templates silently lose their
  live Valid Values lines.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Dan's decision: "Omit empty fields". save_format_sets_to_json no longer writes render, max_items, max_lines and
label on a column, or document on a format, while they are null. Loading reads an absent key as the null default,
so the file round-trips; a test saves, loads and compares, and another loads the committed file and saves it
back to identical bytes.

Regenerated md_processing/data/generated_format_sets.json. Against main it now differs only in the six sets that
main had written with explicit nulls (Data Value, Decision, Type Def, Enum Def, Instance and the Advanced Report
set: 532 columns and 10 formats lose those keys); the other 308 sets are byte-identical. A second refresh_specs
--merge-reports is a no-op.

Consumers checked, none reads those keys as required: refresh_specs and gen_report_specs (only write the file),
FormatSetDict.load_from_json and load_format_sets_from_json (FormatSet(**value); all five fields default to None),
base_report_formats.load_report_specs, the user report-spec JSON loader, dashboard sheets (own save/load, untouched),
the report-spec seed (built from the Python constants, not this file), tests/micro-tests/test_dr_egeria_reports_current.py
(compares set names). No other repo reads the file: egeria-workspaces, trellis and egeria-docs mention it in prose only.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…values were not read

generate_md_cmd_templates dropped the Valid Values line of every looked-up attribute (one with a property_name and no
values of its own: 7 attributes across the specs) when it had no Egeria connection or the lookup raised, with only a
"Falling back to static values" warning in the log. refresh_specs run offline therefore rewrote the templates with
those lines missing and nothing in the diff said why.

It now writes an explicit marker instead of refusing, so refresh_specs stays usable offline:
  valid values not read (no Egeria connection)
  valid values not read (Egeria lookup failed: <ErrorType>)
Attributes whose spec lists its own values, attributes with nothing to look up, and a server that answers are
unchanged, and the connected run is still a no-op against the committed templates. The same code now serves
_write_attr_block and _print_attr (the lookup was duplicated). An offline run shows 187 marker lines in the diff.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…rything under commands/ parses

commands/deprecated/list_data_designer.py (syntax error at line 32) and list_data_structures_full.py (line 25) did
not parse. Nothing imports them (searched .py, .toml, .cfg, .in, .md, .yaml, .json) and no entry point names them:
the only mentions in pyproject.toml are commented-out lines that point at commands.cat, not commands.deprecated.
So they are deleted, not fixed; commands/deprecated/README.md says so.

tests/micro-tests/test_commands_parse.py parses (ast, no import) every .py under commands/, so a file nothing runs
cannot go broken unnoticed again.

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

A block written one heading level off ("# Update Data Class" with "## Qualified Name", "## Display Name"... as
attributes) reported commands_succeeded 1, no errors, and wrote nothing: the element stayed at version 1. Cause: the
H1 is a title, and the H2 attribute "Display Name" parsed as a command of its own ("Display" + "Name"), for which no
processor exists. That came back as a "warning" row, which every consumer counted as a success. DataClass was never
the problem: "## Update Data Class" with "### " attributes reaches DataClassProcessor and updates (checked live:
version 1 -> 2, description changed; the mis-levelled block changed nothing).

Three results are now failures, with words, never counted as succeeded:
- a command no processor handles (dispatcher): status failure, and the message says nothing was run and to check
  the heading levels;
- a Create/Define/Register/Update/Modify/Upsert that applied nothing (the processor handed back the block it was given
  or nothing; a failed read-back after a write is flagged so it does not count as "nothing");
- the same verbs coming back with no element GUID (None or empty), so the write cannot be named or read back.
A validate run, a deferred command and a local-only one (Dashboard Sheet without a connection) are exempt.

Also:
- pyegeria.authoring.runner no longer counts a block kept as prose as a succeeded command, and a document that runs no
  command is a failure; a failed run carries the heading hints (UniversalExtractor.diagnose), as the MCP wrapper does.
- diagnose() knows "# Update X" when the spec is named "Create X" (the dispatcher upserts), so the H1 hint fires for it.
- Two processors that wrote without recording the GUID now do: Update Type Def, and the Curation classification and
  link processors (the target element is the element named).

Not in this repo: the Dr.Egeria MCP wrapper (egeria-workspaces PyegeriaWebHandler/mcp_server.py). Its
_build_structured_response reports success false and commands_failed 1 for the new failure rows; it still counts the
old "warning" row as succeeded, so the image needs this pyegeria.

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

In FORM and MD output make_md_attribute wrote the value with an f-string, so an unset (None) property read
"### Planned End Date\nNone" (11 such lines on one Project). Lists and nested values leaked it too ("- None", and
"- Note: None" in a nested bullet).

Convention, the one an empty string already followed: in FORM and MD the heading stays and the body is blank (a FORM is
what the author fills in, and an MD keeps the same shape); in REPORT and MERMAID an unset property is left out
altogether, as before. False and 0 are values and still print. A None list item is no bullet; a None nested value is blank.

tests/micro-tests/test_md_formatter_no_none.py covers the attribute line, REPORT/MERMAID, False/0, list and dict
values, and a Project block with twelve unset properties.

The default-output goldens (test_r1_structured_table) held the old "None" text, so nine hashes change (FORM and MD for
digital_products, governance_metrics, isc_register, ninety_day_plan and risk_register, MD digital_products unchanged).
Checked before updating: with the "None" bodies blanked, the old output equals the new one in every case (for
digital_products/FORM up to whitespace at the very end).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…, not a pass

Architect finding (FIX FIRST). Egeria64Processor._needs_6_4_result returned status "warning" when the platform runs
Egeria before 6.4 (or answers a bare 404). The runner counts every status but failure/error/unknown as succeeded, so
the Architect saw success True and commands_succeeded 1 with nothing written.

The refusal is now status "failure" with errors=[words]; the words (needs_6_4_words) already name the platform and
its version ("... runs Egeria 6.3. Nothing was sent to Egeria."), and needs_egeria_6_4 stays True. The dispatcher
result and the pyegeria.authoring.runner count both follow (success False, commands_failed 1, the words in
execution_errors / validation_errors). A validate run is refused the same way, since it cannot check a command the
platform does not have.

Tests: new test_py48_6_4_gate_is_failure.py (4 cases, process and validate, dispatcher and runner; all 4 failed on
the base). The B1, B2 and B3 version-gate tests asserted "warning" and now assert "failure".

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Architect finding. async_run_markdown counted a row as failed only for status failure, error or unknown, so any other
status, a new one or "warning", was a silent success. Now GOOD_STATUSES = (success, deferred, read) are the only
statuses counted as succeeded; every other row, a missing status included, is failed, with words naming the status
(execution_errors, or validation_errors on validate). A failure row keeps its own errors.

Tests: test_py48_runner_counts_only_known_good.py (fake dispatcher, canned rows). On the base, with only the constant
stubbed in, 7 of its cases fail: something_new, warning, "", None and "SUCCESS" counted as succeeded or without the
words, a new status among good rows, and the validate run.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
… system (evidence only)

All 452 registered specs (133 hand-written, 319 generated, 26 analytic with no columns), 8,597 columns, checked against
the Properties-class table and relationship lists generated from Egeria 90232870b2. Per-spec tables for the hand-written
specs, a family treatment of the generated ones, the 12 pinned specs resolved with Dan's decisions for groups A to D
applied (marked DECIDED), 6.4 coverage and gating, and a per-spec appendix.

No spec, code or Egeria change. The Egeria Java source and a 6.4 platform were not available, so relationship direction
and @deprecated markers could not be read; the report says where a finding depends on that.

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

The generated "-DrE-" specs took every Create-command attribute as a column; the audit (docs/audits PY-49) found about
1,500 of them could never be filled. The rule is now in commands/tech/gen_report_specs.py, not in per-spec edits:

- stored attributes: kept;
- Reference Name / Reference Name List attributes: the relationship-list column when RELATIONSHIP_FIELDS has the list
  (ATTRIBUTE_RELATIONSHIP_LISTS: glossary_term -> semanticDefinitions, containing_data_class -> partOfDataClasses,
  specializes_data_value_specification and in_data_value_specification -> superDataValueSpecification, in_data_field ->
  parentDataFields, sub_projects -> managedProjects, solution_sub_components -> nestedSolutionComponents, in_components
  -> usedInSolutionComponents, in_reference_data_set -> memberOfValidValueSets); the key the data designer fills itself
  (CLIENT_DERIVED_KEYS); otherwise not emitted. The other Reference Name attributes are skipped until their
  relationship is checked;
- request-only parameters (effective_time, is_own_anchor, anchor_*, template_*, instance_*, parent_guid,
  initial_classifications ...): never emitted;
- classification payloads: not emitted for now (PY-53);
- user_defined_status: user_defined_content_status where the target type has it, else not emitted;
- a command left with no column gets the four universal columns (Element, Instance, the From-Template commands).

The validator accepts the columns a client fills itself (CLIENT_DERIVED_COLUMNS: sideLinks, the data designer's
in_data_dictionary / in_data_structure / in_data_spec / member_data_fields, the zone membership figures), by find method,
so those leave KNOWN_UNKNOWN_COLUMNS (shrink-only).

Regenerated with `refresh_specs --merge-reports`: 452 specs as before, 8,597 -> 7,051 columns. The second run is a
no-op. Of the golden outputs only ninety_day_plan changed (Project-DrE-Basic: sub_projects -> managed_projects, the
column the formatter fills), so its six hashes are updated. md_processing/data/generated_format_sets.json and four
sample templates already drift on the base and are not part of this change.

Tests: test_py49_generator_rule.py (35 cases; 33 fail on the base generator).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…from the 6.4 relationships

Both Data-Classes / Data-Value-Spec columns named things no code produced, so they were blank in every report.

- containing_data_class: the DataClassComposition relationship, read as `partOfDataClasses` (end 1 is the whole);
- specializes_data_class: the DataValueHierarchy relationship, read as `superDataValueSpecification`, a single
  related element (the data class specialization relationship no longer exists).

get_data_rel_elements_dict now returns both under the column keys. The fallback keys `nestedDataClasses` and
`specializedDataValueSpecifications` exist in no Egeria tree and are no longer read, and the misleading
`nested_data_class_*` result keys (they held the containing classes) are renamed `containing_data_class_*`. The
validator accepts the two columns as client-derived, so they leave KNOWN_UNKNOWN_COLUMNS.

Tests: test_py49_data_class_relationships.py (6 cases, all fail on the base). test_data_designer_links asserted the old
key name and follows the rename.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…e, and camelCase column keys by their snake form

egeria_type_name removed spaces and punctuation but kept case, so 'Terms and Conditions', 'Statement of Applicability'
and 'Todo' never matched TermsAndConditions, StatementOfApplicability and ToDo, and the specs naming them skipped the
strict column check. It now falls back to a case-insensitive match; an unknown name stays unknown, and an exact match
still wins.

The strict check also compared a column key as written, so the camelCase keys a hand spec uses (displayName,
activityStatus on My-User-ToDos) were refused once that spec was checked. The formatter converts a snake_case key to
camelCase and leaves a camelCase key as written, so both name the same attribute; the check now tries the snake form.

Tests: test_py49_type_name_case.py (13 cases; 5 fail on the base: the four case variants and the camelCase key).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…ses it before the find

Decision, DataValue and LiteralDataValue exist only from Egeria 6.4, but their report specs were not gated: on an older
platform the find went out for a type that platform does not know. (The Dr.Egeria commands were gated, in PY-48.)

- FormatSet.min_egeria_version: held in the annotation of that name, so the seed and the Egeria-held envelope carry it
  unchanged; only "6.4" is accepted, since that is all pyegeria.core.egeria_6_4_gate can check;
- both report runners (exec_report_spec, and the async path) ask the gate before the find. A platform that reports a
  version before 6.4 is refused with the same "needs Egeria 6.4 ... runs Egeria 6.3. Nothing was sent to Egeria."
  words (SpecNeedsNewerEgeria, a ValueError); a version that cannot be read is unknown, never "no", and the find is
  sent;
- the hand specs Decision, Data-Value and Literal-Data-Value carry it, and gen_report_specs gives it to the generated
  Decision-DrE-* and Data-Value-DrE-* specs (NEW_IN_6_4_TYPES). Seven specs in all.

test_metadata_expert_report_spec_kwarg looked for the find as the first request; a gated spec now reads /api/about
first, so it looks for the find among the requests.

Tests: test_py49_spec_min_version.py (14 cases; 11 fail without the change). Regenerated with
`refresh_specs --merge-reports`; the second run is a no-op.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…D; Q1 to Q5)

Edits to pyegeria/view/base_report_formats.py, regenerated into the seed:

- Q1: `reference_url` is dropped from ExternalReference, CitedDocument and RelatedMedia (their `url` column exists);
  External-References has no other `url`, so its URL column is renamed to `url`;
- Q2: External-References: `reference_sources` -> `sources`, `current_version` -> `version_identifier`, and the ten
  publication fields (number_of_pages, page_range, publication_series, pub_series_volume, publisher, first_pub_date,
  pub_date, pub_city, pub_year, pub_numbers) leave it; the CitedDocument spec already shows all ten under their real
  names;
- Q3: unchanged, as decided: subtype fields stay on Agreements and the actor specs;
- Q4: Projects `start_date` -> `planned_start_date` and `actual_start_date`; Digital-Products (all three) `next_version`
  -> `next_version_date` (the captured digital_products fixture now fills it, 500 bytes more); `job_status` (My-User,
  My-User-MD), `projectType` (My-User-Projects-Detail) and `project_roles` (Projects) dropped; Glossary-Terms `example`
  -> `examples`;
- Q5: target_type is what the find returns: Actor-Roles -> ActorRole, Glossary-Terms and Help-Terms -> GlossaryTerm,
  ExternalIdentifier -> ExternalId, Folders -> CollectionFolder, Data-Specifications -> DataSpec, Governance-Process ->
  GovernanceActionProcess, Secrets-Collection-User-Profile-Charts -> GovernanceZone (its find fixes that subtype);
- group D: Governance-Controls drops `measurement` and `target` (GovernanceMetric only; the metric specs show them) and
  `user_defined_status` becomes `user_defined_content_status`.

The validator's hand-kept related keys lose `start_date`, `next_version` and `project_roles`, which no spec uses.
KNOWN_UNKNOWN_COLUMNS goes from 41 columns in 12 specs to one: Glossary-Terms `parent_glossary`, pending a decision
(the term carries only the Anchors classification's anchorScopeGUID, so a name needs one lookup per glossary, and the
extractor is synchronous).

Tests: test_py49_hand_spec_decisions.py (24 cases; 22 fail on the base). Two golden tiles follow the intended change
(digital_products x4), and one alias test accepts the Egeria type name. Regenerated with `refresh_specs
--merge-reports`; the second run is a no-op.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…tion Type spec and command are removed

A generated spec took its target_type from the Create command's display name, a name for people. Now
(commands/tech/gen_report_specs.py, TARGET_TYPE_OVERRIDES and _spec_target_type):

- a classification targets the entity it classifies and keeps filtering on it: Campaign, Experiment, Glossary Project,
  Governance Project, Personal Project, Study Project and Task -> Project; Data Sharing Agreement -> Collection;
  Question -> GlossaryTerm;
- a friendly name targets the command's own OM_TYPE when that is an Egeria entity (checked per command): CSV Data File
  Element -> CSVFile, Folder Element -> DataFolder, Kafka and Postgres Server Element -> SoftwareServer, Postgres Database
  Element -> RelationalDatabase, Secrets Store Element -> SecretsCollection, Question Spec -> CollectionFolder, the
  Penetration Test, Security and Vulnerability findings and the Security Posture Summary -> their annotation types;
  Solution Role -> SolutionActorRole (the type its find returns);
- Unity Catalog: Server -> SoftwareServer, Schema -> DeployedDatabaseSchema, Table -> VirtualRelationalTable, Function ->
  DeployedAPI, Volume -> DataFolder. UC Catalog Element is unchanged: the type Dan named, NamespaceCollection, is not in the
  6.4 table built from 90232870b2 (the nearest is Namespace);
- Element and Instance -> Referenceable, and the Schema Attribute / Schema Type From Template commands -> SchemaAttribute
  and SchemaType, with the universal columns only; Enum Def and Type Def -> OpenMetadataTypeDef.

Dashboard Sheet is a local model, not an Egeria type, and is unchanged; Dashboard and Report Spec already resolve.

Subscription Type is gone: the Create Subscription Type command and its bundle were removed through the Spec Editor's
REST API, the dispatcher no longer registers it, its two generated specs and two templates are gone (also from
generated_format_sets.json, edited by hand: only those two keys, since that file's wider drift is regenerated at
release), and its tests and manual entry are removed.

validate_compact_specs: 0 errors, 38 warnings, the same 38 as before. refresh_specs --merge-reports: the second run is a
no-op. 452 specs -> 450.

Tests: test_py49_generated_targets.py (68 cases; 66 fail on the base). A find-fit validator test used the Campaign pair as
its example of a shipped subtype pair; it now uses GovernanceControl.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
parent_glossary is read from memberOfCollections (Glossary-typed entries); the validator treats it and the other client-derived columns as known, so KNOWN_UNKNOWN_COLUMNS is now empty. Tests for the rulings (parent_glossary, Secrets spec, UC prefix, SoA controls) added.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
… UC Namespace find, SoA controls

Adds the missing 6.4 attributes and relationships (Projects project_targets, Governance-Process processing variables, Decision status, Data Value fingerprint and hash, parent_data_values). Secrets-Collection charts target SecretsCollection; UC Catalog Element targets Namespace with a pinned qualified-name prefix find; Statement-of-Applicability-Controls drops notes. Regenerated dr_egeria_reports.py and seed JSON.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
… 50 to 52)

One bullet per user-visible change, in the Fixes section of docs/release-notes/next.md.

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

main() built the ServerClient and then signed in; when the sign-in failed it kept the client, and the lookup swallows every error and returns [], so the client was never None and the Valid Values line was dropped silently: PY-52's marker never fired on a real offline run (its tests only covered a None client). The except now sets client to None, so the marker is written. Test through the real path: a ServerClient whose sign-in raises, main() run with --family, the marker in the generated template; 2 of its 3 cases fail on 435b9c6 (the third checks the client was built). An offline refresh_specs now writes 186 marker lines across the templates in place of the dropped ones. The lookup returning [] for both a failure and no values is a separate item (registered).

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

The refresh_specs note said an offline run silently drops the Valid Values lines. Since the PY-52 read-back fix (b9885e6) it writes "valid values not read (no Egeria connection)" in their place; the note says so and says not to commit those lines.

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

_async_get_search_keyword_by_guid posted to .../classification-explorer/search-keywords/{guid}, which answers 404. Egeria's ClassificationExplorerResource maps the read to @PostMapping("/search-keywords/{searchKeywordGUID}/retrieve"), the same /retrieve every other get-by-guid in this module uses (comments, note logs, tags, assets). Micro-test asserts the URL sent.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
A read of an element hidden from the caller surfaced as a generic error whose reason sat in the message text. The not-visible classifier (dashboard_resolver.is_not_visible_error, used by is_gone_error) now also knows OMAG-REPOSITORY-HANDLER-400-010 (UNAVAILABLE_ENTITY, HTTP 400: "not visible to the caller ... [Anchors, Promise]") and OPEN-METADATA-SECURITY-403-007 (UNAUTHORIZED_ANCHOR_ACCESS, a UserNotAuthorizedException) and the phrase "not visible to the caller". PyegeriaException gains a read-only not_visible property using that classifier (lazy import), and PyegeriaAPIException, PyegeriaBadRequestException and PyegeriaNotFoundException gain egeria_message_id, as PyegeriaUnauthorizedException already had. No new exception class: 400-010 arrives as PyegeriaBadRequestException and 403-007 as PyegeriaUnauthorizedException, both with not_visible True; an ordinary 400-004 reads False.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
_async_get_supported_action_target_names returned [] for any failure, which _async_initiate_survey read as "no targets declared" and answered with a guessed target name. It returns None when the survey type could not be read ([] now means it was read and declares none), and _async_initiate_survey raises PyegeriaInvalidParameterException ("The action targets of survey ... could not be read ... Pass action_target_name") before sending anything; an explicit action_target_name never reads them. karma_leaderboard returned [] when the find failed or the scan was unconfirmed; it returns None (unknown), as _find_or_none does, and [] only when the scan was read in full and nobody qualifies. The Portal overview page (egeria-workspaces, not changed here) shows a non-array leaderboard as its initial "Loading...": it needs a "couldn't be read" branch.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…ties field; Data Lens its validity and coverage periods

Data Scope Base held only Target Element, Description and Additional Properties, and the processor sent Description as additionalProperties (a string into a map). It now has the collection, validity and coverage start and end times, min and max longitude, latitude and height, Scope Elements, and the inherited Effective From, Effective To and Extended Properties, and the processor (CLASSIFICATION_METHODS['DataScope'].fields) sends each under its DataScopeProperties name; Description is gone (the class has none), and the numbers go out as numbers, with text that is not a number refused. The commands' descriptions no longer say the property set is generic. Create Data Lens, which already carried the collection times and the bounds, gains the validity and coverage periods and sends its bounds as numbers too. The nine attribute names the two families share have one definition (the pool is by name; test_compact_attribute_name_collisions). Edited through the Spec Editor API; refresh_specs regenerated the Data Lens spec and the templates for these commands. The offline run's 'valid values not read' lines were not committed.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Plain-words bullets in docs/release-notes/next.md. PY-25 states that Description is removed from Classify and Update Data Scope and that the numeric bounds must be numbers; PY-22 states the two behaviour changes (the survey refusal, karma_leaderboard returning None).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…o and Extended Properties

Every Classify and Update command in the Curation family inherits those three attributes from Request Base, and every classification's properties hold them, but the builder sent only the fields each spec mapped by hand, so 53 of the 54 commands dropped them silently (PY-25 had fixed Data Scope only). _build_classification_properties now sends them for every spec from one shared table (CLASSIFICATION_COMMON_FIELDS); a field a spec maps itself wins, a blank one is not sent, and the DataScope entries for them are gone. Test through the real dispatcher with a fake client: every Classify command in the compact spec that routes here (40) sends the three.

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

test_asset_graph_spec and test_report_spec_refusal_log_level patch EgeriaTech.__init__ to raise, and spec_resolver caches what it resolves; a resolve_all() run while that patch was active cached 'unknown' ("the test would have built a real EgeriaTech client") for every spec that builds a client, and test_every_function_todays_runnable_local_specs_name_passes_the_allowlist, run later in the same process, read it. It failed on odpi main 46b092d and on the bundle whenever the two ran in that order in one process; a batch layout change surfaced it. Each test now patches spec_resolver._CACHE with a private dict, which monkeypatch restores.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
ServerClient._async_get_valid_metadata_values returned [] for any error (timeout, connection, HTTP, Egeria), the same answer as "Egeria holds none", so the template generator dropped the Valid Values line with nothing said. It now raises (and does not cache the failure); [] means Egeria answered and holds none. Callers of the base method: generate_md_cmd_templates._resolve_valid_values (its existing except now fires: "valid values not read (Egeria lookup failed: <Type>)"; a real empty answer still writes nothing) and generate_dr_help._extract_help_fields (its bare except: pass now writes the same marker, and says "no Egeria connection" for no client). ValidMetadataManager and the Dr.Egeria parser use ValidMetadataManager's own method (not this one) and are unchanged.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
The CLI registered 'deployed-servers' twice under deployed_data; the second silently
replaced the first and changed the default report spec. One registration remains
(default View Server). Test: registered once (AST), inventory of the other known
duplicate registrations, default spec.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…s may be None

N1: OMAG-REPOSITORY-HANDLER-400-010 means the element is not effective for this read, not that it was
deleted or became invisible; the pruning reason now says so. N2: karma_leaderboard's returns= declares
list[dict] | None (None when the find failed).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Egeria's ClassificationExplorerResource reads startingAtEnd; pyegeria sent startAtEnd, so a caller's
start_at_end was ignored. Renamed at the five places pyegeria builds it (4 in classification_explorer,
1 in _server_client). Tests: URL carries startingAtEnd, start_at_end=2 is sent, no source sends startAtEnd.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
class:<Confidentiality|Confidence|Criticality|Impact|Retention>.<level property> now shows the Egeria 6.4 enum
name (ConfidentialityLevel, ConfidenceLevel, CriticalityLevel, SeverityLevel, RetentionBasis; mapping read from
the laz checkout 8de9572c4d). The native value (DICT/JSON) keeps the integer. An integer outside the enum shows
'<n> (unknown level)'; a missing property stays blank.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
The compact 'Activity Status' attribute listed 13 of the 14 Egeria 6.4 ActivityStatus values (no FOR_INFO) in 12
families. Added through the Spec Editor API (after PAUSED, the enum's order), then refresh_specs --merge-reports
regenerated the snapshot, Python constants and the Actor Manager, Feedback and Projects seeds (Meeting, Note,
Review, ToDo columns). Second refresh run is a no-op. Offline-generated templates are not committed.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
add_default_upsert_attributes filled every command's Status attribute (and appended the default element_status one)
with property_name 'Status'. Egeria's valid metadata values are under the property 'status'
(ACTIVE, DELETED, INVALID, OTHER, UNKNOWN), so a connected template run found nothing. The default now says
'status'; this reaches the 95 status and 12 element_status attributes in the expanded specs. No compact
definition ever carried property_name 'Status' (a test guards that). Templates are regenerated by a connected
refresh, not here.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
main() kept the half-built client after a failed sign-in, so every lookup failed and the markers read 'lookup
failed'. It now sets client to None, as generate_md_cmd_templates does (PY-52 F1).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Regenerated with refresh_specs --merge-reports against laz Egeria 6.4
(read-only valid-metadata lookups as erinoverview) at fef04aa.
Only template valid-values lines change: 166 Status attributes now list
ACTIVE; DELETED; INVALID; OTHER; UNKNOWN (PY-68), and 10 Activity Status
lines gain FOR_INFO (PY-21). No "not read" markers; report specs, seed and
base_report_formats unchanged.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
(cherry picked from commit 718e377)
A live check on 6.4 (read-only) showed find("*") returns the same element type and top-level shape as the by-name
call for 33 pairs. 29 of them also have the same output_format and report_spec defaults in code; those helpers now
carry @routes_all_to(<find>): a None, empty or "*" name (after the helper's own default, with no body) runs the
find with the arguments the caller gave. The other 4 (terms, specification_property, projects, schema_types)
differ in report_spec/output_format default and keep the PY-63 refusal, as do the 11 the live check could not
prove (tags, skills, context_events, data_values, decisions, digital_products, metadata_repository_cohorts,
concept_model_elements: find empty; engine_actions: timed out; annotations: by-name matches another property;
digital_product_catalogs: find_digital_product_catalogs does not filter by type, PY-71), servers, solution ports,
governance action processes, every non-name key helper and the by-deployed-implementation-type family.
Tests use synthetic fixtures on the live key sets.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
gen_properties_class_fields.py now records each classification's supertype chain (the Properties classes above
it, short of the polymorphic root and the Java ClassificationBean base), and writes CLASSIFICATION_SUPERTYPES
into properties_class_fields.py (Egeria 90232870b2, the same source as the existing table, which is unchanged).
20 classifications have supertypes, e.g. PolicyEnforcementPoint under PolicyManagementPoint, Campaign and Task
under ProjectKind, EnforcementPoint under ExecutionPoint. A class:A source now takes a classification named A or
any subtype of A; a supertype does not fill a subtype column, and siblings do not match each other.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
22 routed helpers read the name from filter_string= in kwargs, so @routes_all_to saw name=None and ran
find('*', filter_string='Real'), which ignores it and returns everything. routes_all_to now resolves the name from
the first argument and then from filter_string, name, filter, search_string or keyword before deciding, and does
not pass those aliases on to the find. Tests: all 29 helpers called with filter_string=/name= 'RealName' never
reach the find. Release note: a routed '*' gets the find's page_size (100) unless one is passed.

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

1. find_elements_by_property_value takes qualified_name_prefix: the elements' qualifiedName must start with it,
   ANDed with the search string in the same complex query ('*' lists every element with the prefix).
2. UC-Catalog-Element specs no longer pin search_string to 'Unity Catalog Catalog::'; the generator emits
   qualified_name_prefix instead and the caller's search_string applies (the seed stage passes $search_string).
3. The six UC-*-Element specs drop the create-from-template inputs the found element does not have (uc_* names,
   host_url, port, network_address), which were always blank. A Namespace has no end to an Endpoint in
   RELATIONSHIP_FIELDS (the Endpoint ends are serverEndpoints, apiEndpoints, visibleEndpoints and endpoint on a
   Connection), so Network Address is dropped, not turned into an of: column.
Other UC specs were audited: Server, Schema, Table, Function and Volume already pass $search_string (technology
filter default only). Snapshot, constants and Asset Maker seed regenerated; a second refresh_specs run is a
no-op; offline templates not committed (report specs do not feed them).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
The find posted to collections/by-search-string with no type filter, so it listed every Collection (live:
find('*') returned 5 Agreements and no DigitalProductCatalog). It now defaults metadata_element_subtypes to
['DigitalProductCatalog'] (a caller's value still wins), as find_digital_products does for DigitalProduct. The find
and get_digital_product_catalogs_by_name passed _gen_output=None, so any output_format other than JSON raised
TypeError; both now use the collection output generator. Not added to the PY-64 routing (its defaults still differ
from the by-name helper's: that is a follow-up).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
The Java Properties chain missed Experiment, GlossaryProject and GovernanceProject, whose typedefs give them the
supertype ProjectKind but whose Properties classes extend ClassificationBeanProperties directly, so
class:ProjectKind on a GovernanceProject-classified element read as 'no project kind'. The generator now builds
CLASSIFICATION_SUPERTYPES from getClassificationDef's 2nd argument across the OpenMetadataTypesArchive*.java
(typeNames from OpenMetadataType.java); the Java chain is only a cross-check (it warns on a difference). Table
regenerated from 90232870b2: 23 entries (the 20 plus those 3); PROPERTIES_CLASS_FIELDS is unchanged. The header
names the sha in the earlier form. Tests: a typedef parse of synthetic archives, the ProjectKind subtypes, a
GovernanceProject filling class:ProjectKind, and (with EGERIA_6_4_SRC set) table == typedef parse of the real source.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson merged commit 761af03 into odpi:main Nov 23, 2026
7 checks passed
dwolfson added a commit that referenced this pull request Nov 23, 2026
pyegeria 6.3.3: #609 and #610. The 6.3.x release notes gain a 6.3.3
section; next.md gets four wording fixes from the A8 read-back (PY-60's
example values, PY-68's empty Status set, PY-70's entry still being
pruned, PY-69 noting Data Scope already sent the three fields).

uv.lock regenerated with current uv: the only change is the version.
Micro-tests on Python 3.13: 6057 run, 0 failed, 14 skipped.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
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