Skip to content

Store per-campaign startup parameters#86

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/store-per-campaign-startup-parameters
Draft

Store per-campaign startup parameters#86
Copilot wants to merge 2 commits intomasterfrom
copilot/store-per-campaign-startup-parameters

Conversation

Copy link

Copilot AI commented Mar 17, 2026

Each campaign now persists its startup configuration at the beginning of execution, written to harnesses/<harness>/campaigns/<campaign_id>/startup_params.json.

Stored parameters

  • num_cpus — cores allocated to the campaign (from Docker machine)
  • duration_secs — configured fuzz duration
  • engines / sanitizers — project config (fuzzers and sanitizers enabled)
  • commit_hash — commit hash of the target binary being fuzzed

Implementation

infra/types — new CampaignStartupParams struct (serde JSON-serializable)

fuzzor/src/envEnvironmentParams gains commit_hash: String; Environment trait gains get_num_cpus()

Schedulers (RoundRobin, CoverageBased, OneShot) — store commit hash from CampaignSchedulerInput (populated from build.revision().commit_hash() in handle_new_build) and include it in each EnvironmentParams

Campaigncommit_hash and duration fields added; run() writes startup_params.json immediately after the environment starts

DockerEnv — implements get_num_cpus() as machine.cores.len()

Example output:

{
  "num_cpus": 8,
  "duration_secs": 57600,
  "engines": ["LibFuzzer", "AflPlusPlus"],
  "sanitizers": ["Address", "Undefined", "CmpLog"],
  "commit_hash": "a3f9c12d8e4b7061f5c2d9a8e3b1047f6d2c5a90"
}
Original prompt

This section details on the original issue you should resolve

<issue_title>Store per-campaign startup parameters</issue_title>
<issue_description>For each campaign we should store (in addition to the coverage summary and stats we already store) the startup parameters, such as:

  • Number of CPUs
  • Duration
  • Config (fuzzers, sanitizers, ...)
  • Commit hash of the target binary</issue_description>

<agent_instructions>make no mistakes</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

…mmit_hash)

Co-authored-by: dergoegge <8077169+dergoegge@users.noreply.github.com>
Copilot AI changed the title [WIP] Add per-campaign startup parameters storage Store per-campaign startup parameters Mar 17, 2026
Copilot AI requested a review from dergoegge March 17, 2026 15:52
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.

Store per-campaign startup parameters

2 participants