mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-03 13:11:05 +00:00
An operator company approval froze the company's whole inventory into task_scope_egress: every company_scope domain and IP/CIDR row plus the root_domain, domain and ip of every asset attributed to the company. The agent writes both (insert_assets, add_company_scope), so the next operator selection or re-approval promoted worker-chosen hosts into the sandbox egress allowlist for the life of the task. The snapshot now reads only company_scope domain and IP/CIDR rules with approved_by_operator = TRUE; the asset branches are gone. Migration 0025 adds the column and backfills existing rows as approved. The flag is an explicit parameter of insertScopeRulesTx and the CompanyStore scope writers: the operator company API passes true, add_company_scope and the ScopeSentry sync pass false. An operator write of a rule the agent stored first approves the existing row. AddOperatorScope outside a transaction now commits the task_scope row and the egress snapshot together. Existing task_scope_egress rows are not purged. |
||
|---|---|---|
| .. | ||
| 0001_llm_records.sql | ||
| 0002_llm_usage.sql | ||
| 0003_task_scope_icp_index.sql | ||
| 0004_llm_usage_ts_index.sql | ||
| 0005_traffic_rewrite_rules.sql | ||
| 0006_activity_outbox.sql | ||
| 0007_finding_report_state.sql | ||
| 0008_traffic_evidence_rewrite_flag.sql | ||
| 0009_llm_context.sql | ||
| 0010_dashboard_usage_indexes.sql | ||
| 0011_traffic_tamper_hooks.sql | ||
| 0012_lesson_withdrawn.sql | ||
| 0013_lesson_evidence_history.sql | ||
| 0014_bedrock_gateway_profiles.sql | ||
| 0015_chat_bridges.sql | ||
| 0016_chat_bridge_access.sql | ||
| 0017_legacy_fact_capture_provenance.sql | ||
| 0018_chat_bridge_share_text.sql | ||
| 0019_chat_bridge_approvals.sql | ||
| 0020_chat_bridge_chat_type_backfill.sql | ||
| 0021_planner_progress.sql | ||
| 0022_target_gate_backfill.sql | ||
| 0023_task_scope_operator_approval.sql | ||
| 0024_task_scope_egress.sql | ||
| 0025_company_scope_approved.sql | ||