Where truth lives
Start here before changing a shared rule. Paths below are relative to the OSS
package root (the public repo root, or packages/spectra-sherpa upstream).
This map points to authorities; it does not replace them.
| Topic | Owning implementation / schema | Normative document | Enforcing tests / checks | Consumers |
|---|---|---|---|---|
| Operations, ports and parameters | app/services/dag/node_base.py, registered node metadata |
Workflow architecture | tests/test_node_catalog_contract.py |
Execution, node library, generated reference |
| Sample inclusion, labels and classes | app/lib/axes.py, app/lib/sherpa_dataset.py |
Dataset contract | tests/test_sdk_sample_authority.py, tests/test_population_authority.py, tests/test_axis_semantics.py |
SDK helpers, curation, nodes; never a parallel metadata mask |
| Observation identity | app/lib/sample_identity.py, typed sample-table sample_id |
Dataset contract | tests/test_scientific_identity_authority.py, tests/test_pca_sample_review.py, tests/test_pls_sample_review.py, tests/test_sdk_runtime.py |
Assembly, slicing, application, new reviews and explanations; editable labels are not IDs |
| Workflow observation curation | app/lib/workflow_population.py, typed SampleAxis.include_mask; app/services/dag/population_display.py for display application only |
Workflow exclusions, result surfaces | tests/test_workflow_population.py, tests/test_run_output_retention.py, frontend/src/test/utils/workflowPopulation.test.ts |
Load Data before every branch, Exclusion State, shared plots, Advisor/Guidance counts; navigation references never establish specimen identity |
| Population roles and qualification | app/services/dag/population_authority.py |
Validation | tests/test_population_authority.py |
Split execution, readiness, retained evidence and result presentation |
| Preprocessing fit scope | Canonical node lifecycle_kind, app/services/dag/executor.py, app/services/dag/population_authority.py |
PREPROCESS-SCOPE-1, scientific references SR-001/SR-002 | tests/test_preprocessing_split_scope.py, tests/test_workflow_validation.py, tests/test_population_authority.py |
Canvas preflight, SDK execution, training/test and fold qualification |
| Specimen independence | core/specimen_independence.py |
Validation | tests/test_scientific_authority_rules.py, tests/test_canonical_train_test_split.py |
My Dataset, starter admission, split execution |
| Scientific result meaning and coordinates | app/services/dag/presentation_contract.py |
Result surfaces | tests/test_presentation_contract.py, frontend/src/test/composables/scientific_plot_parity.test.ts |
Inspector, detail, reports; declared axis bindings |
| Plot/table rendering | frontend/src/utils/scientific-presentation-renderers.json |
Result surfaces | frontend/src/test/utils/featureRulePresentation.test.ts, frontend/src/test/modals/QuickPlotModal.test.ts |
Shared result projections |
| Browser acceptance | frontend/e2e/scientific/, frontend/e2e/provider/ |
Journeys and lane boundaries | frontend/e2e/scientific/spectral.spec.ts, frontend/e2e/scientific/regression.spec.ts, frontend/e2e/scientific/guards.spec.ts |
PR smoke, broader qualification; Data View and plots checked independently; provider lane stays separate |
| Evaluation scope and units | core/target_units.py, app/services/run_validation_summary.py |
Validation | tests/test_run_validation_summary.py, tests/test_scientific_authority_rules.py, frontend/src/test/utils/scientificReportSummary.test.ts |
Retained branch projections, reports |
| Method and node help | frontend/src/utils/documentation.ts, contract help_reference |
Generation boundaries | scripts/check_built_help.py, frontend/src/test/components/method_help.test.ts, frontend/src/test/utils/node_help.test.ts |
MethodHelp, nodeHelp, built docs |
| GUI layout | Shared workspace and result components | GUI design, result surfaces | frontend/src/test/components/workspace_layout.test.ts, frontend/src/test/components/workspace_state.test.ts, frontend/src/test/components/layout_topbar.test.ts |
Data, Workflow, Runs, Report |
| Plate geometry and well coordinates | data/plate_formats_v1.json, core/plate_formats.py, frontend/src/utils/plateFormats.ts |
Plate maps | tests/test_plate_formats.py, tests/test_acquisition_plans.py, frontend/src/test/components/plate_map_96_well.test.ts |
Acquisition plans, preferences, measured-sample tables and the shared plate map; explicit formats, not occupied-well inference |
| Workspace request ownership | frontend/src/extension-contract/requests-v1.ts, frontend/src/composables/useScopedRequest.ts (re-export), frontend/src/stores/projectScopeRegistry.ts |
Scoped state | frontend/src/test/composables/scopedRequest.test.ts, frontend/src/test/stores/scoped_requests.test.ts, frontend/e2e/scientific/scoped-workspace.spec.ts |
Data pipes, Inspector, project stores, retained run inspection, separately built extensions |
| Product terminology | Glossary, bounded rules in scripts/check_user_copy.py |
Governance scope | tests/test_repository_governance.py, scripts/check_user_copy.py |
Static Vue copy and workflow guides, not scientific identifiers |
| Colors and palettes | frontend/src/assets/tokens.css, frontend/src/theme/plotTheme.ts |
Theme boundary | frontend/src/test/utils/theme_authority.test.ts, npm run check:theme |
Screen, downloads, reports; legacy colors explicitly scoped |
| Saved model compatibility and custody | core/contract_compatibility.py, sdk/fitted_state_custody.py |
Model artifacts | tests/test_batch_contract_compatibility.py, tests/test_fitted_state_custody.py |
Saved models and application; directional registrations |
| Inert pack identity and dependencies | core/pack_manifest.py |
Pack identity | tests/test_pack_manifest.py |
Declared pack references and retained identity comparison; not installed-code verification or execution permission |
| Retained pack bindings and model custody | core/pack_requirements.py, core/pack_model_integrity.py, app/services/dag/pack_requirements.py |
Retained pack evidence | tests/test_pack_requirements.py, tests/test_pack_execution_retention.py, tests/test_pack_model_integrity.py |
Saved workflow/run/SDK bindings, typed lineage and ordinary model replay; not commercial entitlement |
| Inert archived graph inspection | core/retained_graph.py, app/services/retained_archive_inspection.py |
Retained pack evidence | tests/test_retained_graph.py, tests/test_retained_archive_inspection.py |
Bounded archive viewer; no executable admission or embedded renderer loading |
| Trusted installed pack composition | app/services/pack_bootstrap.py, core/pack_build.py |
Pack startup | tests/test_pack_bootstrap.py, tests/test_pack_build.py, tests/test_pack_worker_bootstrap.py |
Explicit host and worker startup; availability identity only, not retained provenance or execution entitlement |
| Application file publication ownership | app/services/storage_custody.py, app/models/model_publication.py, app/services/model_store.py |
Publication custody | tests/test_storage_custody.py, tests/test_publication_lease.py, tests/test_publication_postgres.py, tests/test_retention_lock_first_use.py |
Workbench, headless and threaded execution; pending claims are custody, not completed scientific evidence |
| Standalone/upstream boundary | scripts/run_public_tests.py, public reference preflight |
OSS_SCOPE.md at package root |
tests/test_public_ci_test_profile.py, tests/test_generated_reference.py |
Public package and upstream qualification |
| REST and node reference projections | Backend response schemas, live node registry | Generation boundaries | make generate-check, tests/test_public_openapi_generation.py, tests/test_generated_reference.py |
Generated transport types, explicit view adapters, docs tables |
| Saved diagnostic facts | app/services/diagnostic_review_summary.py |
Result surfaces | tests/test_diagnostic_review_summary.py, tests/test_plsda_diagnostic_summary.py |
PCA/PLS/PLS-DA retained review; no new diagnostics implied |
| Extension host contract | frontend/src/extension-contract/ |
Generation boundaries | frontend/src/test/boot/extensionContract.test.ts, frontend/src/test/boot/extensionBoundary.test.ts |
OSS host and separately built extensions |
| Evidence and two-repo changes | scripts/evidence.py; upstream publication guard, source/dependency digests and semantic tests |
Repository governance | tests/test_repository_governance.py, tests/test_generated_reference.py, make evidence-check |
Contributors, agents, reviewers; generation is not qualification |
Python paths abbreviated to app/, core/ or sdk/ above are under
src/spectra_sherpa/. Unmigrated handwritten transport boundaries are not
authorities; generation does not authorize inventing scientific semantics for
untyped records.