axstack 0.61.0 → 0.61.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/skills/axstack/scripts/ledger-reconcile.js +80 -0
- package/skills/axstack-explain/SKILL.md +3 -1
- package/skills/axstack-explain/references/delivery.md +2 -0
- package/skills/axstack-explain/references/inline-pages.md +1 -1
- package/skills/axstack-publish/SKILL.md +3 -0
- package/skills/axstack-publish/references/review-briefs.md +44 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axstack",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.1",
|
|
4
4
|
"description": "Axstack installer and setup CLI: installs owned chat skills and role data, configures supported harness settings, and checks T3 Code capabilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { readFileSync, readdirSync } from 'node:fs';
|
|
2
|
+
|
|
3
|
+
const help = `Usage: bun skills/axstack/scripts/ledger-reconcile.js --run-dir <dir> [--record <path>]
|
|
4
|
+
--run-dir Required run directory; inspect immediate evidence/<key>/ directories
|
|
5
|
+
--record Run record path (default: <run-dir>/run-record.md); relative to cwd
|
|
6
|
+
--help Show flags, recognition rules and exit codes
|
|
7
|
+
|
|
8
|
+
Read-only: writes nothing, retains no state. JSON goes to stdout.
|
|
9
|
+
Dispatch rows are pipe-delimited (at least three cells), optionally prefixed by
|
|
10
|
+
"|" or "- ". The first cell is the dispatch key. An evidence cell must contain
|
|
11
|
+
exactly evidence/<key>/ or evidence/<key>/<file>, optionally in backticks.
|
|
12
|
+
Keys contain no whitespace. Table headings and prose mentions do not count.
|
|
13
|
+
Folder matching uses the evidence key, which can differ from the dispatch key.
|
|
14
|
+
A row whose dispatch key equals a folder is also listed without an evidence cell
|
|
15
|
+
(evidenceKey: null). It reports fail: "dispatch row <key> has no evidence path",
|
|
16
|
+
and exits 2 because the ledger is incomplete. A path to another folder also fails
|
|
17
|
+
and names that mismatch. Only an explicit matching evidence path reports pass.
|
|
18
|
+
Output lists folders, dispatch keys and per-folder pass/fail terms with evidence;
|
|
19
|
+
summary contains counts only. No term grants authority or an aggregate verdict.
|
|
20
|
+
Exit codes: 0 all folders matched, 1 input/read error, 2 incomplete ledger.
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
function reconcile(argv) {
|
|
24
|
+
const options = {};
|
|
25
|
+
for (let i = 0; i < argv.length; i += 2) {
|
|
26
|
+
const flag = argv[i], value = argv[i + 1];
|
|
27
|
+
if (!['--run-dir', '--record'].includes(flag) || !value || value.startsWith('--') || flag in options) {
|
|
28
|
+
throw Error(`invalid argument ${flag}; use --help`);
|
|
29
|
+
}
|
|
30
|
+
options[flag] = value;
|
|
31
|
+
}
|
|
32
|
+
if (!options['--run-dir']) throw Error('missing --run-dir; use --help');
|
|
33
|
+
const runDir = options['--run-dir'];
|
|
34
|
+
const record = options['--record'] ?? `${runDir}/run-record.md`;
|
|
35
|
+
const source = readFileSync(record, 'utf8');
|
|
36
|
+
const folders = readdirSync(`${runDir}/evidence`, { withFileTypes: true })
|
|
37
|
+
.filter((entry) => entry.isDirectory()).map((entry) => entry.name).sort();
|
|
38
|
+
const dispatches = [];
|
|
39
|
+
for (const line of source.split('\n')) {
|
|
40
|
+
const cells = line.trim().replace(/^[-*]\s+/, '').replace(/^\||\|$/g, '')
|
|
41
|
+
.split('|').map((cell) => cell.trim().replace(/^`|`$/g, ''));
|
|
42
|
+
if (cells.length < 3 || !/^\S+$/.test(cells[0])) continue;
|
|
43
|
+
let hasEvidence = false;
|
|
44
|
+
for (const cell of cells.slice(1)) {
|
|
45
|
+
const match = /^evidence\/([^/\s`]+)\/[^\s`]*$/.exec(cell);
|
|
46
|
+
if (match) {
|
|
47
|
+
dispatches.push({ key: cells[0], evidenceKey: match[1] });
|
|
48
|
+
hasEvidence = true;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (!hasEvidence && folders.includes(cells[0])) dispatches.push({ key: cells[0], evidenceKey: null });
|
|
52
|
+
}
|
|
53
|
+
const terms = folders.map((key) => {
|
|
54
|
+
const matches = dispatches.filter((dispatch) => dispatch.evidenceKey === key);
|
|
55
|
+
const row = dispatches.find((dispatch) => dispatch.key === key);
|
|
56
|
+
let missing = `evidence/${key}/ has no dispatch row`;
|
|
57
|
+
if (row) missing = row.evidenceKey
|
|
58
|
+
? `dispatch row ${key} points to evidence/${row.evidenceKey}/ instead of evidence/${key}/`
|
|
59
|
+
: `dispatch row ${key} has no evidence path`;
|
|
60
|
+
return { key, status: matches.length ? 'pass' : 'fail', evidence: matches.length
|
|
61
|
+
? `evidence/${key}/ recorded by ${matches.map((dispatch) => dispatch.key).join(', ')}`
|
|
62
|
+
: missing };
|
|
63
|
+
});
|
|
64
|
+
const summary = { pass: 0, fail: 0, unknown: 0, 'n/a': 0 };
|
|
65
|
+
for (const term of terms) summary[term.status]++;
|
|
66
|
+
console.log(JSON.stringify({ runDir, record, folders, dispatches, terms, summary }, null, 2));
|
|
67
|
+
return summary.fail ? 2 : 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (process.argv.length === 3 && process.argv[2] === '--help') {
|
|
71
|
+
console.log(help);
|
|
72
|
+
} else {
|
|
73
|
+
try {
|
|
74
|
+
process.exitCode = reconcile(process.argv.slice(2));
|
|
75
|
+
} catch (error) {
|
|
76
|
+
console.log(JSON.stringify({ terms: [{ status: 'unknown', evidence: error.message }],
|
|
77
|
+
summary: { pass: 0, fail: 0, unknown: 1, 'n/a': 0 } }));
|
|
78
|
+
process.exitCode = 1;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -80,7 +80,9 @@ Use anatomy only on an explicit isometric, physical-object or anatomy request,
|
|
|
80
80
|
through [Anatomy](../axstack-anatomy/SKILL.md).
|
|
81
81
|
|
|
82
82
|
1. Keep the primary reader-facing explanation to a maximum of 700 words in
|
|
83
|
-
chat, HTML, and every other requested format
|
|
83
|
+
chat, HTML, and every other requested format, except Publish articles, which follow
|
|
84
|
+
[Publish's length rule](../axstack-publish/SKILL.md#2-prepare-the-final-artifact):
|
|
85
|
+
no word cap plus a reading-time line near the headline. Preserve in that primary view
|
|
84
86
|
the answer or purpose, key rationale, meaningful alternatives, main data or
|
|
85
87
|
operational boundary, status and uncertainty, and live reader questions
|
|
86
88
|
with evidence-supported answers, labeling any question the inspected
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Delivery and holds
|
|
2
2
|
|
|
3
|
+
Use the shared [review and repair briefs](../../axstack-publish/references/review-briefs.md) for article work.
|
|
4
|
+
|
|
3
5
|
Use this single fallback rule for Explain and direct Anatomy delivery.
|
|
4
6
|
A whiteboard-defense explanation covers a whole system, PR, run or change
|
|
5
7
|
under [Whiteboard defense](whiteboard-defense.md).
|
|
@@ -35,7 +35,7 @@ Use images as `data:` URIs. Never include absolute local paths in page bytes.
|
|
|
35
35
|
Allow plain `<a href>` links, with GitHub URLs or `path@<sha>` for source links.
|
|
36
36
|
Use inline SVG or CSS for diagrams, with a text alternative.
|
|
37
37
|
|
|
38
|
-
Count page and reply together under the 700-word cap.
|
|
38
|
+
Count page and reply together under the 700-word cap for inline T3 pages only.
|
|
39
39
|
Use body `textContent` minus script and style, including collapsed content and SVG labels.
|
|
40
40
|
Inline pages have no card exemption.
|
|
41
41
|
|
|
@@ -70,6 +70,9 @@ Removals and other readers still need their own request.
|
|
|
70
70
|
|
|
71
71
|
## 2. Prepare the final artifact
|
|
72
72
|
|
|
73
|
+
Publish articles have no word cap. Show a reading-time line near the headline.
|
|
74
|
+
Use the shared [review and repair briefs](references/review-briefs.md) for article work.
|
|
75
|
+
|
|
73
76
|
For public mode, run the [Explain redaction check](../axstack-explain/SKILL.md#3-verify-and-deliver)
|
|
74
77
|
to remove private paths, IDs, credentials, prompts, messages and internal records.
|
|
75
78
|
For public mode, run Explain's [self-contained asset check](../axstack-explain/references/inline-pages.md#check-the-exact-bytes).
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Article review and repair briefs
|
|
2
|
+
|
|
3
|
+
Use these templates for source-fidelity review and repair of Explain/Publish
|
|
4
|
+
articles. Fill the placeholders from the exact artifact and research record.
|
|
5
|
+
Keep the existing design, verification and delivery rules alongside this brief.
|
|
6
|
+
|
|
7
|
+
## Review brief template
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
Article: <final.html path, byte count, SHA-256>
|
|
11
|
+
Research: <source record path, revision/hash, claim IDs and research labels>
|
|
12
|
+
Review: check each claim against its source and label, including headings and tables.
|
|
13
|
+
Return: <finding ID, severity, claim ID, research label, exact location,
|
|
14
|
+
quoted text, source evidence, proposed correction; or no findings>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Carry this severity rubric and these wording rules in every review brief.
|
|
18
|
+
|
|
19
|
+
- High means making a reader believe something false, a privacy leak, or a broken page.
|
|
20
|
+
- Medium means a specific overstated label, misquote, or wrong number.
|
|
21
|
+
- Phrasing preferences are low severity, never above low.
|
|
22
|
+
- Headings must never be stronger than the body.
|
|
23
|
+
- Bound absence claims with “we found no…” to the searched sources and timeframe.
|
|
24
|
+
- Never place context or comparators as evidence for or against a hypothesis.
|
|
25
|
+
|
|
26
|
+
## Repair brief template
|
|
27
|
+
|
|
28
|
+
For every repair finding, require a claim ID, research label, and allowed
|
|
29
|
+
location (heading, body or table column).
|
|
30
|
+
Require a before→after line for every finding in the author receipt.
|
|
31
|
+
|
|
32
|
+
```text
|
|
33
|
+
Input: <exact artifact path, byte count, SHA-256; research record revision/hash>
|
|
34
|
+
Finding: <finding ID and accepted correction>
|
|
35
|
+
Claim ID: <research claim ID>
|
|
36
|
+
Research label: <label from the research record>
|
|
37
|
+
Allowed location: <heading | body | named table column; exact section/cell>
|
|
38
|
+
Repair: <bounded wording or move/delete instruction preserving the label>
|
|
39
|
+
Author receipt: <finding ID, claim ID, research label, location, before→after line>
|
|
40
|
+
Output: <new artifact path, byte count, SHA-256>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Repeat the finding block for each accepted finding. Carry the wording rules
|
|
44
|
+
above into repairs, and return changed bytes for the existing exact-byte checks.
|