4.9 KiB
Raw Blame History

Phase3D.2A export contract and audit reproduction

All four root exports use schemaVersion1 and bundleId plotdirector-capability-audit-3d2a-v1. Source baseline is eb9dec261cae8ffadcae4f3ed0d758f6b8c51e87, which retains deployed application62fa292 and subsequent Phase3D.1 evidence. The files form one proposed shared feature model, not independent models for different consumers. They are not imported into the application.

  • Capability-Catalogue.json: stable capability IDs, status/benefit/discovery/roles, actual controller/action entry and operation, evidence, relevant entity graph, hard/useful/optional condition references, availability and Help. Scoped source signatures must be honoured by future route adapters. Secondary benefits are listed where supported by producer links; absence means no separately verified secondary benefit.
  • Feature-Dependencies.json: typed links with explicit direction, condition IDs, producer alternatives and source evidence. Requires references a data condition, not a historical screen-completion flag. BenefitsFrom distinguishes usefulness/enhancement. ProducesDataFor is a different semantic view of a data producer, not another compulsory task. WorksWith is complementary.
  • Readiness-Specification.json: the single set of condition definitions and proposed fact/state contracts, current exact read-procedure candidates where verified, scope/association/minimum/AND–OR/inline logic, permissions/freshness/performance notes, producer IDs and no diagnostic-score effect. Declarative fact/runtime/selection contracts still require approved typed selector implementations; no executable readiness evaluator is included.
  • Capability-Coverage.json: counts, every controller-file disposition, heuristic public-action index, toolbar/contextual ribbon command coverage, limitations and unresolved issues. It does not claim100% runtime coverage.

Evidence references resolve through Source-Evidence.json: repository-relative path, one-based line, exact trimmed excerpt and SHA256 of the complete source file. Reusable condition IDs have their own namespace. Schema/control enums and IDs are validated offline. Null runtime entries are permitted only for planned features. Partial occupancy has a verified read entry but no asserted working save route.

Development-Schema.jsonl contains only database name/time and schema/table/column/FK/procedure metadata. Reference-Availability.jsonl contains global reference counts only. No author rows, manuscript prose, secrets or connection strings were requested/exported. The two guarded SQL files are SELECT-only apart from fail-fast target checks; no domain procedures are executed. Runtime connection handling used the existing private credential-safe runner; it is not included. No backup, migration, deployment or data write was needed.

The metadata snapshot confirms197 tables,361 foreign-key columns and716 procedures. It verifies object existence and association metadata, not complete source/live stored-procedure-body equivalence or current per-book readiness. System reference counts show six relationship categories (including Family and Romantic / Sexual),31 active relationship types, six name locales,3,067 given names and three successful reference imports. Those are reference availability facts, not author data or a quality assessment of the reference package.

From repository root:

python3 Tools/WriterCapabilityAudit/build_inventory.py
python3 Tools/WriterCapabilityAudit/validate_inventory.py --self-test

Both tools are offline documentation tooling. They do not connect to a database, call application routes/providers, publish catalogues or calculate a current author's readiness. The builder compiles curated audit assertions against exact source anchors and committed metadata. The validator checks bundle/schema versions, stable/unique IDs, statuses, capability/condition/edge/alias references, dependency types, typed-expression references, entity/procedure existence, navigation/controller dispositions, Help paths and source hashes/line excerpts. It reports strongly connected components in Requires projections and runs nine deliberate invalid-export cases.

The action index is a C# source heuristic, not ASP.NET runtime endpoint discovery. Repeated methods/overloads/transport operations are grouped into meaningful capabilities. Existing views and PWA attributes are evidence for affordances, not proof that every browser or installation currently supports them. Source-backed implementation status is distinct from operation readiness for a particular account/book.

Refresh metadata only through explicitly authorised read-only access to verified Development. Do not run the new audit SELECT scripts against Production by assumption, and do not replay numbered SQL migrations. If source hashes change, review the affected anchors/claims; do not silently refresh hashes around unreviewed behaviour. When the reviewed graph changes, increment bundle/version and preserve compatibility aliases.