CtrlK
BlogDocsLog inGet started
Tessl Logo

pantheon-ai/design-principles

Strategic architecture, tactical design, and testable code principles (SOLID, Clean Architecture, Design Patterns, Testable Design)

97

Quality

97%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

criteria.jsonsolid-principles/evals/scenario-3/

{
  "context": "Agent must identify that ReadOnlyStorage violates the base class contract by throwing on save, and produce a redesign that prevents the violation",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "LSP violation correctly identified",
      "description": "lsp-analysis.md names ReadOnlyStorage.save as the violating method and states it breaks the base contract (which promises no throws)",
      "max_score": 25
    },
    {
      "name": "Impact on callers explained",
      "description": "lsp-analysis.md explains that callers of FileStorage.save cannot substitute ReadOnlyStorage without catching unexpected exceptions or adding instanceof checks",
      "max_score": 20
    },
    {
      "name": "IReadableStorage interface produced",
      "description": "IReadableStorage.ts exists and declares only a read method returning Promise<string | null>",
      "max_score": 15
    },
    {
      "name": "IWritableStorage interface produced",
      "description": "IWritableStorage.ts exists and declares only a save method returning Promise<void>",
      "max_score": 15
    },
    {
      "name": "ReadOnlyStorage implements only IReadableStorage",
      "description": "The updated or described ReadOnlyStorage implements IReadableStorage (not IWritableStorage) so the save contract violation is eliminated",
      "max_score": 25
    }
  ]
}

tile.json