Ingot architecture¶
Status: initial implementations exist for all eight core subsystems, and the synthetic industrial experiment loop is implemented. Full stage acceptance and validation with real industrial data remain pending. The rest of this document describes the target architecture. Eight core subsystems live directly at repository root.
Mission¶
Use AI, scientific computing, industrial data and domain knowledge to explore and solve complex industrial R&D problems and enable verifiable discoveries. Science first. AI native. Evidence driven.
Module responsibilities¶
| Module | Responsibility |
|---|---|
core |
Units, identifiers, references and versioned capability protocols; no domain lifecycle or infrastructure. |
data |
Own immutable dataset versions, variables, observations, measurements and quality records. |
compute |
Execute numerical methods and return artifacts, assumptions and uncertainty; independent of LLMs and databases. |
knowledge |
Own sourced claims, literature, known mechanisms and evidence indexes; do not promote unreviewed hypotheses to knowledge. |
intelligence |
Provide model-neutral reasoning and tool primitives; no authority over scientific validity. |
discovery |
Own hypotheses, evidence assessments, findings, validation and candidate solutions; distinguish numerical results from scientific claims. |
scientist |
Own research questions, objectives, strategy, decisions, experiment proposals and feedback; choose actions under constraints. |
runtime |
Own execution attempts, checkpoints, resource accounting and isolation; never decide scientific truth. |
domains |
Supply domain constraints, semantics and validation methods through ports. |
integrations |
Adapt external sources and verified feedback; no automatic equipment control. |
infrastructure |
Implement storage, identity, authorization and telemetry ports. |
apps |
Compose implementations and expose user workflows; no scientific policy duplication. |
tests |
Verify behavior, boundaries and scientific correctness. |
benchmarks |
Version synthetic/public fixtures, baselines and evaluation protocols. |
examples |
Demonstrate reproducible authorized or synthetic research. |
deploy |
Deployment recipes only when tested. |
docs |
Maintain bilingual design, decisions and implementation status. |
scripts |
Repeatable developer operations. |
Repository layout¶
Ingot/
├── .github/workflows/
├── apps/
│ ├── api/
│ │ ├── routers/
│ │ ├── schemas/
│ │ ├── services/
│ │ ├── repositories/
│ │ └── main.py
│ └── web/
│ └── src/
│ ├── app/
│ ├── components/
│ ├── features/
│ ├── services/
│ ├── styles/
│ ├── types/
│ └── main.tsx
├── assets/
│ ├── branding/
│ └── diagrams/
├── core/ingot_core/
├── data/ingot_data/
├── compute/ingot_compute/
├── knowledge/ingot_knowledge/
├── intelligence/ingot_intelligence/
├── discovery/ingot_discovery/
├── scientist/ingot_scientist/
├── runtime/ingot_runtime/
├── domains/industrial/ingot_industrial/
├── integrations/
├── infrastructure/
├── tests/
│ ├── architecture/
│ ├── benchmarks/
│ ├── industrial/
│ ├── integration/
│ └── scientific/
├── benchmarks/
├── examples/industrial/
├── deploy/website/
├── docs/
├── scripts/
├── website/
├── pyproject.toml
├── README.md
├── README.en.md
├── ARCHITECTURE.md
├── ARCHITECTURE.en.md
└── AGENTS.md
Root scientific subsystems use distinct Python packages. Organize modules by actual responsibility and introduce subpackages only when justified by scale. Applications use independent layers; the public website is separate from the workbench. Tests, benchmarks, examples and deployment are separate. Directories containing only boundary documentation do not imply implemented capabilities. Do not create empty capability directories.
Logical dependencies¶
Architecture rules¶
The arrows are permitted logical calls, not mandatory imports. Core imports no other subsystem. Data, Compute, Knowledge, Intelligence and Runtime are peers; cross-peer access uses narrow ports injected at composition roots. Scientist owns research policy; Discovery owns scientific assessment; Runtime owns execution policy. Domain and infrastructure adapters depend inward. No cycles. Enforce with import-graph tests once code exists. Root directories are subsystem boundaries, not necessarily Python import names: choose namespaced distributions (e.g. ingot-compute / ingot_compute) when implementation requires packaging; do not publish generic top-level packages such as data or core. Start with one deployable application and local workers; split only for measured isolation, scaling or dependency needs.
Scientific objects and ownership¶
Core: Identifier, Unit, Constraint, EvidenceRef, ArtifactRef. Data: DatasetVersion, Variable, Observation, Measurement. Compute: Model, Prediction, ComputationRun, Uncertainty. Knowledge: Literature, KnowledgeClaim, MechanismReference. Discovery: Hypothesis, EvidenceAssessment, Finding, Validation, SolutionCandidate. Scientist: Research, Question, Objective, Decision, ExperimentProposal, ExperimentFeedback. Intelligence: ModelRequest, Tool, Plan. Runtime: Task, ExecutionAttempt, Checkpoint, ResourceBudget. Use stable IDs and immutable version references across boundaries; do not centralize all models in Core. Raw evidence artifacts retain provenance; Discovery owns assessment, Knowledge owns reviewed claims and indexing.
Research lifecycle¶
Define problem and measurable success criteria → freeze data and knowledge snapshot → explore → generate competing falsifiable hypotheses → test and seek counterevidence → evaluate candidate solutions → design discriminating experiments → human approval → verified experiment feedback → revise findings and decisions. Allow branching, parallel work, retries, inconclusive results and termination. Stop at budget, safety limits, sufficient evidence or lack of feasible next steps. A research result can be a supported solution, a rejected hypothesis or an explicit evidence gap; novelty is not required for problem solving.
Extension contracts¶
A capability manifest declares stable ID, version, input/output schema, scientific assumptions, supported modalities, resource needs, permissions and reproducibility requirements. Registry resolves compatible capabilities; selection considers applicability, evidence quality, cost and constraints, not just model preference. Plugins implement typed ports and pass contract and scientific tests. Reject incompatible versions and unauthorized capabilities. Pin plugin and environment versions in run manifests. Load only trusted plugins; isolate untrusted execution out of process with restricted network, filesystem and budgets. Version events with IDs and idempotency keys; persist checkpoints and attempts; retries must not duplicate external effects. No universal plugin loader or distributed bus until justified.
Scientific integrity¶
Every computation records dataset hash/version, method and implementation version, parameters, seed when applicable, environment, exclusions, assumptions, uncertainty and artifact references. Distinguish observation, association, hypothesis, causal claim and validated finding. Account for missingness, batch effects, confounding, leakage, multiple comparisons and sample dependence. Use independent holdouts or prospective experiments as appropriate; do not repeatedly tune on validation data. Causal claims require explicit identification assumptions and evidence; mechanistic claims require discriminating tests. LLM output is a proposal, not evidence. Preserve negative results and contradictory evidence. Record validation scope and limitations; allow inconclusive outcomes.
Safety and operations¶
Authorize dataset and tool access per research scope; enforce tenant isolation before multi-user deployment. Keep confidential data and secrets out of Git and logs. Treat retrieved content and model-generated code as untrusted. Apply resource quotas, cancellation, audit trails, artifact integrity and recovery. Human approval is required for consequential experiments and external actions; no autonomous device control. Experiment proposals and actual measurements are separate records; feedback must be verified.
Technology and scope¶
Python is the initial scientific language; React/TypeScript and FastAPI are application candidates. NumPy/SciPy, Polars/Arrow, scikit-learn, PyTorch, PyMC, BoTorch, DoWhy/EconML and PySR are optional candidates. PostgreSQL and S3-compatible storage, pgvector, durable task engines and MLflow are considered when required. Docker Compose before orchestration clusters. Validate licenses, compatibility and performance before adopting dependencies. Build reusable scientific discovery, modeling, experimental design and optimization capabilities around industrial research needs.
Evaluation and delivery¶
First vertical slice: authorized or synthetic tabular experiments, quality report, reproducible baseline analysis, candidate associations, independent checks, evidence report and next-step recommendation. Compare against simple statistical baselines and expert review. Measure false discoveries, reproducibility, calibration, solution success on predefined criteria, experiment cost and time; report denominators and uncertainty. Do not claim industrial readiness or breakthroughs before independent validation. Add advanced ML, RL, multimodal and autonomous laboratory integrations only when a concrete problem warrants them.