MackySoft.Phron
0.1.0
See the version list below for details.
dotnet tool install --global MackySoft.Phron --version 0.1.0
dotnet new tool-manifest
dotnet tool install --local MackySoft.Phron --version 0.1.0
#tool dotnet:?package=MackySoft.Phron&version=0.1.0
nuke :add-package MackySoft.Phron --version 0.1.0
Phron
Phron is a command-line tool for managing verifiable Wisdom and Evidence as Markdown records. It helps you record, validate, search, and apply reusable engineering wisdom.
Requirements and installation
Phron requires the .NET 10 SDK. Install it as a global .NET tool:
dotnet tool install --global MackySoft.Phron
Wisdom Skills
Phron ships four Skills for agent workflows.
Install the Wisdom category for a Codex project with:
phron skills install --host codex --scope project --category wisdom
wisdom-explorationexamines finite sources and produces exploration results that distinguish observations, source claims, inferences, Evidence candidates, contrary material, and the verified scope.wisdom-harvestingselects a single local, reusable judgment from exploration results or a finite session or work review, and determines its eligibility and attribution as Wisdom.wisdom-recordingsaves and validates a record plan whose eligibility, attribution, record contents, and identity are already established.wisdom-usesearches for and retrieves an existing admitted Wisdom record relevant to a current proposal without modifying the management root.
For a finite source, the usual workflow is wisdom-exploration → wisdom-harvesting → wisdom-recording. For a session or work review, it is wisdom-harvesting → wisdom-recording.
Use codes list --command skills.install to list diagnostic codes for the Skills installation command.
Management root
Phron stores records beneath a management root with two required canonical directories:
<management-root>/
├── wisdom/
│ └── <wisdom-record>.md
└── evidence/
└── <evidence-record>.md
Each record is one Markdown file placed directly under the directory for its type. wisdom/ contains Wisdom records and evidence/ contains Evidence records. Commands that use a management root prefer --root <path>; if it is not supplied, they use PHRON_ROOT.
Record workflow
phron init --root ./phron-records
phron template wisdom --root ./phron-records
phron template evidence --root ./phron-records
# Complete the generated Markdown records.
phron validate --root ./phron-records
init creates the management root and its canonical directories. The template commands create editable Markdown scaffolds in the appropriate directory. A scaffold is not a valid record until its required fields and body are completed. validate verifies all records in the management root.
Record syntax
Record files use strict UTF-8. The canonical directory determines the record type; the Front Matter does not contain a record-type field. Front Matter starts and ends with ---, and only the fields shown below are supported.
Every record has a lower-case canonical UUID v4 guid. GUIDs are unique across both directories and remain unchanged when a record is renamed or moved.
Wisdom
---
guid: 7f1a54f0-0c15-4e59-9c31-5de1c8410a7b
state: candidate
description: "Serialize concurrent callbacks at the adapter boundary."
tags:
- architecture
- concurrency
uses:
- evidence: 39e1204a-5346-4f88-bdb4-720e212dc249
role: support
reason: "The observed source permits callbacks to arrive concurrently."
---
## Situation
Multiple callbacks can reach the same downstream observer concurrently.
## Decision
Serialize callback delivery at the adapter boundary.
## Reason
A single serialization boundary keeps downstream state transitions ordered.
## Does not apply when
The event source already guarantees serialized callback delivery.
A Wisdom record contains one reusable decision. Its body describes the applicable situation, one choice or action, the causal reason for that choice, and when it does not apply. Headings are optional and are not part of the record syntax.
stateiscandidate,admitted, orrejected.descriptionis one trimmed line of at most 120 Unicode scalar values.tagsis an optional, duplicate-free list of lower-case slugs such aserror-handling. Usetags: []when no tags are needed.useslinks Evidence by GUID. Each entry has asupportorchallengerole and a reason. Useuses: []when no Evidence is linked.
Evidence
---
guid: 39e1204a-5346-4f88-bdb4-720e212dc249
kind: observation
state: usable
---
## Observation
The inspected callback source permits concurrent delivery to the adapter.
## Provenance
Observed in the callback source contract and implementation at the recorded revision.
## Limits
Only the callback delivery path was inspected.
An Evidence record contains one observed proposition, its supporting observation, provenance or locator, and the limits of its interpretation. kind is observation or case; use case only for an event that actually occurred. state is usable or withdrawn.
Every record body must contain at least one non-heading content block. Run phron validate --root <management-root> after editing to check placement, Front Matter, GUID uniqueness, field values, and Evidence references.
Commands
| Command | Purpose |
|---|---|
init |
Initialize a management root. |
validate |
Validate every record in a management root. |
template wisdom |
Create a Wisdom record template. |
template evidence [--kind observation\|case] |
Create an Evidence record template. |
get <uuid> |
Retrieve a record by its GUID. |
search [<query>] [--tag <slug>[,<slug>...]] [--state candidate\|admitted\|rejected] |
Search Wisdom records. |
tags [--state candidate\|admitted\|rejected] |
List tags used by Wisdom records. |
codes list [--command <identifier>] |
List public diagnostic codes. |
codes describe <CODE> |
Describe a public diagnostic code. |
skills install |
Install the bundled Wisdom Skills. |
For an option that accepts multiple strings, provide one comma-separated list or one JSON array as its value. Phron writes one compact UTF-8 JSON value followed by a newline. Exit status 0 indicates success, 1 indicates validation violations, 3 indicates invalid input, and 4 indicates an operation failure.
Help, version, and unknown or incomplete routes produce command-line help text with exit status 0. Argument binding failures produce command-line error text with exit status 1. These outputs are not Phron JSON results.
License
Phron is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.