Troubleshooting

Troubleshoot dimensional analysis — Sustainable Catalyst Workbench

Troubleshoot dimensional analysis — Sustainable Catalyst Workbench Availability: The physical-quantity implementation and the local examples below were inspected/tested at the pinned source revision. Full application startup, brow

ProductSustainable Catalyst WorkbenchUpdatedNovember 11, 2026Reading time4 minutes

Troubleshoot dimensional analysis — Sustainable Catalyst Workbench

Availability: The physical-quantity implementation and the local examples below were inspected/tested at the pinned source revision. Full application startup, browser controls, authentication, WordPress integration and deployed behavior remain UNVERIFIED. These are internal drafts, not approved public instructions. A local router test is not a production acceptance test.

The source module’s historical label is v11.7.0, but backend/app/release.py currently reports 14.0.0 and the README reports v10.4.0. Use the commit to identify this behavior; do not infer installed-version compatibility from those conflicting labels.

Start with the smallest reproducible case

Record the exact source/deployed revision, operation JSON, unit spellings, expected result and sanitized error. Preserve original measurements. The verified small case is 2 kg multiplied by 3 m/s²: the base result should be 6 kg·m/s², equivalent to 6 N. A second independent check is 36 km/h → 10 m/s. If these fail, diagnose the environment or request before interpreting a larger model.

Symptoms and documented behavior

Symptom Evidence-based explanation Recovery
No module named app.v10110 on normal backend test collection/startup Current app.main imports a module absent from the pinned source tree Have the maintainer reconcile the application source; do not claim the whole API is running. The how-to’s direct quantity-module exercise is a limited diagnostic, not a deployment workaround.
Version expected 11.7.0 but observed 14.0.0 v1170 imports current APP_VERSION; upstream tests retain historical assertions Record both the commit and returned version; do not edit observations to satisfy the test. Release compatibility remains unresolved.
Invalid operation gives 422 locally Pydantic enforces the operation enumeration Use an operation from the developer reference; check request spelling.
Missing expression or operand gives an execution error Fields are optional in the common model; operation-specific checks raise ValueError For conversion supply expression and targetUnit; for multiplication/addition supply left and right; for consistency supply nonempty operands.
Adding meters and seconds fails Pint refuses addition of unlike dimensions Re-examine the physical model. Convert only compatible units; multiplying or dividing is a different operation and requires a scientific reason.
Unknown unit gives an execution error Pint cannot parse the supplied unit expression Reduce to documented spellings such as meter, second, kilogram, newton; retain the original input and document any correction.
compatible is true but magnitudes differ Compatibility compares dimensions, not physical equality Convert to common units and compare magnitudes with a declared tolerance.
Force is displayed as compound SI units, not N Serialization preserves/normalizes Pint unit representations Compare the base magnitude and exponent map; request an explicit compatible conversion if needed.
Client expects result.magnitude but receives a boolean compatible and consistency-check return booleans Branch on operation and validate the actual result shape.

Missing fields, unknown units and incompatible addition were observed as HTTP 500 in the isolated router fixture with raise_server_exceptions=False. They are not a documented stable structured-error contract for every deployment. With the default local TestClient configuration, the original execution exception may be raised into the caller instead. Do not retry such requests indefinitely or infer a permissions problem from every 500.

Distinguish computational and scientific errors

A result of 18 kg·m²/s² for 2 kg × (3 m/s)² is mathematically correct. Calling it kinetic energy would be scientifically incorrect without the factor 1/2; kinetic energy under that model is 9 J. Similarly, a true dimensional-consistency flag does not validate coefficients, signs, boundary conditions or uncertainty. Correct the interpretation/model transparently, not the source data to obtain a desired answer.

The inspected module does not automatically propagate measurement uncertainty, prove arbitrary equations dimensionally homogeneous or certify significant figures. Negative or unexpected physical values require domain-specific interpretation; dimensional checks alone cannot reject every impossible model. No such additional validation is certified here.

Hashes, unavailable UI and escalation

If repeated requests give different fingerprints, compare complete payloads, software/Pint versions and version fields before assuming data corruption. Matching hashes in one fixed environment are a repeatability check, not proof of scientific validity or guaranteed cross-version equivalence.

No browser controls, screenshots or deployed authentication flow were verified. The optional WordPress adapter’s source reports an unavailable backend when its shared request helper is missing; this audit did not install it or test its proxy/error rendering. Escalate with a sanitized source-linked reproducer and separate expected versus observed behavior. Include the known full-app startup and release-drift gaps; leave the affected workflow unverified until repaired and retested.

Evidence and related reading

Physical-quantity request models, operations, result serialization and routes; Existing quantity tests; Canonical source release identity.

Verification on 2026-11-10: 23 focused local assertions passed against the actual quantity router in a minimal FastAPI application. Six existing upstream test functions passed in that isolated router context; the status test failed because it expects 11.7.0 rather than the returned 14.0.0. The normal upstream suite could not collect because full app.main imports missing app.v10110. Static tests: three passed, two failed on old release/image expectations. These failures were recorded, not patched away. No deployed endpoint, UI, permission or scientific peer-review acceptance was performed.

Related: overview, worked how-to, research protocol, developer reference, troubleshooting. Technical/scientific review owner remains unassigned; publication remains blocked.

Scroll to Top