TDD: Registry reference resolution builds /agt/… instead of /agent/…, failing with HTTP 404 on compliant registries #132
Labels
No labels
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#131 Registry reference resolution builds /agt/… instead of /agent/…, failing with HTTP 404 on compliant registries
cleveragents/cleveractors-core
#133 test(registry): add failing regression for prefix-vs-type-name resolve path (#131)
cleveragents/cleveractors-core
Reference
cleveragents/cleveractors-core#132
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Metadata
test(registry): add failing regression for prefix-vs-type-name resolve path (#131)tdd/m1-registry-resolve-full-type-namesBackground and context
Companion TDD issue for #131 ("Registry reference resolution builds /agt/… instead of /agent/…, failing with HTTP 404 on compliant registries"). Per this project's mandatory Bug Fix TDD workflow, a failing Behave scenario proving the bug exists must be written and merged to
masterbefore any fix is implemented on abugfix/branch for #131.The defect:
_RegistryReferenceStrategyinsrc/cleveractors/registry/reference_resolver.pyapplies_TEMPLATE_TYPE_TO_PACKAGE_TYPE(TemplateType→Package-ID prefix) to the type passed on the wire, soRegistryClient.resolve_package(package_type="agent")requestsGET /agt/{ns}/{name}instead ofGET /agent/{ns}/{name}. A compliant registry (which routes full type names only, perdocs/actor-registry-standard.md§8.2.2/§8.4.2) answers404.Current behavior
No Behave scenario asserts the request path that
resolve_packageconstructs. In particular, nothing proves that apackage_type="agent"reference resolves to the/agent/...route — so the prefix (agt,grh,skl) leaking into the URL segment goes undetected.Expected behavior
A Behave scenario exists, tagged
@tdd_issue @tdd_issue_131 @tdd_expected_fail, that:RegistryClient.resolve_package(package_type="agent", namespace=..., name=...)(or the fullPackageContentResolver/ agent-reference path) against a mock transport that captures the request URL./agent/{ns}/{name}(full type name), not/agt/{ns}/{name}./agt/...is requested) — the scenario passes in CI only because the@tdd_expected_failtag inverts the result, per this project's TDD tag rules.AssertionErroronly — neverValueError,RuntimeError, or any other exception type — so the TDD CI hook inverts it correctly.Acceptance criteria
@tdd_issue,@tdd_issue_131,@tdd_expected_fail.AssertionErroronly.@tdd_expected_failremoved locally fails against currentmaster, confirming the bug is genuinely reproduced.nox -s unit_testsis green (CI passes via the@tdd_expected_failinversion).nox -s coverage_report).mastervia its own PR before work begins on #131's fix.Supporting information
cleveractors.registry.reference_resolver(_RegistryReferenceStrategy,_TEMPLATE_TYPE_TO_PACKAGE_TYPE),cleveractors.registry.client.RegistryClient.resolve_package, mock transport used by existing Behave registry client coverage (features/registry_http_client.feature/features/steps/registry_http_client_steps.py).Subtasks
features/registry_http_client.feature, or its closest registry-resolution equivalent) that captures the request URL forresolve_package(package_type="agent", ...)and asserts it is/agent/{ns}/{name}.features/steps/*_steps.pyfile where one already covers the registry HTTP client.@tdd_issue @tdd_issue_131 @tdd_expected_fail.@tdd_expected_failis removed locally (proving the bug), and passes CI with the tag in place.nox -s coverage_report.nox(all default sessions), fix any errors.Definition of Done
This issue is complete when:
master, reviewed, and merged.