Skip to content

feat: add scenario interception planning benchmark - #119

Open
Emilycreate2026 wants to merge 2 commits into
Einsia:mainfrom
Emilycreate2026:feat/scenario-interception-plan-20261012
Open

Emilycreate2026 wants to merge 2 commits into
Einsia:mainfrom
Emilycreate2026:feat/scenario-interception-plan-20261012

Conversation

@Emilycreate2026

@Emilycreate2026 Emilycreate2026 commented Oct 12, 2026 •

Copy link
Copy Markdown

Summary

Add Operations/ScenarioInterceptionPlan, an optimization task that selects the fewest assays needed to cover every required incident scenario.

The candidate edits scripts/init.py to minimize number of selected assays, subject to the documented hard constraints. The evaluator regenerates outputs in a fresh, network-disabled candidate sandbox and recomputes feasibility and the raw objective from trusted inputs. Feasible score is the negative raw objective; there is no Oracle-equality or hidden binary quality gate.

Inputs and baseline

The input JSON defines candidate assays and the incident scenarios each assay covers. The baseline generates an assay selection. The evaluator checks that every required scenario is covered and computes the number of selected assays.

The submission includes the input files, baseline source, conversion helpers, evaluator and runtime instructions. Baseline outputs are regenerated from inputs on every evaluation; saved solution artifacts are not supplied to the candidate.

Validation

Passed both required commands against upstream bafa7d53162a3b1f128fec396bbde22fe972bf24:

# From this task directory:
python verification/evaluator.py scripts/init.py
# From the repository root with the Frontier Eval driver:
python -m frontier_eval task=unified task.benchmark=Operations/ScenarioInterceptionPlan algorithm=openevolve algorithm.iterations=0 task.runtime.python_path=python3 algorithm.oe.evaluator.timeout=1200

Both runs freshly generated feasible outputs, with identical artifact SHA-256 values and raw objective 762. Unified evaluation runtime was approximately 37.9 seconds. Structured results are in references/validation.json.

Negative checks confirmed that the candidate cannot read the verifier or modify inputs, and that forged score files without solution outputs are rejected. Baseline validation used a Linux container permitting the upstream bubblewrap namespaces; the task runtime used Python 3.12.11 and NumPy 2.2.6, with a separate framework-driver environment. The 1200-second framework timeout covers the 900-second candidate cap plus verification. No model API calls were made. These checks establish execution and scoring compatibility, not frontier-model difficulty or a complete leaderboard calibration.

@github-actions

Copy link
Copy Markdown

🤖 AI Code Review (gemini-3-flash-preview)

🇬🇧 English Analysis

1. Executive Summary

  • Core Purpose: This PR introduces a new optimization benchmark task titled ScenarioInterceptionPlan under the Operations category. The task is a classic Set Cover optimization problem where the goal is to select the minimum number of detection assays to cover all listed incident scenarios.
  • Modified File Structure & Modifications:
    • benchmarks/Operations/README.md: Created to serve as the index for Operations-related engineering optimization tasks.
    • benchmarks/Operations/ScenarioInterceptionPlan/README.md: Provides environment requirements (Python 3.12, C++20, Boost, Java 17), validation commands for both local and frontier_eval execution, and baseline performance metrics.
    • benchmarks/Operations/ScenarioInterceptionPlan/Task.md: Defines the formal problem statement, input/output schemas (JSON), scoring logic (minimizing assay count), and candidate interface constraints.
    • benchmarks/Operations/ScenarioInterceptionPlan/environment/data/campaign.json: Contains the input dataset, including available options (assays) and scenario mappings.

2. AI Content Analysis

  • Estimated AI Component: 35%
  • Reasoning & Evidence: The documentation structure and the formal phrasing in Task.md (e.g., "continuous combined_score = -objective; higher is better") follow a highly standardized template likely generated or refined by AI. The problem itself—Set Cover—is a textbook algorithmic challenge. However, the specific environment requirements (NumPy 2.2.6, Boost program_options, and the mention of "bubblewrap" for sandboxing) suggest significant human engineering to ensure production-grade evaluation constraints.

3. Engineering & Economic Assessment

  • Engineering Reality Check: This is a production-grade benchmark. Unlike "toy" examples, it incorporates strict execution constraints: user namespaces, bubblewrap for isolation, specific memory limits (16 GiB), and a 900-second time cap. It addresses the NP-hard Set Cover problem, which is highly relevant in logistics, cybersecurity, and resource allocation.
  • Economic Value: High. By benchmarking an LLM's ability to solve discrete optimization problems, this PR enables the evaluation of models for cost-reduction tasks. Efficiently solving Set Cover directly translates to minimizing operational costs in real-world assay/sensor deployment.

4. Quality Assurance

  • Verification & Testing:
    • frontier_eval Integration: Yes.
    • task_name: Operations/ScenarioInterceptionPlan
    • Execution & Dependencies: The README.md explicitly lists dependencies (Python 3.12, C++20, Boost, NumPy 2.2.6, Java 17) and provides the exact frontier_eval command for verification.
  • Documentation Quality: High. The documentation is modular and provides clear instructions for both local and containerized validation.
    • Minor Note: The term "Java 17+ for freight" is slightly ambiguous without further context on what "freight" refers to within this specific repository's architecture.
  • Organizational Structure: Logical and scalable. The separation of environment/data, scripts/, and verification/ follows best practices for benchmark suites.

5. Security & Privacy Check

  • Sensitive Files: Clean. No .env, API keys, or __pycache__ directories were detected in the diff.
  • Absolute Paths: None detected. The task uses relative paths and environment variables (DATA_DIR, OUTPUT_DIR) for file I/O.

🇨🇳 中文分析

1. 摘要

  • 核心目的: 此 PR 在 Operations 类别下引入了一个名为 ScenarioInterceptionPlan 的新优化基准任务。该任务是一个经典的集合覆盖(Set Cover)优化问题,目标是选择最少数量的检测分析(assays)以覆盖所有列出的事件场景。
  • 修改的文件结构与变更摘要:
    • benchmarks/Operations/README.md: 创建作为 Operations 相关工程优化任务的索引。
    • benchmarks/Operations/ScenarioInterceptionPlan/README.md: 提供了环境依赖说明(Python 3.12, C++20, Boost, Java 17)、本地及 frontier_eval 的验证命令,以及基准性能指标。
    • benchmarks/Operations/ScenarioInterceptionPlan/Task.md: 定义了正式的问题描述、输入/输出格式(JSON)、评分逻辑(最小化分析数量)以及候选接口约束。
    • benchmarks/Operations/ScenarioInterceptionPlan/environment/data/campaign.json: 包含输入数据集,包括可用选项(分析)和场景映射。

2. AI 成分分析

  • 预估 AI 含量: 35%
  • 判断依据与证据: 文档结构和 Task.md 中的正式表述(例如 "continuous combined_score = -objective; higher is better")遵循了高度标准化的模板,可能由 AI 生成或润色。集合覆盖问题本身是教科书级的算法挑战。然而,特定的环境要求(NumPy 2.2.6, Boost program_options 以及用于沙箱隔离的 "bubblewrap")表明存在显著的人工工程设计,以确保生产级别的评估约束。

3. 工程与经济评估

  • 工程现实检验: 这是一个生产级别的基准测试。与“玩具”示例不同,它结合了严格的执行约束:用户命名空间、用于隔离的 bubblewrap、特定的内存限制(16 GiB)以及 900 秒的时间限制。它解决了 NP-hard 的集合覆盖问题,这在物流、网络安全和资源分配中具有高度相关性。
  • 经济价值: 高。通过基准测试 LLM 解决离散优化问题的能力,此 PR 使得评估模型在成本削减任务中的表现成为可能。高效解决集合覆盖问题直接转化为现实世界中分析/传感器部署的运营成本最小化。

4. 质量保证

  • 验证与测试:
    • frontier_eval 集成: 是
    • task_name: Operations/ScenarioInterceptionPlan
    • 运行与依赖: README.md 明确列出了依赖项(Python 3.12, C++20, Boost, NumPy 2.2.6, Java 17),并提供了用于验证的确切 frontier_eval 命令。
  • 文档质量: 高。文档模块化,为本地和容器化验证提供了清晰的指令。
    • 微小瑕疵: "Java 17+ for freight" 中的 "freight" 一词在没有进一步上下文的情况下略显模糊,不清楚是指该仓库架构中的哪个具体组件。
  • 组织结构: 逻辑清晰且具备可扩展性。environment/data、scripts/ 和 verification/ 的分离遵循了基准测试套件的最佳实践。

5. 安全与隐私检查

  • 敏感文件: 未发现异常。Diff 中未检测到 .env、API 密钥或 __pycache__ 目录。
  • 绝对路径: 未检测到。任务使用相对路径和环境变量(DATA_DIR, OUTPUT_DIR)进行文件输入输出。

@Emilycreate2026

Emilycreate2026 commented Oct 12, 2026 •

Copy link
Copy Markdown
Author

Hello @wrh-human and @ahydchh, thank you for your work on Frontier-Engineering! When you have a chance, could you please take a look at the ScenarioInterceptionPlan task in this PR and let us know whether there are any issues or revisions needed, and whether it would be a good fit for inclusion in the benchmark? I would be happy to make further changes based on your feedback.

Also, is there a tentative timeline for the v2.0 release, and could this submission be considered for that release? I understand the schedule may still be evolving. Thank you for your time and guidance!

@github-actions

Copy link
Copy Markdown

🤖 AI Code Review (gemini-3-flash-preview)

🇬🇧 English Analysis

1. Executive Summary

  • Core Purpose: This PR introduces a new optimization benchmark task titled ScenarioInterceptionPlan under a new Operations category. The task is a combinatorial optimization problem (a variant of the Set Cover problem) where the goal is to select the minimum number of detection assays to cover all listed incident scenarios.
  • Modified File Structure & Modifications:
    • benchmarks/Operations/README.md: Created a high-level index for the Operations category.
    • benchmarks/Operations/ScenarioInterceptionPlan/README.md: Added comprehensive documentation including system requirements (Linux, bubblewrap, Python 3.12, C++20, Java 17+), validation commands, and baseline performance metrics.
    • benchmarks/Operations/ScenarioInterceptionPlan/Task.md: Defined the formal problem statement, input/output schemas, scoring metrics (negative objective for maximization), and candidate interface constraints.
    • benchmarks/Operations/ScenarioInterceptionPlan/environment/data/campaign.json: Provided the synthetic input dataset containing a large list of assay identifiers and scenario mappings.

2. AI Content Analysis

  • Estimated AI Component: 15%
  • Reasoning & Evidence:
    • Human-Authored Framework: The documentation regarding the execution environment (e.g., "Linux with user namespaces and bubblewrap," "nested user namespaces") and the specific integration with frontier_eval shows high domain-specific nuance typical of a senior systems engineer designing an evaluation harness.
    • AI-Generated Data: The file campaign.json contains highly repetitive, hex-encoded identifiers (e.g., u-a205f93d06b513c7). This is a standard pattern for generating large-scale synthetic test data for optimization benchmarks.
    • Boilerplate: The Task.md follows a very rigid, standardized template seen in other LLM evaluation frameworks, likely adapted from a base prompt or template.

3. Engineering & Economic Assessment

  • Engineering Reality Check: This is a production-grade evaluation task. Unlike "toy examples," it explicitly addresses environment isolation using bubblewrap, defines strict resource constraints (16 GiB RAM, 900s timeout), and requires C++20/Boost for potential high-performance solvers. It handles the "Set Cover" problem, which is a classic NP-hard problem with significant real-world applications in security and logistics.
  • Economic Value: High. By providing a standardized, reproducible benchmark for generative optimization, this PR enables the quantitative evaluation of LLMs in solving complex operational problems. This reduces technical debt in the evaluation pipeline and helps identify models capable of reducing costs in real-world resource allocation scenarios.

4. Quality Assurance

  • Verification & Testing:
    • frontier_eval Integration: Yes.
    • task_name: Operations/ScenarioInterceptionPlan
    • Execution & Dependencies: The README.md provides explicit bash commands for both local execution and the frontier_eval driver. It lists specific versions for Python (3.12) and NumPy (2.2.6), and mentions system-level dependencies like g++ and Java 17.
  • Documentation Quality: Excellent. The documentation is clear, concise, and provides a "Verified baseline" section with execution times (37.85s) and objective scores (762), which is crucial for regression testing.
  • Organizational Structure: The structure is logical and modular, separating data, scripts, and verification logic into distinct directories.

5. Security & Privacy Check

  • Sensitive Files: Clean. No .env, API keys, or IDE-specific configurations were found in the diff.
  • Absolute Paths: None detected. The documentation and task descriptions use relative paths (e.g., environment/data/campaign.json) or environment variables/arguments.

🇨🇳 中文分析

1. 摘要

  • 核心目的: 此 PR 在新增的 Operations 类别下引入了一个名为 ScenarioInterceptionPlan 的新优化基准任务。该任务是一个组合优化问题(集合覆盖问题的变体),目标是选择最少数量的检测分析(assays)来覆盖所有列出的事件场景。
  • 修改的文件结构与变更摘要:
    • benchmarks/Operations/README.md: 创建了 Operations 类别的顶级索引。
    • benchmarks/Operations/ScenarioInterceptionPlan/README.md: 添加了详细文档,包括系统要求(Linux, bubblewrap, Python 3.12, C++20, Java 17+)、验证命令和基准性能指标。
    • benchmarks/Operations/ScenarioInterceptionPlan/Task.md: 定义了正式的问题描述、输入/输出架构、评分指标(最大化负目标值)以及候选接口限制。
    • benchmarks/Operations/ScenarioInterceptionPlan/environment/data/campaign.json: 提供了包含大量分析标识符和场景映射的合成输入数据集。

2. AI 成分分析

  • 预估 AI 含量: 15%
  • 判断依据与证据:
    • 人工编写的框架: 关于执行环境的文档(如“具有用户命名空间和 bubblewrap 的 Linux”、“嵌套用户命名空间”)以及与 frontier_eval 的特定集成,展现了高级系统工程师设计评估工具时特有的领域专业知识。
    • AI 生成的数据: campaign.json 文件包含高度重复的十六进制编码标识符(如 u-a205f93d06b513c7)。这是为优化基准测试生成大规模合成测试数据的标准模式。
    • 模板化内容: Task.md 遵循了非常严格、标准化的模板,这在其他 LLM 评估框架中很常见,可能是从基础模板改编而来。

3. 工程与经济评估

  • 工程现实检验: 这是一个生产级的评估任务。与“玩具示例”不同,它明确提到了使用 bubblewrap 进行环境隔离,定义了严格的资源限制(16 GiB RAM,900秒超时),并要求 C++20/Boost 以支持高性能求解器。它处理的“集合覆盖”问题是经典的 NP-Hard 问题,在安全和物流领域有重要的实际应用。
  • 经济价值: 高。通过为生成式优化提供标准化、可重复的基准测试,此 PR 能够定量评估 LLM 解决复杂运营问题的能力。这减少了评估流程中的技术债务,并有助于识别能够降低现实资源分配场景成本的模型。

4. 质量保证

  • 验证与测试:
    • frontier_eval 集成: 是
    • task_name: Operations/ScenarioInterceptionPlan
    • 运行与依赖: README.md 提供了用于本地运行和 frontier_eval 驱动运行的明确 bash 命令。它列出了 Python (3.12) 和 NumPy (2.2.6) 的具体版本,并提到了 g++ 和 Java 17 等系统级依赖。
  • 文档质量: 优秀。文档清晰简洁,并提供了一个“验证基准(Verified baseline)”部分,包含执行时间(37.85秒)和目标分数(762),这对于回归测试至关重要。
  • 组织结构: 文件组织逻辑清晰且模块化,将数据、脚本和验证逻辑分离开来。

5. 安全与隐私检查

  • 敏感文件: 未发现异常。Diff 中未发现 .env、API 密钥或 IDE 特定配置。
  • 绝对路径: 未检测到。文档和任务描述均使用相对路径(如 environment/data/campaign.json)或通过参数传递路径。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant