Skip to content

docs: author grounded CHARTER.md + CHITTY.md for ChittyScore#3

Open
chitcommit wants to merge 1 commit into
mainfrom
homeostasis/wave1-docs
Open

docs: author grounded CHARTER.md + CHITTY.md for ChittyScore#3
chitcommit wants to merge 1 commit into
mainfrom
homeostasis/wave1-docs

Conversation

@chitcommit

Copy link
Copy Markdown
Member

Foundation Homeostasis Loop — Wave 1 (docs only)

Replaces placeholder CHARTER.md / CHITTY.md stubs with full Pentad-shape compliance docs, grounded in the actual code.

What changed

  • CHARTER.md — canonical URI chittycanon://core/services/chittyscore, Tier 4 (Domain), score.chitty.cc API surface, scope IS/IS-NOT, dependency table, 6-dimension scoring model, document triad.
  • CHITTY.md — Python/Flask 6D scoring architecture, stack, scoring pipeline, ecosystem position, dependencies, endpoints, ChittyTrust-vs-ChittyScore boundary.

Grounding

  • app.pyTrustEngine, dimension weights (Source 15 / Temporal 10 / Channel 15 / Outcome 20 / Network 15 / Justice 25), output scores, trust levels, real routes.
  • CLAUDE.md:7 — Tier 4 / score.chitty.cc / deps ChittyID, ChittyTrust, ChittyAuth (reconciled, exact match).
  • CHITTYTRUST_ROOT_CA_ARCHITECTURE.md — analytical (ChittyScore) vs governance (ChittyTrust) boundary.
  • DATABASE_RELATIONSHIPS.md, requirements.txt, pyproject.toml — stack and persistence model.

Evidence

  • ls CHARTER.md CHITTY.md → both present
  • canonical URI chittycanon://core/services/chittyscore present in both
  • frontmatter uri: chittycanon://... resolves in both
  • Tier 4 / score.chitty.cc / deps consistent across CHARTER, CHITTY, and CLAUDE.md:7

Out of scope (separate specialist issues)

Entity-type / mint code drift untouched — this wave is docs only.

🤖 Generated with Claude Code

Replace placeholder stubs with full Pentad-shape compliance docs grounded
in app.py (6D scoring engine), CLAUDE.md, CHITTYTRUST_ROOT_CA_ARCHITECTURE.md,
and DATABASE_RELATIONSHIPS.md.

- Canonical URI chittycanon://core/services/chittyscore
- Tier 4 (Domain), score.chitty.cc — reconciled with CLAUDE.md:7
- Deps: ChittyID / ChittyTrust / ChittyAuth (upstream); ChittyRegister /
  ChittyCases / ChittyPortal (downstream)
- Documents the ChittyTrust (governance) vs ChittyScore (analytical) boundary
- Real API surface and 6-dimension weights from app.py

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MKWGKyRAxAPtSS3VGHz2Yz
@coderabbitai

coderabbitai Bot commented Jun 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@chitcommit, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 59 minutes. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 69adbc5d-d78f-4f61-a918-7157ae9a5258

📥 Commits

Reviewing files that changed from the base of the PR and between 2bf40dd and ed4bc9d.

📒 Files selected for processing (2)
  • CHARTER.md
  • CHITTY.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch homeostasis/wave1-docs

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ed4bc9df3a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CHITTY.md
Comment on lines +82 to +83
| `/api/trust/calculate` | POST | Yes | Calculate trust score (persists when identity resolves) |
| `/api/trust/history/<entity_id>` | GET | Yes | Recent scoring history (limit 20); 503 if no `DATABASE_URL` |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Do not mark unauthenticated endpoints as auth-gated

In the root Flask service I inspected, /api/trust/calculate and /api/trust/history/<entity_id> are registered with bare @app.route handlers in app.py:212 and app.py:258, and there is no auth middleware/decorator or Authorization handling in the root package. Marking these rows as Auth | Yes in the public agent contract will make consumers/agents treat the endpoints as protected when they are actually callable without credentials, so either document them as unauthenticated today or add the ChittyAuth enforcement before publishing this contract.

Useful? React with 👍 / 👎.

Comment thread CHITTY.md

Behavioral trust scoring engine for the ChittyOS ecosystem. Given an entity and its event history, it computes a 6-dimension trust profile, a weighted composite ChittyScore, four output scores (People, Legal, State, ChittyScore), a trust level mapped to the ChittyID lifecycle, and supporting insights with a confidence estimate.

ChittyScore is **analytical** (behavioral scoring). ChittyTrust is **governance** (cryptographic root authority / CA). They are complementary, not overlapping — ChittyScore consumes ChittyTrust certificate data for its Source dimension but never issues certificates or holds key material. The boundary is documented in `CHITTYTRUST_ROOT_CA_ARCHITECTURE.md`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Do not document ChittyTrust scoring input as implemented

The root Python implementation I inspected has SourceDimension.calculate() scoring only entity.identity_verified and credentials supplied in the request model, and repo-wide search outside docs does not show any ChittyTrust client/config/API call feeding certificate data into that dimension. Presenting this as an active ChittyTrust certificate-data dependency will lead operators and agents to expect certificate-driven Source scoring that the service cannot currently perform, so this should be worded as planned/aspirational or backed by the missing integration.

Useful? React with 👍 / 👎.

Comment thread CHITTY.md
→ trust level (L0→L4) + insights + confidence
```

Persistence is optional: with `DATABASE_URL` set, a result persists only when `entity.id` resolves to a `public.identities` row (by DID or chitty_id); otherwise calculation still succeeds with `persisted: null` and no orphan rows are written.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Do not promise null persistence for unknown UUIDs

This fallback is only true for unknown DID/chitty_id strings. When entity.id is shaped like a UUID, resolve_identity_id() returns that UUID before checking public.identities, and calculate_trust() then calls persist_result() because the value is non-null; if the UUID is not an existing identity, the FK insert raises and the endpoint returns a 400 instead of a successful response with persisted: null. Agents that send internal UUIDs will rely on this contract and handle missing identities incorrectly unless the docs call out the UUID failure path or the resolver verifies UUID existence.

Useful? React with 👍 / 👎.

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.

1 participant