mirror of
https://github.com/mcloh/Enterprise-MCP-Service-Bus.git
synced 2026-11-06 06:24:12 +00:00
M3 implementada e backlog atualizado
This commit is contained in:
@@ -11,11 +11,13 @@ from pathlib import Path
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from emcp_bus.agent_runtime.identity_resolver import IdentityResolverConfig
|
||||
from emcp_bus.approval.models import ApprovalRequest
|
||||
from emcp_bus.downstream.models import BackendConfig
|
||||
from emcp_bus.entitlement.models import ClientProfile
|
||||
from emcp_bus.identity.models import ClientRegistration
|
||||
from emcp_bus.pdp.models import PDPDecision
|
||||
from emcp_bus.profile_intelligence.models import ProfileView
|
||||
from emcp_bus.registry.models import CapabilityManifest
|
||||
|
||||
REPO_ROOT = Path(__file__).resolve().parents[1]
|
||||
@@ -28,6 +30,8 @@ MODELS: dict[str, type[BaseModel]] = {
|
||||
"backend-credentials": BackendConfig,
|
||||
"approval-request": ApprovalRequest,
|
||||
"pdp-decision": PDPDecision,
|
||||
"profile-view": ProfileView,
|
||||
"identity-resolver": IdentityResolverConfig,
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +11,8 @@ from pathlib import Path
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from emcp_bus.common.config import ConfigError, load_yaml_models
|
||||
from emcp_bus.agent_runtime.identity_resolver import IdentityResolverConfig
|
||||
from emcp_bus.common.config import ConfigError, load_yaml_model, load_yaml_models
|
||||
from emcp_bus.downstream.models import BackendConfig
|
||||
from emcp_bus.entitlement.models import ClientProfile
|
||||
from emcp_bus.identity.models import ClientRegistration
|
||||
@@ -45,6 +46,16 @@ def main() -> int:
|
||||
if model is ClientRegistration:
|
||||
client_registrations = items # type: ignore[assignment]
|
||||
|
||||
# EP-12-T04: a single named file, not a directory of many.
|
||||
identity_yaml = CONFIG_DIR / "orchestrator" / "identity.yaml"
|
||||
try:
|
||||
load_yaml_model(identity_yaml, IdentityResolverConfig)
|
||||
except ConfigError as exc:
|
||||
print(f"FAIL orchestrator/identity.yaml: {exc}")
|
||||
had_errors = True
|
||||
else:
|
||||
print("OK orchestrator/identity.yaml: validated against IdentityResolverConfig")
|
||||
|
||||
# EP-01-T05: two agents sharing an MCP Client identity must resolve to
|
||||
# the same profile (README.md §18/§35) -- a config-shape check schema
|
||||
# validation alone cannot express, since it spans multiple files.
|
||||
|
||||
Reference in New Issue
Block a user