Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
02214df
Establish Open Quant contracts and bounded SOFR example
Oct 5, 2026
d3e3dd0
Identify contract and program entry points for agents
Oct 5, 2026
53ca403
Compose reusable model description and numerical evidence requirements
Oct 6, 2026
50c49fb
Ground Open Quant in current guidance and prepare directory package
Oct 6, 2026
b256adc
Distinguish missing support from gap disclosure in assessments
Oct 6, 2026
53ef222
Publish the observed CLI example with assessment limits
Oct 6, 2026
5c3dd02
Use evaluator terminology in qualification commentary
Oct 6, 2026
e996b9b
Add composed contracts for quantitative operating reports
Oct 6, 2026
9b39a70
Add valuation and performance review contracts with synthetic compari…
Oct 6, 2026
2599b91
Add backtesting review with explicit missing-data policy treatment
Oct 6, 2026
01d2fff
Compose a SOFR change review with an optional locality requirement
Oct 6, 2026
27e5594
Add a common assessment entry point for operating reports
Oct 6, 2026
4399c78
Add reproduced SOFR calibration evidence and review composition
Oct 6, 2026
fa62416
Compose vendor evidence and deployment inventory review
Oct 6, 2026
4e05606
Compose P&L explanation and scenario risk reporting
Oct 6, 2026
8716467
Add matched-population outcome comparison and timing cases
Oct 6, 2026
b105fd5
Make all operating compositions discoverable in the run guide
Oct 6, 2026
577f5b8
Preserve source-defined measurement intervals in numerical review
Oct 6, 2026
3977789
Check policy bindings independently of record agreement
Oct 6, 2026
6772948
Add implementation evidence review with explicit qualification limits
Oct 6, 2026
3d17340
Separate reusable contract package from versioned source examples
Oct 6, 2026
e14925e
Add owned calculation source for implementation-review evidence
Oct 6, 2026
24f7ff7
Add implementation-review report with observed pricing evidence
Oct 6, 2026
edfc4ab
Show each required case in implementation reference report
Oct 6, 2026
c5648a2
Add owned simulation source for uncertainty-review evidence
Oct 6, 2026
b478eb9
Add simulation evidence review and a worked precision report
Oct 6, 2026
414398d
Add a full SOFR methodology example with artifact-specific readiness
Oct 6, 2026
73a864f
Add dependence review for joint validity and input alignment
Oct 6, 2026
2aa07aa
Add reproducible synthetic dependence calculations
Oct 6, 2026
81bc34a
Compose dependence and data review in a worked report
Oct 6, 2026
be1bfac
Add reproducible selection-history score source
Oct 6, 2026
4eff6ef
Compose outcomes and data review for selection-history evidence
Oct 6, 2026
9e5cc62
Add instrument cash-flow review requirements and distinguishing cases
Oct 6, 2026
7363963
Add reproducible synthetic cash-flow calculation source
Oct 6, 2026
8102068
Compose cash-flow and valuation review with missing-evidence controls
Oct 6, 2026
2ef0f49
Add reproducible forward-sensitivity precision source
Oct 6, 2026
5552d83
Compose sensitivity and implementation review with precision controls
Oct 6, 2026
f07b037
Add bounded model reproduction and explicit calculation evidence
Oct 6, 2026
db76258
Record observed bounded SOFR reproduction and its limits
Oct 6, 2026
66721cf
Add specialist optimization review requirements and cases
Oct 6, 2026
0f8b3c8
Add reproducible optimization study source for a worked report
Oct 6, 2026
eecc518
Compose optimization and implementation review with evidence controls
Oct 6, 2026
dd53d67
Add reproducible historical availability study source
Oct 6, 2026
2c146f1
Compose historical data and outcomes review with missing-history cont…
Oct 6, 2026
a2e62da
Add credit-loss review requirements for probability and loss bindings
Oct 6, 2026
d717a0d
Add reproducible synthetic credit-loss calculation source
Oct 6, 2026
db21b78
Compose credit-loss reporting with missing-intent controls
Oct 6, 2026
77818d9
Add reproducible portfolio-loss and tail-allocation source
Oct 6, 2026
7cccd46
Compose portfolio-tail reporting with explicit native-evidence limits
Oct 6, 2026
4e35fd8
Add fixed exception-statistics reproduction source
Oct 6, 2026
2defe6d
Compose backtesting statistics with explicit timing-evidence limits
Oct 6, 2026
ea9b138
Add counterparty-exposure reporting requirements
Oct 6, 2026
d09559f
Add fixed exposure-ledger reproduction source
Oct 6, 2026
62cfec9
Compose exposure review with missing recognition bindings
Oct 6, 2026
30aa95e
Prespecify public option-consistency reproduction
Oct 6, 2026
aa47eb7
Compose option fit and consistency review with missing terms
Oct 6, 2026
03e4b98
Repair operating catalog placement and remove stale counts
Oct 6, 2026
60cdab0
Prespecify public PnL attribution reproduction
Oct 6, 2026
2bbe2ae
Clarify inclusion-exclusion notation in reproduction guide
Oct 6, 2026
2eea1e2
Compose PnL attribution review with missing valuation evidence
Oct 6, 2026
c32a7ab
Clarify runner option placement and case preparation limits
Oct 6, 2026
089feaa
Clarify that worked examples run from the source repository
Oct 6, 2026
22c314d
Prespecify public reverse-stress numerical reproduction
Oct 6, 2026
9c28baf
Compose scenario and optimization review for reverse stress
Oct 6, 2026
da9ca0b
Prespecify public pricing probability reproduction
Oct 6, 2026
371f01c
Compose model description and evidence for pricing probabilities
Oct 6, 2026
fc767b4
Show how to author a report from reusable contracts
Oct 6, 2026
f1aa71c
Prespecify public exposure default reproduction
Oct 6, 2026
eb463dc
Compose credit loss and dependence review for joint exposure evidence
Oct 6, 2026
5ea97de
Prespecify public calibration identification reproduction
Oct 6, 2026
6966be2
Compose calibration and optimization review for identified outputs
Oct 6, 2026
497c6ae
Compose a periodic model operating review
Oct 6, 2026
02c4bdf
Keep authored reference reports within their selected cases
Oct 6, 2026
616cc88
Prespecify public hedge fit reproduction
Oct 6, 2026
ac42aa5
Compose hedge fit and subsequent outcome reporting
Oct 6, 2026
4831fc9
Normalize UTC timestamps for older Python checkers
Oct 6, 2026
58cb744
Keep documented offline checks complete as examples grow
Oct 6, 2026
b959bbe
Reuse full documentation contracts for a credit-loss methodology
Oct 6, 2026
05bd79c
Compose two model documents into one documentation library
Oct 6, 2026
95fb19f
Keep package guide aligned with the expanded source candidate
Oct 6, 2026
473b578
Prespecify public quote sensitivity reproduction
Oct 6, 2026
bfb18de
Review quote sensitivities with recoverable and partial evidence
Oct 6, 2026
0f800d5
Clarify qualification scope and assessment command placeholders
Oct 6, 2026
d57b552
Add assessment for fresh bounded SOFR reproduction evidence
Oct 6, 2026
d8ea9a3
Bind SOFR reference extrema to their recorded dates
Oct 6, 2026
a491f4d
Document Black pricing methodology with reusable full-document requir…
Oct 6, 2026
258f260
Compose calibration stability and sensitivity reporting
Oct 6, 2026
215bbf9
Preserve metrics and exact issue scope in periodic reference
Oct 6, 2026
16d7fc3
Distinguish marginal parameter bounds from joint calibration support
Oct 6, 2026
55ef04c
Ground assessment findings in evidence and subject-time availability
Oct 6, 2026
40b574a
Add a small SOFR requirement composition and assess its selected agre…
Oct 6, 2026
52ec72f
Document the candidate native setup and short composition flow
Oct 6, 2026
1be5d61
Document the rehearsed native composition route and its limits
Oct 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 44 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Offline repository checks
on: [push, pull_request]
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
- run: python3 scripts/check_repository.py
- run: python3 -m unittest discover -s tests -v
- run: node scripts/check_monitoring.mjs
- run: node scripts/check_valuation.mjs
- run: node scripts/check_backtesting.mjs
- run: node scripts/check_sofr_change.mjs
- run: node scripts/check_calibration.mjs
- run: node scripts/check_vendor_inventory.mjs
- run: node scripts/check_risk_report.mjs
- run: node scripts/check_outcomes.mjs
- run: node scripts/check_implementation.mjs
- run: node scripts/check_simulation.mjs
- run: node scripts/check_documentation.mjs
- run: node scripts/check_dependence.mjs
- run: node scripts/check_selection.mjs
- run: node scripts/check_cashflow.mjs
- run: python3 scripts/check_sensitivity.py
- run: python3 scripts/check_optimization.py
- run: python3 scripts/check_availability.py
- run: python3 scripts/check_credit_loss.py
- run: python3 scripts/check_portfolio_tail.py
- run: python3 scripts/check_backtest_statistics.py
- run: python3 scripts/check_exposure.py
- run: python3 scripts/check_option_consistency.py
- run: python3 scripts/check_pnl_attribution.py
- run: python3 scripts/check_reverse_stress.py
- run: python3 scripts/check_pricing_probabilities.py
- run: python3 scripts/check_exposure_default.py
- run: python3 scripts/check_calibration_identification.py
- run: python3 scripts/check_periodic_review.py
- run: python3 scripts/check_hedge_outcomes.py
- run: python3 scripts/check_credit_methodology.py
- run: python3 scripts/check_quote_sensitivity.py
- run: python3 scripts/check_pricing_methodology.py
- run: python3 scripts/check_calibration_stability.py
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
results/
__pycache__/
*.py[cod]
.venv/
.env
.env.*
node_modules/
.DS_Store
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Contributing

Keep reusable documentation requirements in contracts/, model evidence and caller-owned house conventions in examples/, and verification fixtures in tests/. Conference logistics and facilitator notes belong in private company coordination, not this repository. Do not add a kernel, evaluator provider shim or private workspace dependency here.

Use ordinary Markdown and Standard Technical English. State what is required, who supplies inputs, what the executor may change, and what evidence supports assessment. A contract need not prescribe a procedure or map to one subagent. Preserve the distinction between execution completion, subject fulfillment and assessment coverage.

Changes use labeled pull requests. Explain the concrete behavior, inspect adopted dependencies and run the offline checks in the README. For requirement changes, include distinguishing cases: a supported result, missing evidence and a contradiction where appropriate. Expected fixture labels are authored references, not independent model judgments.

New agent runs need explicit finite limits, selected runtime/model identities and permission for the chosen billing route. Retain actual inputs, outputs and failed attempts separately. Never call a dry run a successful model execution or relabel an authored illustration as generated evidence.

Preserve import hashes and historical records. A changed input is a new revision; update current provenance while retaining the preceding identity in Git. Do not weaken the integrity checker to make an unexplained mismatch pass. Third-party material needs its own provenance and permitted use; the repository's MIT license does not relicense external works.

The default package selects reusable contract definitions, its consumer entry, manifest and license. Examples and development checks remain in the source checkout. When adding a definition, update its package selection/export and consumer index. Verify package reference closure separately from source/example integrity; do not add example files to the component package implicitly.
30 changes: 30 additions & 0 deletions PACKAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Open Quant contracts

Contract authoring is expressing intent by composing requirements. Open Quant provides reusable requirements for quantitative model documentation and operating work. Supply the model evidence, applicable house requirements, permitted tools and output scope in your own program, and adopt the components relevant to its result.

This package contains contract definitions, its manifest and the license. It does not contain example inputs, financial model code, development tests, a kernel or an agent harness. The selected OpenProse runtime supplies the kernel and execution capabilities.

| Purpose | Contracts |
|---|---|
| Describe and document | [Model description](contracts/model-description.md), [decision note](contracts/model-decision.md), [full documentation](contracts/documentation.md) |
| Ground a report | [Claim evidence](contracts/claim-evidence.md), [numerical evidence](contracts/numerical-evidence.md), [institutional facts](contracts/institutional-facts.md), [operating report](contracts/operating-report.md) |
| Assess a result | [Assessment](contracts/assessment.md) |
| Produce calculation evidence | [Model reproduction](contracts/model-reproduction.md) |
| Review counterparty exposure | [Counterparty exposure](contracts/counterparty-exposure.md) |
| Review credit-loss calculations | [Credit-loss review](contracts/credit-loss-review.md) |
| Review optimization results | [Optimization review](contracts/optimization-review.md) |
| Review implementation and use | [Implementation](contracts/implementation-review.md), [simulation](contracts/simulation-review.md), [inventory](contracts/model-inventory.md), [vendor evidence](contracts/vendor-model-review.md) |
| Review inputs and changes | [Model data](contracts/model-data.md), [dependence](contracts/dependence-review.md), [calibration](contracts/calibration-review.md), [change impact](contracts/model-change.md) |
| Monitor and follow up | [Monitoring](contracts/model-monitoring.md), [limitations and remediation](contracts/limitations-and-remediation.md) |
| Explain values and results | [Cash flows](contracts/cashflow-review.md), [Valuation comparison](contracts/valuation-comparison.md), [P&L explanation](contracts/pnl-explanation.md), [outcomes](contracts/outcomes-analysis.md) |
| Examine risk evidence | [Backtesting](contracts/backtesting.md), [sensitivities](contracts/sensitivity-review.md), [scenarios](contracts/scenario-review.md) |

The default export is the full-documentation contract. Named exports locate individual definitions; importing a package does not execute them. A report may satisfy several contracts without requiring a separate agent or file for each. A fulfilled report can identify adverse findings or missing evidence; it does not thereby approve a model or establish regulatory compliance.

## Run an example

Runnable examples and their inputs live in the [complete source repository](https://github.com/openprose/open-quant), separately from this component package. The [SOFR example checkpoint](https://github.com/openprose/open-quant/tree/6772948763b736e87d4661fd4d1565ce8e841751) contains its own contracts, evidence and instructions. Clone that revision and follow its README for the demonstration. It uses the definitions in that checkout; a package fetched elsewhere does not silently replace them.

That checkpoint retains one bounded CLI development campaign. The complete attendee setup, broader report examples and reliability claims remain unqualified; see its [evidence and limits](https://github.com/openprose/open-quant/blob/6772948763b736e87d4661fd4d1565ce8e841751/docs/qualification.md). Selecting a newer source checkpoint or package creates a new version to inspect and qualify.

Owned definitions are provided under the included [MIT license](LICENSE). Preserve the exact package identity from its publication receipt when adopting it in your own program.
87 changes: 84 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,88 @@
# Open Quant

Open contracts for quantitative model documentation, built with OpenProse.
**Open contracts for quantitative model documentation and operating work, built with OpenProse.**

Contract authoring is expressing intent by composing requirements. Open Quant supplies reusable documentation requirements; an organization supplies its house conventions and model evidence.
Contract authoring is expressing intent by composing requirements. Open Quant provides reusable requirements for documenting a model, supporting its claims and assessing the resulting documentation. You supply the model evidence and your organization's house requirements.

The initial library and SOFR curve example are being prepared through a reviewed pull request. No live-workflow qualification, broad model coverage or industry-standard status is claimed by this initial repository.
The first example documents one decision in a public USD SOFR curve model: choosing an interpolation method. It produces a short decision note, not a complete model document. The reusable [full-document contract](contracts/documentation.md) is a separate scope, illustrated by [SOFR](examples/sofr-documentation/README.md), [credit-loss](examples/credit-methodology/README.md) and [Black option-pricing](examples/pricing-methodology/README.md) methodology documents.

The [two-model library example](examples/documentation-library/README.md) composes the SOFR and credit documentation programs and a collection index, preserving each model's requirements and findings. It is authored and has not received agent qualification.

This is a methodology demonstration, not a complete regulatory submission. Institutional facts are supplied by the deploying institution. Documentation assessment does not establish model soundness or institutional approval. Open Quant is an initial library, not an established industry standard.

OpenProse is not affiliated with the New York Fed. The New York Fed does not sanction, endorse, or recommend any products or services offered by OpenProse. [Data source notices](provenance/README.md#external-sources) apply to the historical SOFR inputs.

## Start with the example

Follow [the installation and composition exercise](examples/sofr-curve/COMPOSE.md). It selects public Prose CLI 0.15.0-rc.2, Claude Code 2.1.243 and an explicit Anthropic API configuration on macOS ARM64. Install, select the candidate source and review the local runtime settings before running:

```sh
prose run examples/sofr-curve/program.md
```

The program requests a fresh directory under `results/sofr-curve/` containing `note.md` and `result.md`. Inspect the actual returned paths. No numerical packages, paper downloads or private repositories are needed for this documentation task.

**Candidate status:** the example is in stacked, unmerged pull requests; the default main clone does not yet contain it. The exercise is source-checkout use, not a published component-package installation. The October 6 native rehearsal produced useful notes and also found source-attribution and completion-claim defects. [Qualification and limits](docs/qualification.md) distinguish installation, useful output and contract fulfillment.

## Understand and change it

Read [the program (for agents)](examples/sofr-curve/program.md). It binds [the model brief](examples/sofr-curve/inputs/brief.md), [computed evidence](examples/sofr-curve/inputs/results.json) and [house requirements](examples/sofr-curve/house/requirements.md) to the reusable [model-decision contract](contracts/model-decision.md). That contract composes claim-evidence and institutional-fact requirements.

[Compose a comparison-table requirement](examples/sofr-curve/COMPOSE.md#compose-a-presentation-requirement) with the original program. The reusable definitions and model inputs remain unchanged. The new entry selects both sets of requirements; assess its result against that composed agreement.

To assess a result, substitute the actual directory reported by your run:

```sh
prose run examples/sofr-curve/assess.md results/sofr-curve/YOUR-RUN-DIRECTORY
```

The assessment contract asks for findings tied to the exact subject, requirements and evidence. It permits a completed assessment to identify unmet or unresolved subject requirements. This is a separate invocation, not proof of an independent institutional review.

[Public foundations](docs/public-foundations.md) maps the library to current supervisory guidance and separates that guidance from the example's house requirements.

## Library

[Operating-work contracts](docs/operating-work.md) add model inventory, change review, monitoring, remediation, data, calibration, valuation, outcomes, backtesting, sensitivities, scenarios, P&L, vendor-model reporting, implementation review, dependence inputs and simulation evidence. Start with the small [synthetic monitoring example](examples/monitoring-review/README.md) to see how two contracts compose into one report. These new components have authored cases and offline checks; they have not received model-backed execution qualification.

| Contract | Required result |
|---|---|
| [Model description — for agents](contracts/model-description.md) | Purpose, scope, inputs, outputs, method, assumptions and limitations from supplied evidence. |
| [Model decision — for agents](contracts/model-decision.md) | A bounded account of a supplied modeling choice, alternatives, evidence and limitations. |
| [Model documentation — for agents](contracts/documentation.md) | A full document and supporting reports under supplied base and house requirements. |
| [Claim evidence — for agents](contracts/claim-evidence.md) | Support for the particular claim, preserving method, quantity, units, scope and source identity. |
| [Numerical evidence — for agents](contracts/numerical-evidence.md) | Interpretation of supplied comparisons, their conditions, tradeoffs and limits. |
| [Institutional facts — for agents](contracts/institutional-facts.md) | Visible missing institutional facts and limits on readiness claims. |
| [Documentation assessment — for agents](contracts/assessment.md) | Findings against selected requirements, with evidence gaps and assessment coverage visible. |

[Compose these contracts](docs/composition.md) with your own inputs and house requirements. Private model material can remain in your own repository; this example performs no upload to Open Quant. The selected agent/provider's data handling still applies. A private-model workflow has not been qualified here.

[The component package](PACKAGE.md) contains the reusable contracts. Runnable examples, inputs and development checks remain in this source repository; the clone-and-run flow above is unchanged. [Package preparation](docs/package.md) describes the separate delivery scopes, a versioned SOFR checkpoint and current publication status.

## Inspect without a model

[The authored reference note](examples/sofr-curve/sample-results/note.md) illustrates the requested output. It is not a recorded successful agent run. [The model source](examples/sofr-curve/model/README.md) and [source provenance](provenance/README.md) explain the retained calculations and optional reproduction.

With Python 3.10 or newer:

```sh
for script in scripts/check_*.py; do
python3 "$script" || exit 1
done
python3 -m unittest discover -s tests -v
```

For the additional operating controls, use Node.js 18 or newer:

```sh
for script in scripts/check_*.mjs; do
node "$script" || exit 1
done
```

Each script states the limited fixture relationships it checks. See [the test guide](tests/README.md) for their coverage.

These checks verify links, imported identities and specified numerical correspondences. They do not assess arbitrary prose, certify the financial model or establish that contract composition outperforms a baseline. [Contributing](CONTRIBUTING.md) explains how to add a contract or model example. Owned code and documentation are [MIT licensed](LICENSE); external sources retain their own terms.

The [implementation-review example](examples/implementation-review/README.md) uses observed synthetic pricing calculations to distinguish correct input mappings, reference agreement, passing identities and missing coverage. It has an authored report and deterministic controls; its report program remains agent-unqualified.

The [calibration-stability example](examples/calibration-stability/README.md) shows why an exact fit and a better matrix condition number need not establish stable physical parameters. It reuses calibration and sensitivity requirements; the worked reporting program remains agent-unqualified.
Loading
Loading