Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions docs/design/output_generation_and_normalization.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,42 @@ Report specifications (`FormatSet`) can now define columns with a `detail_spec`
- **REPORT (Markdown)**: Renders a vertical section for each detail column, recursively calling the formatter.
- **LIST (Markdown Table)**: Displays a compact summary in the main table row and appends a linked detail section below the table.
- **DICT**: Includes nested lists of formatted dictionaries, matching the detail specification.
- **TABLE (CLI)**: Summarizes nested collections by joining names/display names of child elements.
- **TABLE (CLI)**: Draws the structured table: nested collections by the column's render intent, sub-tables as
separate tables after the main one.

### 3. Recursive Formatting Control: `include_preamble`
To prevent redundant report headers when the formatter calls itself recursively, `generate_output` now accepts an `include_preamble` boolean (default `True`). This flag is automatically disabled for recursive detail calls.

### 4. Smart Summarization
When rendering nested collections in horizontal formats (`LIST` and CLI `TABLE`), the system now attempts to join the `name` or `displayName` of child elements instead of just providing a count (e.g., "Team A, Team B" instead of "2 items").
When rendering nested collections in horizontal formats (`LIST` and CLI `TABLE`), the system draws them by the column's render intent (names joined, bullets, key–values) instead of just providing a count (e.g., "Team A, Team B" instead of "2 items"); past `max_items` it says "+N more".

### 5. Native values, rendered at the edge (6.2.37)

Values used to be stringified while an element was read (`populate_common_columns` joined relationships into
"a, b", classifications into "A, B" and zones into "a, b"), so every output type, DICT included, started from
strings. Since 6.2.37 extraction keeps a **native layer** beside each column's text:

- related elements as `{guid, qualifiedName, displayName, type}` (`related_ref`);
- classifications as `{name, properties?}`, zones as a list;
- property values as they come (lists stay lists).

Each column dict carries the native value under `native` and the text under `value`. The text is derived from the
native value by one function, `_legacy_text` (qualifiedName first, or the display name when the column sets
`label: display_name`), so the default outputs are byte-identical to what they were.

Renderers choose which to read:

- the default DICT/TABLE rows and the text outputs read `value` (the flat text);
- `dict_shape="native"` DICT rows and the structured TABLE (`table_shape="structured"`,
`pyegeria/view/structured_table.py`) read `native`;
- LIST cells and the CLI's Rich table draw lists, maps and related elements from `native` by the column's render
intent (`markdown_cell_from_native`, `run_report.render_structured_table`).

The shape is carried into a find method's own generator by a context variable (`dict_shape_for_call`), so no OMVS
signature changed. What each list request sent (page size, graph depth, relationship filters) is recorded per call
in another context variable (`recording_list_requests`), never on the shared client: the executor reads it to say
"more may exist" when a page was full, and to tell an empty relationship that was read ("none") from one that was
not requested ("not read"). See "Complex values" in `docs/output-formats-and-report-specs.md`.

## Unified Execution Pipeline

Expand Down
2 changes: 1 addition & 1 deletion docs/dr_egeria_manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ Dr.Egeria organizes its commands into "families," each corresponding to a specif
- `Create Report Spec`: a `ReportSpec` (a `ReportType` collection) with its `Microflow` (the stage list as JSON), `Target Type Name`, `Aliases`, `Output Types` and `Include Preamble`.
- `Create Dashboard`: a `Dashboard` asset (a `DataSet`, sibling of `Report`) with `Aliases`, `Refresh Time Interval` (minutes) and `Layout Style`. Its sheets and placements are `Create Display Data Container` / `Create Display Data Field` (Schema Maker). The local `Create Dashboard Sheet` records above are unchanged.
- `Link Report Type Instance` (ReportType → Report) and `Link Report Run Of` (ResultsSet → Report, with `Result State`, `Result State Reason`, `Result Location`); each also accepts `Detach`/`Unlink`/`Remove`.
- `Create Report` also writes Egeria's typed `outputFormat` and `reportParameters` (JSON). `Output Format` accepts every format in pyegeria's report-spec registry plus `KPI`.
- `Create Report` also writes Egeria's typed `outputFormat` and `reportParameters` (JSON). `Output Format` accepts every format in pyegeria's report-spec registry plus `KPI`, except `DOCUMENT`: a document report runs through `run_report --output-format DOCUMENT` or `exec_report_spec` until the Portal and Egeria Advisor can show one.
- **Asset Maker** (added 2026-09-11): Instantiate Open Metadata catalog templates via `pyegeria/omvs/automated_curation.py`'s create-from-template surface — no update path, since the underlying OMVS methods are create-only. The generic, Advanced-only `Create Element` (raw `typeName`/`templateGUID`/`placeholderPropertyValues`) moved to the Automation family on 2026-10-02; twelve Basic-level, type-specific wrappers remain here for the common cases: `Create Secrets Store Element`, `Create Kafka Server Element`, `Create CSV Data File Element`, `Create Postgres Server Element`, `Create Postgres Database Element`, `Create Folder Element`, `Create UC Server Element`, `Create UC Catalog Element`, `Create UC Schema Element`, `Create UC Table Element`, `Create UC Function Element`, `Create UC Volume Element`. Live-verified: `Create Schema Type` (see below) and `Create CSV Data File Element` round-tripped against a running server; `Create Kafka Server Element` currently fails on a server with no "Apache Kafka Server" catalog template registered — a pre-existing gap in that server's template catalog, not a defect in this command.
- **Automation** (added 2026-10-02): Commands that set Egeria's governance engines running, via `pyegeria/omvs/automated_curation.py` (processors in `md_processing/v2/automation.py`).
- `Initiate Governance Action Process` / `Initiate Governance Action Type`: run a process or a single action type. `Action Targets` takes one `action target name: element` pair per line; `Request Parameters` takes `name: value` pairs.
Expand Down
Loading
Loading