Skip to content

Latest commit

 

History

History
100 lines (83 loc) · 3.43 KB

File metadata and controls

100 lines (83 loc) · 3.43 KB

Architecture

SWE Dataset Factory turns permissive public repositories (and oracle-provable hybrid seeds) into DeepAgent / Harbor pack trees that agent harnesses can load.

Product surface

Certified packs ship only under datasets/deepagent_v1.

Path Role
datasets/deepagent_v1 Product corpus (Docker oracle certified)
datasets/harbor_v1 Historical multi-lang motor tables (fixture)
datasets/v1 Historical boltons V1 JSONL (fixture)

Fixtures may be orbited by offline unit tests. They never count toward product certified N.

Pipeline

flowchart TB
  subgraph sources [Sources]
    AL[Allowlist + license gate]
    GIT[Local git clone / fetch]
    OXY[Optional Oxylabs universal HTTP]
  end
  subgraph build [Build]
    DISC[Discover multi-file candidates]
    ENV[Envbuild image at base SHA]
    LAB[Dual-run F2P/P2P labels]
  end
  subgraph cert [Certify]
    ORC[Docker oracle sol=1 null=0]
    EXP[Harbor export tree]
    PIER[Pier load / oracle]
    PAN[Hardness panel while budget remains]
  end
  subgraph ship [Ship]
    MAN[pack_manifest + tasks]
    PROV[PROVENANCE.md]
    REP[report.md + ledger]
  end
  AL --> DISC
  GIT --> DISC
  OXY -.-> DISC
  DISC --> ENV --> LAB --> ORC --> EXP --> PIER --> PAN --> MAN
  MAN --> PROV
  MAN --> REP
Loading

Certified keep gates

Every keep under datasets/deepagent_v1 (and live-generate dests like datasets/test_n10) must satisfy:

  1. Real HTTPS repository_url and immutable 40-char base_commit_hash
  2. Multi-file gold solution (≥2 product sources); tests held out in test.patch
  3. Dual-run fail_to_pass / pass_to_pass node ids with F2P ≥ MIN_F2P_NODES (default 3) — thin F2P=1 refused on product/live_generate
  4. Source hunks ≥ 10 on product hard path
  5. Docker oracle: solution reward = 1, null reward = 0
  6. Agent isolation (no solution/ or held-out tests in the agent view)
  7. allow_internet=false at agent + verifier runtime
  8. Permissive license only (copyleft / unknown fail closed)
  9. Prompt–verifier alignment (instruction not version-only vs behavioural F2P)
  10. Anti-easy: solve-all class dropped from hardness promote
  11. Panel attempted while project remaining budget is positive

Fake / stub oracle backends are refused on the deepagent ship and cert paths. See PRODUCT_HARDNESS.md for floors and opt-out rules.

CLI map

Command Stage
discover / mine-allowlist Candidate discovery
envbuild Image build at base SHA
deepagent-oracle Docker sol/null cert
export-harbor Pack tree writer
pier-cert Pier reward evidence
ship-deepagent Full product ship to datasets/deepagent_v1
ship-harbor / ship-v1 Historical fixture ships only
ledger Exact OpenRouter spend
oxylabs-probe Live GitHub HTTP smoke (blocked if no creds)

Spend and honesty

  • Project hard cap: $600 total OpenRouter spend (exact + reserved).
  • Full hardness panel on keeps while remaining budget is positive.
  • Language zeros (for example JavaScript or Rust) must appear explicitly in the ship report with under-supply notes.
  • Historical fixture green tests never replace independent deepagent_v1 N.

Related code

  • src/swe_factory/pipeline/ship_deepagent.py — product ship
  • src/swe_factory/harbor/ — export, oracle, pier adapters
  • src/swe_factory/sources/ — allowlist, git mine, oxylabs client
  • src/swe_factory/accounting.py — ledger