principles 0.0.5 → 0.0.7
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.
- checksums.yaml +4 -4
- data/lib/principles/after_commit_hook_options.rb +4 -1
- data/lib/principles/cli.rb +9 -0
- data/lib/principles/command_line.rb +31 -30
- data/lib/principles/command_routes.rb +9 -3
- data/lib/principles/controllers/acknowledgement.rb +82 -95
- data/lib/principles/controllers/answer.rb +14 -11
- data/lib/principles/controllers/assessment.rb +27 -24
- data/lib/principles/controllers/audit.rb +24 -4
- data/lib/principles/controllers/audit_completion.rb +10 -4
- data/lib/principles/controllers/command.rb +2 -2
- data/lib/principles/controllers/correction.rb +16 -7
- data/lib/principles/controllers/full_audit_request.rb +8 -3
- data/lib/principles/controllers/guidance_search_paths.rb +31 -0
- data/lib/principles/controllers/inventory.rb +3 -22
- data/lib/principles/controllers/mapping.rb +9 -1
- data/lib/principles/controllers/member_acknowledgement.rb +137 -0
- data/lib/principles/controllers/member_addition.rb +65 -0
- data/lib/principles/controllers/member_entries.rb +6 -24
- data/lib/principles/controllers/member_problems_report.rb +33 -25
- data/lib/principles/controllers/members_to_assess.rb +1 -1
- data/lib/principles/controllers/meta_principle_setup.rb +1 -1
- data/lib/principles/controllers/repoint.rb +5 -2
- data/lib/principles/controllers/survey.rb +60 -0
- data/lib/principles/data/audit_files.rb +4 -0
- data/lib/principles/data/candidate_files_found.rb +48 -13
- data/lib/principles/data/command-steps.json +86 -25
- data/lib/principles/data/committed_tree.rb +84 -0
- data/lib/principles/data/first_parent_log.rb +48 -0
- data/lib/principles/data/first_parent_range.rb +122 -0
- data/lib/principles/data/git_command.rb +37 -0
- data/lib/principles/data/guidance_search_paths_file.rb +107 -0
- data/lib/principles/data/map_files.rb +35 -10
- data/lib/principles/data/principles_directory.rb +40 -0
- data/lib/principles/data/principles_subfolder.rb +39 -16
- data/lib/principles/data/project_files.rb +11 -3
- data/lib/principles/data/repository.rb +55 -29
- data/lib/principles/data/requested_candidate_files.rb +43 -0
- data/lib/principles/data/running_version.rb +3 -5
- data/lib/principles/data/schemas/acknowledgement-answer.schema.json +6 -6
- data/lib/principles/data/schemas/acknowledgements-answer.schema.json +88 -0
- data/lib/principles/data/schemas/answer-guide.schema.json +255 -63
- data/lib/principles/data/schemas/assessment-answer.schema.json +15 -1
- data/lib/principles/data/schemas/command-steps.schema.json +1 -1
- data/lib/principles/data/schemas/correction-answer-guide.schema.json +2 -1
- data/lib/principles/data/schemas/correction-answer.schema.json +12 -54
- data/lib/principles/data/schemas/guidance-search-paths.schema.json +13 -0
- data/lib/principles/data/schemas/member-map-history.schema.json +20 -0
- data/lib/principles/data/verified_head.rb +162 -0
- data/lib/principles/invocation_options.rb +5 -4
- data/lib/principles/list_open_findings_options.rb +23 -0
- data/lib/principles/models/acknowledged_check.rb +94 -0
- data/lib/principles/models/acknowledgement.rb +40 -36
- data/lib/principles/models/acknowledgement_left_as_printed.rb +72 -0
- data/lib/principles/models/acknowledgements.rb +99 -0
- data/lib/principles/models/answered_time.rb +9 -0
- data/lib/principles/models/assessment_report.rb +13 -13
- data/lib/principles/models/audit.rb +17 -4
- data/lib/principles/models/audit_entry_protecting_map.rb +28 -0
- data/lib/principles/models/audit_record.rb +9 -0
- data/lib/principles/models/audit_records.rb +34 -8
- data/lib/principles/models/candidate_files.rb +17 -6
- data/lib/principles/models/candidate_inventory.rb +51 -7
- data/lib/principles/models/captured_head.rb +72 -0
- data/lib/principles/models/check_since_last_audit.rb +4 -8
- data/lib/principles/models/correction_basis.rb +14 -5
- data/lib/principles/models/declared_map_changes.rb +25 -9
- data/lib/principles/models/declared_member_removals.rb +75 -0
- data/lib/principles/models/disposition.rb +4 -2
- data/lib/principles/models/fix_only_fields.rb +12 -0
- data/lib/principles/models/guidance_search_path.rb +26 -0
- data/lib/principles/models/guidance_search_paths.rb +57 -0
- data/lib/principles/models/line_span.rb +6 -0
- data/lib/principles/models/list_member_problems_check.rb +80 -0
- data/lib/principles/models/listed_members.rb +49 -0
- data/lib/principles/models/loaded_files.rb +1 -2
- data/lib/principles/models/loading_decision.rb +17 -8
- data/lib/principles/models/loading_scope.rb +61 -0
- data/lib/principles/models/loads_to_check.rb +0 -1
- data/lib/principles/models/locator.rb +6 -0
- data/lib/principles/models/mapped_principles.rb +39 -37
- data/lib/principles/models/member_assessments.rb +11 -2
- data/lib/principles/models/member_file.rb +20 -71
- data/lib/principles/models/member_history.rb +7 -5
- data/lib/principles/models/member_loading_scopes.rb +49 -0
- data/lib/principles/models/member_loads.rb +4 -0
- data/lib/principles/models/member_mapping_run.rb +30 -0
- data/lib/principles/models/member_moves.rb +4 -0
- data/lib/principles/models/member_problems.rb +57 -29
- data/lib/principles/models/member_region.rb +129 -0
- data/lib/principles/models/member_repair_moves.rb +9 -11
- data/lib/principles/models/member_sighting.rb +5 -8
- data/lib/principles/models/member_snapshots.rb +14 -1
- data/lib/principles/models/members_in_consecutive_sections.rb +56 -0
- data/lib/principles/models/meta_principle.rb +14 -0
- data/lib/principles/models/missing_files.rb +2 -2
- data/lib/principles/models/other_templates_placeholders.rb +1 -1
- data/lib/principles/models/outline_budget.rb +29 -14
- data/lib/principles/models/principle.rb +14 -7
- data/lib/principles/models/principle_file_revision.rb +48 -0
- data/lib/principles/models/principle_history.rb +46 -19
- data/lib/principles/models/principle_lineage.rb +118 -0
- data/lib/principles/models/principle_map_revision.rb +39 -0
- data/lib/principles/models/principle_mapping_history.rb +132 -0
- data/lib/principles/models/principle_members.rb +14 -0
- data/lib/principles/models/principle_predecessor.rb +45 -0
- data/lib/principles/models/principle_publication.rb +177 -0
- data/lib/principles/models/principle_revision.rb +104 -0
- data/lib/principles/models/problem_report.rb +36 -9
- data/lib/principles/models/project.rb +47 -30
- data/lib/principles/models/project_history.rb +45 -25
- data/lib/principles/models/record_format.rb +6 -0
- data/lib/principles/models/reported_check.rb +16 -12
- data/lib/principles/models/request_id.rb +1 -1
- data/lib/principles/models/sent_answer.rb +35 -5
- data/lib/principles/models/survey_search_paths.rb +26 -0
- data/lib/principles/models/uncommitted_files.rb +50 -0
- data/lib/principles/models/unknown_principle.rb +29 -0
- data/lib/principles/positional_arguments.rb +38 -0
- data/lib/principles/session_start_options.rb +3 -3
- data/lib/principles/start_audit_options.rb +10 -2
- data/lib/principles/version.rb +2 -2
- data/lib/principles/views/acknowledgement_result.rb +54 -16
- data/lib/principles/views/added_member.rb +41 -0
- data/lib/principles/views/answered_request.rb +21 -0
- data/lib/principles/views/assessed_members.rb +26 -5
- data/lib/principles/views/assessment_request.rb +24 -4
- data/lib/principles/views/audit_result.rb +30 -27
- data/lib/principles/views/candidate_files_result.rb +56 -12
- data/lib/principles/views/candidate_outlines_result.rb +25 -0
- data/lib/principles/views/check_result_template.rb +18 -17
- data/lib/principles/views/consecutive_sections_elsewhere.rb +27 -0
- data/lib/principles/views/correction_request.rb +38 -10
- data/lib/principles/views/findings_result.rb +21 -0
- data/lib/principles/views/guidance_search_paths_result.rb +26 -0
- data/lib/principles/views/invocation.rb +19 -4
- data/lib/principles/views/json_with_entries_on_lines.rb +12 -4
- data/lib/principles/views/loads_to_check_result.rb +3 -2
- data/lib/principles/views/map_added_to.rb +56 -2
- data/lib/principles/views/map_result.rb +22 -42
- data/lib/principles/views/maps_needing_members_or_audit.rb +47 -0
- data/lib/principles/views/member_change_since_baseline.rb +2 -1
- data/lib/principles/views/member_repairs.rb +2 -1
- data/lib/principles/views/member_row.rb +61 -0
- data/lib/principles/views/members_a_commit_changed.rb +2 -1
- data/lib/principles/views/members_with_no_baseline.rb +8 -1
- data/lib/principles/views/new_loading_scope.rb +31 -0
- data/lib/principles/views/one_member_check_result_template.rb +37 -21
- data/lib/principles/views/open_findings_line.rb +2 -1
- data/lib/principles/views/principle_read_result.rb +4 -1
- data/lib/principles/views/principles_with_no_completed_audit.rb +9 -3
- data/lib/principles/views/problem_lines.rb +50 -45
- data/lib/principles/views/problem_result.rb +59 -25
- data/lib/principles/views/prompts/acknowledge-a-change/report-the-exit-status-its-own-listing-gives.md +3 -0
- data/lib/principles/views/prompts/acknowledge-a-change/run-the-check-and-report-it-passing.md +3 -3
- data/lib/principles/views/prompts/acknowledge-a-change/say-whether-each-change-keeps-its-meaning.md +8 -0
- data/lib/principles/views/prompts/acknowledge-a-change/say-whether-the-change-keeps-the-meaning.md +6 -6
- data/lib/principles/views/prompts/assess-every-member/answer-guide.json +67 -43
- data/lib/principles/views/prompts/assess-every-member/decide-each-member-loading.md +2 -1
- data/lib/principles/views/prompts/assess-every-member/run-the-check-then-report-it.md +2 -2
- data/lib/principles/views/prompts/assess-every-member/run-the-reviewed-check-and-say-what-its-review-rested-on.md +5 -3
- data/lib/principles/views/prompts/dispose-of-each-finding/answer-guide.json +1 -0
- data/lib/principles/views/prompts/dispose-of-each-finding/fix-or-record-each-finding.md +12 -0
- data/lib/principles/views/prompts/dispose-of-each-finding/retain-assessment-and-correction.md +4 -0
- data/lib/principles/views/prompts/find-a-principle-to-map/ask-about-other-guidance-search-paths.md +6 -0
- data/lib/principles/views/prompts/find-a-principle-to-map/choose-an-existing-or-new-principle.md +2 -0
- data/lib/principles/views/prompts/find-a-principle-to-map/choose-one-principle.md +4 -2
- data/lib/principles/views/prompts/find-a-principle-to-map/compare-with-mapped-principles.md +11 -0
- data/lib/principles/views/prompts/find-a-principle-to-map/read-left-out-files.md +2 -2
- data/lib/principles/views/prompts/find-a-principle-to-map/survey-a-later-range.md +3 -0
- data/lib/principles/views/prompts/find-a-principle-to-map/what-each-command-writes.md +4 -4
- data/lib/principles/views/prompts/find-a-principle-to-map/where-the-inventory-looks.md +5 -4
- data/lib/principles/views/prompts/learn-what-a-command-does/add-guidance-search-path.md +17 -0
- data/lib/principles/views/prompts/learn-what-a-command-does/add-member.md +35 -6
- data/lib/principles/views/prompts/learn-what-a-command-does/create-principle.md +16 -0
- data/lib/principles/views/prompts/learn-what-a-command-does/every-command-and-how-they-chain.md +1 -2
- data/lib/principles/views/prompts/learn-what-a-command-does/list-candidate-files.md +37 -4
- data/lib/principles/views/prompts/learn-what-a-command-does/list-member-problems.md +20 -19
- data/lib/principles/views/prompts/learn-what-a-command-does/list-open-findings.md +65 -61
- data/lib/principles/views/prompts/learn-what-a-command-does/move-member.md +5 -0
- data/lib/principles/views/prompts/learn-what-a-command-does/remove-guidance-search-path.md +13 -0
- data/lib/principles/views/prompts/learn-what-a-command-does/remove-principle.md +25 -0
- data/lib/principles/views/prompts/learn-what-a-command-does/show-answer-check.md +33 -7
- data/lib/principles/views/prompts/learn-what-a-command-does/show-candidate-outlines.md +21 -0
- data/lib/principles/views/prompts/learn-what-a-command-does/start-audit.md +10 -10
- data/lib/principles/views/prompts/learn-what-a-command-does/submit-answer.md +51 -54
- data/lib/principles/views/prompts/read-requested-outlines/continue-the-survey.md +7 -0
- data/lib/principles/views/prompts/start-a-session/act-on-the-open-findings.md +1 -1
- data/lib/principles/views/prompts/start-a-session/every-loaded-line-costs-every-session.md +1 -0
- data/lib/principles/views/prompts/start-a-session/start-with-the-principles-skill.md +1 -0
- metadata +67 -4
- data/lib/principles/models/candidate_listing.rb +0 -41
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Remove an obsolete map after its rules have been consolidated or split using change-description, add-member
|
|
2
|
+
and remove-member. The agent decides which rules belong together; this command never merges principles or
|
|
3
|
+
transfers findings. It removes only `.principles/maps/ID.json`, leaving member files and audit history alone.
|
|
4
|
+
|
|
5
|
+
Without `--confirm`, removal is permitted only when there is no current audit entry. That is not a claim
|
|
6
|
+
that the principle was never audited: version control may retain older records. Any current entry protects
|
|
7
|
+
the map, including an open, invalid, newer or dangling entry; `principle_has_audit_record` refuses removal.
|
|
8
|
+
|
|
9
|
+
Use `--confirm` only after deciding that this exact map should leave routine active-map reports. Confirmation
|
|
10
|
+
removes only the map; it preserves the audit entry byte-for-byte and does not resolve retained findings.
|
|
11
|
+
It does not require a readable record, upgrade it or repair a link. Inspect a readable retained record with
|
|
12
|
+
`show-audit ID`; invalid, newer or linked entries may require diagnosis before that read succeeds.
|
|
13
|
+
An access failure while checking for a current audit entry still refuses even with confirmation.
|
|
14
|
+
|
|
15
|
+
The result's `status` is `removed`; `principle_id` identifies it. `removed` lists the exact deleted map path,
|
|
16
|
+
while `wrote` is empty because no file was written. `next_action` names list-principles. In Git, commit the
|
|
17
|
+
removal if the map was tracked; an untracked map's removal needs no Git commit. No Git history is rewritten.
|
|
18
|
+
Before recreating a tracked map's ID, commit its removal: creation refuses while that map path remains at
|
|
19
|
+
committed HEAD. Once absent there, recreation uses its retained audit record as before; use a distinct ID for a distinct principle.
|
|
20
|
+
|
|
21
|
+
Missing or invalid IDs refuse without changes. Linked store parents and final map links refuse rather than
|
|
22
|
+
unlinking a target. Nonregular entries refuse with `not_a_file`. If access prevents checking for an audit entry, the command refuses with
|
|
23
|
+
`store_entry_unreadable`; an entry disappearing after validation or a failed unlink gives `store_remove_failed`. Restore access
|
|
24
|
+
or the intended regular file before retrying. This command does not provide an atomic compare-and-delete
|
|
25
|
+
against concurrent external edits. A final linked map refuses with `symlinked_store_file`.
|
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
Checks your answer to request REQUEST_ID
|
|
2
|
-
the refusal `submit-answer` would give, such as a passage that matches twice, or `answer_acceptable`
|
|
3
|
-
with the files submitting would write. Use it instead of searching the project yourself before you
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
Checks your answer, to the request its `request_id` or REQUEST_ID names, as `submit-answer` would; writes nothing.
|
|
2
|
+
It prints the refusal `submit-answer` would give, such as a passage that matches twice, or `answer_acceptable`
|
|
3
|
+
with the files submitting would write. Use it instead of searching the project yourself before you submit. Pass
|
|
4
|
+
`--file FILE`, naming the answer written to a FILE outside the project; `--file -` reads it from stdin instead.
|
|
5
|
+
Its `next_action` ends with `submit-answer`, giving the same `--file` value again.
|
|
6
|
+
|
|
7
|
+
The same current-ID history checks apply to assessment/correction answers with a Git base. For their
|
|
8
|
+
`stale_request` and `git_history_unavailable` conditions and repairs:
|
|
9
|
+
%{executable} submit-answer --help
|
|
10
|
+
|
|
11
|
+
For a correction removing obsolete guidance from the map, each fixed disposition may give `removed_members`:
|
|
12
|
+
the original member ids actually removed with `remove-member`, leaving source files intact. The declaration is
|
|
13
|
+
checked against the original Git map. `invalid_removed_members` refuses unknown, still-present or conflicting
|
|
14
|
+
claims; `empty_correction_map` refuses a result without a survivor or replacement. A removal-only fix leaves
|
|
15
|
+
`changed_members` empty and supplies a substantive reassessment and located evidence about remaining guidance.
|
|
16
|
+
Restore entries before reconsidering or deferring an emptied map, preserving the unsubmitted correction packet;
|
|
17
|
+
explicit deactivation retains previous audit history. This preview never writes. The correction question and its
|
|
18
|
+
answer guide give the full declaration contract, including repeated claims and exact Git map reconstruction.
|
|
6
19
|
|
|
7
20
|
When the answer would write a record that keeps findings open with a write-up, `open_findings_will_print`
|
|
8
21
|
names each by `finding_id` with what `list-open-findings` will print for it as its `write_up_opening`, its first
|
|
@@ -13,8 +26,21 @@ first appears at the answer that completes it.
|
|
|
13
26
|
When a full audit's assessment has findings, `correction_template` is the correction's answer it leads to, with
|
|
14
27
|
its `request_id` and the `basis` digests filled in, so you never copy them by hand. Save it to a file outside the
|
|
15
28
|
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;
|
|
17
|
-
|
|
29
|
+
each adds. Submit it after the assessment, as `next_action` says; the assessment writes the open record the
|
|
30
|
+
correction is checked against.
|
|
31
|
+
|
|
32
|
+
`correction_recovery` explains what to keep before changing members: the exact original assessment you submit,
|
|
33
|
+
including its request_id and basis, and the returned correction packet with its response_template or
|
|
34
|
+
correction_template. Save both outside the project before fixes. For `--file -`, retain the exact stdin bytes
|
|
35
|
+
and supply them again. In Git, after submitting the assessment, recover a lost correction while its request
|
|
36
|
+
inputs remain unchanged by checking the original assessment request with its original answer file again:
|
|
37
|
+
|
|
38
|
+
`%{executable} show-answer-check ORIGINAL_ASSESSMENT_REQUEST_ID --file ORIGINAL_ASSESSMENT_FILE`
|
|
39
|
+
|
|
40
|
+
The result gives the same correction_template and writes nothing. Changed audited members, a completed audit
|
|
41
|
+
or a newer record can refuse replay; recovery after fixes is not promised. Preserve the correction packet
|
|
42
|
+
before editing rather than starting a fresh assessment to reconstruct missing judgements. Outside Git, this
|
|
43
|
+
replay route is not established; retain the original packets.
|
|
18
44
|
|
|
19
45
|
When a correction's fixed disposition lists `changed_map_entries`, `map_entry_changes` names each such member by
|
|
20
46
|
`member_id`, under its id after any `moved_members`, with each of its `role` and `check` that changed since the
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Recover the outlines a survey left out without scanning the project again. Give one or more literal file paths:
|
|
2
|
+
|
|
3
|
+
%{executable} show-candidate-outlines guides/names.md guides/checks.md
|
|
4
|
+
|
|
5
|
+
The command reads only those files, without glob expansion or recorded guidance search paths. Leading `./` is
|
|
6
|
+
removed; repeated paths are listed once, in path order. Paths must resolve to regular UTF-8 text files inside
|
|
7
|
+
the selected project, through any symbolic links too. Each failed path appears under `inventory.unreadable`
|
|
8
|
+
with its `code`, `message`, `repair` and `path`; other requested files still succeed, with exit 0 and `wrote: []`.
|
|
9
|
+
No paths is a usage refusal, exit 2. In git, `ignored` names unread requests, including aliases whose text depends
|
|
10
|
+
on ignored links or targets. Their contents are not read. No success is inferred for a refused or ignored file.
|
|
11
|
+
|
|
12
|
+
`inventory.files` uses the survey's entries: `path`, `characters`, and `symlink_to` when linked. Markdown gives
|
|
13
|
+
`outline`, with its headings and top-level list items, and any `description` and `opening_line` as in
|
|
14
|
+
list-candidate-files. Explicitly requested test-data files and skill references receive outlines too: you chose
|
|
15
|
+
them, and you judge relevance. Non-Markdown text gives path and size alone; open it only if needed.
|
|
16
|
+
|
|
17
|
+
The full rendered result uses the survey's byte budget. `outlines_cut` names shortened outlines, whose line-range
|
|
18
|
+
markers show where to read needed items. `outlines_left_out` names files whose outlines were omitted: request
|
|
19
|
+
fewer paths to recover them. Root entry files retain their outlines and can exceed the budget on their own;
|
|
20
|
+
if one file is still too large, read only its needed headings or line ranges. A result with cuts or omissions
|
|
21
|
+
is incomplete; never treat it as a complete reading of the requested files.
|
|
@@ -2,12 +2,12 @@ Asks you to assess every member of principle ID and the set as a whole. Run it a
|
|
|
2
2
|
`show-principle` reports a member changed, unassessed, locator_lost or unavailable.
|
|
3
3
|
|
|
4
4
|
`start-audit` itself writes nothing. `submit-answer` writes the audit record, `.principles/audits/ID.json`: a full audit
|
|
5
|
-
writes it
|
|
6
|
-
|
|
7
|
-
before you submit the correction that reports it, or the assessment is refused as `stale_request`, as is an
|
|
8
|
-
`basis`, whose `basis.last_completed_revision` names the record it follows
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
writes it open when its assessment has findings, completed once it has none or its correction is accepted. In git,
|
|
6
|
+
commit each completed record, as `files_to_commit` lists it. In a full audit, make each fix after the assessment is
|
|
7
|
+
accepted and before you submit the correction that reports it, or the assessment is refused as `stale_request`, as is an
|
|
8
|
+
edited `basis`, whose `basis.last_completed_revision` names the record it follows. The audit judges the text now: a
|
|
9
|
+
problem no completed audit recorded and fixed before `start-audit` is not recorded, and a deferred or accepted finding
|
|
10
|
+
fixed since is decided `resolved`. To record one, commit a revert, run the audit, and redo it in the correction.
|
|
11
11
|
|
|
12
12
|
It refuses with `broken_members` while a member cannot be found or read, grouped by file in `missing_files`. A checked
|
|
13
13
|
member carries `check_since_last_audit`, and `check_hidden_characters` if its check hides any. `mapped_elsewhere` shows
|
|
@@ -53,8 +53,8 @@ hook names, and anything under an invoked or always activation or in a one-membe
|
|
|
53
53
|
Use `--member MEMBER` when one member was edited but still says the same thing, as `list-member-problems --help`
|
|
54
54
|
describes; without it, `list-member-problems --short` repeats the edit until a full audit. Its request shows the
|
|
55
55
|
`baseline_commit` it was last judged at, `member_lines` then and now (or a large member's `changed_region`,
|
|
56
|
-
`context_lines` and `from_line`, or `read_instead`), `first_changed_lines
|
|
57
|
-
`deferred_findings` and `accepted_findings
|
|
56
|
+
`context_lines` and `from_line`, or `read_instead`), `first_changed_lines`, `read_the_change`, `check_instruction` and
|
|
57
|
+
the member's `deferred_findings` and `accepted_findings`; its `question` asks for `meaning_kept`. This tool checks both
|
|
58
58
|
quotes. An id near a mapped one is refused with `unknown_member`, naming it under `did_you_mean`. A one-member audit
|
|
59
59
|
writes the record once its answer is accepted, keeping the edit in its `acknowledgements`; commit it. It is refused with
|
|
60
60
|
`cannot_acknowledge` outside git, while an audit is open, and for a member no completed audit assessed, whose baseline
|
|
@@ -64,5 +64,5 @@ full audit's correction fixed carries `audit_base_commit`: judge only the change
|
|
|
64
64
|
|
|
65
65
|
## Outside git
|
|
66
66
|
|
|
67
|
-
In a project outside git,
|
|
68
|
-
|
|
67
|
+
In a project outside git, the open record also keeps what the audit began from. Until the accepted correction completes
|
|
68
|
+
it, it keeps the prior findings to list again; one opened by an older version of this tool kept none.
|
|
@@ -1,56 +1,53 @@
|
|
|
1
|
-
Gives your answer
|
|
2
|
-
FILE`; `--file -` reads stdin. This tool writes audit records
|
|
3
|
-
a full audit, make each fix after the assessment is accepted
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
`commit_message_to_replace` says, commits only those, stopping during an unfinished merge. In or out of git,
|
|
39
|
-
`cited_files_missing` names each file the record cites that no longer exists, which `files_to_commit` leaves out though
|
|
40
|
-
the record still points at it. If HEAD moved but no commit touched one, `head_moved_past_base` gives `base_commit` and
|
|
41
|
-
`head`. If its fixes changed a file another principle also maps, `other_principles_with_changed_members` names each such
|
|
42
|
-
principle and its members in fixed findings' files, by `id` with the `state` `list-member-problems` gives: `changed`
|
|
43
|
-
when its text now differs from its baseline, or `locator_lost` or `unavailable` when the fix broke where this tool finds
|
|
44
|
-
it, which its `repair_with` on `show-principle ID` repairs. Then re-audit that principle, or acknowledge a member's edit
|
|
45
|
-
with `start-audit ID --member MEMBER`. A changed file no fixed finding names is not checked.
|
|
1
|
+
Gives your answer, filled from a `response_template`, to the request its `request_id` names; a REQUEST_ID you give must
|
|
2
|
+
match. Pass a JSON FILE outside the project with `--file FILE`; `--file -` reads stdin. This tool writes audit records
|
|
3
|
+
at `.principles/audits/ID.json`, never member guidance. In a full audit, make each fix after the assessment is accepted
|
|
4
|
+
and before you submit the correction that reports it; earlier fixes cause `stale_request` before an assessment's shape
|
|
5
|
+
check. A completed full audit or acknowledgement after an assessment/correction request causes
|
|
6
|
+
`audit_completed_since_request`, protecting the newer record and its findings: run `list-open-findings ID`, then start
|
|
7
|
+
again. Keep `basis` unchanged; `last_completed_revision` identifies its preceding record. An identical completed-answer
|
|
8
|
+
retry writes nothing; an assessment whose correction completed is refused.
|
|
46
9
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
`claimed_change_missing` when a listed role and check are as they were; `files_to_commit` names the map. An added member
|
|
52
|
-
gets no baseline: `members_added_awaiting_assessment` names it for the next full audit. Outside git, defer the finding:
|
|
53
|
-
an entry is refused as `map_entries_need_git`, an added member as `stale_map`.
|
|
10
|
+
After prior request checks, a Git-based assessment/correction expires at a committed current-ID map gap on captured
|
|
11
|
+
HEAD's first-parent line (`stale_request`), even after identical recreation; start anew. Unrelated commits are allowed.
|
|
12
|
+
Unverifiable continuity (missing history/tree or base off that line) gives `git_history_unavailable`: restore complete
|
|
13
|
+
history/access or start a new audit on this branch. Requests with no Git base keep their existing behavior.
|
|
54
14
|
|
|
55
|
-
|
|
56
|
-
|
|
15
|
+
An observed assessment may give `observed_at`, the sighting's time to the second (for example `2026-11-01T09:30:00Z`, or
|
|
16
|
+
with an offset such as `+05:30`, kept as the same instant in UTC); absent or null uses this audit's time. When the
|
|
17
|
+
sighting is a dated record you read during this audit, `observed_at` is the record's date, not when you read it. Wrong
|
|
18
|
+
format, dates after the answer or any date on not_observed, even null, cause `invalid_answer`. An observation judged
|
|
19
|
+
afresh that copies the last audit word-for-word causes `observation_repeats_last_audit` unless `observed_at` matches
|
|
20
|
+
that sighting or is null. Keep its date for a retained sighting; reword a later one, using null for this audit. Reworded
|
|
21
|
+
text is not judged. An evidence/`recorded_at` location refusal (such as `ambiguous_passage`) or `check_result` refusal
|
|
22
|
+
(`invalid_check_result`) retains its code, any `path` and repair, names whose evidence/check failed, and gives `fields`
|
|
23
|
+
with each `problem` and JSON `pointer` into your answer. `invalid_answer` names fields ending in another template's
|
|
24
|
+
placeholder; use this template or reword the ending. Set correction `action` to fixed, deferred, accepted or disagreed;
|
|
25
|
+
else `invalid_disposition` names the finding. A deferred disposition may give `waits_on`, one line naming whom it waits
|
|
26
|
+
on and to decide what, printed by `list-open-findings`. Null is allowed on any action; text on another action or
|
|
27
|
+
multiple lines causes `invalid_disposition`. The tool records when it was asked; never send that time. For a legacy
|
|
28
|
+
prior finding, `still_holds` may supply `first_raised_at` (that audit's `audited_at`) and `raised_in` (full commit sha)
|
|
29
|
+
together. Only that commit's `.principles/audits/ID.json` or earlier `.memeplex/audits/ID.json` is read; it must leave
|
|
30
|
+
the same finding deferred/accepted. Judge identity yourself. Refusals explain repairs: `raised_in_not_found` (also
|
|
31
|
+
outside git), `raised_in_unreadable`, `raised_in_lacks_finding`, `raised_in_time_differs`, `first_raised_not_earlier`
|
|
32
|
+
(date must precede stored time). Completed full audits list own/kept deferred or accepted IDs in `open_findings`,
|
|
33
|
+
fixed/resolved IDs in `resolved_findings`, and each closed prior finding's decision/reason in `prior_findings_closed`.
|
|
34
|
+
Disagreed/withdrawn findings are in neither open nor resolved. In git, `commits_since_base` lists commits touching each
|
|
35
|
+
member's file; uncommitted fixes have an empty list. `files_to_commit` lists their files; `commit_with` commits only
|
|
36
|
+
those, stopping during an unfinished merge. Replace its `-m` default as `commit_message_to_replace` says.
|
|
37
|
+
`cited_files_missing` lists missing cited files excluded from `files_to_commit`; record references remain. If HEAD moved
|
|
38
|
+
without touching a member, `head_moved_past_base` gives `base_commit` and `head`. If its fixes changed a file another
|
|
39
|
+
principle also maps, `other_principles_with_changed_members` names each such principle and its members in fixed
|
|
40
|
+
findings' files, by `id` with the `state` `list-member-problems` gives: `changed` when its text now differs from its
|
|
41
|
+
baseline, or `locator_lost` or `unavailable` when the fix broke where this tool finds it, which its `repair_with` on
|
|
42
|
+
`show-principle ID` repairs. Then re-audit that principle, or acknowledge a member's edit with `start-audit ID --member
|
|
43
|
+
MEMBER`. A changed file no fixed finding names is not checked. `correction_recovery` says what to retain before fixes;
|
|
44
|
+
see `show-answer-check --help` for unchanged-input Git replay.
|
|
45
|
+
|
|
46
|
+
In git, this tool reads the map at the audit base: fixed dispositions declare roles/checks in `changed_map_entries`,
|
|
47
|
+
text/additions in `changed_members`, removals in `removed_members`. `invalid_removed_members` rejects invalid removal
|
|
48
|
+
claims; `empty_correction_map` requires a survivor/replacement. Source files stay intact.
|
|
49
|
+
`claimed_change_missing` rejects unchanged entries; `members_added_awaiting_assessment` lack baselines.
|
|
50
|
+
Role/removal claims require git (`map_entries_need_git`). Full rules: correction question and `show-answer-check --help`.
|
|
51
|
+
|
|
52
|
+
For a `start-audit --member` request, `quote_not_found` refuses an `old_line` or `new_line` not a line only its side
|
|
53
|
+
holds, or "" where `first_changed_lines` is not, and one left out reads as printed; else it prints `acknowledged`.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Use these requested Markdown outlines to continue the survey; decide which files and rules matter to the task.
|
|
2
|
+
Non-Markdown files show their path and size alone, not their contents; open one only if needed.
|
|
3
|
+
Each inventory.unreadable entry gives the failed path and its repair; ignored files remain unread.
|
|
4
|
+
The whole result is budgeted. inventory.outlines_cut names files with shortened list items; their
|
|
5
|
+
`(N more, lines A-B)` entries give the lines to read if needed. inventory.outlines_left_out names files whose
|
|
6
|
+
outlines are omitted, so the request is incomplete. Run show-candidate-outlines with fewer paths to recover
|
|
7
|
+
needed outlines. If one file still exceeds the budget, read only the needed headings or line ranges from it.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
%{findings}.%{without_waits_on}%{write_ups} %{returns} until a full audit decides %{them}.
|
|
2
2
|
%{when} list %{them}, then raise in one short message any waiting on the user or no one named. Judge by
|
|
3
3
|
context, such as git's user name, whether a named person is your user; if unsure, raise it. Do not raise any
|
|
4
|
-
waiting on someone else, or that you can see you raised in this conversation.
|
|
4
|
+
waiting on someone else, or that you can see you raised in this conversation. Whom %{each} waits on:
|
|
5
5
|
%{command}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Every line loaded at session start costs every session's context, so load only what the task needs.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
The principles skill, /principles, is where to start with these members; each command's output says what to do next.
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: principles
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sidu Ponnappa
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
12
|
description: |
|
|
13
13
|
Principles helps teams keep an agent's operating guidance consistent as their harness evolves.
|
|
@@ -39,9 +39,12 @@ files:
|
|
|
39
39
|
- lib/principles/controllers/command.rb
|
|
40
40
|
- lib/principles/controllers/correction.rb
|
|
41
41
|
- lib/principles/controllers/full_audit_request.rb
|
|
42
|
+
- lib/principles/controllers/guidance_search_paths.rb
|
|
42
43
|
- lib/principles/controllers/help.rb
|
|
43
44
|
- lib/principles/controllers/inventory.rb
|
|
44
45
|
- lib/principles/controllers/mapping.rb
|
|
46
|
+
- lib/principles/controllers/member_acknowledgement.rb
|
|
47
|
+
- lib/principles/controllers/member_addition.rb
|
|
45
48
|
- lib/principles/controllers/member_entries.rb
|
|
46
49
|
- lib/principles/controllers/member_problems_report.rb
|
|
47
50
|
- lib/principles/controllers/members_a_commit_changed.rb
|
|
@@ -49,38 +52,54 @@ files:
|
|
|
49
52
|
- lib/principles/controllers/meta_principle_setup.rb
|
|
50
53
|
- lib/principles/controllers/repoint.rb
|
|
51
54
|
- lib/principles/controllers/running_tool.rb
|
|
55
|
+
- lib/principles/controllers/survey.rb
|
|
52
56
|
- lib/principles/data/audit_files.rb
|
|
53
57
|
- lib/principles/data/bounded_file.rb
|
|
54
58
|
- lib/principles/data/candidate_files_found.rb
|
|
55
59
|
- lib/principles/data/command-steps.json
|
|
56
60
|
- lib/principles/data/command_steps_file.rb
|
|
61
|
+
- lib/principles/data/committed_tree.rb
|
|
57
62
|
- lib/principles/data/expected_type.rb
|
|
63
|
+
- lib/principles/data/first_parent_log.rb
|
|
64
|
+
- lib/principles/data/first_parent_range.rb
|
|
65
|
+
- lib/principles/data/git_command.rb
|
|
66
|
+
- lib/principles/data/guidance_search_paths_file.rb
|
|
58
67
|
- lib/principles/data/ignored_by_git.rb
|
|
59
68
|
- lib/principles/data/json_text.rb
|
|
60
69
|
- lib/principles/data/known_fields.rb
|
|
61
70
|
- lib/principles/data/linked_path.rb
|
|
62
71
|
- lib/principles/data/map_files.rb
|
|
63
72
|
- lib/principles/data/principle_id.rb
|
|
73
|
+
- lib/principles/data/principles_directory.rb
|
|
64
74
|
- lib/principles/data/principles_subfolder.rb
|
|
65
75
|
- lib/principles/data/project_files.rb
|
|
66
76
|
- lib/principles/data/project_root.rb
|
|
67
77
|
- lib/principles/data/repository.rb
|
|
78
|
+
- lib/principles/data/requested_candidate_files.rb
|
|
68
79
|
- lib/principles/data/running_version.rb
|
|
69
80
|
- lib/principles/data/schema_check.rb
|
|
70
81
|
- lib/principles/data/schemas/acknowledgement-answer.schema.json
|
|
82
|
+
- lib/principles/data/schemas/acknowledgements-answer.schema.json
|
|
71
83
|
- lib/principles/data/schemas/answer-guide.schema.json
|
|
72
84
|
- lib/principles/data/schemas/assessment-answer.schema.json
|
|
73
85
|
- lib/principles/data/schemas/audit-record.schema.json
|
|
74
86
|
- lib/principles/data/schemas/command-steps.schema.json
|
|
75
87
|
- lib/principles/data/schemas/correction-answer-guide.schema.json
|
|
76
88
|
- lib/principles/data/schemas/correction-answer.schema.json
|
|
89
|
+
- lib/principles/data/schemas/guidance-search-paths.schema.json
|
|
90
|
+
- lib/principles/data/schemas/member-map-history.schema.json
|
|
77
91
|
- lib/principles/data/schemas/member-map.schema.json
|
|
78
92
|
- lib/principles/data/schemas/repointing-answer.schema.json
|
|
93
|
+
- lib/principles/data/verified_head.rb
|
|
79
94
|
- lib/principles/error.rb
|
|
80
95
|
- lib/principles/invocation_options.rb
|
|
96
|
+
- lib/principles/list_open_findings_options.rb
|
|
81
97
|
- lib/principles/models/accepted_loading.rb
|
|
98
|
+
- lib/principles/models/acknowledged_check.rb
|
|
82
99
|
- lib/principles/models/acknowledgement.rb
|
|
100
|
+
- lib/principles/models/acknowledgement_left_as_printed.rb
|
|
83
101
|
- lib/principles/models/acknowledgement_refusal.rb
|
|
102
|
+
- lib/principles/models/acknowledgements.rb
|
|
84
103
|
- lib/principles/models/activation.rb
|
|
85
104
|
- lib/principles/models/agent_loads.rb
|
|
86
105
|
- lib/principles/models/answer_fields.rb
|
|
@@ -92,14 +111,15 @@ files:
|
|
|
92
111
|
- lib/principles/models/assessment_left_as_printed.rb
|
|
93
112
|
- lib/principles/models/assessment_report.rb
|
|
94
113
|
- lib/principles/models/audit.rb
|
|
114
|
+
- lib/principles/models/audit_entry_protecting_map.rb
|
|
95
115
|
- lib/principles/models/audit_record.rb
|
|
96
116
|
- lib/principles/models/audit_records.rb
|
|
97
117
|
- lib/principles/models/audit_start.rb
|
|
98
118
|
- lib/principles/models/audited_member_lines.rb
|
|
99
119
|
- lib/principles/models/candidate_files.rb
|
|
100
120
|
- lib/principles/models/candidate_inventory.rb
|
|
101
|
-
- lib/principles/models/candidate_listing.rb
|
|
102
121
|
- lib/principles/models/candidate_outline.rb
|
|
122
|
+
- lib/principles/models/captured_head.rb
|
|
103
123
|
- lib/principles/models/carried_assessments.rb
|
|
104
124
|
- lib/principles/models/carried_member.rb
|
|
105
125
|
- lib/principles/models/check_since_last_audit.rb
|
|
@@ -112,6 +132,7 @@ files:
|
|
|
112
132
|
- lib/principles/models/dated_line.rb
|
|
113
133
|
- lib/principles/models/decided_prior_findings.rb
|
|
114
134
|
- lib/principles/models/declared_map_changes.rb
|
|
135
|
+
- lib/principles/models/declared_member_removals.rb
|
|
115
136
|
- lib/principles/models/disposition.rb
|
|
116
137
|
- lib/principles/models/entry_file.rb
|
|
117
138
|
- lib/principles/models/entry_files.rb
|
|
@@ -123,6 +144,8 @@ files:
|
|
|
123
144
|
- lib/principles/models/first_raised_claim.rb
|
|
124
145
|
- lib/principles/models/fix_only_fields.rb
|
|
125
146
|
- lib/principles/models/frontmatter_fields.rb
|
|
147
|
+
- lib/principles/models/guidance_search_path.rb
|
|
148
|
+
- lib/principles/models/guidance_search_paths.rb
|
|
126
149
|
- lib/principles/models/hook_commands.rb
|
|
127
150
|
- lib/principles/models/ignored_candidates.rb
|
|
128
151
|
- lib/principles/models/instruction_named.rb
|
|
@@ -134,9 +157,12 @@ files:
|
|
|
134
157
|
- lib/principles/models/last_completed_revision.rb
|
|
135
158
|
- lib/principles/models/left_as_printed.rb
|
|
136
159
|
- lib/principles/models/line_span.rb
|
|
160
|
+
- lib/principles/models/list_member_problems_check.rb
|
|
161
|
+
- lib/principles/models/listed_members.rb
|
|
137
162
|
- lib/principles/models/loaded_files.rb
|
|
138
163
|
- lib/principles/models/loading_decision.rb
|
|
139
164
|
- lib/principles/models/loading_facts.rb
|
|
165
|
+
- lib/principles/models/loading_scope.rb
|
|
140
166
|
- lib/principles/models/loads_to_check.rb
|
|
141
167
|
- lib/principles/models/locate_refusal.rb
|
|
142
168
|
- lib/principles/models/located_text.rb
|
|
@@ -151,14 +177,18 @@ files:
|
|
|
151
177
|
- lib/principles/models/member_hashes_as_written.rb
|
|
152
178
|
- lib/principles/models/member_history.rb
|
|
153
179
|
- lib/principles/models/member_lines.rb
|
|
180
|
+
- lib/principles/models/member_loading_scopes.rb
|
|
154
181
|
- lib/principles/models/member_loads.rb
|
|
182
|
+
- lib/principles/models/member_mapping_run.rb
|
|
155
183
|
- lib/principles/models/member_moves.rb
|
|
156
184
|
- lib/principles/models/member_problems.rb
|
|
185
|
+
- lib/principles/models/member_region.rb
|
|
157
186
|
- lib/principles/models/member_repair_moves.rb
|
|
158
187
|
- lib/principles/models/member_sighting.rb
|
|
159
188
|
- lib/principles/models/member_snapshots.rb
|
|
160
189
|
- lib/principles/models/member_state.rb
|
|
161
190
|
- lib/principles/models/members_elsewhere.rb
|
|
191
|
+
- lib/principles/models/members_in_consecutive_sections.rb
|
|
162
192
|
- lib/principles/models/members_sharing_lines.rb
|
|
163
193
|
- lib/principles/models/meta_principle.rb
|
|
164
194
|
- lib/principles/models/missing_files.rb
|
|
@@ -174,8 +204,15 @@ files:
|
|
|
174
204
|
- lib/principles/models/placement.rb
|
|
175
205
|
- lib/principles/models/plain_text_file.rb
|
|
176
206
|
- lib/principles/models/principle.rb
|
|
207
|
+
- lib/principles/models/principle_file_revision.rb
|
|
177
208
|
- lib/principles/models/principle_history.rb
|
|
209
|
+
- lib/principles/models/principle_lineage.rb
|
|
210
|
+
- lib/principles/models/principle_map_revision.rb
|
|
211
|
+
- lib/principles/models/principle_mapping_history.rb
|
|
178
212
|
- lib/principles/models/principle_members.rb
|
|
213
|
+
- lib/principles/models/principle_predecessor.rb
|
|
214
|
+
- lib/principles/models/principle_publication.rb
|
|
215
|
+
- lib/principles/models/principle_revision.rb
|
|
179
216
|
- lib/principles/models/principles_folder_move.rb
|
|
180
217
|
- lib/principles/models/principles_package.rb
|
|
181
218
|
- lib/principles/models/prior_decision_fields.rb
|
|
@@ -205,15 +242,19 @@ files:
|
|
|
205
242
|
- lib/principles/models/skill_loads.rb
|
|
206
243
|
- lib/principles/models/still_holds_restatement.rb
|
|
207
244
|
- lib/principles/models/submitted_answer.rb
|
|
245
|
+
- lib/principles/models/survey_search_paths.rb
|
|
208
246
|
- lib/principles/models/template_placeholders.rb
|
|
209
247
|
- lib/principles/models/text_size.rb
|
|
210
248
|
- lib/principles/models/text_within.rb
|
|
211
249
|
- lib/principles/models/unchecked_members.rb
|
|
250
|
+
- lib/principles/models/uncommitted_files.rb
|
|
212
251
|
- lib/principles/models/uncommitted_outside_the_map.rb
|
|
252
|
+
- lib/principles/models/unknown_principle.rb
|
|
213
253
|
- lib/principles/models/waits_on.rb
|
|
214
254
|
- lib/principles/models/write_up_opening.rb
|
|
215
255
|
- lib/principles/models/write_up_pointer.rb
|
|
216
256
|
- lib/principles/models/write_up_repoint.rb
|
|
257
|
+
- lib/principles/positional_arguments.rb
|
|
217
258
|
- lib/principles/prose_list.rb
|
|
218
259
|
- lib/principles/session_start_options.rb
|
|
219
260
|
- lib/principles/start_audit_options.rb
|
|
@@ -222,19 +263,24 @@ files:
|
|
|
222
263
|
- lib/principles/views/acknowledged_since_last_audit.rb
|
|
223
264
|
- lib/principles/views/acknowledgement_result.rb
|
|
224
265
|
- lib/principles/views/activation_in_hand.rb
|
|
266
|
+
- lib/principles/views/added_member.rb
|
|
225
267
|
- lib/principles/views/answer_head.rb
|
|
268
|
+
- lib/principles/views/answered_request.rb
|
|
226
269
|
- lib/principles/views/assessed_members.rb
|
|
227
270
|
- lib/principles/views/assessment_request.rb
|
|
228
271
|
- lib/principles/views/audit_changes.rb
|
|
229
272
|
- lib/principles/views/audit_commit.rb
|
|
230
273
|
- lib/principles/views/audit_result.rb
|
|
231
274
|
- lib/principles/views/candidate_files_result.rb
|
|
275
|
+
- lib/principles/views/candidate_outlines_result.rb
|
|
232
276
|
- lib/principles/views/check_notes.rb
|
|
233
277
|
- lib/principles/views/check_result_template.rb
|
|
278
|
+
- lib/principles/views/consecutive_sections_elsewhere.rb
|
|
234
279
|
- lib/principles/views/correction_request.rb
|
|
235
280
|
- lib/principles/views/diff_since_last_audit.rb
|
|
236
281
|
- lib/principles/views/findings_result.rb
|
|
237
282
|
- lib/principles/views/first_audit.rb
|
|
283
|
+
- lib/principles/views/guidance_search_paths_result.rb
|
|
238
284
|
- lib/principles/views/help.rb
|
|
239
285
|
- lib/principles/views/instruction.rb
|
|
240
286
|
- lib/principles/views/invocation.rb
|
|
@@ -244,12 +290,15 @@ files:
|
|
|
244
290
|
- lib/principles/views/loads_to_check_result.rb
|
|
245
291
|
- lib/principles/views/map_added_to.rb
|
|
246
292
|
- lib/principles/views/map_result.rb
|
|
293
|
+
- lib/principles/views/maps_needing_members_or_audit.rb
|
|
247
294
|
- lib/principles/views/member_change_since_baseline.rb
|
|
248
295
|
- lib/principles/views/member_repairs.rb
|
|
296
|
+
- lib/principles/views/member_row.rb
|
|
249
297
|
- lib/principles/views/members_a_commit_changed.rb
|
|
250
298
|
- lib/principles/views/members_with_no_baseline.rb
|
|
251
299
|
- lib/principles/views/meta_principle_passage.rb
|
|
252
300
|
- lib/principles/views/meta_principle_result.rb
|
|
301
|
+
- lib/principles/views/new_loading_scope.rb
|
|
253
302
|
- lib/principles/views/one_member_check_result_template.rb
|
|
254
303
|
- lib/principles/views/open_findings_elsewhere_result.rb
|
|
255
304
|
- lib/principles/views/open_findings_line.rb
|
|
@@ -265,7 +314,9 @@ files:
|
|
|
265
314
|
- lib/principles/views/problem_lines.rb
|
|
266
315
|
- lib/principles/views/problem_result.rb
|
|
267
316
|
- lib/principles/views/prompts.rb
|
|
317
|
+
- lib/principles/views/prompts/acknowledge-a-change/report-the-exit-status-its-own-listing-gives.md
|
|
268
318
|
- lib/principles/views/prompts/acknowledge-a-change/run-the-check-and-report-it-passing.md
|
|
319
|
+
- lib/principles/views/prompts/acknowledge-a-change/say-whether-each-change-keeps-its-meaning.md
|
|
269
320
|
- lib/principles/views/prompts/acknowledge-a-change/say-whether-the-change-keeps-the-meaning.md
|
|
270
321
|
- lib/principles/views/prompts/answer-any-judgement-request/what-a-self-audit-cannot-show.md
|
|
271
322
|
- lib/principles/views/prompts/assess-every-member/answer-guide.json
|
|
@@ -298,9 +349,13 @@ files:
|
|
|
298
349
|
- lib/principles/views/prompts/assess-every-member/why-each-member-is-judged-again.md
|
|
299
350
|
- lib/principles/views/prompts/dispose-of-each-finding/answer-guide.json
|
|
300
351
|
- lib/principles/views/prompts/dispose-of-each-finding/fix-or-record-each-finding.md
|
|
352
|
+
- lib/principles/views/prompts/dispose-of-each-finding/retain-assessment-and-correction.md
|
|
353
|
+
- lib/principles/views/prompts/find-a-principle-to-map/ask-about-other-guidance-search-paths.md
|
|
301
354
|
- lib/principles/views/prompts/find-a-principle-to-map/ask-the-owner-after-the-table.md
|
|
302
355
|
- lib/principles/views/prompts/find-a-principle-to-map/ask-which-principle-to-map.md
|
|
356
|
+
- lib/principles/views/prompts/find-a-principle-to-map/choose-an-existing-or-new-principle.md
|
|
303
357
|
- lib/principles/views/prompts/find-a-principle-to-map/choose-one-principle.md
|
|
358
|
+
- lib/principles/views/prompts/find-a-principle-to-map/compare-with-mapped-principles.md
|
|
304
359
|
- lib/principles/views/prompts/find-a-principle-to-map/leave-test-data-out-of-the-survey.md
|
|
305
360
|
- lib/principles/views/prompts/find-a-principle-to-map/owner-ask-ignored-folders.md
|
|
306
361
|
- lib/principles/views/prompts/find-a-principle-to-map/owner-ask-ignored.md
|
|
@@ -308,8 +363,10 @@ files:
|
|
|
308
363
|
- lib/principles/views/prompts/find-a-principle-to-map/owner-ask-untracked.md
|
|
309
364
|
- lib/principles/views/prompts/find-a-principle-to-map/read-a-cut-section-back.md
|
|
310
365
|
- lib/principles/views/prompts/find-a-principle-to-map/read-left-out-files.md
|
|
366
|
+
- lib/principles/views/prompts/find-a-principle-to-map/survey-a-later-range.md
|
|
311
367
|
- lib/principles/views/prompts/find-a-principle-to-map/what-each-command-writes.md
|
|
312
368
|
- lib/principles/views/prompts/find-a-principle-to-map/where-the-inventory-looks.md
|
|
369
|
+
- lib/principles/views/prompts/learn-what-a-command-does/add-guidance-search-path.md
|
|
313
370
|
- lib/principles/views/prompts/learn-what-a-command-does/add-member.md
|
|
314
371
|
- lib/principles/views/prompts/learn-what-a-command-does/change-activation.md
|
|
315
372
|
- lib/principles/views/prompts/learn-what-a-command-does/change-description.md
|
|
@@ -322,15 +379,19 @@ files:
|
|
|
322
379
|
- lib/principles/views/prompts/learn-what-a-command-does/list-open-findings.md
|
|
323
380
|
- lib/principles/views/prompts/learn-what-a-command-does/list-principles.md
|
|
324
381
|
- lib/principles/views/prompts/learn-what-a-command-does/move-member.md
|
|
382
|
+
- lib/principles/views/prompts/learn-what-a-command-does/remove-guidance-search-path.md
|
|
325
383
|
- lib/principles/views/prompts/learn-what-a-command-does/remove-member-check.md
|
|
326
384
|
- lib/principles/views/prompts/learn-what-a-command-does/remove-member.md
|
|
385
|
+
- lib/principles/views/prompts/learn-what-a-command-does/remove-principle.md
|
|
327
386
|
- lib/principles/views/prompts/learn-what-a-command-does/select-the-project-root.md
|
|
328
387
|
- lib/principles/views/prompts/learn-what-a-command-does/show-answer-check.md
|
|
329
388
|
- lib/principles/views/prompts/learn-what-a-command-does/show-audit.md
|
|
389
|
+
- lib/principles/views/prompts/learn-what-a-command-does/show-candidate-outlines.md
|
|
330
390
|
- lib/principles/views/prompts/learn-what-a-command-does/show-meta-principle-passage.md
|
|
331
391
|
- lib/principles/views/prompts/learn-what-a-command-does/show-principle.md
|
|
332
392
|
- lib/principles/views/prompts/learn-what-a-command-does/start-audit.md
|
|
333
393
|
- lib/principles/views/prompts/learn-what-a-command-does/submit-answer.md
|
|
394
|
+
- lib/principles/views/prompts/read-requested-outlines/continue-the-survey.md
|
|
334
395
|
- lib/principles/views/prompts/repoint-write-ups/point-each-moved-write-up-at-its-new-place.md
|
|
335
396
|
- lib/principles/views/prompts/report-after-a-commit/it-refused-after-the-commits-touched-the-maps.md
|
|
336
397
|
- lib/principles/views/prompts/report-after-a-commit/others-are-still-listed.md
|
|
@@ -348,11 +409,13 @@ files:
|
|
|
348
409
|
- lib/principles/views/prompts/set-principles-up/place-the-passage-with-the-user.md
|
|
349
410
|
- lib/principles/views/prompts/set-principles-up/what-the-passage-presumes.md
|
|
350
411
|
- lib/principles/views/prompts/start-a-session/act-on-the-open-findings.md
|
|
412
|
+
- lib/principles/views/prompts/start-a-session/every-loaded-line-costs-every-session.md
|
|
351
413
|
- lib/principles/views/prompts/start-a-session/it-returns-after-each-clear-or-compaction-too.md
|
|
352
414
|
- lib/principles/views/prompts/start-a-session/it-returns-at-each-session-start.md
|
|
353
415
|
- lib/principles/views/prompts/start-a-session/raise-them-at-the-next-pause.md
|
|
354
416
|
- lib/principles/views/prompts/start-a-session/raise-them-before-the-first-task.md
|
|
355
417
|
- lib/principles/views/prompts/start-a-session/see-the-earlier-line.md
|
|
418
|
+
- lib/principles/views/prompts/start-a-session/start-with-the-principles-skill.md
|
|
356
419
|
- lib/principles/views/record_waiting_on_an_upgrade.rb
|
|
357
420
|
- lib/principles/views/repoint_result.rb
|
|
358
421
|
- lib/principles/views/request_part.rb
|
|
@@ -380,7 +443,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
380
443
|
- !ruby/object:Gem::Version
|
|
381
444
|
version: '0'
|
|
382
445
|
requirements: []
|
|
383
|
-
rubygems_version: 3.6.
|
|
446
|
+
rubygems_version: 3.6.9
|
|
384
447
|
specification_version: 4
|
|
385
448
|
summary: Maps and audits agent guidance to catch harness drift and debt
|
|
386
449
|
test_files: []
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# typed: strict
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
require_relative "candidate_files"
|
|
5
|
-
require_relative "ignored_candidates"
|
|
6
|
-
|
|
7
|
-
module Principles
|
|
8
|
-
# The domain logic, and the mediation of persistence. models/CLAUDE.md owns the boundary.
|
|
9
|
-
module Models
|
|
10
|
-
# The inventory of candidate files as list-candidate-files lists it: the instruction files agent hosts load
|
|
11
|
-
# by convention, the other files counted by directory, the listed files that look like test data, and in git
|
|
12
|
-
# the ignored ones, unread, each folder git ignores counted once.
|
|
13
|
-
class CandidateListing
|
|
14
|
-
#: (Hash[String, untyped], text_of: ^(String) -> String) -> void
|
|
15
|
-
def initialize(inventory, text_of:)
|
|
16
|
-
@inventory = inventory
|
|
17
|
-
@text_of = text_of
|
|
18
|
-
freeze
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
#: () -> Hash[String, untyped]
|
|
22
|
-
def to_h
|
|
23
|
-
listed = @inventory.except("ignored", "ignored_ancestor_folders")
|
|
24
|
-
.merge(files.listing(@inventory.fetch("possibly_test_data")))
|
|
25
|
-
return listed unless @inventory.key?("ignored")
|
|
26
|
-
|
|
27
|
-
listed.merge(IgnoredCandidates.new(paths: @inventory.fetch("ignored"),
|
|
28
|
-
folders: @inventory.fetch("ignored_ancestor_folders")).listing)
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
# The outline of each listed file the survey reads, by path.
|
|
32
|
-
#: () -> Hash[String, CandidateOutline]
|
|
33
|
-
def outlines = files.outlines(@inventory.fetch("possibly_test_data"))
|
|
34
|
-
|
|
35
|
-
private
|
|
36
|
-
|
|
37
|
-
#: () -> CandidateFiles
|
|
38
|
-
def files = CandidateFiles.new(@inventory.fetch("files"), text_of: @text_of)
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|