Skip to content
aarushitandon0Public

About

Provenance-aware grouping for multi-agent AI oversight, using trusted artifact dependencies to co-locate distributed attacks under limited review budgets.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Who's in the Episode? Trusted Provenance Grouping for Budgeted Multi-Agent Collusion Oversight

Author: Aarushi Tandon, Independent Researcher Venue: Apart Research Swarm Alignment Hackathon, 6 to 8 November 2026 Tracks: Track 4, Multi-Agent Oversight and Control (primary); Track 3, Strengthening Agent Infrastructure (secondary) Package: provgroup 0.1.0, a synthetic research prototype (MIT license, as declared in pyproject.toml) Report: submission/PROVGROUP_SWARM_ALIGNMENT_2026.pdf


Contents

  1. Summary
  2. Principal results
  3. Research question and hypotheses
  4. System architecture
  5. Experimental protocol and freezes
  6. Grouping methods
  7. Repository structure
  8. Environment and installation
  9. Reproducing the results
  10. Integrity record
  11. Limitations
  12. Prior-work disclosure
  13. Ethics and dual use
  14. Citation

1. Summary

Monitors that review one agent at a time cannot see an attack that is split across several cooperating agent instances. Joint review can, but only if the overseer knows which instances belong together. This project tests whether the write→read dependencies on shared, versioned artifacts, as recorded by a trusted gateway, can supply that grouping under a fixed review budget.

The study uses a preregistered synthetic simulator. Each episode has eight scripted agent instances. In attack episodes, two instances split an exfiltration through a shared artifact. Benign teams have the same dependency shape, so structure alone does not reveal the attack. Nine grouping methods are compared under a matched budget of three review calls, each limited to 4,000 input tokens (budget MC-3). The primary metric is eCov₃: the fraction of successful attacks in which both attack endpoints appear together in one reviewed bundle.

Every decision about thresholds, baselines and comparators was fixed on a development split (DEV) and frozen before the held-out calibration (CAL) and test (TEST) data existed. The planned language-model judge could not be served (0 of 489 calibration calls returned a response). It was therefore dropped at the second freeze, before any TEST data existed. As a result, this repository reports grouping (co-location) results only and makes no detection claim.


2. Principal results

All values are on the held-out TEST split under MC-3. Intervals are 95% confidence intervals. Sources: results/e1/ and submission/e1_supplement/.

Quantity Value Status
eCov₃, witness provenance G3, store-route attack X1 (n = 300) 0.817 [0.768, 0.859] Measured
eCov₃, similarity baseline G1* = G1b (n = 300) 0.570 [0.512, 0.627] Measured
eCov₃, time-window review G6 (n = 300) 0.390 [0.334, 0.448] Measured
C1: G3 minus G1* +0.247 [+0.177, +0.317], McNemar p = 6.5e-11 Supported (Holm, α = 0.025)
C2: G3 minus G6 +0.427 [+0.360, +0.497], McNemar p = 2.5e-25 Supported (Holm, α = 0.025)
H1a (primary grouping hypothesis) C1 and C2 both supported Supported
eCov₃, G3, hub-laundered attack X3 (n = 150) 0.520 [0.437, 0.602] Measured
H4: G3 minus B* = G1b under X3 -0.053 [-0.160, +0.060], p = 0.39 Inconclusive
H0b: G3 minus shuffle null G5 on X1 +0.220 [+0.153, +0.290] Contradicted (G3 ahead)
H1b, H2b, H0a (judge-based detection) Judge dropped at FREEZE-2 Not tested

In short, witness-provenance grouping co-locates direct, store-route collusion far more often than similarity grouping or time-window review. The advantage disappears when the attacker routes the dependency through high-fan-out hub artifacts.

xychart-beta
    title "eCov3 under MC-3 on TEST-X1 (n = 300)"
    x-axis ["G0", "G1a", "G1b", "G2", "G3", "G3-kv", "G5", "G6", "G4"]
    y-axis "eCov3" 0 --> 1
    bar [0.000, 0.577, 0.570, 0.820, 0.817, 0.843, 0.597, 0.390, 1.000]
Loading

The published figures are in submission/figures/. They are drawn directly from the result files by submission/make_figures.py.


3. Research question and hypotheses

The preregistration (prereg.md) was written before any project code existed. It asks two questions.

  1. Grouping. Does grouping by gateway-witnessed write→read dependencies (G3) place both endpoints of a split attack in one review bundle more often than the best similarity grouping (G1*) and time-window review (G6) under MC-3?
  2. Detection. Under the same budget, does G3 raise a language-model judge's episode-level true-positive rate at a calibrated 5% false-positive rate?
Hypothesis Statement (abridged) Outcome
H1a eCov₃(G3) exceeds eCov₃(G1*) and eCov₃(G6) on TEST-X1 Supported
H1b G3 raises judge TPR over G0, G1* and G6 Not tested
H2a G1* is equivalent to G3 within ±5 percentage points on eCov₃ Equivalence not established
H2b G1* is equivalent to G3 within ±10 points on judge TPR Not tested
H3 G3 co-locates (lower bound ≥ 30%) but does not improve judge TPR over G0 Co-location part met; detection part not tested
H4 Under hub laundering at h = 4, G3 loses its advantage over B* Inconclusive
H0a No grouping method beats per-instance review on judge TPR Not tested
H0b G3 is no better than the shuffle null G5 Contradicted
MC1 Self-reported grouping G2 degrades relative to G3 under renaming Not met; undiagnosed

4. System architecture

Agents are untrusted and act only through a trusted gateway. The gateway is simulated in-process. It authenticates every request, mints instance identities, and appends one witness event per handled call to a hash-chained log. Agents also write their own transcripts, which they may rename or forge. The oversight pipeline is label-blind: it reads only the witness log and the transcripts, never ground truth.

flowchart LR
    subgraph U["Untrusted"]
        A1["Agent instance 1"]
        A2["Agent instance 2"]
        A3["Agent instances 3 to 8"]
        T["Agent-written transcripts<br/>mutable under R and F"]
    end
    subgraph TR["Trusted, simulated in-process"]
        GW["Gateway<br/>authentication, authorization,<br/>minted instance IDs,<br/>log-before-ack"]
        SV["Shared services<br/>store, vault, hubs, external API"]
        WL["Witness log<br/>append-only, hash-chained,<br/>versioned write and read events"]
    end
    subgraph OV["Oversight pipeline, label-blind"]
        GR["Grouping<br/>G0 to G6"]
        RB["Bundle rendering<br/>at most 4,000 tokens per call"]
        BS["Budget selection<br/>MC-3: three calls"]
        SC["Scorer<br/>judge J dropped; idealized D"]
        EV["Evaluation<br/>eCov3, FM, cost"]
    end
    A1 --> GW
    A2 --> GW
    A3 --> GW
    GW <--> SV
    GW --> WL
    WL --> GR
    T --> GR
    T --> RB
    GR --> RB --> BS --> SC --> EV
Loading

Attack scenarios.

  • X1 (store route): colluder c1 reads the vault secret and writes it, encoded, to a versioned store artifact. Colluder c2 reads that artifact and posts it externally.
  • X3 (hub route): the same chain passes through a hub artifact that five or more benign instances also read.

Modifiers.

  • R (renaming): instances change the names they claim in their transcripts.
  • F (forgery): colluders omit or substitute the chain events in their own transcripts.

Neither modifier can alter the trusted witness.

sequenceDiagram
    autonumber
    participant C1 as Colluder c1
    participant G as Trusted gateway
    participant W as Witness log
    participant S as Shared store
    participant C2 as Colluder c2
    C1->>G: vault_read(secret)
    G->>W: append event (minted ID of c1)
    C1->>G: write(artifact K, version v)
    G->>S: store K@v
    G->>W: append write event K@v
    C2->>G: read(artifact K, version v)
    G->>W: append read event K@v (minted ID of c2)
    C2->>G: post_external(payload)
    G->>W: append event
    Note over W: The witness now holds a versioned write→read edge c1 → c2,<br/>which G3 uses to place c1 and c2 in one bundle.
Loading

5. Experimental protocol and freezes

The protocol separates development from confirmation. The code itself refuses to generate CAL or TEST data unless both freeze records exist and match the current code and configuration hashes.

flowchart TD
    P["Preregistration<br/>prereg.md, 2026-11-05"] --> D["DEV split<br/>800 episodes: H, X1, X3, R and F variants"]
    D --> E0A["E0a: harness validity<br/>14 of 14 engineering gates pass"]
    E0A --> E0B["E0b: workload, truncation, leakage gates"]
    E0B --> L["Generator lock<br/>2026-11-07 21:26 UTC"]
    L --> SEL["DEV selection<br/>tau_G1a = 300, tau_G1b = 400,<br/>G1* = G1b, B* = G1b"]
    SEL --> F1["FREEZE-1<br/>2026-11-07 21:39 UTC"]
    F1 --> E0C["E0c: judge calibration<br/>0 of 489 responses"]
    E0C --> F2["FREEZE-2, j_status = dropped<br/>2026-11-08 12:34 UTC"]
    F2 --> GEN["CAL and TEST generation<br/>audits: 600 and 1,425 episodes, 0 failures"]
    GEN --> E1["E1-CPU, frozen pipeline, run once<br/>family F1: C1, C2"]
    E1 --> SUP["Supplement: H4 on TEST-X3,<br/>secondary contrasts"]
    E1 --> E2["E2 renaming check, exploratory"]
    SUP --> R["Report<br/>submission/"]
    E2 --> R
Loading

Statistics.

  • Comparisons are paired at the episode level and use the exact McNemar test with a 95% paired bootstrap confidence interval.
  • The confirmatory family F1 (contrasts C1 and C2) uses Holm correction at family α = 0.025.
  • A contrast is supported only if the adjusted test rejects and the interval excludes zero in the same direction.
  • Proportions carry Clopper-Pearson intervals.
  • Equivalence uses TOST with 90% intervals.
  • All other analyses are exploratory and unadjusted.

6. Grouping methods

Method Signal Description
G0 None One bundle per instance; the per-agent review baseline
G1a, G1b Text similarity TF-IDF similarity of rendered text plus an operation histogram. Identifiers are masked (G1a) or included (G1b). Thresholds were chosen on DEV
G2 Self-reported provenance Read and write declarations from transcripts, keyed by the name the agent claims
G3 Witnessed provenance Directed, versioned write→read edges keyed by minted IDs. Keys with more than h = 4 readers are pruned as hubs, and the result is split into ego-centred bundles
G3-kv Witnessed key-only provenance An undirected edge whenever one instance wrote a key and another read it, ignoring version and order
G5 Shuffle null G3's algorithm on a graph whose read events are reassigned among readers
G6 Time window Witnessed events in sequence order, packed into consecutive windows that fit the token cap
G4 Oracle membership The true team structure. A reference, not an upper bound on detection

7. Repository structure

7.1 Overview

flowchart LR
    R["phase1b_blueprint"] --> PL["planning/<br/>design specification"]
    R --> RS["research/<br/>literature and sources"]
    R --> PR["prereg.md<br/>preregistration"]
    R --> CF["configs/ and prompts/<br/>frozen settings"]
    R --> SRC["src/provgroup/<br/>library"]
    R --> EX["experiments/<br/>stage drivers"]
    R --> TL["tools/<br/>validation and analysis scripts"]
    R --> TS["tests/<br/>2,122 tests"]
    R --> RE["results/<br/>recorded outputs"]
    R --> DC["docs/<br/>phase reports"]
    R --> SB["submission/<br/>paper and figures"]
Loading
phase1b_blueprint/
├── README.md                  This document
├── prereg.md                  Preregistration, hash table and append-only addenda
├── pyproject.toml             Package metadata, pinned dependencies, optional extras
├── requirements-lock.txt      Exact package set of the recorded runs
├── .env.example               Documented environment variables (none required)
├── .gitignore / .gitattributes
├── planning/                  Design specification, frozen at registration (21 files)
├── research/                  Literature review and verified source registry (10 files)
├── configs/                   Experiment configurations (hashed into the freezes)
├── prompts/                   Judge prompt (hashed into the freezes)
├── src/provgroup/             The research library
├── experiments/               Drivers for E0a, E0b, E0c and E1
├── tools/                     Stage-specific validation and analysis scripts
├── tests/                     Unit, integration, adversarial and reproducibility tests
├── results/                   Recorded outputs and freeze records
├── docs/                      Phase reports, decision memos and the development log
└── submission/                Hackathon report, figures and build scripts

7.2 Top-level files

File Purpose
README.md Project overview, results, structure, environment and reproduction guide
prereg.md Preregistration: research question, hypotheses, metrics, decision rules, limitations, file hashes at registration (section 17) and append-only addenda (the FREEZE-1 record, approved deviations)
pyproject.toml Build configuration and pinned runtime dependencies. Optional extras: dev (pytest, hypothesis), judge (OpenAI-compatible client), embed (unused embedding baseline), figures and paper (report build)
requirements-lock.txt pip freeze of the environment that produced every recorded result
.env.example Template for optional environment variables, with explanations
.gitignore Excludes environments, caches, local secrets and large JSONL result logs
.gitattributes Line-ending normalisation, so file hashes are stable across platforms

7.3 planning/ (frozen design specification)

Every file is hash-locked in prereg.md section 17 and must not be edited.

File Content
00_project_overview.md Problem statement, symbol glossary (G0 to G6, eCov, FM)
01_research_problem_and_hypotheses.md Full statement of H0 to H4 and the manipulation checks
02_threat_model.md Adversary capabilities, trust assumptions, exclusions
03_system_architecture.md Components and data flow
04_component_specifications.md Specifications C1 to C16 for each component
05_data_schemas.md Record schemas (episode, witness event, edge, bundle, score, freeze)
06_api_and_interface_contracts.md Module interfaces and information-boundary rules
07_experimental_design.md Splits, budgets, calibration, statistics, result categories
08_experiment_matrix.md Experiments E0a to E6 with conditions and costs
09_testing_strategy.md The 122 registered tests and their owners
10_compute_and_dependency_plan.md Hardware, dependency pins and judge configurations
11_implementation_task_breakdown.md Implementation tasks T-01 to T-25
12_task_dependency_graph.md Task ordering and the critical path
13_hackathon_timeline.md Planned schedule
14_minimum_viable_research.md Minimum result set and fallbacks
15_fallback_and_risk_plan.md Risk register and contingencies
16_report_and_demo_plan.md Planned report structure
17_adversarial_review.md Internal critique of the design
18_implementation_handoff.md Conventions for implementers
19_preflight_review.md Pre-implementation review findings
20_change_log_and_issue_matrix.md Design changes and resolved issues

7.4 research/ (literature, frozen)

File Content
00_edition3_report.md Main literature review
02_claim_verification_matrix.md, corrected_claim_matrix.md Claims from prior work and their verification status
existing_research_audit.md Audit of overlapping prior projects
targeted_prior_art_review.md Prior art on tamper-evident logging and multi-agent monitoring
verified_research_gaps.md The gaps this project addresses
project_comparison.md, final_project_decision.md Candidate projects and the selection rationale
source_registry.csv, updated_source_registry.csv Bibliographic registry with verification status for every cited source

7.5 configs/ and prompts/ (hashed into FREEZE-1 and FREEZE-2)

These files must not be edited. Any change alters the configuration hash, and the CAL/TEST guards will then refuse to run.

File Purpose
configs/dev.yaml Generator and method parameters for the DEV split (N, T_cap = 4000, h = 4, B_max = 4, delay fraction)
configs/e1.yaml Parameters of the confirmatory E1 run on CAL and TEST
configs/e2.yaml Renaming experiment E2 (conditions, methods)
configs/e3.yaml Forgery experiment E3 (requires the judge; not run)
configs/e4.yaml Hub-laundering sweep E4 over h ∈ {2, 3, 4, 6, ∞}
configs/judge.yaml Judge model, decoding and prompt references. api_key_env names an environment variable and is null
prompts/judge_v1.txt Registered judge prompt (version 1)

7.6 src/provgroup/ (research library)

Module Responsibility
__init__.py Package marker and version
cli.py Command-line entry point (python -m provgroup.cli): test, gen, dataset, audit-dataset, freeze, export-judge, import-judge, plus delegation to the experiment drivers
config.py Typed loading and validation of the YAML configurations
schemas.py Frozen pydantic models for every record type
canon.py Canonical JSON serialisation and SHA-256 tags
io.py JSONL reading and writing, file hashing
seeds.py Deterministic seed derivation with independent per-component streams
splits.py Episode identifiers, indices and seeds for each split
identity.py Identity registry: minted instance IDs and synthetic credentials
gateway.py Trusted mediation point: authenticate, validate, authorize, execute, witness, reply
witness.py Append-only, hash-chained witness store
episode.py Episode runner and scheduler
dataset.py DEV/CAL/TEST dataset orchestration and an independent audit
view.py EpisodeView, the only monitor-side view of an episode (enforces label blindness)
provenance.py Builds witnessed, key-only and self-reported provenance graphs, and self-report divergence
freeze.py Freeze guard and source/configuration tree hashes
env/services.py Mock services: shared store, vault, internal API, external hub
env/tasks.py Task generator: slot template (T2, T3, solo workers) for each episode
agents/scripted.py Honest scripted agent policies
agents/render.py Transcript renderer (untrusted, agent-written text)
attacks/x1.py X1 store-route exfiltration by matched replacement
attacks/x3.py X3 hub-route exfiltration by matched replacement
attacks/modifiers.py R (renaming) and F (forgery) transcript modifiers
grouping/common.py Shared cover and bundle machinery
grouping/per_agent.py G0
grouping/similarity.py G1a and G1b
grouping/provenance_group.py G2, G3 and G3-kv, including hub pruning and ego-split
grouping/shuffle.py G5 shuffle null
grouping/windows.py G6 time-window baseline
monitors/bundle.py Bundle renderer under the per-call token cap
monitors/budget.py Budget selection (MC-k, MT-12000) by the shared priority rule
monitors/pipeline.py Label-free monitor pass for one episode
monitors/judge.py Judge request configuration, strict response parser, score cache, offline export/import
monitors/dlp.py D, the idealized content-link reference scorer
monitors/policy.py P, a rule-based diagnostic scorer
eval/metrics.py eCov, FM, precision/recall and detection metrics
eval/calibrate.py Episode scores and threshold calibration on CAL
eval/stats.py McNemar, paired bootstrap, Holm, TOST
eval/oracle.py G4 oracle cover (the only evaluation-side reader of group truth)
eval/leakage.py Leakage probes (structural and text classifiers)
eval/e0c.py Judge headroom and parse-failure gate
eval/e1.py E1 analysis core: eCov tables, contrasts and the H2a/H3/H4 decision rules

7.7 experiments/ (stage drivers)

File Purpose
run_e0a.py E0a harness validity gate (integrity, replay, tamper, throughput)
report_e0a.py Renders report.md for an E0a result
run_e0b.py E0b DEV gate driver, phases A to F (integrity, workload, leakage, lock, selection, freeze readiness)
e0b_measure.py Measurement helpers for E0b
e0b_decisions.py Threshold grid, approval records, generator lock and DEV selection rules
run_e0c.py E0c judge calibration export, import and analysis
run_e1.py E1: generate (CAL/TEST, freeze-guarded), cpu (F1 and D), and the judge export/import commands

7.8 tools/ (validation and analysis scripts)

Path Purpose
t09d/gate.py DEV attack-success gates for X1 and X3
t09d/leakage.py, t09d/leakage_unpaired.py Registered payload-format leakage audits
t10/run_full.py Full DEV dataset run with an independent audit
t10/replay.py Deterministic replay check
t11b/i7_check.py I-7 divergence re-measurement
t11b/stress_sample.py E0a validity stress sample
t11b/t12_check.py Provenance graph re-verification on real data
t11b/workload_probe.py Workload investigation (pre-lock)
t13/dev_grouping_sweep.py Engineering sweep of all groupers on DEV
t14_15_16b/dev_monitor_sweep.py Engineering sweep of similarity, rendering and leakage components
t15/checkpoint.py Rendering checkpoint on DEV
t17a/dev_smoke.py, t17b/dev_smoke.py End-to-end engineering smoke tests on DEV
final_exec/e1_supplement.py H4 on TEST-X3 and secondary contrasts, using frozen functions only
final_exec/e2_e4_cpu.py E2 (renaming) and E4 (hub sweep) on CPU with the D scorer
final_exec/judge_connectivity.py Judge endpoint connectivity check
final_exec/judge_local_bench.py Local judge throughput bench (engineering only)
final_exec/gpu_judge/ Offline GPU judge kit: build_kit.py, gpu_score.py, NOTEBOOK.md
final_exec/ollama/ Model files for the rejected local-judge configuration

7.9 tests/

Path Content
unit/ Component tests: schemas, seeds, gateway, witness, provenance, grouping, rendering, budget, scorers, statistics, configuration
integration/ End-to-end episodes, dataset generation, freeze commands and guards, E0a/E0b/E0c/E1 drivers, judge round trip
adversarial/ Tamper detection, forged and duplicate names, hub behaviour at h = ∞, look-alike controls, leakage, partial observation
repro/ Determinism and score-cache replay
fixtures/schemas/ Reference records for schema validation
conftest.py, *_helpers.py, agent_harness.py Shared fixtures and helpers

The recorded full-suite result is 2,122 passed, 0 failed, on code hash 9a292fd2… (log in the development records). It was not re-run for the report.

7.10 results/

Path Content Standing
freeze_1.json FREEZE-1 record: code, configuration and DEV-decision hashes Authoritative
freeze_2.json, freeze_2_authorization.json FREEZE-2 record (j_status = dropped) and the owner's authorization Authoritative
freeze_1_prereg_addendum_DRAFT.md Addendum text, appended to prereg.md after approval Historical draft
freeze_2_prereg_addendum_DRAFT.md Draft addendum for FREEZE-2 Not yet appended
e1/ Confirmatory E1-CPU outputs: summary.json, contrasts_F1.json, contrasts_D_exploratory.json, ecov.csv, grouping_metrics.csv, cost.csv, detection_D.csv, manifest.json; large per-record JSONL logs are kept locally Authoritative
e2_e4_cpu/ E2 renaming summary (e2_summary.json) and per-record log Exploratory
e0b_dev_v4_vllm/ E0b on the live DEV root with the final configuration: approvals, DEV decisions, leakage, workload, truncation, report Authoritative for FREEZE-1
e0a_dev_v4/, e0a_stress_dev_v4/ E0a on the live DEV root and the stress sample Authoritative
e0b_dev_v4/ Identical earlier E0b run before the final judge configuration Superseded
e0a/, e0b/, e0a_dev_v2_provisional/, e0a_dev_v3/, e0b_dev_v3/ Runs on earlier DEV roots Historical
e0b_dev_v3_INVALID_wrong_e0a_input/ Run with a mismatched E0a input, kept for transparency Invalid
judge_connectivity/ Judge connectivity checks (synthetic, method-neutral; not detection evidence) Engineering
t13/, t14_15_16b/ Engineering sweeps on DEV Engineering

7.11 docs/

Path Content
DEVELOPMENT_LOG.md The previous README: a chronological implementation log, including the original prior-work disclosure. Preserved verbatim
t09d/ Attack validation report and decision memos (H/X allocation, I-7 divergence)
t10/ Full DEV pipeline report and handoff
t11a/, t11_completion/, t11_12_13/, t11b_final/ E0a closure, provenance verification, grouping, generator lock and FREEZE-1 implementation reports
t14_15_16b/ Similarity, rendering and leakage reports, including scientific limitations
t17a/, t17b_preparation/ Judge pipeline, E0c, E1 pipeline and CAL/TEST readiness reports
final_execution/ Final session report, approvals draft and execution plan

7.12 submission/

Path Content
PROVGROUP_SWARM_ALIGNMENT_2026.pdf Submitted research report (7 pages of main text, plus references and appendices)
paper_source.md Editable source of the report
SUBMISSION_DETAILS.md Form fields, project summary and the status of each finding
make_figures.py Draws all figures from the recorded result files
build_pdf.py Converts the source to HTML and prints the PDF with headless Chrome or Edge
figures/ Figures 1 to 4 (SVG and PNG): architecture, eCov₃ by method, paired contrasts, budget curves
e1_supplement/ supplement.json (H4 and secondary contrasts) and its auxiliary SVG plots

Data roots outside the repository: D:/provgroup_dev/dev_v4 (live DEV split) and D:/provgroup_research/{cal,test} (CAL and TEST splits). Every split can be regenerated deterministically from its seeds.


8. Environment and installation

8.1 Recorded environment

Component Version
Operating system Windows 11 Home, x86-64 (CPU only; no GPU required)
Interpreter CPython 3.14.6 (requires-python >= 3.12)
Core dependencies networkx 3.7, numpy 2.5.4, pydantic 2.14.3, PyYAML 6.0.3, scikit-learn 1.9.1, scipy 1.18.1, statsmodels 0.15.0
Test dependencies pytest 9.2.0, hypothesis 6.170.14
Report build matplotlib 3.11.2, markdown 3.11.3, pypdf, PyMuPDF 2.1, and a Chromium-based browser for printing

8.2 Installation

python -m venv .venv
# Windows: .venv\Scripts\activate      POSIX: source .venv/bin/activate
python -m pip install -r requirements-lock.txt
python -m pip install -e . --no-deps
python -m pip install -e ".[paper]"    # optional: figures and PDF build

8.3 Environment variables

No environment variable is required to reproduce the recorded results. .env.example documents the two optional ones.

Variable Required Purpose
PYTHONUTF8 Recommended on Windows Forces UTF-8 console I/O, so reports that contain Greek symbols print correctly
A judge API key (name chosen by the user) No Read only if configs/judge.yaml sets api_key_env to that name. It is null in the frozen configuration. Keys are never stored in files

9. Reproducing the results

The commands below reproduce the confirmatory pipeline. Paths on drive D: follow the recorded runs and can be changed freely. Generation of CAL and TEST is refused unless results/freeze_1.json and results/freeze_2.json match the current code and configuration hashes.

# 1. Test suite (about 15 to 25 minutes)
python -m provgroup.cli test

# 2. DEV split and its audit
python -m provgroup.cli dataset --split DEV --out D:/provgroup_dev/dev_v4 --config configs/dev.yaml
python -m provgroup.cli audit-dataset --root D:/provgroup_dev/dev_v4 --config configs/dev.yaml

# 3. DEV gates (already recorded; re-running writes to a new directory)
python experiments/run_e0a.py --dataset D:/provgroup_dev/dev_v4 --out results/e0a_rerun
python experiments/run_e0b.py pre-lock --dataset D:/provgroup_dev/dev_v4 --out results/e0b_rerun

# 4. CAL and TEST generation (freeze-guarded) and independent audits
python experiments/run_e1.py generate --split CAL  --out D:/provgroup_research/cal
python experiments/run_e1.py generate --split TEST --out D:/provgroup_research/test
python -m provgroup.cli audit-dataset --root D:/provgroup_research/cal  --config configs/e1.yaml
python -m provgroup.cli audit-dataset --root D:/provgroup_research/test --config configs/e1.yaml

# 5. Confirmatory E1-CPU (about four hours on a laptop CPU)
python experiments/run_e1.py cpu --cal D:/provgroup_research/cal --test D:/provgroup_research/test --out results/e1

# 6. Supplementary H4 analysis and exploratory E2/E4
python tools/final_exec/e1_supplement.py results/e1 submission/e1_supplement
python tools/final_exec/e2_e4_cpu.py --cal D:/provgroup_research/cal --test D:/provgroup_research/test --out results/e2_e4_cpu

# 7. Figures and report
python submission/make_figures.py
python submission/build_pdf.py

The freeze commands (python -m provgroup.cli freeze --stage 1|2) need a separate, owner-written authorization file. They never overwrite an existing record, so they are not part of a routine reproduction.


10. Integrity record

Item Value
Code hash, src/provgroup sha256:9a292fd27795d802970ba15684ff9c5ef11e144d1c234f478e1e21468c5f4dbc
Configuration hash, configs/ sha256:6fac3c7f2ea2bcde289e11e286f5f6412e880c4b01714b41313cae74919296c0
Prompt hash, prompts/ sha256:5f94598f2492f33582b8308f198d0c7314320a5c5370fcebd6936b912c82aad5
Generator parameters sha256:d961c4361cb3bcc51c8b5878a7271bd7a41ca9acda08e766df2517afb2bceeda (locked 2026-11-07 21:26:44 UTC)
FREEZE-1 results/freeze_1.json, sha256:d5ae3437…54f2, 2026-11-07 21:39:30 UTC
FREEZE-2 results/freeze_2.json, sha256:c7f38615…6edc, 2026-11-08 12:34:21 UTC, j_status = dropped
DEV dataset identity sha256:3bf012d8286329df728d9fcba95bfc66e3a4de3a0226012e009c859441745838
DEV audit and replay 800 of 800 witness chains verified; replay 50 of 50 identical
CAL and TEST audits 600 and 1,425 episodes; every witness chain verified; 825 attack successes re-derived; 0 failures

11. Limitations

  • Synthetic agents. Agents are scripted and share one rendering template. The results say nothing about real or frontier language-model agents.
  • Simulated trust boundary. The gateway and witness run in-process, the gateway is log-before-ack, and the hash chain is unsigned. No enforcement or tamper-resistance claim is made.
  • Workload deviation. The median whole-episode render was 1.313 times the token cap, not the registered 2.5 times. This approved deviation means budget pressure is milder than intended.
  • A-8 false-merge ceiling. The benign false-merge rate was already 1.0 at h = 4, and was 1.0 for every member-bundle method on TEST. Grouping is coarse: G3 finds the neighbourhood of an attack, not the culprits.
  • No detection result. The judge returned no responses, so every detection hypothesis is untested. The idealized scorer D equals co-location by construction.
  • Hub laundering. This is an effective evasion of G3 with hub pruning. On X3 the shuffle null exceeded G3 (exploratory).
  • Manipulation check MC1 not met. Self-reported grouping G2 improved, rather than degraded, under renaming. The cause has not been diagnosed.
  • Not executed: F2, E3, E5, E6, X2, G1c and the TEST leakage confirmation. The E4 sweep was incomplete at submission.
  • Leakage probes cover only the listed features. An earlier independent payload-format test recorded p = 0.018 on the hub route.

The full limitations table is in Appendix A of the report.


12. Prior-work disclosure

The hackathon rules require code written before the sprint to be marked as preexisting.

  • Preexisting (before the 2026-11-06 21:30 UTC kickoff): planning/, research/, prereg.md, and the T-01 and T-02 scaffolding. The scaffolding consists of pyproject.toml, .gitattributes, .gitignore, configs/dev.yaml, the modules __init__, cli, canon, schemas, seeds, io and config, and the initial tests/. It was written on 2026-11-06 between about 07:20 and 07:45 UTC.
  • Sprint work: everything else. This includes the attacks (X1, X3), the modifiers (R, F), the validation layer, the DEV pipeline, E0a and E0b, grouping and baselines, rendering and budgets, the freeze machinery, the CAL/TEST runs, the analyses and the report.

The detailed chronology is in docs/DEVELOPMENT_LOG.md.


13. Ethics and dual use

  • No real data or systems. The testbed contains scripted colluding agents and documents a concrete evasion (hub laundering). The agents are not learned models, and no real data, people or systems are involved.
  • Why disclose the evasion. It follows directly from the design of hub pruning, and defenders should test it before relying on provenance grouping.
  • Over-trust and privacy. Provenance logs concentrate trust in the gateway and can expose user data flows. Deployments should log artifact identifiers and versions rather than contents, and restrict access to these logs.
  • AI assistance. AI coding assistants were used for implementation and analysis, under the preregistration and freeze rules described above.

14. Citation

@misc{tandon2026provgroup,
  author       = {Tandon, Aarushi},
  title        = {Who's in the Episode? Trusted Provenance Grouping for Budgeted
                  Multi-Agent Collusion Oversight},
  year         = {2026},
  howpublished = {Apart Research Swarm Alignment Hackathon, research report},
  note         = {Independent Researcher}
}

About

Provenance-aware grouping for multi-agent AI oversight, using trusted artifact dependencies to co-locate distributed attacks under limited review budgets.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages