hasTable") || str_contains($setup, 'getSchemaBuilder();'), 'CloudAgentSetup does not guard complete or partial fresh-schema installs.'); $assert(str_contains($setup, 'assertSchemaMarker') && str_contains($setup, 'SCHEMA_FINGERPRINT'), 'CloudAgentSetup does not verify the fresh-schema marker.'); foreach ([ 'CloudSetup::', 'exportEngineConfig', 'cloud.sql', 'CloudEngineClient', 'CloudSecrets', 'cloud_instances', 'cloud_jobs', 'engine.hmac', ] as $legacy) { $assert(!str_contains($setup, $legacy), 'CloudAgentSetup must not depend on legacy setup material: ' . $legacy); } foreach ([ 'cloud_agents', 'cloud_agent_client_certificates', 'cloud_agent_operations', 'cloud_agent_instance_state', 'cloud_agent_artifacts', 'cloud_agent_schema_meta', ] as $table) { $assert(str_contains($setup, "'" . $table . "'") && str_contains($schema, 'CREATE TABLE ' . $table), 'Agent schema table is not guarded by the independent initializer: ' . $table); } $assert(str_contains($xcat, "'cloudAgentInit' => CloudAgentSetup::initialize()"), 'xcat has no independent cloudAgentInit entry.'); $assert(str_contains($xcat, 'php xcat cloudInit') && str_contains($xcat, 'php xcat cloudAgentInit'), 'The legacy cloudInit help entry or the new Agent help entry disappeared.'); echo "Independent Go Agent setup contract checks passed.\n";