Skip to content

Eliminate all the remaining static mappings by wiring in all backend capabilities - #650

Merged
delthazor merged 6 commits into
mainfrom
fix-static-mapping2
Jul 23, 2026
Merged

Eliminate all the remaining static mappings by wiring in all backend capabilities#650
delthazor merged 6 commits into
mainfrom
fix-static-mapping2

Conversation

@delthazor

@delthazor delthazor commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description

Enriched workflow capabilities with backend-driven and OASF-based processing changes, and corresponding UI rewrite to consume the new signals and data instead of applying the previous static maps to each agent data.

Agent capabilities are now derived on the backend side from their OASF annotations, and then sent to the frontend through the already existing and now expanded WorkflowSummary.

Frontend then fetches that data and uses it for all the purposes the static maps were used previously.

Test coverage was extended to cover both the new code and previously uncovered existing code parts.

Issue Link

Fixes #569
Fixes #568

Type of Change

  • Bugfix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@delthazor delthazor self-assigned this Jun 18, 2026
@delthazor
delthazor requested a review from a team as a code owner June 18, 2026 11:54
@delthazor delthazor added bug Something isn't working enhancement New feature or request labels Jun 18, 2026
@delthazor
delthazor marked this pull request as draft June 22, 2026 09:04
@delthazor

Copy link
Copy Markdown
Contributor Author

I put this back to draft until the dependencies are cleared up.

@delthazor
delthazor force-pushed the fix-static-mapping branch from 6c3ba6d to 070170b Compare June 23, 2026 12:48
@delthazor
delthazor force-pushed the fix-static-mapping branch from 070170b to a74cd67 Compare July 8, 2026 09:07
Base automatically changed from fix-static-mapping to main July 10, 2026 13:45
delthazor and others added 4 commits July 16, 2026 12:06
Replace WORKFLOW_NAME_TO_PATTERN_SLUG with patternTypeFromSummary and
getApiUrlForChatTarget so catalog chat_api_target and capability flags
drive workflow pattern selection.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: pdobrei <pdobrei@cisco.com>
…ity CID maps

Apply backend-provided agent_directory_cid, identity_app_slug, badge/policy
overrides, and verification status from topology wire data. Route OASF and
identity API calls via chat_api_target instead of static slug/CID maps.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: pdobrei <pdobrei@cisco.com>
…p transport config fetch

Render transport node labels and GitHub links from backend message_transport
wire fields and remove the dynamic /transport/config polling path.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: pdobrei <pdobrei@cisco.com>
…ties

Previously implemented backend capabilities and features make it possible to remove statically mapped and other constant-defined behaviors from the UI and replace them with dynamically calculated results based on backend provided data. This restructure was applied wherever possible, and corresponding cleanup was done in a wide range of frontend files. Appropriate tests added, updated.

Signed-off-by: pdobrei <pdobrei@cisco.com>
@delthazor
delthazor force-pushed the fix-static-mapping2 branch from 536a673 to 66abe64 Compare July 16, 2026 12:15
@delthazor delthazor changed the title Eliminate all the remaining static mappings by backend enrichment Eliminate all the remaining static mappings by wiring in all backend capabilities Jul 16, 2026
@delthazor
delthazor marked this pull request as ready for review July 16, 2026 12:16
Some data files were misformated, and the corresponding loading mechanism hade minor race conditions leading to some graphs not always loading properly. Such discrepancies were resolved, and graph positioning was rewired so it appears correctly every time.

Signed-off-by: pdobrei <pdobrei@cisco.com>
pregnor
pregnor previously approved these changes Jul 20, 2026

@pregnor pregnor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM at a very brief glance, get @misi-bp 's approval on it before merging.

@misi-bp misi-bp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code is OK, a small type simplification can be dealt but it's also OK like this.
No console issues, the modals work fine, but

  • A2A Http / Directory details look like this:
Image
  • and the 'Buyer' issue is still there - IDK if it will be gone after rebase, let's see.

Some data types were casted as unknown due to some fields sometimes missing from the datatype. Such fields are now casted without the unknown cast wherever it can be omitted, and a special wrapper was added for the cases it can not be removed.

Signed-off-by: pdobrei <pdobrei@cisco.com>
@delthazor

Copy link
Copy Markdown
Contributor Author

The code is OK, a small type simplification can be dealt but it's also OK like this. No console issues, the modals work fine, but

  • A2A Http / Directory details look like this:

  • and the 'Buyer' issue is still there - IDK if it will be gone after rebase, let's see.

I cleaned up the type conversion issue.

The directory data you screenshotted seems fine to me, or at least I don't know how should it look like.
The demo page: https://lungo-ui-demo.outshift.io shows a very similar box, that is connected to another directory instance instead of the local one, but otherwise looks the same.

The buyer issue was not part of the scope of this PR, but it was addressed earlier, during the backend enrichment process. If it is still not appearing as it should be, please open a separate issue for that one. You can instantly assign it to me, I will look into it.

@misi-bp

misi-bp commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

The UI will be fixed separately (by myself).
The data to present in the Directory info modal is OK, to be decided later if it should be extended.
The Buyer issue will be dealt separately (out of scope), @jparello is going to revise it soon.

@misi-bp misi-bp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, the issues founf will be dealt separately.

@delthazor
delthazor merged commit 55bdbdd into main Jul 23, 2026
24 checks passed
@delthazor
delthazor deleted the fix-static-mapping2 branch July 23, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug]: Replace temporary static mappings with proper dynamic agent data Fix FE hardcoded workflow map

3 participants