Skip to content

docs: document pricing_or_model_changed, confidence_reason format, policy accumulation, and ingest edge cases#30

Merged
Gsbreddy merged 1 commit into
mainfrom
cursor/documentation-automation-system-50e5
May 2, 2026
Merged

docs: document pricing_or_model_changed, confidence_reason format, policy accumulation, and ingest edge cases#30
Gsbreddy merged 1 commit into
mainfrom
cursor/documentation-automation-system-50e5

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 2, 2026

Summary

Documentation-only PR covering three knowledge gaps exposed by v1.0.3 test additions.

Why

The v1.0.3 release hardened test coverage in test_ledger.py and test_spine.py for behaviors that existed in code but had no corresponding developer reference:

  • Exactly which conditions set pricing_or_model_changed (cross-provider, cross-version, cross-model diffs)
  • What the confidence_reason string looks like and when it appears
  • That all policy constraints are checked and accumulate independently
  • How runs ingest handles empty files, malformed JSONL, and JSON array input

Changes

docs/operations-and-policy.md

  • New section: "Pricing and model change detection" — lists the three conditions that set pricing_or_model_changed (provider, pricing_version, model field), explains cross-provider diff support, and notes where the flag surfaces (CLI note, HTTP pricing block, web UI fd-alert--warn banner)
  • Merged former "Constraint evaluation" paragraph into confidence tiers section; added explicit note that all four constraints are always evaluated and failure reasons accumulate (multiple reasons can appear on one blocked promotion)
  • Added "confidence_reason format" subsection documenting the four possible reason strings and how they appear in policy failure messages

docs/cli.md

  • Added edge-case table to flightdeck runs ingest: empty file (exits 0, Inserted 0 events), malformed JSONL (exits non-zero), JSON array, and duplicate run_id idempotency

Validation

  • uv sync --frozen --extra dev
  • uv run python -m ruff check src tests — all checks passed
  • uv run python -m pytest — 93 passed
  • No schema changes
  • No web/ changes

Schema / Storage Impact

  • None

Risk

Documentation-only. No code changes.

Notes

Triggered by push to main at df7628b (docs(web-ui): document v1.0.3 UI changes).

Open in Web View Automation 

… format, policy accumulation, and ingest edge cases

- operations-and-policy.md: add 'Pricing and model change detection' section explaining
  the three conditions that set pricing_or_model_changed (provider, pricing_version, model),
  cross-provider diff support, and where the flag surfaces (CLI note, HTTP pricing block,
  web UI warning banner)
- operations-and-policy.md: merge constraint evaluation into confidence tiers section;
  document confidence_reason format strings and that all policy constraints are checked
  (failure reasons accumulate — multiple reasons can appear on one blocked promotion)
- cli.md: add edge-case table for 'runs ingest' covering empty file (exits 0, inserts 0),
  malformed JSONL (exits non-zero), JSON array input, and duplicate run_id idempotency

Covers codepaths added/hardened in v1.0.3 (tests/test_ledger.py, tests/test_spine.py).

Co-authored-by: Gottam Sai Bharath <Gsbreddy@users.noreply.github.com>
@Gsbreddy Gsbreddy marked this pull request as ready for review May 2, 2026 17:54
@Gsbreddy Gsbreddy merged commit 6778d3a into main May 2, 2026
2 checks passed
@Gsbreddy Gsbreddy deleted the cursor/documentation-automation-system-50e5 branch May 2, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants