feat: make Core reports commercially production-ready

This commit is contained in:
thanhnv
2026-07-29 13:12:11 +07:00
parent 67d482ae7f
commit 7f01cf980a
27 changed files with 1197 additions and 23 deletions
+19
View File
@@ -18,6 +18,12 @@ Mô hình production mặc định:
suite, test scripts, internal CI runners, `level5`, dashboard lab, source docs
hay release tooling.
Ngay sau init, CASAN ghi hai projection do CASAN sở hữu:
`.casan/discovery.json` và `.casan/readiness.json`. Readiness tách ba chiều:
**Core**, **Domain Pipeline** và **Provider Telemetry**. Core có thể sẵn sàng
cho prompt/report dù hai chiều tùy chọn còn `not_configured` hoặc
`optional_unavailable`.
## Trạng thái sản phẩm
| Thành phần | Trạng thái | Phạm vi |
@@ -57,6 +63,7 @@ không cần Node/npm hoặc Platform.
```bash
# Sau một prompt
casan report latest
casan readiness --refresh # Core / Domain / Provider, không chạy pipeline
casan view # mở run mới nhất trong Core viewer
casan report export --format html # run dossier, chỉ tạo khi được yêu cầu
casan report export --h6 --format html # H6 dossier on-demand
@@ -154,6 +161,7 @@ Project đã init không bị hỏi lại runtime: CASAN giữ nguyên mode hi
```bash
casan doctor
casan readiness --refresh
casan verify-harness
casan edition show
```
@@ -161,6 +169,11 @@ casan edition show
Với Codex, mở `/hooks`, review và trust đúng project hook sau lần init hoặc khi
bootstrap hash thay đổi.
`casan readiness` là product status dành cho người vận hành và dashboard;
`casan doctor` là diagnostic sâu cho integrity, hook, smoke test và trust.
Không dùng trạng thái thiếu Domain Pack hoặc thiếu token/cost provider để hạ
Core thành failed.
Codex hooks gọi bootstrap tương đối từ project root và không phụ thuộc vào
`git rev-parse`, nên ownership hoặc cấu hình Git không thể làm hỏng lifecycle
hook. Git vẫn được khuyến nghị mạnh cho source provenance, review diff và
@@ -383,6 +396,9 @@ installation hoặc project runtime.
│ ├── version.lock
│ ├── casan-hook.py
│ ├── agentic.env
│ ├── discovery.json
│ ├── readiness.json
│ ├── domain.json # chỉ khi chọn manifest bằng casan domain configure
│ ├── init-manifest.json
│ └── runtime/casan-core/ # chỉ khi --runtime vendored
├── .specify/
@@ -403,6 +419,9 @@ installation hoặc project runtime.
| `.casan/version.lock` | Pin version và SHA-256 của Core runtime đã resolve |
| `.casan/casan-hook.py` | Stdlib bootstrap, verify pin rồi dispatch adapter |
| `.casan/agentic.env` | Compatibility/reference flags; runtime đọc `config.json` |
| `.casan/discovery.json` | Inventory bounded các marker/source/requirements/Domain Pack candidate; không sửa source |
| `.casan/readiness.json` | Contract Core / Domain Pipeline / Provider Telemetry dùng chung cho CLI và viewer |
| `.casan/domain.json` | Reference CASAN-owned tới manifest do project sở hữu; chỉ tạo khi `casan domain configure` |
| `.casan/init-manifest.json` | Danh sách file CASAN quản lý, checksum và backup |
| `.casan/runtime/casan-core/` | Core production-only; chỉ có ở Vendored |
| `.specify/logs`, `.specify/state` | Trace, audit và state runtime; không commit |