MackySoft.Phron 0.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global MackySoft.Phron --version 0.4.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local MackySoft.Phron --version 0.4.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MackySoft.Phron&version=0.4.0
                    
nuke :add-package MackySoft.Phron --version 0.4.0
                    

Phron

Phron is a command-line tool for managing Wisdom and Evidence as Markdown records. It helps you record, validate, search, and apply reusable judgments.

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-exploration examines finite sources and produces exploration results that distinguish observations, source claims, inferences, Evidence candidates, contrary material, and the verified scope.
  • wisdom-harvesting selects a single local, reusable judgment from exploration results or a finite session or work review, and determines its eligibility and attribution as Wisdom.
  • wisdom-recording saves and validates a record plan whose eligibility, attribution, record contents, and identity are already established.
  • wisdom-use searches 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/
│   └── <optional-category>/
│       └── <slug>.md
└── evidence/
    └── <optional-category>/
        └── <slug>.md

wisdom/ contains Wisdom records and evidence/ contains Evidence records. Each record is a Markdown file anywhere beneath its type directory. The file name and optional subdirectories are human-facing locators; the Front Matter GUID is the persistent identity. Commands read a fresh recursive snapshot for every operation; Phron does not run a watcher or maintain an index.

Only regular Markdown files are records. Non-Markdown files are ignored. Symbolic links, junctions, and other reparse points below a type directory are rejected rather than followed. 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 architecture/serialize-callbacks --root ./phron-records
phron template evidence sources/r3/callback-delivery --root ./phron-records
# Complete the generated Markdown records.
phron validate --root ./phron-records

init creates only the management root and its canonical directories. Create any category directory with your platform's usual directory command before using it in a locator; Phron does not create it. The template commands place an editable scaffold at <locator>.md beneath the record-type directory. A locator is an extensionless slash-separated path whose segments are lower-case ASCII words separated by single hyphens, such as architecture/serialize-callbacks; every directory segment contributes an effective tag, while the final file slug does not. A scaffold is not a valid record until its required fields and body are completed. If the target path is already occupied when Phron publishes the scaffold, it returns PATH_CONFLICT without replacing that file.

Inspect the current tag vocabulary before searching or assigning tags. Tag listing and search are record-type specific:

phron tags wisdom --state admitted --root ./phron-records
phron search wisdom --tag architecture,concurrency --root ./phron-records
phron tags evidence --state usable --root ./phron-records
phron search evidence --tag sources,r3 --root ./phron-records

Start with a tag-only search to identify the relevant area. Add a positional text query when the tag result still contains too many candidates. A text query searches the record slug, effective tags, and body; Wisdom also searches description. Reuse an existing tag when it names the exact concept. Create a new tag only when none does.

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 record trees and remain unchanged when a record is renamed or moved. A file may therefore keep an older GUID-based name, but new templates use the final segment of their requested locator as the file name.

Wisdom

---
guid: 7f1a54f0-0c15-4e59-9c31-5de1c8410a7b
state: admitted
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.

  • state is candidate, admitted, or rejected; a new Wisdom scaffold is admitted by default.
  • description is one trimmed line of at most 120 Unicode scalar values.
  • tags is an optional, duplicate-free list of lower-case slugs such as error-handling. Its union with directory-derived tags is used for search and filtering. Use tags: [] when no YAML tags are needed.
  • uses links Evidence by GUID. Each entry has a support or challenge role and a reason. Use uses: [] when no Evidence is linked.

Evidence

---
guid: 39e1204a-5346-4f88-bdb4-720e212dc249
kind: observation
state: usable
tags: [callbacks, concurrency]
---

## 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. tags follows the same optional, duplicate-free syntax as Wisdom. Its union with every directory segment in the record locator forms the Evidence effective tags.

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 <locator> Create a Wisdom record template.
template evidence <locator> [--kind observation\|case] Create an Evidence record template.
get <uuid-list> Retrieve one or more records by GUID in request order.
search wisdom [<query>] [--tag <slug>[,<slug>...]] [--state candidate\|admitted\|rejected] Search Wisdom records.
search evidence [<query>] [--tag <slug>[,<slug>...]] [--state usable\|withdrawn] [--kind observation\|case] Search Evidence records.
tags wisdom [--state candidate\|admitted\|rejected] List tags used by Wisdom records.
tags evidence [--state usable\|withdrawn] [--kind observation\|case] List tags used by Evidence 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 input that accepts multiple strings, provide one comma-separated list or one JSON string array as its value. This includes get's positional GUID list and the --tag option. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.7.0 151 9/2/2026
0.6.1 129 9/2/2026
0.6.0 128 8/31/2026
0.5.1 128 8/31/2026
0.5.0 131 8/30/2026
0.4.0 137 8/30/2026
0.3.0 142 8/29/2026
0.2.0 150 8/28/2026
0.1.0 187 8/27/2026