Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(gfs): declare retirement ledger runtime access

Alfredo Lopezac4ec47f63d9
diff --git a/deploy/scripts/control-api-runtime-access-profiles.tsv b/deploy/scripts/control-api-runtime-access-profiles.tsv
index d9cbe399f..361f905bc 100644
--- a/deploy/scripts/control-api-runtime-access-profiles.tsv
+++ b/deploy/scripts/control-api-runtime-access-profiles.tsv
@@ -11,6 +11,7 @@ control_admin_users legacy_dml
gfs_audit legacy_dml
gfs_blob_manifests none
gfs_desktop_operator_links link_lifecycle
+desktop_user_retirement_operations link_lifecycle
gfs_grants legacy_dml
gfs_resources legacy_dml
gfs_shares legacy_dml
diff --git a/scripts/tests/test-control-api-runtime-access-contract.sh b/scripts/tests/test-control-api-runtime-access-contract.sh
index 7f526bf0b..41f3dd4b4 100755
--- a/scripts/tests/test-control-api-runtime-access-contract.sh
+++ b/scripts/tests/test-control-api-runtime-access-contract.sh
@@ -9,10 +9,11 @@ relation_count="$(awk -F '\t' '!/^[[:space:]]*(#|$)/ { count++ } END { print cou
duplicate_count="$(awk -F '\t' '!/^[[:space:]]*(#|$)/ { seen[$1]++ } END { for (name in seen) if (seen[name] > 1) count++ } END { print count + 0 }' "$PROFILE_FILE")"
invalid_count="$(awk -F '\t' '!/^[[:space:]]*(#|$)/ && (NF != 2 || $1 !~ /^[a-z][a-z0-9_]*$/ || $2 !~ /^(legacy_dml|upsert|append|read|link_lifecycle|none)$/) { count++ } END { print count + 0 }' "$PROFILE_FILE")"
-[[ "$relation_count" == "81" ]]
+[[ "$relation_count" == "82" ]]
[[ "$duplicate_count" == "0" ]]
[[ "$invalid_count" == "0" ]]
grep -qx $'gfs_desktop_operator_links\tlink_lifecycle' "$PROFILE_FILE"
+grep -qx $'desktop_user_retirement_operations\tlink_lifecycle' "$PROFILE_FILE"
grep -Fq '$2 !~ /^(legacy_dml|upsert|append|read|link_lifecycle|none)$/' "$MIGRATION_SCRIPT"
grep -Fq "('INSERT', expected.access_profile IN ('legacy_dml', 'upsert', 'append', 'link_lifecycle'))" "$MIGRATION_SCRIPT"
diff --git a/scripts/tests/test-gcp-scripts.sh b/scripts/tests/test-gcp-scripts.sh
index 66cd71f20..ce2c2d28f 100755
--- a/scripts/tests/test-gcp-scripts.sh
+++ b/scripts/tests/test-gcp-scripts.sh
@@ -1466,13 +1466,14 @@ assert_control_api_runtime_access_contract_is_exact() {
sequence_duplicate_count="$(awk -F '\t' '!/^[[:space:]]*(#|$)/ { seen[$1]++ } END { for (name in seen) if (seen[name] > 1) count++ } END { print count + 0 }' "$sequence_profile_file")"
sequence_invalid_count="$(awk -F '\t' '!/^[[:space:]]*(#|$)/ && (NF != 2 || $1 !~ /^[a-z][a-z0-9_]*$/ || $2 !~ /^(legacy_rw|consume)$/) { count++ } END { print count + 0 }' "$sequence_profile_file")"
- if [[ "$relation_count" == "81" && "$duplicate_count" == "0" && "$invalid_count" == "0" ]] && \
+ if [[ "$relation_count" == "82" && "$duplicate_count" == "0" && "$invalid_count" == "0" ]] && \
grep -qx $'llm_allowed_models\tlegacy_dml' "$profile_file" && \
grep -qx $'member_registration_credentials\tupsert' "$profile_file" && \
grep -qx $'llm_allowed_models_audit\tappend' "$profile_file" && \
grep -qx $'llm_catalog_sync_runs\tappend' "$profile_file" && \
grep -qx $'plugin_workload_sdk_spend_outcomes\tappend' "$profile_file" && \
grep -qx $'gfs_desktop_operator_links\tlink_lifecycle' "$profile_file" && \
+ grep -qx $'desktop_user_retirement_operations\tlink_lifecycle' "$profile_file" && \
[[ "$sequence_count" == "7" && "$sequence_duplicate_count" == "0" && "$sequence_invalid_count" == "0" ]] && \
grep -qx $'member_registration_credentials_id_seq\tconsume' "$sequence_profile_file" && \
[[ "$migration_script" != *'RUNTIME_ACCESS_PROFILES_FILE:-'* ]] && \