OA Open Arbor v2.2.0
Platform / TOOLS_DIRECTORY.md Open Arbor v2.2.0 (from package.json)

Tools directory

Every executable surface in the repository, what it does, and when to use it. If a row has no page yet, the README section it links to is the current documentation.

Command line

ToolWhat it doesWhen to use it
bin/openarbor-rap.mjsCompiles an RAP-Spec v2.0 assessment into a report, a counter notice, an economics payload, or a signed attestationAny time an assessment has to leave the file system. Four subcommands: compile, counter-notice, economics, attest
scripts/validate-ordinance.mjsValidates every municipal record against the JSON Schema and reports its tierBefore contributing a record, and in CI on every change to data/ordinances/

Core engines

ModuleWhat it doesWhen to use it
src/core/rootZone.jsCRZ, inner and quarter zones, TPZ under US 1:1, US 1:1.5, AS 4970, and BS 5837, SRZ from the Mattheck windthrow equation, multi-stem aggregation, and spatial union across GPS pointsSizing protection areas, pricing air-tilling or mulch volumes, and checking a plan against a code
src/core/ordinanceEngine.jsReads a municipal record and evaluates each stem: protected, heritage, excepted, permit triggers, mitigation ledgerDeciding permit exposure before a design is fixed
src/core/ecosystemBenefits.jsNowak allometrics, Xiao hydrology, pollutant removal, shade energy savings, compensatory value, and GeoJSON exportValuation, grant applications, and council reports
src/core/soilFunction.jsValidates soil provenance and estimates vadose sponge function against NRCS parametersWhen soil disturbance or compaction is the question rather than canopy
src/core/rapEngine.jsRAP-Spec v2.0 five-domain diagnostics, Mattheck t/R biomechanics, dual valuation, economics, and the CLI compilersStructural risk calls and evidentiary reports
src/core/leoRapEngine.jsLEO-RAP Profile 01 six-slot compiler, three-stage phased triage, oracle verification, and handoff briefsMunicipal or legal review where the assessment has to survive challenge

Verification suites

SuiteWhat it proves
tests/verify_openarbor.mjsTen PASS groups across root zones, ordinances, ecosystem values, schemas, and the CLI, including an evidentiary linter that blocks a lazy removal recommendation
tests/verify_soil_function.mjsSoil provenance and GeoJSON backward parity
tests/verify_mcp.mjsSubprocess MCP JSON-RPC round trip
tests/verify_masterwork_100x.mjsLive build, permalinks, offline service worker, and the LEO-RAP surface

Build and serving

ToolWhat it doesWhen to use it
web/build.mjsBuilds the static field portal into out/, including routes for cases, methods, ordinances, and MCPBefore publishing, and in CI
deploy/verify-parity.mjsCompares the CLI bundle against the browser bundle and fails on driftBefore a release, so the portal and the CLI cannot disagree

Data

PathWhat it holds
data/ordinances/central_texas_ordinances.jsonFive verified municipal records: Austin, Georgetown, Liberty Hill, Cedar Park, Round Rock
data/ordinances/rogue_valley_oregon_ordinances.jsonThree verified municipal records: Ashland, Medford, Grants Pass
schemas/municipal-ordinance.schema.jsonThe contract a contributed city record must satisfy
schemas/rap_assessment.schema.jsonRAP-Spec v2.0 payload schema
schemas/rca_openbadge_v3.schema.jsonOpen Badges 3.0 attestation schema
examples/ashland_oregon_white_oak_rap_v2.jsonA complete, schema-valid reference assessment: 105 cm Quercus garryana

Verified today

  npm test                    ten PASS groups, exit 0
  npm run validate:ordinances 8 records valid, 6 Full_Rule_Record, 2 Threshold_And_Fee_Record
  compile on the example      exit 0, report with a SHA-256 digest and a passing
                              evidentiary linter