Skip to content
CAI
Software that uses CAICheck a score

bardiakhosravi/tenets

51.5

Adequate · 8 November 2026

5.8k

lines of production code

JavaScript

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Added architecture review demo for the ordering bounded context

The \examples/architecture-review-demo\ location now includes a complete, runnable Python implementation of the ordering bounded context to demonstrate the Tenets architecture review. This demo provides a concrete example of the architecture by implementing a FastAPI-based HTTP endpoint for submitting orders, a domain model for orders, and application use cases that interact with secondary adapters (an in-memory SQL repository and an email notifier) via defined ports.

examples/architecture-review-demo, python · high confidence

Introduce Tenets CLI entry point with multi-integration onboarding

The \tenets\ CLI binary is now available, providing a unified interface for repository setup and maintenance. Users can run \tenets init\ to detect their repository and install recommended integrations for tools such as Claude Code, Cursor, Augment, Copilot, and Spec-Kit, with options to select architecture profiles (core, pragmatic, strict) or preview changes via \--dry-run\. The CLI also supports \update\ and \diff\ commands to manage rule versions, \doctor\ to diagnose integration health, \explain\ to view specific rules, and \uninstall\ to remove Tenets-owned files. Output can be formatted as machine-readable JSON using the \--json\ flag.

cli/bin · high confidence

Introduce diagnostic, rule-explanation, and interactive setup commands

The CLI now includes \doctor\ to inspect the installation and report tool/preset health, \explain\ to display details and active status for specific Tenets rules (including profile applicability and deprecation notices), and an interactive \init\ flow that detects the repository stack and prompts users to select which AI agent integrations and presets to install. These commands provide clearer visibility into configuration state and simplify the initial setup experience.

cli/src/commands · high confidence

Multi-layer AI coding assistant integration with scoped rule files

The CLI now installs and manages dedicated rule files, commands, and hooks for Claude Code, Augment, Cursor, and GitHub Copilot. Instead of writing to a single file, it creates scoped rule files (e.g., \.claude/rules/\, \.augment/rules/\, \.cursor/rules/\, \.github/instructions/\), tool-specific review and scaffold commands, and a continuous architecture-check hook for Claude Code. It also supports an optional code-review subagent for Claude Code, cleans up legacy single-file outputs (like \.cursorrules\), and tracks installed tool modes and content hashes to detect stale or conflicting configurations.

cli/src/services · high confidence

New CLI constants file defines tool integrations and rule mappings

The CLI now includes a new \constants.js\ file that centralizes configuration for supported AI coding assistants (Claude Code, Cursor, Augment, GitHub Copilot, and the Tenets Code Review Agent). This file defines the specific target files and flags for each tool, establishes the structure of content sections (Architecture, Domain, Application, Global) with their associated documentation paths, and maps these sections to glob-based rule definitions for automatic loading in tools like Claude Code and Cursor.

cli/src · high confidence

New CLI scripts for knowledge validation and offline content bundling

The CLI now includes two new scripts in the \cli/scripts\ directory: \build-knowledge.js\ and \bundle-content.js\. The \build-knowledge.js\ script validates knowledge files against a defined schema, enforcing required frontmatter fields, ID patterns, and specific Markdown sections for rules and patterns. The \bundle-content.js\ script prepares offline fallback content by copying context files, the generated rules catalog, views, and the speckit-preset into a bundled directory, ensuring these resources are available for offline use or npm publishing.

cli/scripts · high confidence

New reproducible architecture demo (ACT-009)

A new demo directory (demo/act-009) has been added to provide a reproducible, 60-second video walkthrough of the Tenets product. It includes a capture script, a Node.js renderer, and pre-captured outputs to demonstrate the core workflow: detecting a repository, installing versioned rules for an AI agent, and running an architecture review on a sample FastAPI service. This allows users to verify the installation and review experience without needing to set up their own environment.

demo · high confidence

Test coverage

Added contract tests for the architecture review demo fixture; Comprehensive test coverage for CLI initialization, agent integrations, and knowledge validation.

Dependencies

Initial release of Tenets CLI and architecture review demo

This change introduces the Tenets CLI tool (v0.15.1) for enforcing architecture guardrails with AI coding agents, alongside a new Python-based architecture review demo. The CLI is built for Node.js 18+ and includes scripts for knowledge cataloging, validation, and bundling. The demo project uses FastAPI (\>=0.115) and Uvicorn (\>=0.30) to showcase the tool's capabilities.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 49 → 52 (+2.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 44 → 44 (+0.0)
  • Architecture 95 → 96 (+0.6)
  • Maturity 48 → 76 (+28.1)
  • Readiness 50 → 50 (+0.0)
  • Security 70 → 60 (-10.0)
  • Performance 60 → 60 (+0.0)

Resolved (6)

  • Hotspot: cli/bin/tenets.js (cli/bin/tenets.js)
  • Hotspot: cli/src/commands/init.js (cli/src/commands/init.js)
  • Hotspot: cli/src/commands/update.js (cli/src/commands/update.js)
  • Hotspot: cli/src/services/installation-inspector.js (cli/src/services/installation-inspector.js)
  • Scanner failed to run — not a clean result
  • Scanner failed to run — not a clean result

New (3)

  • Classify ADR enforcement: ADRs record context decision status and consequences (knowledge/rules/architecture-decisions/TENETS-ADR-002.md)
  • Classify ADR enforcement: Material architectural choices and exceptions receive an ADR (knowledge/rules/architecture-decisions/TENETS-ADR-001.md)
  • Classify ADR enforcement: Superseded decisions preserve history (knowledge/rules/architecture-decisions/TENETS-ADR-003.md)

Changes since last survey

  • 5 commits — 5 feature/other, 0 fixes

By area

  • (repo) — 2 commits
  • cli/bundled — 2 commits
  • demo/act-009 — 1 commit

Notable commits

  • change: Merge pull request #21 from bardiakhosravi/feat/tighten-domain-conventions-and-review-coverage
  • change: Merge pull request #22 from bardiakhosravi/feat/use-cases-do-not-call-use-cases
  • change: chore: release v0.17.0
  • change: feat: prohibit use cases from invoking other use cases
  • change: feat: tighten domain conventions and default to strict

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

bardiakhosravi/tenets was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit d5c4364e8db0744bb43f55d10496be3c3b21d192 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.