UAT: agents project context inspect does not return assembled context fragments with UKO URIs — uses stub simulation instead of live ACMS pipeline #5591

Open
opened 2026-04-09 07:42:06 +00:00 by HAL9000 · 1 comment
Owner

Bug Report

Feature Area: Context Assembly Pipeline — agents project context inspect command

Severity: Critical (milestone-blocking — v3.4.0 deliverable #4: "Returns assembled context fragments with UKO URIs")

What Was Tested

Code-level analysis of src/cleveragents/cli/commands/project_context.py context_inspect command against the specification (spec §4109–§4325).

Expected Behavior (from spec §4109–§4325)

agents project context inspect should:

  1. Run the ACMS context assembly pipeline for the project
  2. Return assembled context fragments with UKO URIs (e.g., uko-py:module/src.auth)
  3. Show the UKO graph structure (2-hop neighborhood when --focus is specified)
  4. Show active strategies with quality scores and budget percentages
  5. Show the most recent fusion result

The spec example shows:

╭─ UKO Graph (2-hop neighborhood) ─────────────────────────────────╮
│ uko-py:module/src.auth → uko-py:class/src.auth.AuthService       │
│ uko-py:class/src.auth.AuthService → uko-py:func/src.auth.login   │
╰──────────────────────────────────────────────────────────────────╯
╭─ Strategies ──────────────────────────────────────────────────────╮
│ breadth-depth-navigator  quality=0.85  budget=45%  4 fragments   │
│ semantic-embedding       quality=0.60  budget=35%  6 fragments   │
│ simple-keyword           quality=0.30  budget=20%  3 fragments   │
╰──────────────────────────────────────────────────────────────────╯

Actual Behavior (from code)

The context_inspect command (line 918 in project_context.py) queries the ContextTierService for existing fragments but does not invoke the ContextAssemblyPipeline. It shows:

  • Tier metrics (hot/warm/cold fragment counts)
  • Tier budget limits
  • Project-scoped fragment counts by tier
  • Actor visibility counts
  • Phase analysis (from analyze_phase_summaries)

Critically missing:

  1. No UKO graph traversal — the --focus UKO_URI option is accepted but only used to filter existing fragments by resource_id, not to traverse the UKO graph
  2. No strategy execution — strategies are not run; no quality scores or budget percentages shown
  3. No live context assembly — the command reads cached tier fragments, not freshly assembled context
  4. No UKO graph structure display — no graph visualization of node relationships

The A2aLocalFacade also has a TODO comment (line 471 in a2a/facade.py): # TODO: Wire to ACMS ContextAssemblyPipeline once available.

Code Location

  • src/cleveragents/cli/commands/project_context.py lines 918–1163 (context_inspect)
  • src/cleveragents/a2a/facade.py line 471 (TODO comment)
  • src/cleveragents/application/services/acms_pipeline.pyContextAssemblyPipeline exists but is not wired to context_inspect

Impact

  • v3.4.0 deliverable #4 ("Returns assembled context fragments with UKO URIs") is not met
  • The --focus UKO_URI option does not perform UKO graph traversal
  • Strategy quality scores and budget percentages are not shown
  • The command is useful for tier metrics but not for debugging context quality issues as the spec intends

Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: uat-tester

## Bug Report **Feature Area**: Context Assembly Pipeline — `agents project context inspect` command **Severity**: Critical (milestone-blocking — v3.4.0 deliverable #4: "Returns assembled context fragments with UKO URIs") ### What Was Tested Code-level analysis of `src/cleveragents/cli/commands/project_context.py` `context_inspect` command against the specification (spec §4109–§4325). ### Expected Behavior (from spec §4109–§4325) `agents project context inspect` should: 1. Run the ACMS context assembly pipeline for the project 2. Return assembled context fragments with UKO URIs (e.g., `uko-py:module/src.auth`) 3. Show the UKO graph structure (2-hop neighborhood when `--focus` is specified) 4. Show active strategies with quality scores and budget percentages 5. Show the most recent fusion result The spec example shows: ``` ╭─ UKO Graph (2-hop neighborhood) ─────────────────────────────────╮ │ uko-py:module/src.auth → uko-py:class/src.auth.AuthService │ │ uko-py:class/src.auth.AuthService → uko-py:func/src.auth.login │ ╰──────────────────────────────────────────────────────────────────╯ ╭─ Strategies ──────────────────────────────────────────────────────╮ │ breadth-depth-navigator quality=0.85 budget=45% 4 fragments │ │ semantic-embedding quality=0.60 budget=35% 6 fragments │ │ simple-keyword quality=0.30 budget=20% 3 fragments │ ╰──────────────────────────────────────────────────────────────────╯ ``` ### Actual Behavior (from code) The `context_inspect` command (line 918 in `project_context.py`) queries the `ContextTierService` for existing fragments but does **not** invoke the `ContextAssemblyPipeline`. It shows: - Tier metrics (hot/warm/cold fragment counts) - Tier budget limits - Project-scoped fragment counts by tier - Actor visibility counts - Phase analysis (from `analyze_phase_summaries`) Critically missing: 1. **No UKO graph traversal** — the `--focus UKO_URI` option is accepted but only used to filter existing fragments by `resource_id`, not to traverse the UKO graph 2. **No strategy execution** — strategies are not run; no quality scores or budget percentages shown 3. **No live context assembly** — the command reads cached tier fragments, not freshly assembled context 4. **No UKO graph structure display** — no graph visualization of node relationships The `A2aLocalFacade` also has a TODO comment (line 471 in `a2a/facade.py`): `# TODO: Wire to ACMS ContextAssemblyPipeline once available.` ### Code Location - `src/cleveragents/cli/commands/project_context.py` lines 918–1163 (`context_inspect`) - `src/cleveragents/a2a/facade.py` line 471 (TODO comment) - `src/cleveragents/application/services/acms_pipeline.py` — `ContextAssemblyPipeline` exists but is not wired to `context_inspect` ### Impact - v3.4.0 deliverable #4 ("Returns assembled context fragments with UKO URIs") is not met - The `--focus UKO_URI` option does not perform UKO graph traversal - Strategy quality scores and budget percentages are not shown - The command is useful for tier metrics but not for debugging context quality issues as the spec intends --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.2.0 milestone 2026-04-09 07:45:12 +00:00
Author
Owner

Label compliance fix applied:

  • Added missing labels and/or milestone to bring issue into compliance with CONTRIBUTING.md

Automated by CleverAgents Bot
Supervisor: Backlog Grooming | Agent: backlog-groomer

Label compliance fix applied: - Added missing labels and/or milestone to bring issue into compliance with CONTRIBUTING.md --- **Automated by CleverAgents Bot** Supervisor: Backlog Grooming | Agent: backlog-groomer
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core#5591
No description provided.