Skip to content

Capture residual AgentRegistryGrant resolver CLI and validation wiring from PR #30 #51

@mdheller

Description

@mdheller

Purpose

Capture the residual integration wiring from #30 after the safe core AgentRegistryGrant resolver payload was replayed and merged through #50.

#50 landed:

  • src/agent_machine/agent_registry.py
  • scripts/resolve-agent-registry-grant.py
  • scripts/validate-agent-registry.py
  • docs/architecture/agent-registry-grant-resolution.md

Merged replacement commit: a13674a38083584ed764bfb2d469d326ce4f09b3

Residual content from #30 still to capture

Makefile wiring

  • Add validate-agent-registry to .PHONY.
  • Add GRANT_DIR := examples.
  • Wire validate-agent-registry into top-level validate.
  • Add validate-agent-registry target that runs:
    • scripts/validate-agent-registry.py
    • scripts/resolve-agent-registry-grant.py smoke
    • Python CLI registry resolve smoke
    • activation evaluation using --grant-dir / --grant-id

Bootstrap CLI

  • Add agent-machine registry resolve ... usage text.
  • Delegate registry command to Python CLI.

Python CLI

  • Add registry resolve command.
  • Add local grant-store resolver args.
  • Allow activation evaluation to resolve grants from --grant-dir / --grant-file / --grant-id.
  • Preserve backward-compatible positional behavior.

Docs / package validation

  • Add docs index pointer to AgentRegistryGrant resolution doc.
  • Update package validator to import agent_machine.agent_registry and assert its default issued-at constant.

Why this was not landed in #50

The original branch was 15 commits behind current main. Carrying stale blobs for Makefile, bin/agent-machine, docs/index.md, scripts/validate-package.py, and src/agent_machine/cli.py would have overwritten newer mainline RuntimeInstallReceipt and WorkspaceOperationContract work. #50 therefore landed only the byte-identical new core files and left integration wiring to a small current-main patch.

Acceptance criteria

  • CLI exposes registry resolve through Python CLI and bootstrap CLI.
  • activate evaluate can resolve grant input from local grant files/directories.
  • Makefile has and runs validate-agent-registry in top-level make validate.
  • docs/index.md links the grant-resolution architecture doc.
  • package validation imports and checks agent_machine.agent_registry.
  • make validate passes.
  • Original PR Add local AgentRegistryGrant resolver #30 can be closed after this issue is resolved or explicitly linked as complete capture.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions