Skip to content

Add DeepMind-style progressive references and complete scientific runtime v4 - #10

Merged
eightmm merged 87 commits into
agent/complete-science-platformfrom
agent/reference-runtime-v3
Jul 21, 2026
Merged

eightmm merged 87 commits into
agent/complete-science-platformfrom
agent/reference-runtime-v3

Conversation

@eightmm

@eightmm eightmm commented Jul 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

This PR turns Codex Science into a progressively disclosed, local-first scientific runtime. SKILL.md remains a thin decision router; exact commands, arguments, schemas, failure handling, common mistakes, and evidence boundaries live in indexed references/*.md files and are loaded only for the selected route.

Progressive references and skill quality

  • machine-readable reference indexes with stable IDs, purpose, read_when, mandatory required_before, search patterns, authority, version, and evidence boundaries;
  • hash-covered reference-use ledgers;
  • detailed DeepMind-style usage references for artifact inspection, project evidence memory, local/Slurm jobs, pipeline promotion, next-experiment planning, FAIR export, independent review packets, and authenticated connector packs;
  • machine-readable quality.json declarations;
  • deterministic L0-L4 maturity computation from actual instruction sections, progressive references, output schemas, checked fixtures, seeded failures, and tests;
  • repository policy for coordinator, provenance, reviewer, literature review, docking validation, and remote compute;
  • reference and maturity audits are part of candidate/install and CI contract gates.

Connector transport and large artifacts

  • bounded Connector Transport v3 with retries, response-size caps, ETag/Last-Modified/rate-limit capture, real page receipts, replay, and drift classification;
  • typed operations for initial high-value scientific sources while preserving legacy MCP and v2 contracts;
  • streaming SHA-256, chunk descriptors, directory Merkle roots, immutable external references, content-addressed storage, and symlink/path-traversal rejection;
  • manifest schema 1 remains backward compatible through optional artifact metadata.

Native scientific artifact runtime

  • bounded non-mutating views for PDB/mmCIF, SDF/MOL/SMILES, VCF/BED/genome tracks, H5AD/Loom metadata, CSV/TSV/Parquet metadata, figures, evidence graphs, trajectories, directories, text, and binary files;
  • hard byte, record, selection, proposal, and reason limits;
  • typed atom/residue/chain, molecular, locus/interval, single-cell, table, figure, graph, trajectory, line, and byte selections;
  • every descriptor and selection is bound to artifact path and SHA-256;
  • stale anchors remain explicit;
  • annotations become non-executing transform proposals with affected steps, expected outputs, and approval boundaries;
  • offline escaped HTML view;
  • validated sidecars: artifact-runtime-descriptor, artifact-selection, and transform-proposal.

Project evidence memory and experiment forks

  • local SQLite project index over immutable, validated run bundles;
  • project, run, parent, branch-base, and branch-head lineage;
  • quantitative evidence assertions with effect measure, interval, unit, sample size, population, independence group, risk-of-bias reference, and exact hash-bound artifact locator;
  • run comparison and review invalidation;
  • non-executing three-way scientific merge plans with claim and artifact conflicts;
  • SHA-256 chained project event ledger;
  • manifests and artifact bytes remain authoritative.

Durable compute runtime

  • common job spec, preflight, approval, state, cancellation, checkpoint, and collection receipts;
  • durable local backend with detached worker, atomic state, logs, timeout, status, wait, cancel, and output file/directory hashing;
  • input file SHA-256 and directory Merkle validation before execution;
  • approval-gated Slurm backend with rendered script preview, sbatch, sacct/squeue, scancel, and shared-filesystem collection;
  • distinct failure classes for nonzero exit, wall time, worker loss, user cancellation, scheduler OOM, node failure, preemption, and timeout;
  • process exit zero is never treated as scientific acceptance.

Reviewed-run pipeline promotion

  • converts a currently passed run into a non-active skill draft;
  • generates SKILL.md, progressive reference index, exact pipeline reference, input/output schemas, and promotion receipt;
  • preserves source manifest identity and argv contracts without copying source conclusions;
  • raw private input values are not copied;
  • secret-like environment fields are redacted;
  • credential-bearing argv and URLs are rejected;
  • no automatic activation, catalog insertion, receipt reuse, or generalization claim.

Next-experiment planning

  • deterministic eligibility filtering, Pareto fronts, weighted objectives, uncertainty bonus, explicit diversity grouping, required controls, budget, batch size, and group caps;
  • selected and rejected candidates retain declared properties and reasons;
  • proposal is non-executing, approval-required, and fingerprinted;
  • no inferred chemical similarity, calibrated information-gain claim, or experiment execution.

FAIR-oriented export and scientific BOM

  • validated run export to RO-Crate-oriented metadata, W3C PROV-oriented lineage, scientific dependency BOM, and hash-covered export receipt;
  • records code, packages, containers, lockfiles, models, weights, databases, datasets, inputs, and licenses when present in source provenance;
  • does not overwrite a non-empty export directory;
  • explicitly does not certify formal standard conformance, licensing, regulatory compliance, provenance completeness, or scientific validity.

Independent reviewer packet runtime

  • deterministic, blinded, hash-bound packets for separate human or agent review;
  • excludes producer-only rationale fields and private chain-of-thought fields;
  • redacts secret-like keys and credential-bearing URL query values;
  • binds review modes, claims, artifact hashes, graph, studies, queries, lanes, models, and review questions;
  • finalizes separate responses into review receipts only after validating packet identity, claim coverage, artifact hashes, findings, limitations, and independence attestation;
  • a producer second pass cannot be labeled independent;
  • reproduction requires a separate execution.

Optional authenticated connector-pack framework

  • core remains public/read-only and stores no provider credentials;
  • optional packs implement a common adapter contract with out-of-band credentials;
  • action spec, provider preview, exact scopes, optimistic before-state hash, explicit approval, idempotency ledger, before/after hashes, provider IDs, compensation, and action receipt;
  • provider records with credential-like fields are rejected;
  • write actions cannot disable approval;
  • no provider is claimed supported until a separate pack with pinned API references and fixtures exists.

Tests and validation

Added deterministic tests for:

  • artifact views, selections, proposals, and sidecar staleness;
  • project imports, assertions, forks, comparisons, conflicts, and immutable manifest identity;
  • durable local jobs, Slurm rendering, approvals, timeouts, input hash preflight, and secret boundaries;
  • native skill maturity and progressive reference policy;
  • pipeline draft generation and secret/private-input protection;
  • next-experiment controls, Pareto ranking, diversity, budget, determinism, and infeasibility;
  • FAIR exports and changed-byte rejection;
  • blinded reviewer packets, Unicode-safe review receipts, coverage, independence, and artifact substitution rejection;
  • authenticated action preview, approval, idempotency, concurrency, provider-secret rejection, and receipt validation;
  • absolute resource ceilings and boolean/integer contract hardening.

The clean branch contains reports/native-runtime-v4-validation.json, generated only after:

  • permanent source compilation;
  • focused runtime suites;
  • complete Python 3.11 scripts/check.sh fast gate;
  • complete Python 3.12 unit suite;
  • inventory and wrapper determinism;
  • progressive reference and maturity audits;
  • release, connector, artifact, reviewer, model, and SBDD contracts.

CodeQL and hosted public-source/live-provider checks remain separate workflows. A passed software contract does not establish scientific truth, empirical model performance, provider availability, or regulatory compliance.

eightmm and others added 30 commits July 21, 2026 09:42
@eightmm eightmm changed the title Add DeepMind-style progressive references and native scientific runtime v4 Add DeepMind-style progressive references and complete scientific runtime v4 Jul 21, 2026
@eightmm
eightmm marked this pull request as ready for review July 21, 2026 10:37
@eightmm
eightmm merged commit d6af2d4 into agent/complete-science-platform Jul 21, 2026
2 checks passed
@eightmm
eightmm deleted the agent/reference-runtime-v3 branch July 21, 2026 10:37
eightmm added a commit that referenced this pull request Jul 21, 2026
…racts (#6)

* Add release integrity and replayable connector contracts

* Add advanced evidence review and collaboration contracts

* Add executable deterministic SBDD acceptance vertical

* Add scientific platform regression and reviewer benchmarks

* Isolate platform test failures

* Preserve legacy review receipt compatibility

* Isolate new scientific contract failures

* Capture full-suite ordering failure

* Record full-suite failure diagnostics

* Preserve MCP registry compatibility and remove diagnostics

* Gate release updates on complete scientific contracts

* Integrate complete candidate checks into managed updates

* Stage permanent CI while patching updater

* Apply updater candidate contract integration

* Use complete candidate contracts for installs and managed updates

* Add structured public-source drift reporting

* Validate connector contracts in candidate and CI gates

* Document complete platform and artifact contracts

* Fix updater entry module loading

* Isolate final updater and drift integration failures

* Identify remaining full-suite compatibility failure

* Collect exact failing test modules

* Record failing test modules

* Preserve stable updater hook compatibility marker

* Test strict entry with stable updater compatibility

* Record failing test modules

* Remove temporary platform diagnostics

* Fix platform review and CI contracts

* Add DeepMind-style progressive references and complete scientific runtime v4 (#10)

* Stage progressive references and scientific runtime v3

* Persist expanded reference runtime before final verification

* Complete reference runtime v3 integration

* Add reference runtime stage diagnostics

* Capture reference audit findings

* Record reference audit diagnostics

* Finalize reference audit compatibility

* Finalize progressive reference contracts

* Stage native artifact runtime and project evidence store

* Use Git object integrity for runtime payload expansion

* Stage runtime source payload manifest

* Stage native runtime source payload 1/7

* Stage native runtime source payload 2/7

* Fix native runtime archive expansion and integration

* Remove failed runtime payload archive

* Add bounded native scientific artifact runtime

* Add native artifact runtime CLI

* Add project-level evidence store and hypothesis forks

* Add project evidence store CLI

* Add durable local and Slurm job backends

* Add durable scientific job CLI

* Add machine-readable native skill maturity auditing

* Add native skill maturity audit CLI

* Add native skill maturity policy

* Declare coordinator skill maturity

* Declare provenance skill maturity

* Declare review skill maturity

* Declare literature review L4 maturity

* Declare docking validation L4 maturity

* Declare remote compute skill maturity

* Document native artifact runtime usage and boundaries

* Document project evidence store and branch workflow

* Document local and Slurm job runtime usage

* Test native artifact runtime contracts

* Test project evidence memory and experiment forks

* Test durable local and Slurm job contracts

* Test native skill maturity policy and declarations

* Add idempotent native runtime integration script

* Integrate and validate native runtime v4

* Add final native runtime correctness patches

* Finalize and validate native runtime v4

* Test runtime sidecar validation and staleness

* Complete native runtime with regenerated inventory and wrappers

* Add robust final native runtime applicator

* Apply complete native runtime v4 implementation

* Add native runtime quickstart

* Add final fail-closed runtime repairs

* Add function-boundary native runtime sealing script

* Seal and validate native runtime v4

* Add reviewed-run to skill-draft compiler

* Add reviewed run promotion CLI

* Add deterministic next-experiment planner

* Add next-experiment planning CLI

* Add FAIR-oriented run export and scientific BOM

* Add FAIR scientific run export CLI

* Test reviewed-run skill draft generation

* Test deterministic next-experiment planning

* Test FAIR-oriented run exports

* Document reviewed-run pipeline promotion

* Document deterministic next-experiment planning

* Document FAIR-oriented export and scientific BOM

* Integrate pipeline, experiment, and FAIR runtime contracts

* Seal extended progressive scientific runtime v4

* Finish permanent native runtime v4 implementation

* Add compile-safe permanent runtime patcher

* Commit permanent progressive scientific runtime v4

* Harden generated pipeline drafts against secret propagation

* Test generated pipeline secret redaction and rejection

* Finalize complete progressive scientific runtime v4

* Add blinded independent reviewer packet runtime

* Add independent reviewer packet CLI

* Test blinded reviewer packet and receipt runtime

* Document independent reviewer packet usage

* Integrate independent reviewer runtime references and safety

* Add approval-gated authenticated connector action framework

* Add authenticated connector action contract CLI

* Test approval-gated connector action framework

* Document optional authenticated connector pack contract

* Integrate reviewer and authenticated connector action contracts

* Harden reviewer and connector action receipt hashing

* Test unicode review and action receipt validation

* Finalize complete progressive scientific runtime v4

* Add final resource and input integrity hardening

* Test final runtime hardening boundaries

* Run ultimate native runtime v4 validation

* Validate runtime v4 on Python 3.11 and 3.12

* Fix runtime v4 validation

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant