Skip to content

docs(#75): add decision-level reference doc + expand schema comment#79

Merged
Knapp-Kevin merged 1 commit into
BicameralAI:devfrom
Knapp-Kevin:fix/75-document-decision-level
Apr 28, 2026
Merged

docs(#75): add decision-level reference doc + expand schema comment#79
Knapp-Kevin merged 1 commit into
BicameralAI:devfrom
Knapp-Kevin:fix/75-document-decision-level

Conversation

@Knapp-Kevin

Copy link
Copy Markdown
Collaborator

Closes #75.

Summary

The decision_level field on decision controls the L1 exemption guard in handlers/bind.py (added in #71/#59). It was previously documented only inline in docs/spec-governance-feedback.md and a terse 2-line schema comment, so new contributors had no canonical place to look up valid values or write semantics.

This PR adds that canonical place.

Changes

  • New docs/decision-level.md — single reference for the field. Covers:
    • All four values (L1, L2, L3, NULL) with their codegenome-write semantics
    • The tolerant-NULL policy rationale (cross-links to spec-governance-feedback §3)
    • Where the value comes from (caller-LLM at ingest, dashboard edit, bulk-classify utility, schema migration)
    • The read APIs (ledger.queries.get_decision_level, adapter wrapper)
    • Cross-references to handler/test/issue links
  • ledger/schema.py — expanded the comment block above DEFINE FIELD decision_level from 2 lines to a full quick-reference table that points at the new doc.
  • docs/spec-governance-feedback.md §6 — follow-up table updated: all four new items (Docs: document decision_level field on decision table in ARCHITECTURE_PLAN.md #75/76/77/78) now show as filed; Docs: document decision_level field on decision table in ARCHITECTURE_PLAN.md #75 row marks itself addressed by this PR.

Stacking

Stacked on claude/codegenome-phase-1-2-qor (PR #71). Will rebase to main once #71 lands.

Verification

  • python -c \"import ast; ast.parse(open('ledger/schema.py').read())\" — clean
  • pytest tests/test_codegenome_l1_exemption.py — 5/5 pass
  • No code change. ASSERT constraint unchanged.

Test plan

  • Schema parses
  • L1-exemption regression suite passes
  • Reviewer reads docs/decision-level.md cold and confirms the four-value table is unambiguous

@coderabbitai

coderabbitai Bot commented Apr 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bbb10890-0385-4ed1-89ec-4e19890f0fd6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Knapp-Kevin Knapp-Kevin changed the base branch from claude/codegenome-phase-1-2-qor to dev April 28, 2026 20:22
…a comment

The `decision_level` field on `decision` controls the L1 exemption guard
in `handlers/bind.py` — but it was previously documented only inline in
spec-governance-feedback.md and a terse 2-line schema comment. New
contributors couldn't find the contract.

Changes:

- New `docs/decision-level.md` — single canonical reference for the
  field. Documents all four values (L1/L2/L3/NULL), their codegenome
  write semantics, the tolerant-NULL policy rationale, where the value
  comes from, and the read APIs.
- `ledger/schema.py` — expanded comment block above the DEFINE FIELD,
  pointing to the new doc and giving a quick-reference value table.
- `docs/spec-governance-feedback.md` §6 — updated follow-up table to
  reflect that BicameralAI#75/76/77/78 have all been filed and BicameralAI#75 is addressed
  by this commit.

No code change. ASSERT constraint unchanged. All 5 L1-exemption tests
still pass.
@Knapp-Kevin Knapp-Kevin force-pushed the fix/75-document-decision-level branch from 8c24beb to ea8fbc8 Compare April 28, 2026 20:24
@Knapp-Kevin Knapp-Kevin added the documentation Improvements or additions to documentation label Apr 28, 2026
Knapp-Kevin added a commit that referenced this pull request Apr 28, 2026
The new dev integration workflow ("everything pushes and merges to dev
first, then PRs from dev to main upon Jin's approval") needs CI to run
on PRs targeting dev — not just main. Without this, retargeted PRs
(#73, #79#84) never get a green badge and have to be merged on local
verification only.

Updates 3 workflows: MCP Regression Tests, Preflight Eval, Schema
Persistence. All other path filters retained.

Direct push to dev (not via PR) — no CI exists yet to run on this
file's own PR (chicken-and-egg). Subsequent PRs to dev will inherit
the new triggers.
@Knapp-Kevin Knapp-Kevin merged commit 49b8581 into BicameralAI:dev Apr 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant