-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path14_validation_and_analysis_workflows.html
More file actions
77 lines (75 loc) · 4.86 KB
/
14_validation_and_analysis_workflows.html
File metadata and controls
77 lines (75 loc) · 4.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Validation And Analysis Workflows - ProtoML 1.4.2+build67</title>
<link rel="stylesheet" href="help.css">
</head>
<body>
<nav class="topnav">
<a href="../toc.html">Contents</a>
<span class="version">ProtoML 1.4.2+build67</span>
</nav>
<main class="page">
<h1>Validation And Analysis Workflows</h1>
<p>ProtoML includes a second layer beyond rendering: commands that help you inspect document quality, structure, references, and governance state.</p>
<h2>Document validation</h2>
<pre><code>protoparser validate "meeting.pml"
protoparser -v validate "meeting.pml"
protoparser validate "meeting.pml" -trust=strict -trustRegistry="./authors-registry" -trustRegistry="./macro-registry"</code></pre>
<p>Use validation when you want to catch missing imports, missing macros, duplicate IDs, unresolved references, or untrusted macro usage before focusing on visual output. The <code>-trustRegistry=...</code> flag is repeatable, so validation can merge multiple trust sources when authors and packages are split across different registries.</p>
<h2>Trust inspection</h2>
<pre><code>protoparser trust "meeting.pml"
protoparser -vv trust "meeting.pml" -trustRegistry="./authors-registry" -trustRegistry="./macro-registry"</code></pre>
<p>This is the best command when you want a dedicated trust report for the document, its used macros, and imported <code>.pml</code> files.</p>
<h2>Signed governance documents</h2>
<pre><code>protoparser sign pml "./governance/release-approval.pml" "./keys/alice-private.pem" "Alice" alice-main
protoparser verify pml "./governance/release-approval.pml" -trustRegistry="./authors-registry"</code></pre>
<p>Normal ProtoML documents can be signed too. That is useful for controlled governance files such as release approvals, operational procedures, policy texts, and reviewable internal records.</p>
<h2>Shared tag validation and statistics</h2>
<pre><code>protoparser tags "_tags.pml" validate
protoparser tags "_tags.pml" statistics
protoparser tags "_tags.pml" html</code></pre>
<p>This is useful when tags are a cross-document vocabulary and you want to understand how tasks are distributed across files.</p>
<h2>General document analysis</h2>
<pre><code>protoparser analyze "meeting.pml" statistics
protoparser analyze "meeting.pml" html
protoparser analyze "meeting.pml" graph</code></pre>
<p>Analysis is the best command when you need to understand imported content, merged structures, macro usage, or dependency shape.</p>
<h2>Graph output</h2>
<pre><code>protoparser analyze "meeting.pml" graph -graphView=full -graphDirection=LR
protoparser analyze "meeting.pml" graph -output=meeting-graph</code></pre>
<p>Graph output is especially helpful once documents start importing other ProtoML files or building shared tag trees.</p>
<h2>Register workflow for directories</h2>
<pre><code>protoparser register "meetings" statistics
protoparser register "meetings" html
protoparser register "meetings" pdf</code></pre>
<p>Use register reports when you care about document inventory, missing metadata, overdue reviews, or open work across a folder.</p>
<p>This command does not manage macro registries or macro packs. For external macro catalogs and installed macro packages, use <code>macro_install</code> and the macro registry workflow instead.</p>
<h2>Macro usage inspection</h2>
<pre><code>protoparser macros "meeting.pml"</code></pre>
<p>This is useful for understanding which registered macros are actually used, especially before cleanup or pack refactors.</p>
<h2>Recommended quality workflow</h2>
<ol>
<li>Render the file for visual inspection</li>
<li>Run <code>validate</code> to catch structural issues</li>
<li>Run <code>analyze</code> when imports or cross-file structure matter</li>
<li>Run <code>tags ... statistics</code> when the shared task vocabulary matters</li>
<li>Run <code>register</code> across directories for governance-style collections</li>
</ol>
<h2>When each workflow matters most</h2>
<ul>
<li>Validation: before publishing or sharing</li>
<li>Analysis: when debugging structure or dependencies</li>
<li>Tag statistics: when workflow labels are part of reporting</li>
<li>Register reports: when the document set is managed like an inventory</li>
</ul>
<h2>Related guides</h2>
<ul>
<li><a href="03_cli_workflows.html">CLI Reference</a></li>
<li><a href="15_governance_documents.html">Governance Documents</a></li>
<li><a href="16_release_and_packaging.html">Release And Packaging</a></li>
</ul>
</main>
</body>
</html>