Working Draft
File: /anvil/2026/problems.tex
Owner: Technical Council
Bench: github.com/Sauhard74/Anvil-P&E
ANVIL
Problem Statements · Vol. XII · MMXXVI
Rev. 14·05·2026
Classification — Internal
Status — 04/04 Finalized
Anvil — Hackathon · 24 Hours · Bangalore
Problem · 01 / 04 — Open Track

A database that never disagrees, even when nobody is online.

Build an embeddable OLTP engine whose external surface looks like SQLite — tables, secondary indexes, joins, foreign-key cascades, uniqueness — and whose internal representation is CRDT all the way down. Multiple writers mutate locally without coordination. Merges converge. Invariants survive.

Motivation

Local-first applications, multi-region deployments, and offline-tolerant systems all break against the same wall. CRDTs have solved blobs, registers, sequences, and sets. The relational primitives developers actually use — secondary indexes under concurrent inserts, foreign-key cascades under partition, range queries with deterministic order, uniqueness constraints — collapse the moment two writers diverge. Replicache, ElectricSQL, PowerSync, and Y-sweet each ship a partial answer. The full relational story remains open. It is a real systems problem with a real commercial wedge.

Challenge

Identify which relational invariants are natively CRDT-expressible (set membership, last-writer-wins fields, monotonic counters), which require lattice-respecting encoding (multi-value registers for conflicting cell writes, observed-remove sets for membership under concurrent insert/delete), and which fundamentally require a coordination protocol (uniqueness, escrow-style constraints, foreign-key existence under deletion). For each category, defend a chosen semantics and prove convergence — informally but rigorously.

Required Capabilities

  • SQL SurfaceCREATE TABLE with a primary key and at least one secondary index. INSERT / UPDATE / DELETE over N concurrent peers without a coordinator.
  • Deterministic ReadsRange queries that return a deterministically merged result regardless of the order in which peer updates were applied.
  • Foreign KeysCascade behavior under partition with a chosen, documented, defended semantics — not silence.
  • UniquenessAt least one uniqueness constraint enforced via an explicit escrow or reservation protocol. Pure CRDTs cannot do this. Address it directly.
  • SyncA pairwise sync protocol with bounded metadata and a written argument for eventual convergence.

Stretch Vectors

  • BitemporalTransaction-time and valid-time queries over the merged history.
  • Causal ReadsMonotonic-read and read-your-writes guarantees at the client.
  • Schema MigrationOnline schema change under partition — the unsolved final boss.

Anti-Patterns · Auto-Disqualifying

  • Server-Authoritative + Optimistic UIThis is the problem being solved, not the solution. Submissions that fall back to a single source of truth on conflict will be rejected.
  • Row-Level LWWLast-writer-wins on the entire row is degenerate and fails on any non-trivial schema. Cell-level resolution is the floor.
  • Unbounded MetadataVector clocks or version vectors that grow without bound in writer count. Garbage collection is part of the protocol, not an afterthought.

Deliverable

A working engine — Rust + WASM, TypeScript + IndexedDB, or any language with strong type discipline. Two laptops offline. Both INSERT rows. Both UPDATE different columns of the same row. One DELETEs a parent row while the other INSERTs a child. Reconnect over an unreliable network. Show: a deterministic merged state on both peers, a transcript of how each invariant was preserved, and a five-page architectural defense of every coordination decision you made.

Editorial Note
The interesting code is not in the SQL parser. It is in the moments where the lattice breaks and you have to pick — and own — a coordination protocol.
Annex A — Operational Contract
What to ship, how to ship it, how it will be judged.
This section is binding. Where the manifesto above is open to interpretation, the annex is not. If your design disagrees with the annex, the annex wins.
Interface · Surface

The engine ships as either an embedded library OR a local-process daemon speaking a documented wire protocol. Pick one and stay with it.

Embeddeddb = open("./mydb", peer_id="A")
db.execute("CREATE TABLE ...")
db.execute("INSERT ...")
db.sync_with(peer_b)            # pairwise, bidirectional
state_hash = db.snapshot_hash()
DaemonPOST /sql        { "stmt": "INSERT ...", "params": [...] }
POST /sync       { "peer": "B", "since": "<cursor>" }
GET  /snapshot   -> { "hash": "...", "tables": {...} }
Reference Schema

All teams test against the same schema. Custom schemas are permitted in writeup discussion but not in the judged scenario.

SQLCREATE TABLE users (
  id    TEXT PRIMARY KEY,
  email TEXT NOT NULL UNIQUE,
  name  TEXT
);

CREATE TABLE orders (
  id          TEXT PRIMARY KEY,
  user_id     TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
  status      TEXT NOT NULL,
  total_cents INTEGER NOT NULL DEFAULT 0
);

CREATE INDEX orders_by_user ON orders(user_id, status);
Reference Scenario

Three peers A · B · C. All start empty and disconnected. Operations execute locally in the order shown.

Sync semantics — Sync(a, b) is symmetric and bidirectional. Either argument may initiate; on return both peers reflect each other's known state per the engine's merge rules. Peer state changes only via local execution or sync; there is no broadcast.

TraceA: INSERT users (u1, alice@x.com, "Alice")
A: INSERT users (u2, bob@x.com,   "Bob")
B: INSERT users (u3, alice@x.com, "Alice'")   # uniqueness conflict on email
C: (after one-way sync from A — holds u1, u2)
C: DELETE users WHERE id = u1                 # parent delete under partition
A: INSERT orders (o1, u1, "pending", 1200)    # child insert vs deleted parent
A: UPDATE users SET name  = 'Alice Cooper'    WHERE id = u1
B: UPDATE users SET email = 'alice@ex.org'    WHERE id = u1   # cell-level conflict

# Pairwise sync A↔B ↔ B↔C ↔ A↔C until quiescent.

Required assertions, run by judges:

  • Bit-identical merged state across A, B, C — verified by snapshot hash.
  • Uniqueness invariant on users.email holds. The winning row is documented and the loser is recoverable (not silently dropped).
  • Foreign-key behavior for o1 against the deleted u1 is documented and consistent with your stated semantics (kept-with-tombstone / cascaded / promoted-to-orphan — your choice, but pick one and defend it).
  • Cell-level merge on users.u1 preserves both updates (name and email) without whole-row LWW.
  • Convergence is invariant under sync ordering: a randomized re-run produces the same final hash.
Metadata Bound

Sync metadata per row must be bounded by O(writers), where writers is the count of distinct peers that have written that row. Version vectors / vector clocks that grow per write are auto-disqualifying. Garbage collection is part of the protocol, not an afterthought.

FK Policy · Declaration

Foreign-key behaviour under partition is not a per-row choice. Your engine declares one policy as a first-class property, applied uniformly across every FK conflict, every table, every run. Three policies are accepted:

  • cascadeThe child row vanishes with the parent. Implementation cost: lowest. Concurrent child writes that referenced the deleted parent are lost — you must defend this trade-off in the writeup.
  • tombstoneThe child row survives. Its user_id column references a tombstoned row preserved in metadata. Queries see the child; the engine documents that the parent is logically deleted but referentially live.
  • orphanThe child row survives with user_id set to NULL or a documented sentinel. The relationship is severed; the child stands alone.

You declare the policy to the benchmark via --fk-policy {cascade|tombstone|orphan}. The harness asserts observed state matches the declaration on the (o1, u1) conflict in the reference scenario. Switching policy mid-run, or picking different policies for different tables, is disqualifying — one principled choice, defended in the writeup.

Dependencies
  • PermittedExisting CRDT primitives (Automerge, Yjs, Loro, Diamond Types, Y-CRDT) used as register / sequence / set building blocks. The relational layer — indexes, joins, FK, uniqueness, query — must be your own work.
  • ForbiddenUsing a server-side relational engine (Postgres / MySQL / SQLite as authoritative store) as the merged source of truth. SQLite as a local read-side cache is fine.
  • RequiredDisclose every dependency in your README, including version pins.
Constraints
Team size
1 – 4
Time
24 hours
Language
Open
Hardware
Commodity laptop · Linux or macOS
Network
Local-only; no cloud calls in the judged scenario
Submission
  • RepositoryGit link, public or private. Apache-2.0 / MIT preferred.
  • QuickstartREADME must produce a green run on a clean machine in under 5 minutes.
  • ReproducibilityDockerfile, Nix flake, or equivalent. The reference scenario must produce a bit-identical hash on judges' machines.
  • Demo5-minute screen-recorded walkthrough of the reference scenario.
  • Writeup3-page PDF defending: lattice choices per type, uniqueness protocol, FK protocol, sync protocol, metadata-growth analysis.
Judging Mechanics
  • AutomatedJudges run the reference scenario container. Check merged-state hash determinism and all invariants listed above.
  • ChaosA hidden variant reorders the operation trace with a fresh random seed. Final state must hash identically to the original run.
  • ManualWriteup graded on architectural defense, particularly the uniqueness and FK protocols.
  • Live15-minute Q&A. Expect questions on convergence proofs and corner cases.
Bench · Run It Yourself

The full evaluation harness is open and runs on your machine. Pure Python, stdlib only, no network access, no external dependencies. Five steps from clone to score.

  1. Step 1 · Clone
    Shellgit clone https://github.com/Sauhard74/Anvil-P-E
    cd Anvil-P-E/bench-p01-crdt
  2. Step 2 · Read the interface Open adapter.py. Seven methods every submission must implement: open_peer, apply_schema, execute, sync, snapshot_hash, snapshot_state, close.
  3. Step 3 · Write your adapter Create adapters/myteam.py as a thin shim over your engine. For non-Python engines, bridge via subprocess, gRPC, or HTTP.
    adapters/myteam.pyfrom adapter import Adapter
    
    class Engine(Adapter):
        def __init__(self):
            self.peers = {}                          # peer_id -> your engine
    
        def open_peer(self, peer_id):
            self.peers[peer_id] = MyEngine.new()
    
        def apply_schema(self, peer_id, stmts):
            for s in stmts:
                self.peers[peer_id].execute(s)
    
        def execute(self, peer_id, sql, params=()):
            self.peers[peer_id].execute(sql, params)
    
        def sync(self, peer_a, peer_b):
            self.peers[peer_a].sync_with(self.peers[peer_b])
    
        def snapshot_hash(self, peer_id):
            return self.peers[peer_id].state_hash()
    
        def snapshot_state(self, peer_id):
            return self.peers[peer_id].dump_tables()
    
        def close(self):
            for p in self.peers.values():
                p.shutdown()
  4. Step 4 · Self-check Run the condensed battery. --quick uses fewer seeds for fast iteration.
    Shellpython self_check.py --adapter adapters.myteam:Engine \
      --fk-policy tombstone --quick
    You'll see a per-axis pass/fail matrix and a weighted score. Iterate until all axes pass.
  5. Step 5 · Full run with arbitrary seeds When the condensed run is green, drop --quick for the full battery. Stress-test with any L2 seeds — if your engine is correct, every seed passes.
    Shellpython run.py --adapter adapters.myteam:Engine --fk-policy tombstone \
      --randomized-seeds 9999 31415 27182 16180 11235 \
      --rand-peers 5 --rand-ops 150 --out report.json

The bench resists hardcoding by design. Three layers of evaluation:

  • L1 · CanonicalThe 3-peer trace described above. Passing is necessary but not sufficient.
  • L2 · Property-basedPass --randomized-seeds any integers. Generator produces fresh ops per seed; assertions are pure CRDT invariants — convergence, uniqueness, idempotent sync. A hardcoded solution cannot pass because the expected hash is unknown until the run.
  • L3 · AdversarialHeld-out seeds and hand-crafted edge cases at higher parameter values. Used only at final evaluation. Not distributed.

Repository · Sauhard74/Anvil-P&E

Problem · 02 / 04 — Open Track

Persistent Context Engine for autonomous SRE.

Existing observability stores telemetry. It does not preserve operational reasoning. Every incident forces engineers to rebuild causal chains, correlate fragmented signals, and rediscover behaviors the system has already encountered. Build the substrate that ends that loop.

Problem

Distributed production environments evolve continuously: services are renamed, dependencies shift, deployments mutate behavior, operational patterns drift, topology structures change. Traditional observability is optimized for visualization, querying, alerting, and short-horizon analysis — not for preserving long-term operational understanding. As complexity rises, recurring incidents reappear under different telemetry signatures, modified topologies, renamed services, or altered dependency structures.

Most AI-assisted observability approaches lean on semantic retrieval, embedding similarity, keyword search, static graph correlation, or incident retrieval pipelines. All degrade under topology drift, temporal evolution, noisy telemetry, partial observability, and changing infrastructure semantics. The challenge is therefore a systems problem.

Core Question
How can operational telemetry be transformed into persistent memory capable of adaptive reasoning across evolving distributed environments?

System Expectations

The Persistent Context Engine functions as an operational memory substrate. Instead of storing telemetry as isolated searchable records, it should continuously synthesize evolving contextual relationships directly from operational behavior — temporal reasoning, arbitrary relationship formation, adaptive contextual reconstruction, behavioral abstraction, evolving operational associations, and topology-independent reasoning.

Relationships may emerge from correlated degradation, deployment adjacency, repeated co-occurrence, remediation sequences, inferred causality, operator workflows, or latent operational patterns. No fixed schema or rigid ontology is mandated. Dynamic edge formation and continuously evolving topology structures are first-class.

During incident analysis, the engine reconstructs investigation context dynamically, traverses historical operational memory, surfaces historically validated remediation pathways, identifies recurring behavioral patterns, and synthesizes signal-dense operational understanding. The expected output is not a search result. It is reconstructed operational context.

Architectural Scope

Any architecture, infrastructure stack, or storage model. Possible directions include —

  • Graph-based systems
  • Temporal memory architectures
  • Probabilistic structures
  • Distributed streaming systems
  • Contextual synthesis pipelines
  • Reinforcement-based memory systems
  • Hybrid indexing strategies
  • Custom operational memory substrates

Core Capabilities

  1. 01 · Operational IngestionContinuously ingest large-scale telemetry streams. Preserve provenance and temporal ordering. Support replayability and historical operational continuity.
  2. 02 · Dynamic Relationship SynthesisConstruct relationships without predefined schemas. Support evolving edge semantics. Preserve probabilistic and contradictory signals where necessary. Synthesize associations adaptively.
  3. 03 · Long-Horizon Operational MemoryPreserve contextual understanding across infrastructure drift. Recognize behavioral equivalence across changing environments. Support reinforcement and decay. Maintain persistence over time.
  4. 04 · Adaptive Context CompilationAt incident time, reconstruct investigation context dynamically. Prioritize high-signal understanding. Surface relevant historical behaviors. Compile context adaptively from evolving memory.
  5. 05 · Incident Shape RecognitionIdentify recurring operational behaviors independent of topology. Support approximate behavioral matching. Recognize evolving failure signatures. Detect operational equivalence despite telemetry drift.
  6. 06 · Continuous LearningReinforce successful remediation pathways. Evolve contextual salience through operational feedback. Improve reconstruction quality over time.
  7. 07 · ScalabilityOperate under high-ingestion telemetry workloads. Maintain efficient contextual synthesis. Support low-latency operational reconstruction.

Benchmark & Evaluation

The benchmark harness is publicly available in the linked repository and runs locally on participants' machines — pure Python, stdlib only, no external dependencies. Held-out adversarial scenarios (L3) at higher parameter values are revealed only at final evaluation. The benchmark simulates distributed production systems under evolving failure conditions. Datasets include deployment sequences, infrastructure mutations, incident timelines, remediation histories, telemetry drift, topology evolution, and changing dependency structures.

AreaDescription
Incident RecallIdentify historically similar incidents
Context QualityRelevance and signal density of synthesized context
Retrieval AccuracyCorrectness of surfaced operational memory
Pattern RecognitionDetection of recurring operational behaviors
Temporal ReasoningHandling evolving infrastructure states
AdaptabilityRobustness under topology drift
LatencyRuntime context-synthesis performance
ScalabilityThroughput under large ingestion
ExplainabilityInspectable reasoning pathways
Memory EvolutionImprovement through operational feedback

Expected Outcome

Persistent operational memory formation. Adaptive contextual reconstruction. Recurring incident recognition. Topology-independent behavioral understanding. Evolving operational reasoning. Measurable improvement through operational feedback loops.

North Star
Not a dashboard. Not a log viewer. Not a retrieval wrapper. An operational memory engine.
Annex A — Operational Contract
What to ship, how to ship it, how it will be judged.
This section is binding. The manifesto above is open to interpretation; the annex is not. The public benchmark harness in the linked repository adheres to these shapes. Held-out adversarial scenarios (L3) at higher parameters are revealed only at final evaluation — your engine must conform to both.
Input · Telemetry Shape

The engine consumes a stream of timestamped events in newline-delimited JSON. Six event kinds are guaranteed; teams may anticipate more in held-out evaluation.

JSONL · sample{"ts":"2026-05-10T14:21:30Z","kind":"deploy",  "service":"payments-svc","version":"v2.14.0","actor":"ci"}
{"ts":"2026-05-10T14:22:01Z","kind":"log",     "service":"checkout-api","level":"error","msg":"timeout calling payments-svc","trace_id":"abc123"}
{"ts":"2026-05-10T14:22:01Z","kind":"metric",  "service":"payments-svc","name":"latency_p99_ms","value":4820}
{"ts":"2026-05-10T14:22:08Z","kind":"trace",   "trace_id":"abc123","spans":[{"svc":"checkout-api","dur_ms":5012},{"svc":"payments-svc","dur_ms":4980}]}
{"ts":"2026-05-10T14:30:00Z","kind":"topology","change":"rename","from":"payments-svc","to":"billing-svc"}
{"ts":"2026-05-10T14:32:11Z","kind":"incident_signal","incident_id":"INC-714","trigger":"alert:checkout-api/error-rate>5%"}
{"ts":"2026-05-10T15:10:00Z","kind":"remediation","incident_id":"INC-714","action":"rollback","target":"billing-svc","version":"v2.13.4","outcome":"resolved"}
Interface · Surface

The engine exposes two operations. The public harness provides a Python adapter base class; teams may implement directly in Python or bridge via subprocess, gRPC, or HTTP to a non-Python engine.

Pythonclass Engine:
    def ingest(self, events: Iterable[Event]) -> None: ...
    def reconstruct_context(
        self,
        signal: IncidentSignal,
        mode: Literal["fast", "deep"] = "fast",
    ) -> Context: ...
Output · Context Shape

The output of reconstruct_context is a structured object — not free text. Narrative explanations live inside the explain field.

Pythonclass Context(TypedDict):
    related_events:          list[Event]            # ordered, deduped, with provenance
    causal_chain:            list[CausalEdge]       # (cause_id, effect_id, evidence, confidence)
    similar_past_incidents:  list[IncidentMatch]    # (past_incident_id, similarity, rationale)
    suggested_remediations:  list[Remediation]      # (action, target, historical_outcome, confidence)
    confidence:              float                  # overall, 0..1
    explain:                 str                    # human-readable narrative
Worked Example

Given the JSONL sample above, on receipt of the incident_signal for INC-714, reconstruct_context(signal, mode="fast") must return a Context that:

  • Related EventsIncludes the v2.14.0 deploy, the latency metric, the trace, and the upstream error log — with provenance back to source events.
  • Causal ChainContains an edge deploy → latency spike → upstream error with confidence ≥ 0.5 and evidence pointers.
  • Similar Past IncidentsThe central test. If the engine has previously ingested a payments-svc deploy → rollback pattern, that match must surface despite the payments-svc → billing-svc rename. Topology-independent behavioral matching is non-negotiable.
  • Suggested Remediation"Rollback billing-svc to prior version" with confidence reflecting historical success rate.
Latency Budget
Ingest sustained throughput
≥ 1,000 events / sec
Ingest lag (event → queryable)
≤ 5 s
reconstruct_context — fast mode
p95 ≤ 2 s
reconstruct_context — deep mode
p95 ≤ 6 s
Cold-start to first reconstruction
≤ 60 s on the benchmark dataset
Dataset Scale

Two scales. The public bench runs the L2 defaults below — small enough to iterate on a laptop, large enough to surface the rename-robustness test. L3 evaluation runs at higher parameters held by the council.

L2 · Public bench defaults

Time span
7 simulated days
Services
12
Deploys
30
Topology mutations
8 (renames, dependency shifts)
Incidents (train / eval)
24 train · 10 held-out eval
Recurring incident families
5 (each with morphed signatures across renames)
Background events
~200 per service-day (≈17k per default run)

L3 · Adversarial (held out)

Higher service count, denser drift, more incident families per dataset, hand-crafted scenarios (correlated multi-service outages, cascading rename chains). Exact parameters revealed only at final evaluation. You can stress-test your engine at any scale via --n-services and --days.

Concrete Metrics

Each evaluation area maps to an unambiguous number. No marketing scores.

  • Incident Recallprecision@5 and recall@5 on past-incident matching, computed across the renamed boundary.
  • Context QualityF1 of returned related_events vs ground-truth, plus judge-graded 1–5 on a sampled subset.
  • Pattern RecognitionF1 on incident-family classification after signature morphing.
  • Temporal Reasoning% of causal_chain edges with correct ordering and source-precedes-effect under topology drift.
  • AdaptabilityΔ-metric between pre-drift and post-drift evaluation windows. Smaller drop = stronger system.
  • LatencyMeasured p95 vs the budgets above.
  • Memory EvolutionImprovement in metrics between train-only ingestion and full ingestion.
  • ExplainabilityJudge-graded 1–5 on the explain narrative on a sampled subset.
Dependencies
  • PermittedAny storage backend (Postgres, DuckDB, Neo4j, Qdrant, custom). Any embedding model. Any LLM provider. All third-party usage cost is borne by the participating team.
  • Baseline WarningThe SDK ships a reference vector-similarity baseline. Submissions that wrap it without architectural innovation will rank near the bottom by design.
  • RequiredEvery dependency disclosed in the README with version pins. Egress to external services declared.
Constraints
Team size
1 – 4
Time
24 hours
Language
Open
Environment
Participant-provided · no compute, cloud, or cost issued by the council
Submission
  • RepositoryGit link with README quickstart.
  • Runnerbench/run.sh ingests the published sample, runs the canonical scenario, emits a JSON report matching the SDK schema.
  • ReproducibilityDockerfile / Nix flake. Held-out eval will run on judges' machines.
  • Demo5-minute screen-recorded walkthrough of the worked example.
  • Writeup3-page PDF defending: memory representation, relationship-synthesis algorithm, drift-handling strategy, latency engineering, evolution mechanism.
Judging Mechanics
  • AutomatedSDK runs the benchmark against the held-out 20-incident eval set on judges' hardware. Metrics dump to JSON.
  • ChaosOne hidden scenario, revealed at runtime: a topology shift injected mid-evaluation. System must maintain recall across the shift.
  • ManualExplainability and Context Quality graded by panel on sampled outputs.
  • Live15-minute Q&A. Expect questions on memory representation, drift handling, and what specifically fails in the baseline.
Bench · Run It Yourself

The full evaluation harness is open and runs on your machine. Pure Python, stdlib only, no network access, no external dependencies. Five steps from clone to score.

  1. Step 1 · Clone
    Shellgit clone https://github.com/Sauhard74/Anvil-P-E
    cd Anvil-P-E/bench-p02-context
  2. Step 2 · Read the types & interface Open schema.py for the Event / IncidentSignal / Context TypedDicts, then adapter.py for the three methods every submission must implement: ingest, reconstruct_context, close.
  3. Step 3 · Write your adapter Create adapters/myteam.py as a thin shim over your engine. For non-Python engines, bridge via subprocess, gRPC, or HTTP.
    adapters/myteam.pyfrom adapter import Adapter
    from schema import Event, IncidentSignal, Context
    
    class Engine(Adapter):
        def __init__(self):
            self.store = MyMemorySubstrate()
    
        def ingest(self, events):
            for e in events:
                self.store.consume(e)
    
        def reconstruct_context(self, signal: IncidentSignal,
                                mode="fast") -> Context:
            return self.store.reconstruct(signal, mode=mode)
    
        def close(self):
            self.store.shutdown()
  4. Step 4 · Self-check Run the condensed multi-seed battery. --quick uses two seeds and a small dataset for fast iteration.
    Shellpython self_check.py --adapter adapters.myteam:Engine --quick
    You'll see per-metric values (recall@5, precision@5_mean, remediation_acc, latency_p95) and a weighted automated score. Iterate to improve the weak axes.
  5. Step 5 · Full run with arbitrary seeds When metrics look healthy on --quick, run the full battery and stress-test with any seeds. Each seed runs in a fresh adapter instance — there is no way for caches to leak between seeds.
    Shellpython run.py --adapter adapters.myteam:Engine --mode fast \
      --seeds 9999 31415 27182 16180 11235 \
      --n-services 20 --days 14 --out report.json

The bench resists hardcoding by design. Three layers of evaluation:

  • L1 · CanonicalThe worked example shape described above. Passing is necessary but not sufficient.
  • L2 · Property-basedPass --seeds any integers. Each seed runs in a freshly-constructed adapter — no cross-seed state leakage, no caching tricks. An engine that handles topology drift passes for any seed; a string-match baseline does not.
  • L3 · AdversarialHeld-out seeds at higher parameter values, plus hand-crafted scenarios — correlated multi-service outages, cascading rename chains, families morphed across both rename and dependency-graph shifts. Used only at final evaluation. Not distributed.

Repository · Sauhard74/Anvil-P&E

Problem · 03 / 04 — Sponsored Track

Multi-agent autonomy that ships real work, end-to-end.

Build a real-world multi-agent autonomous pipeline that solves a meaningful real-world problem end-to-end. Autonomous. Long-running. Tool-using. Webhook-driven. Deep reasoning, real tool calls, real side-effects.

Brief

Build a real-world multi-agent autonomous pipeline that solves a meaningful real-world problem end-to-end. The system should work autonomously, handle long-running tasks, support deep reasoning, tool calling, web search, webhooks, and asynchronous task orchestration.

Omium's SDK is available as an optional tracing and observability layer. Teams that instrument their workflow through Omium can submit verified traces alongside the product — the dashboard becomes the verifiable record of what the system actually did. The tracing path earns bonus credit on the evaluation; it is not a gate on the core problem.

Required Capabilities

  • Multi-AgentMultiple specialised agents collaborating on a shared task — not a single LLM wrapped in retry logic.
  • AutonomyReal autonomous task execution. The system completes meaningful work without continuous human steering.
  • Long-RunningWorkflows that run beyond the lifetime of a single request. Crash-safe enough to demo reliably.
  • Deep ReasoningThe agent decomposes, plans, and reflects. Not a single-shot prompt.
  • Tool CallingThe agent reaches out — APIs, code execution, data sources, files.
  • Web SearchThe system can pull live web information when the task requires it.
  • WebhooksExternal event ingress — the workflow reacts to the world, not only to user prompts.
  • Async OrchestrationTasks fan out, complete on their own timeline, return to the planner.

Optional · Bonus Track

  • Omium SDK TracingInstrument the workflow through Omium's SDK so every meaningful action — agent step, tool call, webhook fire, async dispatch — produces a verifiable trace on the Omium dashboard. Earns bonus credit on the evaluation. Not required for the core submission.
North Star
A demo that runs. A product someone would actually use. End-to-end work, completed without a human in the loop.

Evaluation

Six core axes total 100%. Omium verified tracing earns an additional +10% bonus on top.

  1. 01 · Problem Relevance & Usefulness · 20% Solves a real and meaningful problem. Clear target users and practical value. Product feels usable beyond a hackathon demo. Strong UX and polished workflow.
  2. 02 · Autonomous Execution · 25% Completes tasks with minimal or no human intervention. Agents make decisions independently. Handles retries, failures, and branching flows. Demonstrates true autonomy instead of scripted prompts.
  3. 03 · Multi-Agent Workflow Quality · 20% Clear separation of agent responsibilities. Effective coordination and task handoff. Depth of reasoning and planning. Sophisticated orchestration across agents.
  4. 04 · Tooling & Integrations · 15% Effective use of APIs, databases, files, code execution, webhooks, and similar. Real side-effects produced by the system. Proper async execution and long-running task handling. Meaningful use of web search and live data.
  5. 05 · Demo Video Quality & Execution · 10% Video clearly showcases the complete workflow end-to-end. Smooth and reliable execution without major failures or interruptions. Clear storytelling, presentation, and problem explanation. Autonomous task completion demonstrated in a realistic scenario. Easy to follow agent flow, tool usage, and final outcome.
  6. 06 · Technical Architecture & Engineering · 10% Clean architecture and maintainable codebase. Scalability and modularity. Proper observability and logging. Thoughtful system design choices.

Bonus · Omium Verified Tracing · +10%

  • CoverageComplete tracing coverage using the Omium SDK across every meaningful step.
  • Causal LinkingWorkflows and sub-agents causally linked in the trace graph.
  • Demo MatchDashboard clearly matches demo execution — same workflow, same steps, same outcome.
  • Debugging QualityHigh observability — the trace makes the system's decisions inspectable and explainable.

Submission

The core submission is the product itself — source code, demo, and writeup. If you have wired up Omium tracing, you may additionally submit the traced workflow (dashboard URL or export) for bonus credit. The trace is a value-add artifact, not a gating requirement.

Annex A — Operational Contract
What gets submitted, how it gets demoed, how traces get verified.
The sponsor authored the brief above. This annex captures the operational specifics required for comparable submissions across teams. Anything not specified here is left to team judgement.
Demo Surface

The live demo must show the system running a non-trivial task end-to-end. Concretely, judges should see:

  • TriggerThe workflow kicks off — user input, a webhook fire, or a scheduled event.
  • Multi-Agent CollaborationAt least two distinct agents handing work off, not a single LLM in a retry loop.
  • Tool UseAt least one external tool invocation that produces a verifiable side-effect (API call, file written, message sent).
  • Async / Long-RunningSome part of the workflow runs beyond the demo's interactive window — a queued job, a webhook callback, a long tool call.
  • CompletionThe workflow finishes a meaningful unit of work, not just "I planned the steps."
Omium · Optional Bonus

Omium's SDK is offered as an optional tracing and observability layer. Teams that opt in unlock the bonus evaluation axis. The bar for the bonus, if you take it:

  • All Steps TracedEvery agent invocation, tool call, webhook fire, and async dispatch instrumented through the Omium SDK.
  • Causal ThreadingTraces preserve the causal chain — a parent step links to its children; a webhook-triggered subworkflow links back to its origin.
  • Live VerifiableJudges open the Omium dashboard during the demo and find the same workflow they just watched run.
  • Complete CoverageIf a step happened in the product, it appears in Omium. Untraced side-effects do not count toward the bonus.

Teams that skip Omium are not penalised on the core axes. The bonus is purely additive.

Suggested Problem Spaces

The "real-world problem" choice is yours. Strong candidates use the required capabilities naturally — autonomous workflows that look contrived will score lower on usefulness. Open directions:

  • Research → ActionAn agent that watches an inbox, source feed, or webhook stream, decides what's worth investigating, runs the investigation across the web + APIs, and delivers an action (PR, ticket, email, report).
  • Operations CopilotA pipeline that ingests operational signals (alerts, logs, deploys) and autonomously triages — pulls runbooks, runs diagnostics via tool calls, escalates with a written summary.
  • Personal/Team AgentAn autonomous workflow attached to a team's existing tools (Slack, Linear, Notion, GitHub) that handles recurring chores end-to-end with webhook triggers.
  • Domain WorkflowA vertical autonomous pipeline — legal research, recruiting outreach, market scanning, lead qualification — where deep reasoning and tool use are load-bearing.

The list is non-binding. Originality counts.

Dependencies
  • PermittedAny agent framework (custom, LangGraph, AutoGen, CrewAI, etc.), any LLM provider, any tool surface. Disclose all dependencies in the README.
  • OptionalThe Omium SDK as a tracing/observability layer for the bonus axis. Sponsor-provided access details distributed at event start to teams that opt in.
  • CostAll third-party usage is borne by the participating team.
Constraints
Team size
1 – 4
Time
24 hours
Language
Open
Environment
Participant-provided · no compute, cloud, or cost issued by the council
Submission

Core artifacts — required of every team:

  • ProductGit repository link with the source. README with a quickstart that produces a green demo run on a clean machine.
  • Demo5-minute screen-recorded walkthrough of the product completing a meaningful end-to-end task.
  • Writeup3-page PDF: problem chosen, agent architecture, tool surface, what makes the workflow autonomous in practice.

Bonus artifact — only if you opt into Omium tracing:

  • Traced WorkflowThe Omium dashboard URL (or export) showing at least one complete end-to-end run of the demo workflow. Unlocks the verified-traces bonus.
Judging Mechanics
  • Demo VideoThe submitted screen-recorded video is the primary surface for axes 01, 02, 04, and 05. It must clearly showcase the end-to-end autonomous workflow.
  • LiveJudges run the demo on your machine for reliability verification and Q&A. A polished crash-handling story beats an ambitious crash.
  • Code ReviewRepository graded against axis 06 — architecture, modularity, observability, system design choices.
  • ManualProduct polish, workflow complexity, autonomous-execution quality graded by panel against the six axes.
  • Trace Audit · BonusFor teams that submit Omium traces, judges open the dashboard and confirm coverage, causal linking, and that it matches the demo execution. Coverage quality determines the bonus magnitude (up to +10%).
  • Q&A15-minute panel. Expect questions on agent decomposition, tool design, retry/branching strategy, and how you achieved autonomy under demo conditions.
Problem · 04 / 04 — Sponsored Track

Steer a memory system with precision — no retraining required.

We give you a memory system with patterns already stored. A noisy version of one of those patterns comes in. Your job is to build a small inference agent that decides — per dimension — how aggressively the system should pull toward the right answer. Modern Hopfield networks have one knob for this. Our PCAM system has 64. Your agent decides them all.

The Task in Plain English

Imagine you've stored 200 patterns in a system — think of them as memories. The patterns sit as valleys in an energy landscape. When a corrupted version of one comes in, the system rolls downhill from the noisy starting point into the nearest valley. Most of the time it lands in the right one. Sometimes — especially under heavy noise — it lands in a neighbour's valley.

What you control is the rolling speed along each direction. Set it well and corrupted queries land in the correct valley even when they're close to the boundary. That per-direction speed control is called precision, and it's a list of 64 positive numbers — one per dimension.

Why This Is Novel

Classical and Modern Hopfield networks expose one global knob (an inverse-temperature scalar) for inference-time control. Our PCAM paper introduces 64 independent knobs — the precision operator Π — and proves you can use them at inference time to reshape how retrieval unfolds without retraining anything.

Implementing and meaningfully exploiting precision is the novelty of this track. Setting all 64 values to 1 (the identity baseline) is the floor. Any agent that doesn't actually use precision in a principled way scores at the floor.

What You Build

One function. That's the whole agent.

Pythondef predict_precision(corrupted_query):
    """
    corrupted_query : a 64-dim vector (the noisy input)
    returns         : 64 positive numbers — your precision weights
    """
    ...

The harness handles the rest. It takes your precision values, runs the PCAM dynamics for you, observes where the system converges, and checks whether the answer matches the original stored pattern.

A Concrete Example

You receive a corrupted MNIST "7" with 40% of pixels masked. Your agent inspects the query and decides:

  • High precisionOn dimensions that look reliable — say, the diagonal stroke of the 7 that survived the masking.
  • Low precisionOn dimensions that look noisy — masked or distorted regions you don't trust.

The PCAM dynamics, weighted by your precision, pull the query toward the "7" attractor instead of the "1" attractor it might otherwise hit. That's the whole game.

How to Design Your Agent

Open-ended. A few directions to consider:

  • Variance-BasedEstimate which dimensions look noisy from the query alone; down-weight those, up-weight the rest.
  • Class-ConditionalRun a quick first-pass to guess the class, then set precision to match what queries of that class typically look like.
  • Geometry-AwareUse the local curvature of the energy landscape at the nearest attractor to pick precision values that balance convergence rates across directions.
  • NeuralTrain a small MLP that maps corrupted queries to good precision vectors — supervised on retrieval accuracy.
  • HybridCombine any of the above.

How We Check Your Work

Two checks. Both run on a laptop in under 10 minutes per submission. That's it.

Check 1 · Retrieval Accuracy (70%)

We run corrupted queries through the PCAM dynamics using your precision weights and measure how often the dynamics converge to the correct original stored pattern. Compared against the identity-precision baseline, your agent should produce a measurable accuracy gain. Submissions below the baseline score zero on this axis. Full marks at Δ = 0.08 — meaningfully exceeding the paper's class-conditional headline gain.

Check 2 · Anisotropy Improvement (20%)

For sampled stored patterns we compute the local landscape curvature at the true equilibrium, then apply your precision and measure how uniformly the dynamics converge across all 64 directions. Smaller spread = healthier landscape. Full marks at 5× reduction; the paper achieves ~30× with explicit alignment.

Code Quality (10%)

Working code, clean README, brief writeup explaining your design.

Reading Your Results

When you run self_check.py, you'll see a per-seed table and an aggregated score block. Sample output:

Output · exampleANVIL · P-04 · PCAM Precision Agent — Self-Check
==============================================================
  total wall time            9612.4 ms
  seeds                            2
  stored patterns (K)             16
  state dim (N)                   64
  noise levels             [0.7, 0.8]

  PER-SEED  ─ retrieval ─       ── anisotropy ──
  seed      Π=I      agent  Δ     base    agent  ratio
  ----------------------------------------------------------
    42     0.790    0.870  +0.080   12.18    1.45   8.42×
   101     0.760    0.840  +0.080   12.33    1.52   8.11×

  AGGREGATED                       VALUE
  ----------------------------------------------------------
  mean Δ accuracy (over seeds)    +0.080
  min  Δ accuracy (worst seed)    +0.080
  mean spread reduction             8.27×
  min  spread reduction             8.11×

  SCORE (automated, max 90)         POINTS
  ----------------------------------------------------------
  retrieval     (max 70)            70.00
  anisotropy    (max 20)            18.36
  code quality  (max 10)            (manual)
  TOTAL AUTOMATED                   88.36 / 90

What the numbers mean — Retrieval Δ

Mean improvement in accuracy over the Π=I baseline, averaged across all seeds. A bigger number is always better; the score is linear up to a cap. The bar is set above the paper's headline gain so reproducing the paper alone is not full marks.

Mean ΔWhat it signifies
Δ ≤ 0.00At or below baseline · zero on this axis · precision is not helping retrieval
0.00 – 0.02Marginal · some signal, agent isn't reading corruption sharply
0.02 – 0.05Solid · principled agent · approaching paper's class-conditional gain
0.05 – 0.08Strong · materially beating paper-level designs
≥ 0.08Full marks (70 pts) · real engineering ambition beyond the paper

What the numbers mean — Anisotropy Spread Reduction

How much more uniform the convergence rates are under your precision, averaged across sampled attractors and seeds. The paper achieves ~30× with an explicitly aligned construction; we set full marks at 5× so disciplined Hessian-aware designs can reach it.

FactorWhat it signifies
≤ 1.0×At baseline or worse · zero on this axis
1.0× – 1.5×Marginal isotropisation · partial credit · log-scaled
1.5× – 3.0×Reading local geometry · log-scaled toward full marks
3.0× – 5.0×Strong Hessian awareness
≥ 5.0×Full marks (20 pts) · disciplined alignment

Per-seed penalties

The score is built to reward agents that work consistently, not agents that win on one seed and regress on another:

  • Δ < 0 on any seedRetrieval score is halved. An agent that beats baseline on the canonical seed but breaks on a held-out seed cannot earn full marks.
  • Spread ≤ 1.0× on any seedAnisotropy score is halved. Same logic applied to geometry.

Common combinations and what they signify

ΔSpreadDiagnosis
≈ 0≈ 1×Agent is effectively π = 1 — no modulation in effect
≈ 0HighGeometry shaped but retrieval not improved — likely pulling toward a wrong attractor
Positive≈ 1×Heuristic helps retrieval but isn't grounded in the Hessian — fine, but capped
PositiveHighCracked it — precision is both useful and principled
NegativeAnyPrecision is hurting retrieval — clip or normalisation bug, or wrong sign
North Star
The best agents won't be the most complex. They'll be the ones that actually use the per-direction control PCAM provides — and prove the theory works in practice across any seed.
Annex A — How to Get Started
The starter kit, the agent interface, the tests, and what we expect.
Everything you need lives in bench-p04-pcam/. Pure Python · NumPy only · runs on a laptop in under 10 minutes.
The Agent Interface

One class with one method. Implement it in adapters/myteam.py:

adapters/myteam.pyfrom adapter import Adapter
import numpy as np

class Engine(Adapter):
    def __init__(self, stored_patterns, model_params):
        """
        stored_patterns : ndarray (K, 64) — the K patterns already stored
        model_params    : dict with frozen system parameters (R, eta, beta, ...)
        """
        self.X = stored_patterns
        self.N = stored_patterns.shape[1]
        # any one-time prep here — train a model, compute statistics, etc.

    def predict_precision(self, corrupted_query):
        """
        corrupted_query : ndarray (64,) — the noisy input
        returns         : ndarray (64,) — 64 positive precision values
        """
        return np.ones(self.N)   # this is the identity baseline
What the Starter Kit Provides
  • PCAM ModelFrozen energy, gradient, dynamics integrator. You never modify this code — that's the constraint.
  • Stored PatternsK = 200 patterns ready to use. Same patterns for every team.
  • Test QueriesPre-generated corrupted queries with known ground truth. Deterministic per seed.
  • Adapter Base ClassDefines the one method you implement.
  • Baseline AgentAn identity-precision dummy so you can see the harness work end-to-end before you write anything.
  • Test RunnerOne command to evaluate your agent and get a score.
The Two Tests, Concretely

Test A — Retrieval Accuracy

Stored patterns (K)
16 (twin-paired for realistic ambiguity)
State dimension (N)
64
Test queries
250 per noise level × 3 levels = 750 per seed
Noise levels
p ∈ {0.5, 0.7, 0.8} — combined mask + Gaussian
Metric
Δ accuracy = agent − Π=I baseline, averaged across seeds
Seeds (default)
5 seeds — agent must work for all of them

Test B — Anisotropy Spread Check

Patterns sampled
16 per seed
Procedure
Hessian at each attractor → apply your precision → measure spread of Π^½ H Π^½
Metric
Spread reduction vs Π=I (paper achieves ~30×)

Total runtime — ~10 seconds quick mode (2 seeds), ~5 minutes full evaluation (5 seeds, full query count) on a laptop CPU.

Anti-Gaming · Three Layers

The bench is built so hardcoded solutions cannot pass. Same three-layer model as P-01 and P-02:

  • L1 · Canonical seedA fixed seed (42) drives the patterns, the structured operator R, and the queries. Passing L1 alone means your agent works on one known instance — necessary but not sufficient.
  • L2 · Property-based multi-seedThe --seeds flag accepts ANY integers. For each seed the harness builds a fresh pattern matrix, fresh R, fresh queries and constructs a fresh adapter instance. No state leaks between seeds. A hardcoded agent passes L1 trivially and fails L2 immediately because every numeric value it was tuned against is regenerated.
  • L3 · Held-out adversarialThe council holds private seeds at higher K and N, plus the eventual PCA-MNIST swap. Used only at final evaluation. Not distributed.

Per-seed penalty gates:

  • Δ < 0 on any seedRetrieval score is halved. Agents that beat baseline on canonical and regress on a held-out seed cannot earn full marks.
  • Spread ≤ 1.0× on any seedAnisotropy score is halved. Same logic, applied to geometry.
Scoring
CheckWeightHow it scores
Retrieval Accuracy70%Linear in mean Δ accuracy (across seeds); full at Δ ≥ 0.08; halved if any seed regresses below baseline
Anisotropy Check20%Log-scaled mean spread reduction; full at 5×; halved if any seed shows ≤ 1× reduction
Code Quality10%Manual — working code, reproducibility, README

A submission cannot earn retrieval points without beating the Π=I baseline on average across seeds — you must actually use precision meaningfully, on more than one instance.

Submission
  • Agentadapters/<yourteam>.py with your Engine class implementing predict_precision.
  • README1 page — your approach, setup steps, any dependencies beyond NumPy.
  • RepoGit link with the above plus any training scripts if you trained an offline model.
  • OptionalA short note tying your design back to the paper (no formal proofs required).
Bench · Run It Yourself
  1. Step 1 · Clone & install
    Shellgit clone https://github.com/Sauhard74/Anvil-P-E
    cd Anvil-P-E/bench-p04-pcam
    pip install -r requirements.txt
  2. Step 2 · See the baseline run
    Shellpython self_check.py --adapter adapters.dummy:DummyAgent --quick
    This is the Π=I floor. Your agent must beat this on retrieval accuracy.
  3. Step 3 · Write your agent Copy adapters/dummy.py to adapters/myteam.py and replace the predict_precision body with your logic.
  4. Step 4 · Self-check while iterating
    Shellpython self_check.py --adapter adapters.myteam:Engine --quick
    Compare your accuracy and spread reduction against the dummy.
  5. Step 5 · Full evaluation across many seeds
    Shellpython run.py --adapter adapters.myteam:Engine \
      --seeds 7 13 31 97 211 503 1009 --out report.json
    Same harness the judges run. If your agent is principled, every seed should pass. Aim for mean Δ ≥ 0.05 on retrieval and ≥ 10× on spread, with no per-seed regressions.
FAQ
  • Can I retrain the PCAM model?No. The base system is frozen. You only design the agent that picks precision.
  • Can I use a neural net?Yes. Train it on the provided patterns before the hackathon if you want. The trained weights live inside your agent.
  • Can I look at the test queries before submission?The bench has a public seed set you iterate against. Judges run on a held-out seed set with the same generator.
  • What if my precision values blow up the dynamics?The harness clips precision to [0.1, 10.0] and re-normalises mean to 1 before applying. Stay within that range and you're fine.
  • Do I need a GPU?No. The whole bench runs on CPU in under 10 minutes.
  • Team size?Solo or up to 3 — same as the other tracks.
Optional · Going Deeper

If you want to ground your design in the paper's theory, the most useful results are:

  • Theorem F3Precision rescales per-direction convergence rates by the eigenvalues of ΠH. Choosing precision to balance these rates is what produces the ~30× spread reduction in the paper.
  • Theorem 7Equilibria shift continuously with precision at a bounded rate — this is what lets your agent steer the attractor without destabilising it.
  • Section 6.6The paper's class-conditional design Π*class achieves a ~2.5% accuracy gain over uniform precision on PCA-MNIST at high noise. A good starting point — and beatable.

You don't need to derive anything; the bench handles the math. But understanding why precision works will make your agent design sharper.