agentskills.codes
CO

control-plane

Control-Plane subsystem in TTA.dev: get_task, get_run, put_run and related code. 88 symbols | 15 files | Cohesion: 81%

Install

mkdir -p .claude/skills/control-plane && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16468" && unzip -o skill.zip -d .claude/skills/control-plane && rm skill.zip

Installs to .claude/skills/control-plane

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Control-Plane subsystem in TTA.dev: get_task, get_run, put_run and related code. 88 symbols | 15 files | Cohesion: 81%
118 charsno explicit “when” trigger

About this skill

Control_plane

88 symbols | 15 files | Cohesion: 81%

When to Use

  • Working on control-plane-related functionality in TTA.dev
  • Modifying get_task, get_run
  • Navigating ttadev/control_plane/store.py, ttadev/control_plane/workflow_service.py

Key Files

FileSymbols
ttadev/control_plane/store.py_read_map, _write_map, _lock_for, get_task, get_run (+10)
ttadev/control_plane/workflow_service.py_emit_control_plane_span, _now_iso, _make_workflow_gate_id, _get_workflow_step, _build_workflow_gate_decision_record (+6)
ttadev/control_plane/task_service.py_now, _now_iso, _current_agent_id, _find_gate, _ensure_gate_decider_allowed (+6)
ttadev/control_plane/lease_service.py_now, _now_iso, _validate_lock_owner, _acquire_lock, _expire_lease (+6)
ttadev/control_plane/run_service.py_now, _now_iso, get_run, get_lease_for_run, list_active_ownership (+5)
ttadev/control_plane/models.pyto_dict, to_dict, from_dict, to_dict, from_dict (+4)
ttadev/control_plane/service.pylist_runs, get_run, get_lease_for_run, heartbeat_run, acquire_file_lock (+2)
tests/unit/test_l0_store.py_now, test_task_roundtrip, test_run_roundtrip, test_lease_roundtrip_and_delete
ttadev/cli/control.py_handle_run_command, _handle_lock_command
tests/unit/test_control_plane_trace_attribution.pytest_claim_task_stamps_trace_id_on_run, test_workflow_step_round_trips_trace_fields

Entry Points

Start here when exploring this area:

  • get_task (Function) — ttadev/control_plane/store.py:51
  • get_run (Function) — ttadev/control_plane/store.py:66
  • put_run (Function) — ttadev/control_plane/store.py:71
  • list_leases (Function) — ttadev/control_plane/store.py:77
  • get_lease_for_task (Function) — ttadev/control_plane/store.py:81

Key Symbols

SymbolTypeFileLine
get_taskFunctionttadev/control_plane/store.py51
get_runFunctionttadev/control_plane/store.py66
put_runFunctionttadev/control_plane/store.py71
list_leasesFunctionttadev/control_plane/store.py77
get_lease_for_taskFunctionttadev/control_plane/store.py81
put_leaseFunctionttadev/control_plane/store.py92
delete_leaseFunctionttadev/control_plane/store.py98
put_lockFunctionttadev/control_plane/store.py123
delete_lockFunctionttadev/control_plane/store.py129
to_dictFunctionttadev/control_plane/models.py481
to_dictFunctionttadev/control_plane/models.py528
from_dictFunctionttadev/control_plane/models.py539
to_dictFunctionttadev/control_plane/models.py563
test_task_roundtripFunctiontests/unit/test_l0_store.py12
test_run_roundtripFunctiontests/unit/test_l0_store.py31
test_lease_roundtrip_and_deleteFunctiontests/unit/test_l0_store.py50
get_runFunctionttadev/control_plane/run_service.py160
get_lease_for_runFunctionttadev/control_plane/run_service.py167
list_active_ownershipFunctionttadev/control_plane/run_service.py171
claim_taskFunctionttadev/control_plane/run_service.py213

Execution Flows

FlowTypeSteps
Main → Get_integrationcross_community5
Main → Get_integrationcross_community5
Main → Get_integrationcross_community4
Acquire_workspace_lock → Release_locks_for_runintra_community4
Acquire_file_lock → Release_locks_for_runintra_community4
Finalize_tracked_workflow → _nowintra_community4
Decide_gate → _get_active_sessionintra_community3
Decide_gate → _gate_role_matchesintra_community3
Control_claim_task → To_dictcross_community3
Control_get_run → To_dictcross_community3

Connected Areas

AreaConnections
Unit17 calls
Cli2 calls

How to Explore

  1. gitnexus_context({name: "get_task"}) — see callers and callees
  2. gitnexus_query({query: "control_plane"}) — find related execution flows
  3. Read key files listed above for implementation details

Search skills

Search the agent skills registry