chore(platformctl): remove dead agent_access/_types.py (imported nowhere) #769

Closed
opened 2026-06-08 23:19:52 +02:00 by ollama · 0 comments
Collaborator

Spec sources (whitelist)

  • control-plane/platformctl/agent_access/_types.py — dead model code, imported nowhere
  • policies/agent-capabilities.yaml — loaded by NO production code
  • control-plane/platformctl/cli.py line ~366 — DEFAULT_POLICY with always-empty allowlist
  • state/strategy/autonomy-tiered-execution-design-2026-06-02.md — design doc claiming present-tense this IS the live Tier-0 allowlist

Extracted context

The autonomy capability catalog (#566) is loaded by NO code. The production path uses DEFAULT_POLICY with an always-empty allowlist. agent_access/_types.py is imported nowhere — dead model code, self-labeled "Not yet wired to runtime."

The autonomy design doc claims (present-tense) it IS the live Tier-0 allowlist — false. This misleads agents reading the doc.

This is separate from the architectural decision (#733 item A, operator-gated) about whether to wire or demote the whole capability catalog. This issue only removes the dead-code distraction.

Scope

  1. Delete control-plane/platformctl/agent_access/_types.py (imported nowhere)
  2. Add # Design-target / not-yet-shipped. See #733 for operator decision on wire vs demote. comment above DEFAULT_POLICY in cli.py:366
  3. Verify no imports break: rg 'agent_access._types' control-plane/ should return 0

Do NOT:

  • Delete policies/agent-capabilities.yaml (it's documentation, may be used later)
  • Modify autonomy-tiered-execution-design doc (already updated in #748)
  • Make any architectural decision (that's #733)

Acceptance criteria

  • agent_access/_types.py removed
  • 0 references to deleted module remain
  • DEFAULT_POLICY site has clear design-target comment
  • 715+ tests still green

Do NOT read

  • Full repo — only the 4 files listed above

Agent notes

  • Recommended executor: Gemini 3.5 Flash
  • Size: Trivial (~5 LOC + 1 file delete)
  • Review tier: tier/trivial
  • Audit ref: state/audit/deepseek-2026-06-08-multiperspective.md §E6
## Spec sources (whitelist) - `control-plane/platformctl/agent_access/_types.py` — dead model code, imported nowhere - `policies/agent-capabilities.yaml` — loaded by NO production code - `control-plane/platformctl/cli.py` line ~366 — `DEFAULT_POLICY` with always-empty allowlist - `state/strategy/autonomy-tiered-execution-design-2026-06-02.md` — design doc claiming present-tense this IS the live Tier-0 allowlist ## Extracted context The autonomy capability catalog (#566) is loaded by **NO code**. The production path uses `DEFAULT_POLICY` with an **always-empty allowlist**. `agent_access/_types.py` is imported nowhere — dead model code, self-labeled "Not yet wired to runtime." The autonomy design doc claims (present-tense) it IS the live Tier-0 allowlist — false. This misleads agents reading the doc. This is separate from the architectural decision (#733 item A, operator-gated) about whether to wire or demote the whole capability catalog. This issue only removes the dead-code distraction. ## Scope 1. Delete `control-plane/platformctl/agent_access/_types.py` (imported nowhere) 2. Add `# Design-target / not-yet-shipped. See #733 for operator decision on wire vs demote.` comment above `DEFAULT_POLICY` in `cli.py:366` 3. Verify no imports break: `rg 'agent_access._types' control-plane/` should return 0 Do NOT: - Delete `policies/agent-capabilities.yaml` (it's documentation, may be used later) - Modify `autonomy-tiered-execution-design` doc (already updated in #748) - Make any architectural decision (that's #733) ## Acceptance criteria - [ ] `agent_access/_types.py` removed - [ ] 0 references to deleted module remain - [ ] `DEFAULT_POLICY` site has clear design-target comment - [ ] 715+ tests still green ## Do NOT read - Full repo — only the 4 files listed above ## Agent notes - Recommended executor: Gemini 3.5 Flash - Size: Trivial (~5 LOC + 1 file delete) - Review tier: tier/trivial - Audit ref: state/audit/deepseek-2026-06-08-multiperspective.md §E6
Sign in to join this conversation.
No labels
W6d-automerge-calibration
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
automerge-candidate
class/security-sensitive
cutover-gate
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
iterating
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
large-impact
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
meta
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
needs-operator-decision
needs-triage
not-ready
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
operator-emotional
owner-attention
phase/02
phase/03
priority:p0
priority:p1
priority:p2
priority:p3
proposed
ready-for-agent
ready-for-operator
recovery
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
risk/exposure
risk/process
risk/product
risk/runtime
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
size/large
size/medium
size/small
size/tiny
size/unknown
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tier/full
tier/lite
tier/stacked
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
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.

Dependencies

No dependencies set.

Reference
pdurlej/platform#769
No description provided.