Skip to content

feat(rt-norm-worker): add realtime normalization - #31

Open
manang wants to merge 3 commits into
mainfrom
rt-normalization
Open

manang wants to merge 3 commits into
mainfrom
rt-normalization

Conversation

@manang

@manang manang commented Nov 11, 2026

Copy link
Copy Markdown

Description

Please provide a meaningful description of what this change will do, or is for.
Bonus points for including links to related issues, other PRs, or technical
references.

Note that by not including a description, you are asking reviewers to do extra
work to understand the context of this change, which may lead to your PR taking
much longer to review, or result in it not being reviewed at all.

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

Signed-off-by: Angelo Mantellini <manangel@cisco.com>
@manang
manang requested a review from a team as a code owner November 11, 2026 06:13
@91pavan

91pavan commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

#33 needs to be merged first

# Description

Make span and event normalization converge on the same execution graph,
independent of arrival order.

Previously, child calls arriving before their agent could remain
disconnected.
MCP server-side tool spans also pointed to intermediate transport spans
rather
than directly to agents. Participating services could become extra MAS
nodes,
and arbitrary execution-graph nodes could be misclassified as Agents.

This change:
- Backfills ownership and capability-use relationships when agents
arrive.
- Traverses transport ancestry, including sessionless MCP server spans.
- Persists compact ancestry in private `_NormalizationTrace` records.
- Merges provisional lifecycle events with authoritative completed
spans.
- Retains pending handoffs, offered/discovered tools and A2A message
states.
- Uses the originating application for MAS identity.
- Declares graph nodes as Agents only when matched to observed agents.
- Corrects Agent/Tool endpoint typing when both share an id.
- Preserves earliest starts, latest completions and last-ending child
boundaries.
- Shares normalization logic between batch processing and the realtime
worker.

## Type of Change

- [x] Bugfix
- [x] New Feature
- [ ] Breaking Change
- [x] Refactor
- [ ] Documentation
- [ ] Other (please describe)

## Checklist

- [x] I have read the [contributing
guidelines](/ioc-project/scope/blob/main/CONTRIBUTING.md)
- [ ] 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

---------

Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com>
Preserve main's last-ending-child boundary selection together with realtime boundary replacement and container time reconciliation.

Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com>

This branch has not been deployed

No deployments
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.

2 participants