principles 0.0.1 → 0.0.4

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.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/lib/principles/cli.rb +7 -1
  3. data/lib/principles/command_line.rb +12 -29
  4. data/lib/principles/controllers/acknowledgement.rb +4 -4
  5. data/lib/principles/controllers/answer.rb +64 -100
  6. data/lib/principles/controllers/assessment.rb +108 -0
  7. data/lib/principles/controllers/audit.rb +29 -135
  8. data/lib/principles/controllers/audit_completion.rb +2 -4
  9. data/lib/principles/controllers/command.rb +27 -13
  10. data/lib/principles/controllers/correction.rb +4 -4
  11. data/lib/principles/controllers/full_audit_request.rb +180 -0
  12. data/lib/principles/controllers/inventory.rb +32 -70
  13. data/lib/principles/controllers/mapping.rb +3 -3
  14. data/lib/principles/controllers/member_entries.rb +24 -12
  15. data/lib/principles/controllers/member_problems_report.rb +72 -0
  16. data/lib/principles/controllers/members_a_commit_changed.rb +10 -2
  17. data/lib/principles/controllers/members_to_assess.rb +16 -9
  18. data/lib/principles/controllers/meta_principle_setup.rb +5 -5
  19. data/lib/principles/controllers/repoint.rb +1 -1
  20. data/lib/principles/controllers/running_tool.rb +1 -1
  21. data/lib/principles/data/audit_files.rb +11 -7
  22. data/lib/principles/data/bounded_file.rb +11 -0
  23. data/lib/principles/data/command-steps.json +7 -6
  24. data/lib/principles/data/map_files.rb +2 -2
  25. data/lib/principles/data/principles_subfolder.rb +8 -1
  26. data/lib/principles/data/project_files.rb +1 -7
  27. data/lib/principles/data/project_root.rb +48 -0
  28. data/lib/principles/data/schema_check.rb +23 -5
  29. data/lib/principles/data/schemas/assessment-answer.schema.json +18 -9
  30. data/lib/principles/data/schemas/audit-record.schema.json +3 -0
  31. data/lib/principles/data/schemas/command-steps.schema.json +1 -1
  32. data/lib/principles/data/schemas/correction-answer.schema.json +2 -3
  33. data/lib/principles/invocation_options.rb +1 -1
  34. data/lib/principles/models/assessment_answer.rb +64 -17
  35. data/lib/principles/models/audit.rb +24 -15
  36. data/lib/principles/models/audit_record.rb +10 -3
  37. data/lib/principles/models/audit_records.rb +74 -4
  38. data/lib/principles/models/audit_start.rb +3 -3
  39. data/lib/principles/models/carried_assessments.rb +1 -1
  40. data/lib/principles/models/check_since_last_audit.rb +6 -6
  41. data/lib/principles/models/correction_basis.rb +1 -1
  42. data/lib/principles/models/decided_prior_findings.rb +9 -19
  43. data/lib/principles/models/declared_map_changes.rb +8 -8
  44. data/lib/principles/models/disposition.rb +28 -24
  45. data/lib/principles/models/evidence_replacements.rb +8 -1
  46. data/lib/principles/models/fix_only_fields.rb +67 -0
  47. data/lib/principles/models/kept_prior_finding.rb +12 -7
  48. data/lib/principles/models/loaded_files.rb +5 -3
  49. data/lib/principles/models/loading_decision.rb +9 -2
  50. data/lib/principles/models/{member_maps.rb → mapped_principles.rb} +15 -15
  51. data/lib/principles/models/member.rb +1 -1
  52. data/lib/principles/models/member_assessments.rb +48 -3
  53. data/lib/principles/models/member_grounds.rb +2 -2
  54. data/lib/principles/models/member_hashes_as_written.rb +40 -0
  55. data/lib/principles/models/member_moves.rb +3 -3
  56. data/lib/principles/models/member_problems.rb +38 -18
  57. data/lib/principles/models/members_sharing_lines.rb +3 -3
  58. data/lib/principles/models/new_findings.rb +55 -0
  59. data/lib/principles/models/open_finding.rb +23 -13
  60. data/lib/principles/models/other_principles.rb +1 -1
  61. data/lib/principles/models/other_templates_placeholders.rb +74 -0
  62. data/lib/principles/models/{member_map.rb → principle.rb} +45 -40
  63. data/lib/principles/models/{member_map_history.rb → principle_history.rb} +38 -15
  64. data/lib/principles/models/{map_members.rb → principle_members.rb} +4 -4
  65. data/lib/principles/models/prior_decision_fields.rb +46 -0
  66. data/lib/principles/models/prior_finding_decision.rb +24 -3
  67. data/lib/principles/models/prior_finding_outcomes.rb +10 -3
  68. data/lib/principles/models/prior_findings.rb +1 -1
  69. data/lib/principles/models/problem_report.rb +7 -3
  70. data/lib/principles/models/project.rb +27 -13
  71. data/lib/principles/models/project_history.rb +2 -2
  72. data/lib/principles/models/recent_decision.rb +90 -0
  73. data/lib/principles/models/record_format.rb +105 -0
  74. data/lib/principles/models/recorded_finding.rb +4 -0
  75. data/lib/principles/models/recorded_hashes.rb +39 -0
  76. data/lib/principles/models/recorded_members.rb +17 -12
  77. data/lib/principles/models/reported_check.rb +63 -11
  78. data/lib/principles/models/request_id.rb +24 -4
  79. data/lib/principles/models/sent_prior_decisions.rb +31 -0
  80. data/lib/principles/models/still_holds_restatement.rb +7 -10
  81. data/lib/principles/models/template_placeholders.rb +41 -0
  82. data/lib/principles/session_start_options.rb +29 -0
  83. data/lib/principles/start_audit_options.rb +37 -0
  84. data/lib/principles/version.rb +2 -2
  85. data/lib/principles/views/answer_head.rb +29 -0
  86. data/lib/principles/views/assessed_members.rb +96 -0
  87. data/lib/principles/views/assessment_request.rb +51 -49
  88. data/lib/principles/views/audit_result.rb +38 -42
  89. data/lib/principles/views/check_result_template.rb +31 -10
  90. data/lib/principles/views/correction_request.rb +64 -0
  91. data/lib/principles/views/first_audit.rb +71 -0
  92. data/lib/principles/views/help.rb +3 -2
  93. data/lib/principles/views/loads_to_check_result.rb +11 -4
  94. data/lib/principles/views/map_added_to.rb +31 -0
  95. data/lib/principles/views/map_result.rb +37 -22
  96. data/lib/principles/views/members_a_commit_changed.rb +30 -10
  97. data/lib/principles/views/meta_principle_result.rb +3 -14
  98. data/lib/principles/views/principle_read_result.rb +27 -10
  99. data/lib/principles/views/prior_finding_decisions_result.rb +13 -14
  100. data/lib/principles/views/prior_findings_result.rb +7 -3
  101. data/lib/principles/views/problem_lines.rb +14 -11
  102. data/lib/principles/views/problem_result.rb +30 -16
  103. data/lib/principles/views/prompts/assess-every-member/decide-each-prior-finding.md +3 -2
  104. data/lib/principles/views/prompts/assess-every-member/have-a-changed-check-reviewed-before-running-it.md +2 -2
  105. data/lib/principles/views/prompts/assess-every-member/have-a-new-check-reviewed-before-running-it.md +1 -1
  106. data/lib/principles/views/prompts/assess-every-member/run-the-check-then-report-it.md +2 -2
  107. data/lib/principles/views/prompts/assess-every-member/run-the-reviewed-check-and-say-what-its-review-rested-on.md +3 -6
  108. data/lib/principles/views/prompts/dispose-of-each-finding/fix-or-record-each-finding.md +1 -1
  109. data/lib/principles/views/prompts/learn-what-a-command-does/add-member.md +4 -1
  110. data/lib/principles/views/prompts/learn-what-a-command-does/every-command-and-how-they-chain.md +7 -2
  111. data/lib/principles/views/prompts/learn-what-a-command-does/list-member-problems.md +22 -20
  112. data/lib/principles/views/prompts/learn-what-a-command-does/list-open-findings.md +8 -5
  113. data/lib/principles/views/prompts/learn-what-a-command-does/list-principles.md +3 -0
  114. data/lib/principles/views/prompts/learn-what-a-command-does/select-the-project-root.md +1 -0
  115. data/lib/principles/views/prompts/learn-what-a-command-does/show-answer-check.md +6 -0
  116. data/lib/principles/views/prompts/learn-what-a-command-does/show-audit.md +3 -1
  117. data/lib/principles/views/prompts/learn-what-a-command-does/show-meta-principle-passage.md +2 -1
  118. data/lib/principles/views/prompts/learn-what-a-command-does/show-principle.md +12 -12
  119. data/lib/principles/views/prompts/learn-what-a-command-does/start-audit.md +8 -8
  120. data/lib/principles/views/prompts/learn-what-a-command-does/submit-answer.md +37 -37
  121. data/lib/principles/views/prompts/report-after-a-commit/the-commits-changed-these-members-waiting-on-an-upgrade.md +2 -0
  122. data/lib/principles/views/prompts/report-after-a-commit/the-map-and-audit-skill-says-how-to-audit-these-members.md +1 -0
  123. data/lib/principles/views/prompts/report-the-completed-audit/commit-only-what-the-audit-changed.md +4 -0
  124. data/lib/principles/views/prompts/set-principles-up/first-keeping-audit-after-own-principle.md +10 -0
  125. data/lib/principles/views/prompts/set-principles-up/place-the-passage-with-the-user.md +2 -1
  126. data/lib/principles/views/record_waiting_on_an_upgrade.rb +54 -0
  127. data/lib/principles/views/request_part.rb +14 -2
  128. data/lib/principles/views/request_parts.rb +4 -0
  129. metadata +33 -7
@@ -30,13 +30,14 @@ module Principles
30
30
  end
31
31
 
32
32
  # report is list-member-problems' JSON result: its "members", "counts" and "next_action".
33
- # assessed_change says whether a member an audit assessed changed, rather than only one edited since mapping.
34
- #: (Hash[String, untyped], nothing_changed: String, assessed_change: bool) -> Lines
35
- def short(report, nothing_changed:, assessed_change:)
33
+ # assessed_change says whether a member an audit assessed changed, and unassessed_change whether a member no
34
+ # audit assessed was edited since mapping; the model decides both, so the status follows from them alone.
35
+ #: (Hash[String, untyped], nothing_changed: String, assessed_change: bool, unassessed_change: bool) -> Lines
36
+ def short(report, nothing_changed:, assessed_change:, unassessed_change:)
36
37
  members = report.fetch("members")
37
38
  Lines.new(stdout: members.map { |member| "#{row(member)}\n" }.join,
38
39
  stderr: notes(report, nothing_changed).map { |note| "#{note}\n" }.join,
39
- status: status(members, assessed_change))
40
+ status: status(assessed_change, unassessed_change))
40
41
  end
41
42
 
42
43
  # One changed member's row, its fields tab-separated: its principle, id, newest commit that changed it (or
@@ -47,17 +48,18 @@ module Principles
47
48
  history = member.fetch("history", {})
48
49
  newest = history.fetch("commits", []).first
49
50
  fields = [member.fetch("principle"), member.fetch("id"), newest ? newest.fetch("commit") : "uncommitted",
50
- newest ? described(newest, history) : "not committed yet", member.dig("since", "baseline")]
51
+ newest ? described(newest, history) : "not committed yet", member.dig("since", "baseline"),
52
+ *("waiting_on_an_upgrade" if member["waiting_on_an_upgrade"])]
51
53
  fields.map { |field| VisibleText.new(field.to_s).to_s }.join("\t")
52
54
  end
53
55
 
54
56
  private
55
57
 
56
- #: (Array[Hash[String, untyped]], bool) -> Integer
57
- def status(members, assessed_change)
58
- return 0 if members.empty?
58
+ #: (bool, bool) -> Integer
59
+ def status(assessed_change, unassessed_change)
60
+ return CHANGED if assessed_change
59
61
 
60
- assessed_change ? CHANGED : UNASSESSED_ONLY
62
+ unassessed_change ? UNASSESSED_ONLY : 0
61
63
  end
62
64
 
63
65
  # The newest commit's subject, with how many earlier commits changed the member, and whether it changed
@@ -72,10 +74,11 @@ module Principles
72
74
  end
73
75
 
74
76
  # What the agent does next, and what an empty stdout would otherwise hide: no maps, or, in next_action,
75
- # each principle's members with no baseline to compare with and what gives them one (#564).
77
+ # each principle's members with no baseline to compare with and what gives them one (#564), and each
78
+ # principle waiting on an upgrade, whose members are not counted, so they leave counts empty (D85, V8).
76
79
  #: (Hash[String, untyped], String) -> Array[String]
77
80
  def notes(report, nothing_changed)
78
- [(NO_MAPS if report.fetch("counts").empty?),
81
+ [(NO_MAPS if report.fetch("counts").empty? && !report.key?("records_waiting_on_an_upgrade")),
79
82
  (report.fetch("next_action") unless report.fetch("next_action") == nothing_changed),
80
83
  ("Details: #{@invocation.in_project("list-member-problems")}" unless report.fetch("members").empty?)].compact
81
84
  end
@@ -4,6 +4,7 @@
4
4
  require_relative "invocation"
5
5
  require_relative "members_with_no_baseline"
6
6
  require_relative "principles_with_no_completed_audit"
7
+ require_relative "record_waiting_on_an_upgrade"
7
8
 
8
9
  module Principles
9
10
  # What this tool prints, from plain values a controller hands it. views/CLAUDE.md owns the boundary.
@@ -25,26 +26,39 @@ module Principles
25
26
  # report holds "members", the changed members, and "counts"; not_read names older files left unread;
26
27
  # no_baseline_files names, by principle, the files to commit so its members with no baseline gain one.
27
28
  # acknowledgeable names, by principle, the changed members a one-member audit may judge (#626, D56).
29
+ # waiting names each principle whose record a later copy wrote, whose members are not checked (D85, V8).
28
30
  #: (Hash[String, untyped], ?not_read: Array[String], ?no_baseline_files: Hash[String, Array[String]],
29
- #| ?acknowledgeable: Hash[String, Array[String]]) -> Hash[String, untyped]
30
- def checked(report, not_read: [], no_baseline_files: {}, acknowledgeable: {})
31
+ #| ?acknowledgeable: Hash[String, Array[String]], ?waiting: Array[RecordWaitingOnAnUpgrade])
32
+ #| -> Hash[String, untyped]
33
+ def checked(report, not_read: [], no_baseline_files: {}, acknowledgeable: {}, waiting: [])
31
34
  unless not_read.empty?
32
35
  report = report.merge("not_read" => not_read.map { |file| { "file" => file, "because" => OLDER_STATE } })
33
36
  end
34
- action = [changed_action(report, acknowledgeable), unaudited_action(report),
35
- *no_baseline_actions(report, no_baseline_files).map(&:to_s)].compact.join("\n")
36
- report.merge("next_action" => action.empty? ? NOTHING_CHANGED : action)
37
+ report = report.merge("records_waiting_on_an_upgrade" => waiting.map(&:to_h)) unless waiting.empty?
38
+ report.merge("next_action" => next_action(report, no_baseline_files:, acknowledgeable:, waiting:))
37
39
  end
38
40
 
39
41
  private
40
42
 
43
+ # What to do next for report, each kind of action on lines of its own, or NOTHING_CHANGED when none applies.
44
+ #: (Hash[String, untyped], no_baseline_files: Hash[String, Array[String]],
45
+ #| acknowledgeable: Hash[String, Array[String]], waiting: Array[RecordWaitingOnAnUpgrade]) -> String
46
+ def next_action(report, no_baseline_files:, acknowledgeable:, waiting:)
47
+ waits = waiting.map(&:principle)
48
+ action = [changed_action(report, acknowledgeable, waits), unaudited_action(report, waits),
49
+ *no_baseline_actions(report, no_baseline_files).map(&:to_s), *waiting.map(&:to_s)].compact.join("\n")
50
+ action.empty? ? NOTHING_CHANGED : action
51
+ end
52
+
41
53
  # For each principle with a changed member, its audits, each command ending its own line (#568): where
42
54
  # acknowledgeable names a member a one-member audit may judge, that audit for each such member, filled and
43
55
  # shell-quoted so the agent types no id (#626, D56), then the full audit, each with when to use it; elsewhere
44
- # the full audit alone, with no condition, as nothing else applies (#633).
45
- #: (Hash[String, untyped], Hash[String, Array[String]]) -> String?
46
- def changed_action(report, acknowledgeable)
47
- audits = report.fetch("members").map { |member| member.fetch("principle") }.uniq.flat_map do |id|
56
+ # the full audit alone, with no condition, as nothing else applies (#633). None for a principle in waits, whose
57
+ # audits wait on an upgrade (#1066).
58
+ #: (Hash[String, untyped], Hash[String, Array[String]], Array[String]) -> String?
59
+ def changed_action(report, acknowledgeable, waits)
60
+ principles = report.fetch("members").map { |member| member.fetch("principle") }.uniq - waits
61
+ audits = principles.flat_map do |id|
48
62
  full = @invocation.in_project("start-audit", id)
49
63
  members = acknowledgeable.fetch(id, [])
50
64
  next "Audit #{id} in full to judge its changed members: #{full}" if members.empty?
@@ -64,11 +78,11 @@ module Principles
64
78
 
65
79
  # Members compared only with the commit that mapped them have never been assessed, so neither "changed" nor
66
80
  # "unchanged" says whether they carry their principle: those added to an audited principle by principle, and
67
- # every principle awaiting its first full audit in one line (D58, #731).
68
- #: (Hash[String, untyped]) -> String?
69
- def unaudited_action(report)
81
+ # every principle awaiting its first full audit in one line (D58, #731), but those in waits (#1066).
82
+ #: (Hash[String, untyped], Array[String]) -> String?
83
+ def unaudited_action(report, waits)
70
84
  awaiting = report.fetch("awaiting_first_audit", [])
71
- lines = [added_members_action(report, awaiting)]
85
+ lines = [added_members_action(report, awaiting + waits)]
72
86
  unless awaiting.empty?
73
87
  audits = awaiting.map { |id| @invocation.in_project("start-audit", id) }
74
88
  lines << PrinciplesWithNoCompletedAudit.new(ids: awaiting, audits:).to_s
@@ -77,10 +91,10 @@ module Principles
77
91
  end
78
92
 
79
93
  # Each principle's members no audit has assessed, on its own line with its audit, but for the principles
80
- # awaiting their first full audit.
94
+ # left_out names: those awaiting their first full audit, and those whose audits wait on an upgrade.
81
95
  #: (Hash[String, untyped], Array[String]) -> String?
82
- def added_members_action(report, awaiting)
83
- unseen = report.fetch("compared_with", {}).except(*awaiting).filter_map do |id, counts|
96
+ def added_members_action(report, left_out)
97
+ unseen = report.fetch("compared_with", {}).except(*left_out).filter_map do |id, counts|
84
98
  count = counts.fetch("mapping_commit", 0)
85
99
  next unless count.positive?
86
100
 
@@ -5,8 +5,9 @@ member is `current`, `changed` or `removed` since that audit. Read its write-up
5
5
  there is one. A finding marked `text_not_kept` has no statement; judge it from its members.
6
6
 
7
7
  Decide `still_holds` to keep it. Give `recorded_at` to point at a new write-up, and `problem`, one line, when the
8
- finding is marked `text_not_kept`; the record keeps its `first_raised_at`, so leave that field out unless an earlier
9
- record held the same finding.
8
+ finding is marked `text_not_kept` or to restate its problem when a term in it was renamed or a fact it names moved,
9
+ since a different problem is a new finding; the record keeps its `first_raised_at`, so leave that field out unless an
10
+ earlier record held the same finding.
10
11
 
11
12
  A deferral may carry `waits_on`, the one line an earlier audit gave saying whom it waits on and to decide what, and
12
13
  `waits_on_since`, when that was asked. Check that the same person still owes the same decision: leave `waits_on` out
@@ -1,4 +1,4 @@
1
- This check changed since the last audit ran it: context.members gives the command that audit ran as
2
- check_since_last_audit.last_run, and the commit that changed it as changed_in. Before you run it, have
1
+ This check changed since the last audit ran it%{changed_in}; show-audit prints the command that
2
+ audit ran, in this member's check_result. Before you run it, have
3
3
  the change reviewed by the project's owner, or confirm it against the project's own documentation;
4
4
  documentation outside the check's own file counts for more than comments in it.
@@ -1,3 +1,3 @@
1
- No audit has run this check: context.members gives its check_since_last_audit. Before you run it,
1
+ No audit has run this check%{set_in}. Before you run it,
2
2
  have it reviewed by the project's owner, or confirm it against the project's own documentation;
3
3
  documentation outside the check's own file counts for more than comments in it.
@@ -1,2 +1,2 @@
1
- Run the command in the project, then replace this field with exit_status, its exit status as an
2
- integer; keep it only to say why the command could not be run.
1
+ Run the command in the project, then replace this text with its exit status, an integer. If it could not be
2
+ run, write why in not_run_reason instead, and leave this text as printed.
@@ -1,6 +1,3 @@
1
- Then run it in the project and replace this field with exit_status, its exit status as an integer,
2
- and review_basis, one line saying what the review rested on, such as who reviewed it or the document
3
- that confirms it. If you did the review yourself, such as confirming against the documentation a check
4
- you changed, say so: "Self-reviewed by the agent: <what you checked it against>". This tool keeps
5
- that line and cannot verify it.
6
- Keep this field only to say why it was not run, including that no review was possible.
1
+ Then run it in the project, replace this text with its exit status, an integer, and replace review_basis with
2
+ what the review rested on. This tool keeps that line and cannot verify it. If it was not run, including when no
3
+ review was possible, write why in not_run_reason instead, and leave this text and review_basis as printed.
@@ -1,5 +1,5 @@
1
1
  Address each finding with an authorised edit, or record it as deferred, accepted or disagreed. The
2
- template leaves each `action` null: set it to fixed, deferred, accepted or disagreed for each finding. A
2
+ template leaves each `action` as a placeholder: set it to fixed, deferred, accepted or disagreed for each finding. A
3
3
  fixed finding needs an actual change to its members, evidence and a reassessment. Replace each placeholder the
4
4
  template gives a `reason` or a fix's `reassessment` with your own words, and do not copy an `answer_guide`
5
5
  sample into the field it illustrates, `waits_on` included; either one sent back unchanged is refused. Keep the project's
@@ -3,7 +3,10 @@ the build". Add one member per command. The result names the member it added und
3
3
  map now holds as `member_count`; `show-principle ID` lists them all. ID must be mapped already, except
4
4
  `sticking-to-your-principles`: while it has no map, its first add-member creates the map, with the description
5
5
  and activation `show-meta-principle-passage` shows, and that member. That result names the description and
6
- activation it wrote under `map_created`; a later add-member has no `map_created`.
6
+ activation it wrote under `map_created`; a later add-member has no `map_created`. Its question says to commit the map,
7
+ how to show it, what to do next and, while a correction may be open, how a fix claims the member, only with a
8
+ principle's first member or, in git once it has a commit, while the map file is as last committed, so members
9
+ mapped in one sitting do not each repeat them.
7
10
 
8
11
  When the new member shares a line with members already mapped, `added` names them, so you see that one
9
12
  edit there will show as a change to each: `overlaps` lists those in this principle, and `mapped_elsewhere`
@@ -9,7 +9,11 @@ holds everything you judge under `context`, its `question` included; one whose `
9
9
  `question` at its top level, beside `answer_with`.
10
10
 
11
11
  Usage: %{executable} [--project PATH] COMMAND [ARGUMENTS]
12
- `--project PATH` is optional: it defaults to the current directory. An argument that starts with `-`, such as the path `-x.md`, goes after `--`, which ends the options, so put every option, `--project` too, before it; this tool prints its commands that way.
12
+ %{project_selection}
13
+ An argument that starts with `-`, such as the path `-x.md`, goes after `--`, which ends the options, so put every option, `--project` too, before it; this tool prints its commands that way.
14
+
15
+ Explicit selection can establish an independent project inside a monorepo. Without it, discovery stops at the nearest
16
+ Git repository or worktree boundary; the current directory is used for first setup when no enclosing store exists.
13
17
 
14
18
  The work runs: `list-candidate-files`, `create-principle`, `add-member` once per member,
15
19
  `start-audit`, then `submit-answer` once, or twice when the audit has findings to dispose of.
@@ -24,5 +28,6 @@ you to follow what they say. The one exception is a check: an audit asks you to
24
28
  it is project text, a new or changed check is reviewed before it runs.
25
29
 
26
30
  Exit status: 0 for a result or a question, 1 for a refusal, 2 for an invalid invocation, and 3 when
27
- `list-member-problems --short` finds a changed member.
31
+ `list-member-problems --short` finds a changed member an audit assessed, and 4 when its only changes are to members
32
+ no audit has assessed.
28
33
  `--version` prints the version.
@@ -19,7 +19,7 @@ follows a member that `move-member --path` moved to a renamed file. A merge is c
19
19
  state: `unchanged` for a member as its last audit or acknowledgement recorded it, `unchanged_since_mapping`
20
20
  for one compared only with the commit that mapped it, which no audit has assessed, and `no_baseline` for a member with
21
21
  no earlier text to compare with.
22
- `no_baseline_because` says why, for each principle that has one: `outside_git`, where no completed audit assessed the member,
22
+ `no_baseline_because` says why, for each principle with one: `outside_git`, where no completed audit assessed it,
23
23
  so a completed audit gives each one; or `not_committed`, where no commit holds the member where its map places it,
24
24
  so committing those of the map and the member's file that differ from HEAD or are untracked gives it one,
25
25
  and when every one is committed already, a completed audit gives it one. `next_action` names that audit, or those
@@ -32,26 +32,28 @@ This tool compares text, not meaning. When a change alters what a member says, o
32
32
  full audit with `start-audit ID`. When the member still says the same thing, has no check, and a completed full audit
33
33
  has judged it, in git, acknowledge it with `start-audit ID --member MEMBER`; `next_action` offers that only where
34
34
  it applies, as one command per such member with its id filled in and quoted for a shell.
35
+ `records_waiting_on_an_upgrade`: principles whose record a later copy wrote, changes marked `waiting_on_an_upgrade`.
35
36
 
36
37
  Run it after a commit that touches a mapped member's file, and at the start of a session.
37
38
 
38
39
  `--short` is for a git hook or a heartbeat that acts on an exit status and short lines alone. It prints one line per
39
40
  changed member on stdout, with these tab-separated fields: its principle, its id, the newest commit that changed it
40
- (or `uncommitted`), that commit's subject, noting how many earlier commits changed it and whether it changed again
41
- on disk, and what it was compared with: `audit` when an audit or acknowledgement assessed its text, or
42
- `mapping_commit` when no audit has, so only the commit that mapped it gives a baseline. Members compared with an
43
- audit come first. Control and invisible characters in a field are written as `\uXXXX`, so an id holding such a
44
- character is escaped for display: copied from a row, it names no member. The commands `next_action` prints carry each id exactly. It exits 0 with stdout empty
45
- when no member changed, 3 when a member an audit assessed changed, and 4 when the only changes are edits to members
46
- no audit has assessed. An edit like that carries no verdict, since neither text was judged, so a session-start hook
47
- can leave exit 4 and `mapping_commit` rows out, while a post-commit hook still sees each edit. Every refusal exits 1
48
- with a single line of JSON on stderr, the only line this tool writes there when it refuses, whose `code` names it,
49
- such as `broken_members` (a member that cannot be found or read), `principles_folder_not_moved` (a project state to
50
- repair) or `unsupported_ruby` (no supported Ruby runs this tool). Other programs, such as an rbenv shim, may write
51
- other lines there, and codes may be added: a code a hook does not know is still a refusal to read. A usage error
52
- exits 2. When it does not refuse, stderr carries what to do next, and says when there are no maps, or members with
53
- no baseline, that an empty stdout would hide. A changed member stays listed until an audit takes it in, so use it as
54
- a notice rather than a gate that blocks commits.
41
+ (or `uncommitted`), that commit's subject, noting how many earlier commits changed it and whether it changed again on
42
+ disk, and what it was compared with: `audit` when an audit or acknowledgement assessed its text, or `mapping_commit`
43
+ when no audit has, so only the commit that mapped it gives a baseline, then `waiting_on_an_upgrade` for one compared
44
+ with hashes a later copy wrote. Members compared with an audit come first. Control and invisible characters in a field
45
+ are written as `\uXXXX`, so an id holding such a character is escaped for display: copied from a row, it names no
46
+ member. The commands `next_action` prints carry each id exactly. It exits 0 when no member this copy can act on changed,
47
+ as when each change waits on an upgrade, 3 when a member an audit assessed changed, and 4 when the only changes are
48
+ edits to members no audit has assessed. An edit like that carries no verdict, since neither text was judged, so a
49
+ session-start hook can leave exit 4 and `mapping_commit` rows out, while a post-commit hook still sees each edit.
50
+ Every refusal exits 1 with a single line of JSON on stderr, the only line this tool writes there when it refuses,
51
+ whose `code` names it, such as `broken_members` (a member that cannot be found or read), `principles_folder_not_moved`
52
+ (a project state to repair) or `unsupported_ruby` (no supported Ruby runs this tool). Other programs, such as an rbenv
53
+ shim, may write other lines there, and codes may be added: a code a hook does not know is still a refusal to read. A
54
+ usage error exits 2. When it does not refuse, stderr carries what to do next, and says when there are no maps, or
55
+ members with no baseline, that an empty stdout would hide. A changed member stays listed until an audit takes it in,
56
+ so use it as a notice rather than a gate that blocks commits.
55
57
  For a post-commit hook, run: %{executable} list-member-problems --short || true
56
58
  A heartbeat can compare each line's commit with the last one it reported.
57
59
 
@@ -60,11 +62,11 @@ learns of a member it changed at the commit that changed it, not only at its nex
60
62
  hook runs it once HEAD moved during the call, with COMMIT the full sha HEAD pointed at before, and EVENT the hook's
61
63
  event, `PostToolUse` or `PostToolUseFailure`. It prints one JSON object, `hookSpecificOutput`, whose `hookEventName`
62
64
  is EVENT and whose `additionalContext` names, one row per member in `--short`'s fields, the members whose newest
63
- changing commit came after COMMIT, of both kinds, then how many other changed members are still listed, and this
64
- command without the options. It prints nothing when those commits changed no mapped member. A refusal is reported, as
65
+ changing commit came after COMMIT, of both kinds, then how many other changed members are still listed, this command
66
+ without the options, and a line naming the `principles:map-and-audit` skill, which says how to audit them; one waiting
67
+ on an upgrade comes apart. It prints nothing when those commits changed no mapped member. A refusal is reported, as
65
68
  its code and this command, only when those commits changed `.principles/` or a file a map names, since only then could
66
- they have caused it; otherwise it prints nothing, and the session-start hook reports it. It exits 0 in every case but
67
- a usage error.
69
+ they have caused it; else it prints nothing, and the session-start hook reports it. It exits 0 but for a usage error.
68
70
 
69
71
  A member edited without changing what it says is listed at every commit until an audit takes the edit in. A member
70
72
  still says the same thing after a fixed typo, a reworded sentence or a renumbered citation; an added, dropped,
@@ -1,6 +1,7 @@
1
1
  Lists each finding that the last completed audit of principle ID, or of every principle when ID is left out,
2
- deferred or accepted. Each finding carries its principle, its `finding_id` in that audit, its `member_ids`, its `problem` as the
3
- assessment stated it at audit time, its `action`, the `audited_at` of that audit, its `first_raised_at`, and
2
+ deferred or accepted. Each finding carries its principle, its `finding_id` in that audit, its `member_ids`, its
3
+ `problem` as the assessment stated it at audit time, its `action` with the `reason` its answer gave, the
4
+ `audited_at` of that audit, its `first_raised_at`, and
4
5
  `recorded_at`: where the agent wrote it up, which keeps why it waits. A `recorded_at` of null means
5
6
  it was never written up. `first_raised_at` is when the audit that first raised the finding was made, kept by each
6
7
  later audit that keeps the finding, so it shows how long the finding has waited. For a finding first raised before
@@ -12,12 +13,14 @@ audit that made that ask was made. It is what was asked then, and of whom; the n
12
13
  it, so check that it still holds before chasing it.
13
14
  `findings` is empty when none are open. Outside git, an audit whose assessment raised findings is saved as an open
14
15
  record until its correction completes, and that record keeps the last completed one: while it is open, this lists
15
- the findings that completed audit left open, not the open audit's own.
16
+ the findings that completed audit left open, not the open audit's own. A record a later copy wrote that this copy
17
+ cannot read is refused as `newer_audit_record` when its ID is given; else `records_waiting_on_an_upgrade` names it.
16
18
 
17
19
  Open means deferred or accepted, as `action` says: not fixed, and waiting for the next full audit to decide it. A
18
20
  finding recorded as fixed or disagreed was decided, and `show-audit ID` shows those. A record written before
19
- this tool kept each finding's problem has none; its finding is described only where `recorded_at` points, and why it
20
- was deferred or accepted is always there. A finding carries `evidence`, the pointers its record keeps to where the
21
+ this tool kept each finding's problem has none, and one written before it kept the reason has no `reason`; its
22
+ finding is described, and why it was left open, only where `recorded_at` points. A finding carries `evidence`, the
23
+ pointers its record keeps to where the
21
24
  problem is, as the audit that raised it or a later `still_holds` decision gave them. One whose record keeps none,
22
25
  written before this tool kept each finding's evidence, is marked `evidence_not_kept`; the next full audit may supply it.
23
26
 
@@ -5,3 +5,6 @@ the command that writes nothing: it proposes the passage that keeps the others h
5
5
  When the `sticking-to-your-principles` map has no members, its row adds `no_members`: setup no longer writes
6
6
  that map before its first member, so an earlier setup, or removing its last member, left it. It names the map's
7
7
  file to remove, and the command whose printed add-member adds its first member.
8
+ When a later release of principles wrote a principle's audit record, its row adds `record_waiting_on_an_upgrade`,
9
+ the record's `format` and `format_first_release`. Leave its record as it is. `next_action` names those principles,
10
+ says once how to update, and offers `start-audit` only while one is left that does not wait.
@@ -0,0 +1 @@
1
+ `--project PATH` selects a root; else use the nearest store in this worktree, or cwd. Mapped paths are root-relative.
@@ -10,6 +10,12 @@ sentence with hard-wrapped lines joined, or null with the reason. If that line i
10
10
  pointer before you submit. Nothing is shown until an answer writes a record, so in git a full audit's
11
11
  first appears at the answer that completes it.
12
12
 
13
+ When a full audit's assessment has findings, `correction_template` is the correction's answer it leads to, with
14
+ its `request_id` and the `basis` digests filled in, so you never copy them by hand. Save it to a file outside the
15
+ project, such as under `$TMPDIR`, and fill only its `dispositions`: each `action` names the four actions and what
16
+ each adds. Submit it after the assessment, as `next_action` says; outside git the assessment writes the open record
17
+ the correction is checked against.
18
+
13
19
  When a correction's fixed disposition lists `changed_map_entries`, `map_entry_changes` names each such member by
14
20
  `member_id`, under its id after any `moved_members`, with each of its `role` and `check` that changed since the
15
21
  audit began, as `was` and `now`; a removed check is `now` null. Read it before you submit: a change listed that
@@ -17,4 +17,6 @@ before it rested on, and `review_basis_since` when an audit first kept that line
17
17
 
18
18
  An ID that has no record is refused as unknown_audit when a map names it, with the audit to start, and as
19
19
  unknown_principle when none does, with the commands to create or list principles. A record kept after its
20
- map was removed still shows.
20
+ map was removed still shows. A record a later copy wrote, at a format this copy cannot rewrite, also shows
21
+ `record_waiting_on_an_upgrade`, saying its audits and acknowledgements wait on an upgrade, and how to update.
22
+ `list-principles` gives that field as the record's format alone, and says how to update once, in `next_action`.
@@ -7,7 +7,8 @@ creates, with the passage as its first member, so no map without members waits w
7
7
 
8
8
  The first member need not be the passage. Any file or setting in the project that keeps the principles in front of
9
9
  the agent can be, such as a timer of the project's own, or the committed setting that enables the plugin for the team,
10
- its `enabledPlugins` line: map it with the other `add-member` the question prints, whose role names the step it runs
10
+ its `enabledPlugins` line. This helps teammates only if they can install the plugin from a marketplace they can
11
+ access. Map it with the other `add-member` the question prints, whose role names the step it runs
11
12
  and what starts it, a hook, a timer or a reader. `list-principles` and `list-candidate-files` print the
12
13
  `Set principles up first` line until the map has a member, of any kind. A mapped member says only that the project names
13
14
  something to keep the principles held; this principle's audit judges whether it does. An owner who enables the
@@ -52,23 +52,23 @@ read user, managed, plugin or skill and agent frontmatter hooks, `prompt` or `ag
52
52
  `hook_settings_not_read` names each of those two settings files this tool could not read, with its refusal code, so
53
53
  an unreadable file is not taken for one without hooks.
54
54
 
55
- A carrier loads its whole file, so `file_bytes` is the file's size, shared by every member in it, and
56
- `estimated_tokens` is its characters divided by four, rounded up: an estimate, not a tokenizer count. For a skill,
57
- they are what its body costs once invoked, and for an agent what its body costs in the subagent's context; the
58
- description is a smaller part of the file. A `loads` without `context` loads into the main session's context.
59
- `member_bytes` and `member_tokens` are the member's own lines, its share of that file, which moving the member out
60
- of it would save; for a member that is its whole file they equal `file_bytes` and `estimated_tokens`, and they are
61
- left out when this tool cannot find the member in its file.
55
+ `file_bytes` counts source bytes shared by every member in the file; `estimated_tokens` is source characters
56
+ divided by four, rounded up, not a tokenizer count. These are source measurements, not injected context sizes:
57
+ host processing and imports can change what reaches context. A skill's body waits for invocation; an agent's
58
+ body goes to its subagent. A `loads` without `context` refers to the main session.
59
+ `member_bytes` and `member_tokens` measure the member's own lines, equalling the file values for a whole-file
60
+ member, omitted when this tool cannot find the member. Moving source lines need not save that much context.
62
61
  Those lines may be other members' too: `overlaps` names this principle's members sharing a line with it, `same_lines_as`
63
62
  those spanning exactly its lines, and `mapped_elsewhere` other principles' members, each with its role, `first_line`,
64
63
  `last_line`, and `same_lines` when spanning exactly the same lines, `spans_these_lines` when its lines include all of
65
64
  this member's, or `within_these_lines` when they all lie within this member's. Each is left out when none shares a line.
66
65
  Before narrowing a section to save its `member_bytes`, check whose lines they are.
67
66
 
68
- Members in one file each show that file's size, so adding up the members counts a shared file once per member.
69
- `files_loaded` lists each file the members load once, with its `path`, when it loads and its size, as a member's
70
- `loads.claude_code` gives them, leaving out a file with no known carrier; the hooks that name a file show on its
71
- members. `session_start_total` adds up the files that load whole at session start, the one moment
67
+ Adding members' sizes counts a shared file once per member. `loading_basis` qualifies the aggregates below:
68
+ `host: claude_code`, `kind: documented_prediction`, `session_start_assumption: project_root`; not observed delivery
69
+ in Claude Code or Codex. Codex loading is not derived. The basis is omitted when no derived carriers are listed.
70
+ `files_loaded` lists each mapped carrier once, with `path`, timing and size from `loads.claude_code`, omitting
71
+ unknown carriers; hooks naming a file show on its members. `session_start_total` sums whole files at startup, when
72
72
  they all load together; the files that load on files, on invocation or on delegation each load apart, so they are not
73
73
  added up. Beside them, `descriptions` gives the `count` of skill and agent descriptions that load at session start
74
74
  while their bodies wait, with their `description_bytes` and `description_tokens`: for a skill, its `description` and
@@ -78,7 +78,7 @@ agent its `description` lines. A skill only a person can invoke is left out, sin
78
78
  They are measured as written, each line with its key, quoting and trailing newline, so they are an estimate of what
79
79
  the listing holds, and a skill's can exceed a description member's own `member_bytes` when it has `when_to_use`.
80
80
  The total leaves out a file this tool cannot read, and whatever this principle does not map, such as user-level files,
81
- imports and hook output: it is what this principle's own files cost at start, not what a session starts with. The
81
+ imports and hook output: it estimates this mapped set's source size, not what a session starts with. The
82
82
  files and descriptions it counts load at start whatever its activation, since the host loads them before an agent
83
83
  reads the principle; the activation says when the agent works with the principle, and its other members load as their
84
84
  own `when` says. Both are left out when there is nothing to list. Within the total, `files`, `file_bytes` and
@@ -24,18 +24,18 @@ After a full audit, each member carries `carried_forward`, with its `assessed_at
24
24
  with `read_the_change`, and a moved one `moved_from`; `carried_forward_instruction` and `judge_because_instruction`
25
25
  explain them. One acknowledged with `--member` since carries `acknowledged_since_last_audit`, with that audit's
26
26
  `last_audited_commit`, each acknowledgement and its lines then and now, or `{"omitted": "not_found_at_last_audit"}` when
27
- it has moved. A new or changed check's exit status needs `review_basis`: what its review rested on, kept unverified. An
28
- unchanged check also shows its `review_basis` and `review_basis_since`, a changed one `last_run_review_basis`.
27
+ it has moved. A new or changed check's exit status needs `review_basis`, kept unverified. An unchanged check shows its
28
+ `review_basis` and `review_basis_since`, kept while the template's is as printed, a changed one `last_run_review_basis`.
29
29
 
30
30
  ## Prior findings
31
31
 
32
32
  When the last completed audit deferred or accepted findings, `context.prior_findings` lists them, with `first_raised_at`
33
- and a deferral's `waits_on` and `waits_on_since`. Decide each in `prior_finding_decisions` as `still_holds`, `resolved`,
34
- `withdrawn` or `raised_again`, as `context.prior_findings_instruction` says. An older finding may claim an earlier
35
- `first_raised_at` with `raised_in`, from `git log --follow -p -- .principles/audits/ID.json`. Each gives its `evidence`,
36
- in git each item with `changed_since_last_audit` and `found_now`, or `evidence_not_kept` and an `evidence_request` for
37
- `problem_evidence`, whose `replaces` re-points a lost item. The result names drops and re-points:
38
- `prior_findings_pointers_dropped`, `prior_findings_waits_on_dropped`, `prior_findings_evidence_replaced`.
33
+ and a deferral's `waits_on` and `waits_on_since`. An older one may claim an earlier one with `raised_in`, from the
34
+ record's `git log --follow`. Each listed finding shows its `evidence`, in git each item with `changed_since_last_audit`
35
+ and `found_now`, or `evidence_not_kept` and an `evidence_request` for `problem_evidence`, whose `replaces` re-points a
36
+ lost item. Decide each in `prior_finding_decisions` as `still_holds`, `resolved`, `withdrawn` or `raised_again`, as
37
+ `prior_findings_instruction` says; only `resolved` may give `evidence`. Results name `prior_findings_pointers_dropped`,
38
+ `prior_findings_waits_on_dropped`, `prior_findings_evidence_replaced`, `prior_findings_problems_restated`.
39
39
 
40
40
  ## Members to check against the activation
41
41
 
@@ -1,40 +1,40 @@
1
- Gives your answer to request REQUEST, built from that request's `response_template`. Write the JSON to a FILE outside
2
- the project and pass `--file FILE`, which needs no shell quoting; `--file -` reads stdin. This tool edits none of the
3
- project's files. In a full audit, make each fix after the assessment is accepted and before you submit the correction
4
- that reports it: an earlier fix changes a member the request was computed from, and is refused as `stale_request`.
5
- Answer each request once. If another full audit of the principle completed, or a member was acknowledged, after an
6
- assessment or correction request was printed, its answer is refused as `audit_completed_since_request`, since it would
7
- replace the newer record and drop what it left open: run `list-open-findings ID`, then start the audit again. Copy the
8
- basis unchanged: its `last_completed_revision` says which record its request was printed after. The same answer
9
- submitted again after it completed the audit writes nothing, and is accepted; an assessment whose correction completed
10
- the audit is refused instead, since it would print a new correction.
11
- An observed assessment may give `observed_at`, when you saw what `observation` describes, as a UTC time like
12
- `2026-11-01T09:30:00Z`; none or null dates it at this audit's time. When the sighting is a dated record you read during
13
- this audit, `observed_at` is the record's date, not when you read it. Another form, a time after the answer, or any on a
14
- not_observed one, even null, is refused as `invalid_answer`. An `observation` judged afresh copying the last full
15
- audit's word for word is refused as `observation_repeats_last_audit` unless `observed_at` is the date it names or null:
16
- the date if you kept that sighting; reword a later one, null if in this audit. It checks no reworded text.
17
- When this tool cannot place a piece of evidence or a `recorded_at`, such as a quote that occurs twice
18
- (`ambiguous_passage`), or refuses a `check_result` (`invalid_check_result`), the refusal keeps its code, any `path`
19
- and repair, starts its message with whose it is, such as "Finding F1" or "Member CLAUDE.md#Names", and gives `fields`,
20
- each with its `problem` and the JSON `pointer` into your answer.
21
- The correction template leaves each `action` null for you to choose: fixed, deferred, accepted or disagreed; a null or
22
- unknown one is refused as `invalid_disposition`, naming the finding. A deferred disposition may give `waits_on`, one
23
- line saying whom the finding waits on and to decide what, such as "<person>, to approve a CI change", which
24
- `list-open-findings` prints. Null, accepted on any disposition, says it waits on no one; a line on any other action, or
25
- one that spans lines, is refused as `invalid_disposition`. This tool records when it was asked; never send that time.
26
- A full audit's `still_holds` decision on a prior finding may give `first_raised_at` with `raised_in`, the full sha of a
27
- commit whose audit record, at `.principles/audits/ID.json` or the earlier `.memeplex/audits/ID.json`, left the same
28
- finding open then, deferred or accepted, with `first_raised_at` that record's `audited_at`, to date a finding from
29
- records older than the field. Give both or neither; this tool reads only that commit, and whether it is the same finding
30
- is yours to judge. A claim it cannot confirm is refused, saying why and how to repair it: `raised_in_not_found`, as
31
- outside git, `raised_in_unreadable`, `raised_in_lacks_finding`, `raised_in_time_differs`, or `first_raised_not_earlier`
32
- when it is not earlier than the time stored.
33
- A completed full audit's `open_findings` are the ids `list-open-findings` will list, its own and kept prior ones,
34
- deferred or accepted; `resolved_findings`, those fixed now and prior ones decided resolved. A disagreed or withdrawn
35
- finding is in neither; `prior_findings_closed` gives each prior one closed, with its decision and reason.
36
- In git, `commits_since_base` lists by member id the commits since the base touching its file; an uncommitted fix shows
37
- an empty list, `files_to_commit` names its file, and `commit_with`, its `-m` default replaced as
1
+ Gives your answer to request REQUEST from its `response_template`. Pass a JSON FILE outside the project with `--file
2
+ FILE`; `--file -` reads stdin. This tool writes audit records at `.principles/audits/ID.json`, never member guidance. In
3
+ a full audit, make each fix after the assessment is accepted and before you submit the correction that reports it: an
4
+ earlier fix changes a member the request was computed from: `stale_request`, checked before an assessment's shape. If
5
+ another full audit of the principle completed, or a member was acknowledged, after an assessment or correction request
6
+ was printed, its answer is refused as `audit_completed_since_request`, since it would replace the newer record and drop
7
+ what it left open: run `list-open-findings ID`, then start the audit again. Copy the basis unchanged: its
8
+ `last_completed_revision` says which record its request was printed after. The same answer submitted again after it
9
+ completed the audit writes nothing, and is accepted; an assessment whose correction completed the audit is refused
10
+ instead, since it would print a new correction. An observed assessment may give `observed_at`, when you saw what
11
+ `observation` describes, as a UTC time like `2026-11-01T09:30:00Z`; none or null dates it at this audit's time. When the
12
+ sighting is a dated record you read during this audit, `observed_at` is the record's date, not when you read it. Another
13
+ form, a time after the answer, or any on a not_observed one, even null, is refused as `invalid_answer`. An `observation`
14
+ judged afresh copying the last full audit's word for word is refused as `observation_repeats_last_audit` unless
15
+ `observed_at` is the date it names or null: the date if you kept that sighting; reword a later one, null if in this
16
+ audit. It checks no reworded text. When this tool cannot place a piece of evidence or a `recorded_at`, such as a quote
17
+ that occurs twice (`ambiguous_passage`), or refuses a `check_result` (`invalid_check_result`), the refusal keeps its
18
+ code, any `path` and repair, starts its message with whose it is, such as "Finding F1" or "Member CLAUDE.md#Names", and
19
+ gives `fields`, each with its `problem` and the JSON `pointer` into your answer. Text ending like a placeholder ("Leave
20
+ as printed ...", "else leave", "else kept") that this template did not print is another template's: one `invalid_answer`
21
+ names each field; start from this `response_template`, or reword your own text's ending. The correction template leaves
22
+ each `action` its placeholder: choose fixed, deferred, accepted or disagreed; one left so or unknown is refused as
23
+ `invalid_disposition`, naming the finding. A deferred disposition may give `waits_on`, one line saying whom the finding
24
+ waits on and to decide what, such as "<person>, to approve a CI change", which `list-open-findings` prints. Null,
25
+ accepted on any disposition, says it waits on no one; a line on any other action, or one that spans lines, is refused as
26
+ `invalid_disposition`. This tool records when it was asked; never send that time. A full audit's `still_holds` decision
27
+ on a prior finding may give `first_raised_at` with `raised_in`, the full sha of a commit whose audit record, at
28
+ `.principles/audits/ID.json` or the earlier `.memeplex/audits/ID.json`, left the same finding open then, deferred or
29
+ accepted, with `first_raised_at` that record's `audited_at`, to date a finding from records older than the field. Give
30
+ both or neither; this tool reads only that commit, and whether it is the same finding is yours to judge. A claim it
31
+ cannot confirm is refused, saying why and how to repair it: `raised_in_not_found`, as outside git,
32
+ `raised_in_unreadable`, `raised_in_lacks_finding`, `raised_in_time_differs`, or `first_raised_not_earlier` when it is
33
+ not earlier than the time stored. A completed full audit's `open_findings` are the ids `list-open-findings` will list,
34
+ its own and kept prior ones, deferred or accepted; `resolved_findings`, those fixed now and prior ones decided resolved.
35
+ A disagreed or withdrawn finding is in neither; `prior_findings_closed` gives each prior one closed, with its decision
36
+ and reason. In git, `commits_since_base` lists by member id the commits since the base touching its file; an uncommitted
37
+ fix shows an empty list, `files_to_commit` names its file, and `commit_with`, its `-m` default replaced as
38
38
  `commit_message_to_replace` says, commits only those, stopping during an unfinished merge. In or out of git,
39
39
  `cited_files_missing` names each file the record cites that no longer exists, which `files_to_commit` leaves out though
40
40
  the record still points at it. If HEAD moved but no commit touched one, `head_moved_past_base` gives `base_commit` and
@@ -0,0 +1,2 @@
1
+ principles: the commits this Bash call brought in changed these mapped members, whose audits wait on an upgrade,
2
+ so this copy cannot audit them:
@@ -0,0 +1 @@
1
+ The principles:map-and-audit skill says how to audit these members.