Retry the key gate's describe and track every function form

Closes #53 (closed)

What changes

  • prov_node_json (providers/gce.sh) reads the node's describe up to 3 times, with a 2 s then 4 s backoff. prov_node_ssh_key_present returns 2 when the node cannot be read, and 1 when it can and the key is absent.
  • lab_key_gate and migrate_lab_ssh_key (ssh-key.sh) treat an unreadable node as "could not read from the compute API after 3 tries". That path never reaches the owner-label refusal and never writes metadata. It works under set -e: the status is read with && ... || present=$?, and fail exits.
  • provider-gate.sh resets its function tracking at name(), name () {, function name {, function name() { and indented definitions, and treats a quoted "prov_ssh" or 'prov_scp' as a call.

No diagram: this is a bounded retry around one read.

Evidence

Each new check is red with its fix reverted and green with it applied. The engine checks ran against the three provider files at origin/main, and the gate probes against the old awk.

Check Fix reverted Fix applied
describe fails twice then succeeds, ssh proceeds after three describes red green
describe always fails: read error, no add-metadata, no gcloud ssh or scp red green
gate probes for function x {, function x() {, x () {, indented x() {, quoted "prov_ssh" and 'prov_scp' red (12 checks) green

Gates run locally: just word-budget (40489, ceiling unchanged), just vale-check, just lint, just provider-gate, just commit-trailers. No live arm: this is stub-level behaviour of a provider read.

Merge request reports

Loading
Loading