Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ concurrency:
cancel-in-progress: true

env:
# Hardware routing plus the concrete Manager-target fix found by the analog trial.
ARGUS_REF: daa71b3ef4c51147497312145c4da52473bf36c9
# Paired Store feature enforcement; this CI reference does not upgrade project runtimes.
ARGUS_REF: 756b3d5689ea4af06d70018f9fcc53c32166393c

jobs:
tests:
Expand Down
62 changes: 62 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,53 @@ workflow. Hardware example tests
use Icarus Verilog (`iverilog` and `vvp`); the iCE40 implementation tests also
use Yosys, nextpnr-ice40 and IceStorm (`icepack`). CI installs these tools so
documented RTL and native implementation are executed, not only linted.
Bounded chip-control tests use Yosys and Icarus for both RTL and synthesized
simulation against the original APB4 peripheral contract. Cover all byte
strobes, exact waits, unmapped/RO errors, timer boundaries, set-dominant W1C,
IRQ masks and asynchronous reset during traffic. Mutate actual RTL and require
both models to expose defects; verify inclusive original generic-cell caps,
fresh native replay and Store-only profile acceptance. Preserve authorized
repair diffs and failed attempts; never claim physical PPA from generic cells.
Final control acceptance also checks the Engineer report and its exact measured
summary. Test missing/contradictory reports and that malformed reports fail before
native replay. Verify event-count and cycle-witness recomputation, completed
strobe coverage, and rejection of idle frames carrying impressive case labels.
Exercise the registered host round-evidence hook in a fresh Store process,
including read-only Reviewer prompts, explicit failures and isolation from
legacy profiles; native checks must not depend on Reviewer shell permissions.
Coverage is based on independent reference conditions, so faulty DUT responses
remain diagnosable; absent stimulus coverage never qualifies as a diagnosis.
General digital/chip verification and the FPGA checker use the same existing
Argus host round-evidence API. Test the saved scoped contract against a separate
execution directory, custom prerequisites, visible failures, and the absence of
recorded-command replay or project/state mutation. Control keeps its dedicated
native report check, without a second generic replay. These changes require that
framework API; they do not activate or migrate historical project runtimes.
Keep the hardware manifests' `argus_features` declarations aligned with those
real dependencies. The feature-aware Store must refuse an unsupported selected
dependency before changing installed files, preserve old installed versions
when only a catalog update is incompatible, and expose the cause to operators.
`min_argus` is informational; an older Store ignoring the new field is not an
enforcement boundary. Do not automatically upgrade frozen project runtimes.
CI pins the feature-aware Store implementation through `ARGUS_REF` in
`.github/workflows/tests.yml`. The release-catalog test checks the actual Store
parser and feature refusal against the current manifests; fresh Store-only
native cases also require the declarations to survive installation.
The framework's existing Linux suite separately consumes a fixed provider
checkout through `ARGUS_VERTICALS_REPO`, without pip-installing these providers.
Keep both CI references explicit when changing this contract. They are test
inputs, not runtime migration instructions or scientific acceptance receipts.
For general simulation/formal, test explicitly declared `supporting_files`
(precision contracts, oracle dependencies and retained fixtures) for independent
current copies and invalid paths. Binding inputs does not establish oracle
independence or substitute for a project's scientific acceptance.
Chip's legacy verification format uses its existing `source_hashes`, not the
specialty's copies. Test all declared entries, duplicate/malformed bindings,
original numerical contracts and evaluator/helper changes. An optional
`verification/PLAN.json` and every `supporting_files` entry must be bound.
Exercise the same failures through host review and final completion, without
executing recorded commands. Preserve valid legacy records, exact numerical
variant selection, integer command exits and finite unambiguous JSON.
The opt-in digital CDC/reset tests use native Yosys extraction and Icarus traces,
including bad stage counts, intermediate fanout, wrong clocks, asynchronous
release and raw-reset paths that digital simulation alone may miss. Keep the
Expand All @@ -95,6 +142,21 @@ CDC follow-up tests must show that swapped independently declared data inputs
produce trace mismatches, not just structural failures, and that detailed native
findings survive recomputation. Check live output-budget enforcement, terminated
command exits and owned process cleanup; never weaken a threshold to pass.
The shared native process monitor serves CDC, chip control, SPICE and
PCB/package command execution. Preserve each caller's original time/output
limits, native exits and diagnostics. Test observation exceptions and a parent
that exits while its child still runs; cleanup must target only owned process
POSIX groups. PCB/package consoles stream to disk with a live 32 MiB stop threshold,
not an unbounded memory capture. Numerical acceptance is separate from these
execution budgets.
The five independent analog/RF/PCB/package/power workflows also supply scoped
host evidence to read-only Reviewers. Cover all declared stages and actual
native results, project immutability and unchanged task selection. Existing
analog/power proof copies may be written only in separate runtime state.
Exercise both original and extended studies in fresh Store-only processes;
shared-helper source changes must invalidate reused numerical validation.
When changing a shared directory, bump every manifest that bundles it so an
unchanged provider version never silently receives different archive bytes.
Analog references additionally require `ngspice`, also installed in CI. They
execute native operating-point, DC, AC and transient analyses and compare
waveform measurements against independent circuit equations. Keep parser-only
Expand Down
53 changes: 47 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,44 @@ adds complete finite Cartesian input/load/temperature/component samples,
common design decisions and original-limit headroom, with distinct diagnosis
and design acceptance. These complete the eight primary domain
registrations, not industrial coverage of every subject within those domains.
The existing `chip_design` architecture model remains accelerator-oriented in
this batch; a general control-SoC model and independent physical/DFT execution
are still separate work, not capabilities implied by the taxonomy.
The existing `chip_design` architecture model remains accelerator-oriented.
Its opt-in `control` profile separately adds bounded APB4 registers, a timer and
interrupts: native RTL and synthesized-model comparison against an independent
state model, original generic-cell limits, and authorized RTL repair without
weakening requirements. A general control SoC and independent physical/DFT
execution remain separate work; generic Yosys counts are not physical PPA.

The digital verification specialty also offers an opt-in CDC/reset profile:
native Yosys structural checks and Icarus clock/phase traces for explicitly
declared single-bit level/reset adapters. It preserves valid negative diagnosis
and requires a passing result when composed into FPGA design verification.
It is not complete CDC/RDC sign-off or a multiclock FPGA implementation backend.

### Hardware readiness boundaries

All eight domains have scoped completion checks; the common host-review path
covers digital/chip verification, every verification-specialty/FPGA stage and
the five independent analog/RF/PCB/package/power workflows. Chip control retains
its dedicated native report checker. Host evidence is not Reviewer approval.
Original acceptance and final completion checks remain in force, including
the distinction between a supported negative diagnosis and a passing design.

| Domain | Current executable or checked support | Not established by that support |
|---|---|---|
| Digital | RTL regressions, formal-record checks, bounded native level/reset CDC adapters | Automatic general formal proof, full CDC/RDC or industrial protocol coverage |
| Chip | Accelerator source-bound evidence checks; native APB4 RTL/synthesized simulation | A project-specific mixed-precision evaluator, independent physical/DFT/tapeout execution |
| FPGA | RTL checks and single-clock iCE40 implementation | Multiclock/backend portability or measured board operation without original measurements |
| Analog | ngspice OP/DC/AC/transient and finite operating-envelope/refinement checks | Foundry PDK, noise/PSS, mixed-language or silicon qualification |
| RF | scikit-rf network calculations and finite component/frequency studies | Full-wave EM, nonlinear RF, calibration or measured physical performance |
| PCB | KiCad ERC/DRC/parity, copper refill and manufacturing-file checks | Field-solved SI/PI, general DFM or fabrication/assembly approval |
| Package | Gmsh/CalculiX bounded steady conduction and prescribed convection | CFD, transient/contact models, stress/warpage or reliability qualification |
| Power | ngspice bounded Buck/Boost and finite operating-envelope checks | Hardware safety, measured efficiency, unspecified device dynamics or electrothermal qualification |

These are capability boundaries, not unfinished stages to add to every task.
Expand a native backend only when the original engineering question requires it.
Keep project-specific runtime/entry/ownership acceptance separate from vertical
installation; general record checks cannot certify a new accelerator experiment.

| entry point | module | purpose (as shown in the Manager's menu) | skill parents |
|---|---|---|---|
| `ale_last_exam` | `argus_verticals.ale_last_exam` | Agents' Last Exam long-horizon professional workflow in a real sandbox with hidden-reference, artifact-first GUI+CLI delivery | |
Expand Down Expand Up @@ -146,8 +174,9 @@ contract, the artifact manifest, the source registry and its provenance log,
each with a JSON schema.

`argus_verticals/hardware/shared/` similarly shares file/copy/numeric record
utilities between independent hardware domains, without inheriting their
knowledge, stages or acceptance methods.
utilities, scoped host-review evidence and owned native-process monitoring
between independent hardware domains, without inheriting their knowledge,
stages or acceptance methods.
`argus_verticals/hardware/spice/` shares the native waveform reader, scalar
measurements, bounded process execution and byte-bound numerical validation
storage between analog and power domains, without sharing their workflows.
Expand Down Expand Up @@ -175,7 +204,19 @@ from Argus.
| `requires` | other catalog verticals the store installs alongside: the code imports them (`chip_design` → `digital_circuit`) or `VERTICAL_SKILL_PARENTS` names them (`nanogpt_speedrun` → `speedrun`); Argus built-ins such as `kernel_engineering` are not listed |
| `shared` | helper directories bundled into the archive because the code imports them (the five literary verticals → `argus_verticals/literary/shared`) |
| `python_requirements`, `optional_python_requirements` | pip requirements the runtime code imports, unguarded or behind a guard, spelled exactly as in an extra of `pyproject.toml`; the store shows them, it does not install them |
| `tags`, `maintainers`, `min_argus` | 2–4 browsing tags; GitHub handles; the Argus commit family the vertical is written for (`2026-09-14-split`; the store compares by feature probe, not by this string) |
| `tags`, `maintainers`, `min_argus` | 2–4 browsing tags; GitHub handles; an informational Argus commit-family label, not an enforced version constraint |
| `argus_features` (optional) | required framework features: `composable-workflow-profiles`, `vertical-routing-paths`, `host-round-evidence`; a feature-aware Store checks the complete dependency selection before installation |

The nine hardware providers using shared host review declare these three
features. A feature-aware Store reports missing or unknown requirements before
downloading or replacing any selected provider, retains the declarations for
offline checks, and distinguishes an incompatible catalog update from an
otherwise usable installed version. It probes only known framework APIs, not
plugin code or project commands; this is not scientific or toolchain acceptance.
Legacy manifests without `argus_features` retain their existing behavior.
Older Stores ignore this field: the framework-side support must be installed
separately before relying on the early refusal. A provider update does not
upgrade a frozen project runtime or migrate historical projects.

**`catalog.json`** at the repository root — the browsing index, committed and
kept current by CI (`python scripts/build_catalog.py --check` fails when it is
Expand Down
7 changes: 7 additions & 0 deletions argus_verticals/analog_mixed_signal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ PYTHONPATH="$STORE_ROOT${PYTHONPATH:+:$PYTHONPATH}" python -m argus_verticals.an
The role prompts include the **same canonical [evidence contract](evidence-contract.md)**
and separate execution/read-only commands using Argus's own interpreter and
provider loader.
The host supplies the saved-scope checker result directly to the read/search-only
Reviewer under the shared [review rules](../hardware/shared/hardware-review.md).
Missing host evidence is incomplete; command examples are for Engineer or an
execution-capable operator, not a request for Reviewer shell permissions.
The checker does not depend on optional skill retrieval. Shared file/copy/number
checks are bundled from `argus_verticals.hardware.shared`; they do not import
digital verification rules or select a parent workflow.
Expand Down Expand Up @@ -111,6 +115,9 @@ waveform. Subsequent checks compare byte copies in external Argus runtime state;
unchanged numerical evidence is reused across report-only changes. Source/tool
changes invalidate reuse, and changed code in a running checker requires restart.
This uses trusted host state, not a sandbox against processes allowed to edit it.
The shared native process monitor is also part of the bound checker source.
Timeouts, output-limit failures and observation errors clean up owned POSIX process groups;
they cannot become a valid negative diagnosis.

The new reference exercises a loaded RC network and an explicitly modeled diode
at 17 conditions with all four analysis kinds. Independent expectations include
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ ranges and the physical meaning of the excitation. Confirm that every named
condition corresponds to the actual deck, not merely its filename. A model
that omits saturation or noise cannot establish those aspects of performance.

Run the supplied read-only stage checker from the execution project directory.
Inspect native ngspice output and the exact commands as well. Passing copies
Read the host-executed stage checker result for the saved scope and actual
execution project. Reviewer is read/search-only; do not claim shell execution.
Missing or failed host evidence is incomplete, not a request to impersonate
Reviewer through another Engineer run. Inspect native ngspice output and the
exact commands as well. Passing copies
and numeric bounds establish consistency, not genuine execution or adequate
physics. Verify the comparison is independent and the declared tolerance is
justified. Look for post-hoc bounds, stale waveforms, relaxed solver settings
Expand Down
8 changes: 5 additions & 3 deletions argus_verticals/analog_mixed_signal/stages.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
project_file,
record,
)
from argus_verticals.hardware.shared.review import hardware_review_contract

from .evidence import PLAN, validate_model, validate_simulation, validate_specification
from .study import resolve_study
Expand Down Expand Up @@ -74,18 +75,19 @@ def render_role_prompt_fragment(
"print(run_analysis(Path.cwd()))"
)
execution = (
"\nIf the required simulations have not been performed, run this from the "
"\nEngineer: if the required simulations have not been performed, run this from the "
"execution project. It requires analog/PLAN.json and refuses existing results:\n\n"
f"```bash\n{shlex.quote(sys.executable)} -c {shlex.quote(script)}\n```\n"
)
return (
f"## Analog work: {stage}\nApply only the selected scope and requested analysis kinds. "
"The examples below define record formats, not extra work to perform.\n\n"
+ locations + "\n" + contract + execution
+ locations + "\n" + contract + execution + "\n" + hardware_review_contract()
+ "\nEngineer: create records from actual execution. Reviewer: independently "
"check circuit assumptions, model validity, numerical tolerances and native results "
"before approving them. Manager/Planner must preserve the stated acceptance conditions.\n"
"Run this read-only check from the execution project directory; [] and exit 0 "
"For Engineer debugging or an execution-capable operator, run this read-only check "
"from the execution project directory; [] and exit 0 "
"mean the stage's record checks passed, not that the physical circuit is qualified:\n\n"
f"```bash\n{evidence_check_command('analog_mixed_signal', stage)}\n```\n"
"Explain missing inputs/tools or failed bounds explicitly. Never manufacture "
Expand Down
3 changes: 2 additions & 1 deletion argus_verticals/analog_mixed_signal/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from pathlib import Path

from argus_verticals.hardware.shared import evidence
from argus_verticals.hardware.shared import evidence, native
from argus_verticals.hardware.spice import batch, raw
from argus_verticals.hardware.spice import validation as cached

Expand All @@ -15,6 +15,7 @@ def _implementation_sources() -> dict[str, Path]:
return {
**{f"implementation/analog/{path.name}": path for path in Path(__file__).parent.glob("*.py")},
"implementation/shared/evidence.py": Path(evidence.__file__),
"implementation/shared/native.py": Path(native.__file__),
**{f"implementation/spice/{path.name}": path for path in Path(raw.__file__).parent.glob("*.py")},
}

Expand Down
5 changes: 3 additions & 2 deletions argus_verticals/analog_mixed_signal/vertical.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "analog_mixed_signal",
"version": "0.2.2",
"version": "0.2.4",
"module": "argus_verticals.analog_mixed_signal.stages",
"purpose_zh": "模拟与混合信号电路:偏置、反馈、滤波、模型和接口;ngspice 直流、交流、瞬态、多工况裕量诊断与数值收敛",
"paths": ["argus_verticals/analog_mixed_signal"],
Expand All @@ -9,5 +9,6 @@
"python_requirements": [],
"tags": ["hardware", "analog", "spice"],
"maintainers": [],
"min_argus": "vertical-routing-paths"
"min_argus": "vertical-routing-paths",
"argus_features": ["composable-workflow-profiles", "vertical-routing-paths", "host-round-evidence"]
}
Loading
Loading