executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
distributed-tuningRoutes KerasTuner's chief/worker Oracle coordination over gRPC using the KERASTUNER_ORACLE_IP, KERASTUNER_ORACLE_PORT, and KERASTUNER_TUNER_ID environment contract.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a KerasTuner search must coordinate multiple tuner
processes through a chief Oracle, or when a KERASTUNER_ORACLE_*/
KERASTUNER_TUNER_ID deployment is failing.
Do not use this route for a local single-process search, CloudOracle-managed
distribution, or general HyperParameters/tuner selection. In particular,
the Tuner public contract supports only single-worker distribution
strategies; Oracle-level parallel tuning over its chief/worker RPC protocol is
not a promise that a multi-worker distribution_strategy is supported.
python sub-skills/distributed-tuning/scripts/check_distributed_env.py before importing or constructing a
distributed tuner. It only inspects environment variables; it never starts
a server or opens a socket.Set all of these together on every participating process:
KERASTUNER_ORACLE_IP: the address used both to bind the chief service and
to reach it from workers.KERASTUNER_ORACLE_PORT: the same available TCP port for the chief service.KERASTUNER_TUNER_ID: a deliberate identifier, unique at the independent
tuner/group coordination scope.An ID containing the case-sensitive substring chief is treated as the chief
side. The chief starts OracleServicer; other IDs construct OracleClient and
proxy Oracle calls. A partial environment is invalid: KerasTuner raises
RuntimeError when the IP is set without the port or tuner ID. The bundled
checker is intentionally stricter and treats empty/whitespace values as
missing, including port/ID values supplied without an IP; do not bypass this
preflight because runtime role detection is key-presence based.
Use a reachable non-loopback address for different hosts, an open and reserved
port, the same directory/project_name on a shared writable filesystem, and
an environment where the grpcio runtime dependency is installed. The RPC
transport is insecure gRPC, so keep the address on a trusted network or behind
an appropriate network control; this protocol does not provide TLS.
search() path saves the Oracle and starts the
OracleServicer server, which otherwise would not block the process.wait_for_ready=True for up to 60 minutes per
RPC; this tolerates startup races but does not repair a wrong address,
blocked port, or an absent chief.overwrite=True.STOPPED and exit their search loop; do not kill the
chief before ongoing trials and registered tuner IDs have drained. The
chief's server wait loop exits after its stop signal and drain condition.The test helper keras_tuner.test_utils.mock_distribute is evidence for the
environment protocol only. It patches os.environ, creates threads, and
picks a port for tests; it is not a production launcher or runtime dependency.
A useful check must show: an entirely absent environment remains valid ordinary local mode, no partial environment is accepted as ordinary local mode, and a complete set is accepted without a socket or server; a chief ID is not confused with a worker ID; and all participants refer to one reachable endpoint and one shared project directory. Do not use the mock test helper as proof that a real cross-host network or filesystem is configured.