# Collaborative Intelligence with stock Flock and Harbor The release path is a task dataset plus this small adapter wheel and an unchanged Flock checkout. It covers the four released dimensions, with the original partner/referee assignments and isolated native checker. Personal study ledgers, Slurm scripts, registries and research controllers are not required. The first verified stock recipe is **Gemini 3.8 Flash, OpenAI-compatible chat, Pi 1.5.0, low reasoning, 256 Pi turns**. It uses stock Flock's **one-hour run guard**, with `agent_timeout_seconds: null` and no generated Harbor agent timeout. Sol Responses and direct Opus Messages are not supported stock recipes here. The Opus model described below is the private Taking-over grader. **Release status (2026-11-10, release v3):** adds agent-phase network isolation and the private final-answer readout described below. Older Hub revisions (including `2837af6c1ae9f672853ad3b01745ee0da4182e69`) lack both; never point this recipe at them. Use the exact revision named in the dataset README. ## What changed in v3 - **No internet for the agent.** `main` declares no networks of its own, so Harbor's egress sidecar owns them: public while Pi is installed, then an allowlist of `team` and `model-compat` while the agent runs (`task.toml`). The team service and the Gemini proxy keep normal egress. - **Private final answers.** Stanford asks the evaluated seat its final answer, and mid-run stop-gate answers, as a separate call without history. The team service now makes that call itself (same model, same prompt, low effort, through `model-compat`) instead of routing it into Pi's persistent session, so Pi never learns that a gate answer was rejected. Pi still writes every chat message and tool call. Code: `private_readout.py`. - **Batch tool calls and structured answers** in the `team` CLI, a private `/tmp` per coding execution, and an opt-in `--retry-held N` for the sweep. ## Install and configure The dataset contains the adapter source. From its `adapter/` directory, install the locked dependencies and the unchanged, tested Flock revision into the same Python environment. No benchmark-specific Flock fork or development checkout is required. Git access to Flock's private `huggingface/msgboard` dependency is needed. ```sh uv sync --python 3.13 --locked --extra harbor --extra hub uv pip install --python .venv/bin/python \ 'flock @ git+https://github.com/huggingface/flock.git@f3970bc5e7be2e9d533e33d457e82c41082a7cd3' export PATH="$PWD/.venv/bin:$PATH" ``` `uv build --wheel` also creates a distributable adapter wheel. These commands apply to the dataset's bundled adapter as well as this development checkout. Provide `GEMINI_API_KEY` for the evaluated model. The trusted team container also needs the original `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, and a reachable original `Qwen/Qwen3-14B` route. For example, configure `HARNESS_VLLM_ENDPOINTS` as `{"Qwen/Qwen3-14B":"http://TEAM_REACHABLE_HOST:8001/v1"}` and, if needed, `HARNESS_VLLM_API_KEY`. Team loopback is reserved for its internal evaluated-seat bridge; an endpoint at `localhost:8001` is not the external Qwen partner. An explicit `HARNESS_OPENAI_COMPAT` Qwen route with a supported team-only key variable is also accepted. Preserve Qwen3-14B; do not replace it with another Qwen model. Set `ANTHROPIC_WORKSPACE_ID` when your Anthropic account requires it. Do not put credentials in YAML, task images, Hub files or logs. Stock Flock provides the evaluated key to its agent; partner/referee/reader credentials are forwarded only to the separate team service. Submitted sandbox code executes in a separate unprivileged worker without these credentials or private evidence. Download the **new exact Hub commit** to a local snapshot for sweep manifests. Use the same commit in `recipe.yaml`; the placeholder below deliberately fails until replaced. Authentication for a private dataset uses the normal Hub login. ```python from huggingface_hub import snapshot_download snapshot_download( "misc-org/collaborative-intelligence-harbor", repo_type="dataset", revision="NEW_EXACT_RELEASE_COMMIT_REQUIRED", local_dir="tasks", ) ``` ```yaml name: ci-fullpi-gemini harness: pi model: openai/gemini-3.8-flash inference: base_url: http://model-compat:8003/v1 api_key_env: GEMINI_API_KEY api_format: openai_chat_completions reasoning_effort: low task: repo: https://huggingface.co/datasets/misc-org/collaborative-intelligence-harbor revision: NEW_EXACT_RELEASE_COMMIT_REQUIRED selector: ONE_TASK_ID_FROM_THE_NEW_MANIFEST agents: count: 1 environment: backend: docker # or podman (see below) limits: run_timeout_seconds: 3600 agent_max_turns: 256 agent_timeout_seconds: null output_dir: results ``` Harbor builds the egress sidecar from a short image name (`gogost/gost@sha256:...`). With rootless Podman, set `unqualified-search-registries = ["docker.io"]` in a file named by `CONTAINERS_REGISTRIES_CONF`, and use `environment.backend: podman`. The team container also receives `GEMINI_API_KEY` (as `CI_PRIVATE_READOUT_API_KEY`) for the private final-answer call; the agent never sees that request. **Kernel modules for the network guard.** Harbor's agent-phase allowlist switches nftables rules inside the run, which needs the host kernel modules `nft_fib_inet`, `nft_redir` and `nft_chain_nat` to be loaded. Rootless Podman cannot load them; on a node where they are not loaded, Harbor refuses to start the agent ("cannot change network policy after start"), so runs fail closed and are held, never scored. Check `grep -E "^(nft_fib_inet|nft_redir|nft_chain_nat) " /proc/modules` before launching. No root is needed to fix it: creating one such rule in a throwaway rootless namespace makes the kernel autoload them, e.g. `printf 'table inet w { chain o { type nat hook output priority -100; fib daddr type local tcp dport 1 redirect to :12345; } }' | unshare -rn nft -f -` (`scripts/podman-env.sh` does this). Docker with root loads them automatically. Private Hub tasks also need `git-lfs` (runtime archives are LFS files) and git credentials for huggingface.co (e.g. `GIT_ASKPASS`), because Harbor fetches tasks with `git`. The task-local `model-compat` service removes only Google's unsupported top-level `store` field, including during Pi's internal compaction. Staged Pi extensions preserve real opaque tool-call signatures. This requires no host gateway or Flock fork. Normal provider keys and the original Stanford episode budget still apply; the research financial broker is not part of this recipe. ## Run and aggregate `collab-intel-harbor-run --config recipe.yaml` launches **one** selected task. For the full release, use the downloaded dataset's catalog and manifests: ```sh collab-intel-harbor-sweep --config recipe.yaml --dataset-root /path/to/new-hub-snapshot \ --output results/full-gemini --concurrency 4 --plan-only collab-intel-harbor-sweep --config recipe.yaml --dataset-root /path/to/new-hub-snapshot \ --output results/full-gemini --concurrency 4 ``` The default schedule is **320 logical rows / 316 canonical physical runs before solo gating**: 20 solo gates and three test seeds per public item in each of four dimensions. Optional controls are excluded even if declared by the catalog; `--include-controls` explicitly adds them. A failed or excluded solo skips its dependent tests. Shared aliases execute once. Independent cases can proceed when another gate is held. Reusing the same output resumes only never-started eligible cases. Completed verdicts, including ordinary failures, are never regenerated. Held attempts (unscored infrastructure failures) are kept as-is unless you pass `--retry-held N`: each held case is then retried at most N times, its old directory is preserved as `cases/.held-K`, and `progress.json` lists it under `retired_attempts`. Source, configuration, route and manifest changes fail closed. `progress.json` records this status and `scores.json` uses the original Stanford seed/gate aggregator. An incomplete batch exits nonzero and remains partial. For a separate read-only score export, run `collab-intel-harbor-score` with `--manifest SELECTED_SCORING_MANIFEST --runs VERIFIER_RESULT_JSON ...`, one `--flock-run RUN_JSON` per contributing stock run, and `--upstream-root` pointing to a selected task's `tests/upstream`. Use the control-free copy under `results/full-gemini/scoring-manifests/` when optional controls were not run; an original control-declaring manifest correctly reports those controls missing. Host timeouts, exceptions, cut conversations and unsupported reader continuations stay unscored. A genuine finished native result can survive later cleanup failure only with verified completion-before-cutoff evidence. Taking-over test rewards require the **released Stanford Opus grader** and its original application rule. Reader rationale stays private. A rejected scripted stop continues through the same live Pi session and original native prefix; unsupported label-changing continuations remain held. This is a new prospective Full Pi protocol, not a claim that old interrupted sessions were exactly resumed or that the paper's original judge execution was identical. Source pin, runtime details and free validation evidence are in [RUNTIME.md](RUNTIME.md) and [VALIDATION.md](VALIDATION.md). Retain all upstream licenses, notices and canaries; benchmark material is not training data.