principles 0.0.8 → 0.0.9

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 (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/LICENSE +1 -1
  4. data/README.md +38 -4
  5. data/lib/principles/controllers/audit.rb +4 -2
  6. data/lib/principles/controllers/inventory.rb +16 -6
  7. data/lib/principles/controllers/member_problems_report.rb +2 -2
  8. data/lib/principles/data/command-steps.json +4 -4
  9. data/lib/principles/data/repository.rb +7 -0
  10. data/lib/principles/data/running_version.rb +1 -1
  11. data/lib/principles/data/schemas/command-steps.schema.json +1 -1
  12. data/lib/principles/invocation_options.rb +1 -1
  13. data/lib/principles/models/findings_left_open.rb +9 -5
  14. data/lib/principles/models/open_finding.rb +9 -0
  15. data/lib/principles/models/project.rb +4 -0
  16. data/lib/principles/version.rb +2 -2
  17. data/lib/principles/views/findings_result.rb +14 -3
  18. data/lib/principles/views/open_findings_line.rb +82 -55
  19. data/lib/principles/views/principle_read_result.rb +11 -0
  20. data/lib/principles/views/problem_lines.rb +10 -12
  21. data/lib/principles/views/prompts/learn-what-a-command-does/list-open-findings.md +12 -12
  22. data/lib/principles/views/prompts/learn-what-a-command-does/list-principles.md +3 -0
  23. data/lib/principles/views/prompts/start-a-session/act-on-the-open-findings.md +1 -4
  24. data/principles.gemspec +1 -1
  25. metadata +3 -6
  26. data/lib/principles/views/prompts/start-a-session/every-loaded-line-costs-every-session.md +0 -1
  27. data/lib/principles/views/prompts/start-a-session/raise-them-at-the-next-pause.md +0 -1
  28. data/lib/principles/views/prompts/start-a-session/raise-them-before-the-first-task.md +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8e98b776d15564ce6916294e602c66190cfcba1a4b8d57e753046cb7b40393f
4
- data.tar.gz: 356d1df056b745a07468fea8b232071dc5d70aa35354c4d619a2372fd9818112
3
+ metadata.gz: 785d61506f1b88039760aeb882778f673f8e5fda6899b2d2342c85a05dcd7697
4
+ data.tar.gz: bb1162816bff966500599b71616c9cc2c4728045e9921033bf4afd09f6334645
5
5
  SHA512:
6
- metadata.gz: 6b8e75eb73552bda7cf2657e6b6f43c3bee70154f08bbe7dc8c4c8cfc5214f04acb2776fc6474f6dd1d9385161c4c56cc5dcdccbc10f15008a786117c4f3f991
7
- data.tar.gz: 0631dad42e55d982b506ad92d5c70ee3ce62d05a23a7778042443cc370ba92bbe8ac423b426852f6b520a972b43fdc0be13f92b076f55d9c5c5b44f3691bea3a
6
+ metadata.gz: 977238c0986a8a46b20522ebe7902286d42833304585dcb8fc0d235b878b5ce72c332e0aa141e5b10801e58d01d23ba6e54e59fb9e954574de77e72d8ae6112b
7
+ data.tar.gz: 901fe98c0d92386b7aadcbae0364119d956d0f2f9bfe64a405308d76bd412b79960050bad59c1122686d7ceefa8bd614628e3344740539c5ffdc135318f6e51e
data/CHANGELOG.md CHANGED
@@ -13,6 +13,32 @@ The agent's mechanics are the means, never the lead: do not open with "An agent
13
13
 
14
14
  ## Unreleased
15
15
 
16
+ ### Changed
17
+
18
+ - **Your agent raises open audit findings that wait on you in its first reply, instead of skimming past them.** The open-findings line `principles report-at-session-start` prints now names the oldest finding waiting on someone and what it needs, states git's `user.name` for the agent to judge whether that is you, and says to raise each in the first reply, since nothing else will. On this tool's own repository the line is 30% shorter than before.
19
+
20
+ ### Removed
21
+
22
+ - **Each session starts 110 bytes lighter.** `principles report-at-session-start` no longer restates the meta-principle line; it prints only lines naming a fact and a command.
23
+
24
+ ## [0.0.9] - 2026-11-21
25
+
26
+ ### Added
27
+
28
+ - **One command answers "what principles are in place, and what is each still waiting on?"** Run `principles list-principles --open-findings`: each principle's row adds its open findings, one line each, saying whom it waits on and how long it has been open, so an agent no longer joins `list-principles` with `list-open-findings` in a script. Without the flag, `list-principles` prints as before, about a fifth smaller than with it.
29
+
30
+ - **Install `principles` in Claude Code from its public repository.** Run `/plugin marketplace add realfastAI/principles`, then `/plugin install principles@realfastai`. The plugin's hooks report which mapped places changed as each session starts and after each commit, and its `setup-ruby` skill installs Ruby 3.4, asking you first, when none is found. The gem stays the install for a terminal or another harness.
31
+
32
+ ### Changed
33
+
34
+ - **The public repository's README now shows its images.** For publishers, every file under `images/` is published byte for byte at the same path in the public repository, and never added to the gem, so both READMEs share one copy. The leak check still reads an SVG as text, and leaves a binary raster image unread, since its compressed bytes can spell a refused word by chance.
35
+
36
+ - **A release can no longer stop half-done on an unclean public checkout.** For publishers, `bundle exec rake release`, the dry run included, now refuses before the gate and before tagging when the public repository's checkout has uncommitted or untracked files. It names each file and says to commit or remove them there.
37
+
38
+ - **The gem you install is built from the public repository's commit, so it matches the source you can read there.** Each release commits its public copy first, builds the gem from that commit, dated by it so a rebuild is byte-identical, and only then pushes; for publishers, `bundle exec rake release` checks before any step that the gem builds and installs from that copy, and a stopped release finishes by running it again, uploading nothing RubyGems already serves.
39
+
40
+ - **Licence scanners now recognise `LICENSE` as the Apache License 2.0.** It is the text exactly as Apache publishes it; the copyright line stays in `NOTICE`.
41
+
16
42
  ## [0.0.8] - 2026-11-20
17
43
 
18
44
  ### Added
data/LICENSE CHANGED
@@ -187,7 +187,7 @@
187
187
  same "printed page" as the copyright notice for easier
188
188
  identification within third-party archives.
189
189
 
190
- Copyright 2026 Sidu Ponnappa and Ontic Pte. Ltd. (realfast.ai)
190
+ Copyright [yyyy] [name of copyright owner]
191
191
 
192
192
  Licensed under the Apache License, Version 2.0 (the "License");
193
193
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,12 +1,44 @@
1
- # Principles
1
+ ![Six pocket compasses on white paper, every needle pointing the same way but one small red needle that has swung off course](https://raw.githubusercontent.com/realfastAI/principles/main/images/banner.webp)
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/principles.svg?icon=si%3Arubygems&icon_color=%23fafafa)](https://badge.fury.io/rb/principles)
3
+ # Harness Principles
4
4
 
5
- **Tighter harness, longer leash: agents you can leave running.**
5
+ <p>Built with ❤️ at&nbsp;<a href="https://realfast.ai"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/realfastAI/principles/main/images/realfast-logo-white.svg"><img src="https://raw.githubusercontent.com/realfastAI/principles/main/images/realfast-logo-ink.svg" alt="realfast" height="15"></picture></a></p>
6
+
7
+ [![Plugin](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FrealfastAI%2Fprinciples%2Fmain%2F.claude-plugin%2Fplugin.json&query=%24.version&label=plugin&prefix=v&color=e3120b)](#install) [![License](https://img.shields.io/github/license/realfastAI/principles)](LICENSE) ![Coverage](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/realfastAI/principles/main/badges/coverage.json) ![Specs](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/realfastAI/principles/main/badges/specs.json)
8
+
9
+ **Tighter harness, longer leash: trust the principles, loosen the supervision.**
10
+
11
+ Built for Claude Code. Codex is partly supported already, with full support coming soon, and Pi after that. Your principles are portable across harnesses that share the same context management vectors: Codex has no monitors, but shares almost every other vector with Claude Code, including `AGENTS.md`, skills and hooks.
12
+
13
+ ## Who is this for?
14
+
15
+ Principles is based on a dead simple idea - an easy to use CLI that helps an agent create and manage a map of all the snippets of text across the harness that work together to create its _operating principles_.
16
+
17
+ You'll get the most from it when:
18
+
19
+ - a team of people and their agents use the same harness and repo to do their work and need to establish shared SoPs.
20
+ - your agents _need_ to run for long stretches, and need their operating principles reinforced consistently across CLAUDE.md/AGENTS.md, skills, hooks and all the rest of the context management vectors a harness provides.
21
+
22
+ If your project has a single `CLAUDE.md` at its root, `principles` is overkill. You can read that one file and keep it consistent yourself. Come back when your rules start to spread.
23
+
24
+ Here is one of *realfast*'s projects, where an agent answers which principles are in place, how many places carry each, and which findings are still open:
25
+
26
+ ![An agent in Claude Code answering "what principles are in place already?" with a table of six mapped principles, the number of files carrying each, and their open findings](https://raw.githubusercontent.com/realfastAI/principles/main/images/principles-in-use.webp)
6
27
 
7
28
  ## Install
8
29
 
9
- Install the gem yourself. In Claude Code, the `!` prefix runs a shell command in your session:
30
+ In Claude Code, add this repository as a plugin marketplace, install the plugin, reload your plugins, and start:
31
+
32
+ ```
33
+ /plugin marketplace add realfastAI/principles
34
+ /plugin install principles@realfastai
35
+ /reload-plugins
36
+ /principles:principles
37
+ ```
38
+
39
+ `/principles:principles` starts your agent mapping your project's principles. From there it follows what each result tells it, so you never need to learn the commands. The plugin also adds hooks that report which mapped places changed as each session starts and after each commit, and a `setup-ruby` skill your agent follows, asking you first, when no Ruby 3.4 is found.
40
+
41
+ From a terminal, or for another harness, install the gem instead. In Claude Code, the `!` prefix runs a shell command in your session:
10
42
 
11
43
  ```
12
44
  ! gem install principles
@@ -102,6 +134,8 @@ The hook entries run `principles report-at-session-start` and `principles report
102
134
 
103
135
  The project grows out of two practices developed through use: **express intent**, keeping names and definitions current as understanding changes; and **collaboration through agents**, helping people align on shared work through the agents they each work with.
104
136
 
137
+ `principles` is built at [*realfast*](https://realfast.ai), where it has kept the harnesses of our own projects consistent for the past couple of months.
138
+
105
139
  ## Issues
106
140
 
107
141
  Report a bug or ask for a feature at [github.com/realfastAI/principles/issues](https://github.com/realfastAI/principles/issues).
@@ -38,8 +38,9 @@ module Principles
38
38
  def session_start_open_findings(source)
39
39
  records = open_records(nil)
40
40
  waiting = Models::FindingsLeftOpen.of(records).waiting_at(Time.now.utc)
41
+ not_found = Models::FindingWriteUps.of(@project, records).not_found
41
42
  Views::OpenFindingsLine.new(invocation.without_project)
42
- .lines(waiting, Models::FindingWriteUps.of(@project, records).not_found, source:)
43
+ .lines(waiting, not_found, source:, user_name: @project.git_user_name)
43
44
  end
44
45
 
45
46
  private
@@ -136,7 +137,8 @@ module Principles
136
137
  records = open_records(id)
137
138
  waiting = Models::FindingsLeftOpen.of(records).waiting_at(Time.now.utc)
138
139
  Views::OpenFindingsLine.new(invocation).short(waiting, Models::FindingWriteUps.of(@project, records).not_found,
139
- source: options["session_start"] || "startup")
140
+ source: options["session_start"] || "startup",
141
+ user_name: @project.git_user_name)
140
142
  end
141
143
 
142
144
  # The records whose open findings list-open-findings reads: id's, refused when a later copy wrote it in a
@@ -14,10 +14,10 @@ module Principles
14
14
  # last audit. None changes anything on disk. Survey runs the survey of candidate files.
15
15
  class Inventory < Command
16
16
  #: (String, String?, Hash[String, untyped]) -> untyped
17
- def call(command, id, _options)
17
+ def call(command, id, options)
18
18
  naming_the_executable do
19
19
  case command
20
- when "list-principles" then listing.merge("wrote" => [])
20
+ when "list-principles" then listing(open_findings: options["open_findings"]).merge("wrote" => [])
21
21
  when "show-principle" then members(required_id(id)).merge("wrote" => [])
22
22
  else unknown(command)
23
23
  end
@@ -99,12 +99,22 @@ module Principles
99
99
  end
100
100
 
101
101
  # Its next_action offers an audit while one principle's audits do not wait on an upgrade; a map listed with its
102
- # refusal counts, since repairing it leaves it to audit.
103
- #: () -> untyped
104
- def listing
102
+ # refusal counts, since repairing it leaves it to audit. With open_findings, each row lists its open findings.
103
+ #: (open_findings: bool?) -> untyped
104
+ def listing(open_findings:)
105
105
  ids = @principles.ids
106
106
  waiting = ids.filter_map { waiting_on_an_upgrade(it) }
107
- read_result.listing(rows(ids), waiting: waiting, one_to_audit: waiting.size < ids.size)
107
+ listed = open_findings ? read_result.with_open_findings(rows(ids), open_by_principle(ids)) : rows(ids)
108
+ read_result.listing(listed, waiting: waiting, one_to_audit: waiting.size < ids.size)
109
+ end
110
+
111
+ # Each principle's open findings, from every record this copy can read, as list-open-findings reads them,
112
+ # aged until now, by principle id.
113
+ #: (Array[String]) -> Hash[String, Array[Hash[String, untyped]]]
114
+ def open_by_principle(ids)
115
+ now = Time.now.utc
116
+ @audit_records.readable_of(ids).flat_map(&:left_open).map { it.waited_at(now) }
117
+ .group_by { it.fetch("principle") }
108
118
  end
109
119
 
110
120
  # One map's row; a map this tool cannot read is listed with its refusal, so the others still show, and one
@@ -33,7 +33,7 @@ module Principles
33
33
  printing = invocation.without_project
34
34
  problems, (report,) = checked(nil, printing)
35
35
  lines = Views::ProblemLines.new(printing)
36
- .session_start_lines(changed: problems.assessed_changes, source:, skill: skill?)
36
+ .session_start_lines(changed: problems.assessed_changes, skill: skill?)
37
37
  lines + not_checked_lines(problems, report, printing, source)
38
38
  end
39
39
 
@@ -82,7 +82,7 @@ module Principles
82
82
  never_assessed: problems.never_assessed, names_a_command:)
83
83
  return lines unless session_start
84
84
 
85
- view.at_session_start(lines, changed: problems.assessed_changes, source: session_start, skill: skill?)
85
+ view.at_session_start(lines, changed: problems.assessed_changes, skill: skill?)
86
86
  end
87
87
 
88
88
  # list-member-problems' JSON result for map id, or every map, without the files it wrote.
@@ -60,12 +60,12 @@
60
60
  ]
61
61
  },
62
62
  {
63
- "name": "list-principles", "usage": "list-principles", "group": "read", "options": [],
63
+ "name": "list-principles", "usage": "list-principles [--open-findings]", "group": "read", "options": ["open-findings"],
64
64
  "summary": "Every mapped principle and whether its members are current.",
65
65
  "help": "learn-what-a-command-does/list-principles",
66
66
  "steps": [
67
67
  { "id": "count-members-by-freshness", "actor": "cli",
68
- "does": "Reads every map and the audit record of each, and counts its members as current, changed, unassessed, locator_lost or unavailable.",
68
+ "does": "Reads every map and the audit record of each, and counts its members as current, changed, unassessed, locator_lost or unavailable. With --open-findings, adds each principle's open findings, one line each, saying whom it waits on, or that it is accepted, and how many days it has been open.",
69
69
  "refuses_like": ["read-map", "read-audit"] }
70
70
  ]
71
71
  },
@@ -109,7 +109,7 @@
109
109
  "help": "learn-what-a-command-does/list-open-findings",
110
110
  "steps": [
111
111
  { "id": "read-open-findings", "actor": "cli",
112
- "does": "Reads the last audit record of principle ID, or of every principle, and lists each deferred or accepted finding with its action, its members, its recorded_at pointer and when the audit was made. Says that an earlier audit's open findings are only in git. With --lines, prints each open finding on a line with its principle, id and waits_on. With --short, prints one line saying how many are open, how long the oldest has waited and what it waits on, and nothing when none is open; --session-start clear or compact words it for a context just cleared or compacted, and resume shortens it to the facts, since a resumed conversation holds the whole line already.",
112
+ "does": "Reads the last audit record of principle ID, or of every principle, and lists each deferred or accepted finding with its action, its members, its recorded_at pointer and when the audit was made. Says that an earlier audit's open findings are only in git. With --lines, prints each open finding on a line with its principle, id and waits_on. With --short, prints one line saying how many deferred findings wait on someone named or no one, whom the oldest waits on and git's user.name, and to raise each that waits on the user in the first reply, and nothing when none is open; --session-start clear or compact asks for the next reply, and resume shortens it to the facts, since a resumed conversation holds the whole line already.",
113
113
  "refuses_like": ["read-map", "read-audit"] },
114
114
  { "id": "follow-up-each-finding", "actor": "agent",
115
115
  "does": "Read each finding where its recorded_at points, and decide each one at its principle's next full audit.",
@@ -132,7 +132,7 @@
132
132
  "help": "learn-what-a-command-does/report-at-session-start",
133
133
  "steps": [
134
134
  { "id": "report-at-session-start", "actor": "cli",
135
- "does": "Reads the SessionStart hook's JSON on stdin and always exits 0, since the host adds a SessionStart hook's output to the context only then. Prints nothing in a project with no maps. Otherwise prints, each line marked principles:, the line saying every line loaded at session start costs every session, but on resume, then one line for each principle whose members an audit assessed changed since, with its count and the list-member-problems --short command that lists them, then the principles skill as where to start, then, in git, what gives each principle's members with no baseline one, then each principle whose audit record a later release wrote, whose audits wait on an upgrade, then, while any principle awaits its first full audit, one line counting them that asks for one background subagent to follow show-first-audit-brief, or to offer the audit at the next pause if none can be started, and at resume and compact only the count, asking for no second subagent, then, while any audit finding is left open, the one line list-open-findings --short prints, worded for the session's start. When list-member-problems refuses, prints instead its code and the command that shows its repair; input it cannot read is read as a startup." }
135
+ "does": "Reads the SessionStart hook's JSON on stdin and always exits 0, since the host adds a SessionStart hook's output to the context only then. Prints nothing in a project with no maps. Otherwise prints, each line marked principles:, one line for each principle whose members an audit assessed changed since, with its count and the list-member-problems --short command that lists them, then the principles skill as where to start, then, in git, what gives each principle's members with no baseline one, then each principle whose audit record a later release wrote, whose audits wait on an upgrade, then, while any principle awaits its first full audit, one line counting them that asks for one background subagent to follow show-first-audit-brief, or to offer the audit at the next pause if none can be started, and at resume and compact only the count, asking for no second subagent, then, while any audit finding is left open, the one line list-open-findings --short prints, worded for the session's start. When list-member-problems refuses, prints instead its code and the command that shows its repair; input it cannot read is read as a startup." }
136
136
  ]
137
137
  },
138
138
  {
@@ -39,6 +39,13 @@ module Principles
39
39
  ok && output.strip == "true"
40
40
  end
41
41
 
42
+ # The user name git commits as here, or nil when none is set.
43
+ #: () -> String?
44
+ def user_name
45
+ name, ok = git(["config", "user.name"])
46
+ ok && !name.strip.empty? ? name.strip : nil
47
+ end
48
+
42
49
  # The full sha of the last commit that changed path, or nil outside git or when no commit has.
43
50
  #: (String) -> String?
44
51
  def last_commit(path)
@@ -12,7 +12,7 @@ module Principles
12
12
  class RunningVersion
13
13
  # git archive writes the short sha of the commit it archives here, since .gitattributes marks this file
14
14
  # export-subst; a checkout keeps the placeholder as written.
15
- ARCHIVED_COMMIT = "$Format:%h$" #: String
15
+ ARCHIVED_COMMIT = "402b8c62" #: String
16
16
 
17
17
  #: (?String, release: String, ?built: String?, ?archived_commit: String) -> void
18
18
  def initialize(checkout = File.expand_path("../../..", __dir__), release:, built: nil,
@@ -72,7 +72,7 @@
72
72
  "usage": { "$ref": "#/$defs/prose" },
73
73
  "group": { "$ref": "#/$defs/slug" },
74
74
  "options": { "type": "array", "uniqueItems": true,
75
- "items": { "enum": ["description", "path", "section", "starting-at", "ending-at", "query", "role", "check", "file", "short", "session-start", "commits-after", "hook-event", "member", "when-files", "when-invoked", "always", "write-ups", "as", "instruction", "part", "also", "confirm", "lines"] } },
75
+ "items": { "enum": ["description", "path", "section", "starting-at", "ending-at", "query", "role", "check", "file", "short", "session-start", "commits-after", "hook-event", "member", "when-files", "when-invoked", "always", "write-ups", "as", "instruction", "part", "also", "confirm", "lines", "open-findings"] } },
76
76
  "requires": { "type": "array", "uniqueItems": true, "items": { "enum": ["file"] } },
77
77
  "summary": { "$ref": "#/$defs/prose" },
78
78
  "help": { "type": "string", "pattern": "^[a-z]+(-[a-z]+)+/[a-z]+(-[a-z]+)+$" },
@@ -11,7 +11,7 @@ module Principles
11
11
  VALUE_OPTIONS = %w[project file description path section starting-at ending-at query role
12
12
  check session-start commits-after hook-event as instruction part].freeze #: Array[String]
13
13
  # The options that take no value, as list-member-problems --short.
14
- FLAG_OPTIONS = %w[short lines when-invoked always write-ups confirm].freeze #: Array[String]
14
+ FLAG_OPTIONS = %w[short lines when-invoked always write-ups confirm open-findings].freeze #: Array[String]
15
15
  # The options that may be given more than once, each value kept in order, as change-activation --when-files and
16
16
  # start-audit --member.
17
17
  LIST_OPTIONS = %w[when-files also member].freeze #: Array[String]
@@ -19,15 +19,19 @@ module Principles
19
19
  freeze
20
20
  end
21
21
 
22
- # How many are open, how many of them are deferred with no waits_on, and the one first raised earliest as it
23
- # has waited until now, or nil when none is open. How long it waited runs from first_raised_at, never from when
24
- # its waits_on was asked, which a later audit may have given it.
22
+ # How many are open, how many of them are deferred with no waits_on and how many with one, so how many someone
23
+ # should raise, the first raised earliest of those with one, and the one first raised earliest of all as it has
24
+ # waited until now, or nil when none is open. How long it waited runs from first_raised_at, never from when its
25
+ # waits_on was asked, which a later audit may have given it.
25
26
  #: (Time) -> Hash[String, untyped]?
26
27
  def waiting_at(now)
27
28
  oldest = @findings.min_by(&:first_raised_time) or return nil
28
29
 
29
- { "count" => @findings.length, "waiting_on_no_one_named" => @findings.count(&:waiting_on_no_one_named?),
30
- **oldest.waited_at(now) }
30
+ named = @findings.select(&:waiting_on_someone_named?)
31
+ unnamed = @findings.count(&:waiting_on_no_one_named?)
32
+ { "count" => @findings.length, "waiting_on_no_one_named" => unnamed,
33
+ "waiting_on_someone_named" => named.length, "to_raise" => named.length + unnamed,
34
+ "oldest_waiting_on_someone" => named.min_by(&:first_raised_time)&.named_waiting, **oldest.waited_at(now) }
31
35
  end
32
36
  end
33
37
  end
@@ -166,6 +166,15 @@ module Principles
166
166
  #: () -> bool
167
167
  def waiting_on_no_one_named? = action == "deferred" && without_waits_on?
168
168
 
169
+ # Whether it is deferred with a waits_on, so the session-start line counts it among those waiting on someone
170
+ # named, for the agent to judge whom.
171
+ #: () -> bool
172
+ def waiting_on_someone_named? = action == "deferred" && !without_waits_on?
173
+
174
+ # The finding as the session-start line names the oldest waiting on someone: its principle, id and waits_on.
175
+ #: () -> Hash[String, untyped]
176
+ def named_waiting = { "principle" => @principle_id, "finding_id" => id, "waits_on" => @finding.waits_on }
177
+
169
178
  # The one line it says it waits on, or nil when it says it waits on nothing.
170
179
  #: () -> String?
171
180
  def waits_on = @finding.waits_on
@@ -86,6 +86,10 @@ module Principles
86
86
  GuidanceSearchPaths.read(@guidance_search_paths)
87
87
  end
88
88
 
89
+ # The user name git commits as here, or nil when none is set, which the session-start line states as a fact.
90
+ #: () -> String?
91
+ def git_user_name = @repository.user_name
92
+
89
93
  # The project's history, one for the whole command, so every read names the HEAD it first read.
90
94
  #: () -> ProjectHistory
91
95
  def history
@@ -3,9 +3,9 @@
3
3
 
4
4
  module Principles
5
5
  # The next production release, as major.minor.patch. A production build is versioned with this alone.
6
- RELEASE = "0.0.8"
6
+ RELEASE = "0.0.9"
7
7
  # The version a built gem prints. `rake build[production]` stamps RELEASE here, in the copy of lib/ it
8
8
  # packages, and `rake build[development]` stamps RELEASE.g<short sha>. A checkout leaves it nil, and
9
9
  # Data::RunningVersion reads the commit this tool runs from instead.
10
- BUILT_VERSION = "0.0.8" #: String?
10
+ BUILT_VERSION = "0.0.9" #: String?
11
11
  end
@@ -39,14 +39,25 @@ module Principles
39
39
  Lines.new(stdout: findings.empty? ? "#{NONE_OPEN}\n" : text, stderr: "", status: 0)
40
40
  end
41
41
 
42
+ # One finding as list-principles --open-findings lists it in its principle's row: its id, whom it waits on and
43
+ # the whole days it has been open, as --lines words them.
44
+ #: (Hash[String, untyped]) -> String
45
+ def summary(finding)
46
+ "#{one_line(finding.fetch("finding_id"))} #{waited_on(finding)}; #{days_open(finding)}"
47
+ end
48
+
42
49
  private
43
50
 
44
51
  #: (Hash[String, untyped]) -> String
45
52
  def line(finding)
46
- waits = waited_on(finding)
53
+ "#{finding.fetch("principle")}\t#{one_line(finding.fetch("finding_id"))}\t#{waited_on(finding)}\t" \
54
+ "#{days_open(finding)}"
55
+ end
56
+
57
+ #: (Hash[String, untyped]) -> String
58
+ def days_open(finding)
47
59
  days = finding.fetch("days_open")
48
- "#{finding.fetch("principle")}\t#{one_line(finding.fetch("finding_id"))}\t#{waits}\topen #{days} " \
49
- "day#{"s" unless days == 1}"
60
+ "open #{days} day#{"s" unless days == 1}"
50
61
  end
51
62
 
52
63
  # Whom finding waits on, or that it is accepted, and so by design waits on no one.
@@ -10,14 +10,15 @@ module Principles
10
10
  # What this tool prints, from plain values a controller hands it. views/CLAUDE.md owns the boundary.
11
11
  module Views
12
12
  # list-open-findings --short: the one line a session-start hook puts into the agent's context while any
13
- # finding is open, and nothing when none is. It says how many wait, how long the oldest has, what that
14
- # one waits on, and the command that lists them all, worded as something to act on.
13
+ # finding is open that someone should raise, and nothing when none is. It states the facts the agent judges
14
+ # from, how many wait on someone named or on no one, whom the oldest of the former waits on and git's user
15
+ # name, then says to raise each that waits on its user, and why, with the command that lists them all.
15
16
  class OpenFindingsLine
16
17
  # A waits_on longer than this is cut, so the line stays one short line.
17
18
  WAITS_ON_LIMIT = 80
18
19
 
19
20
  # The session's start the line is worded for, as Claude Code's SessionStart hook names it: startup, resume,
20
- # clear or compact. It says what the context holds already, and so when to raise the findings.
21
+ # clear or compact. It says what the context holds already, and so which reply raises the findings.
21
22
  class SessionStart
22
23
  #: (String) -> void
23
24
  def initialize(source)
@@ -29,19 +30,10 @@ module Principles
29
30
  #: () -> bool
30
31
  def resumed? = @source == "resume"
31
32
 
32
- # When to raise the findings: before the user's first task at startup, and at the next pause once the
33
- # session is under way, after /clear or a compaction.
33
+ # The reply that raises the findings: the first at startup, and the next once the session is under way,
34
+ # after /clear or a compaction.
34
35
  #: () -> String
35
- def raise_when
36
- return Prompts.text("start-a-session/raise-them-before-the-first-task") if startup?
37
-
38
- Prompts.text("start-a-session/raise-them-at-the-next-pause")
39
- end
40
-
41
- private
42
-
43
- #: () -> bool
44
- def startup? = @source == "startup"
36
+ def reply = @source == "startup" ? "first" : "next"
45
37
  end
46
38
 
47
39
  #: (Invocation) -> void
@@ -51,42 +43,81 @@ module Principles
51
43
  end
52
44
 
53
45
  # waiting is nil when no finding is open, or the count of open findings with the oldest one's principle,
54
- # finding_id, days_open and, when it says, waits_on. not_found is each open finding, by principle and
55
- # finding_id, whose write-up can no longer be found where its recorded_at points. source is the
56
- # session's start: startup, resume, clear or compact.
57
- #: (Hash[String, untyped]?, ?Array[Hash[String, untyped]], ?source: String) -> Lines
58
- def short(waiting, not_found = [], source: "startup")
59
- Lines.new(stdout: lines(waiting, not_found, source:).map { "#{it}\n" }.join, stderr: "", status: 0)
46
+ # finding_id, days_open, how many wait on someone named and the oldest of those, or nil. not_found is each
47
+ # open finding, by principle and finding_id, whose write-up can no longer be found where its recorded_at
48
+ # points. source is the session's start: startup, resume, clear or compact. user_name is git's, or nil.
49
+ #: (Hash[String, untyped]?, ?Array[Hash[String, untyped]], ?source: String, ?user_name: String?) -> Lines
50
+ def short(waiting, not_found = [], source: "startup", user_name: nil)
51
+ Lines.new(stdout: lines(waiting, not_found, source:, user_name:).map { "#{it}\n" }.join, stderr: "", status: 0)
60
52
  end
61
53
 
62
54
  # short's line, as a list of none or one, which report-at-session-start prints among its own.
63
- #: (Hash[String, untyped]?, ?Array[Hash[String, untyped]], ?source: String) -> Array[String]
64
- def lines(waiting, not_found = [], source: "startup")
65
- waiting ? [line(waiting, not_found, SessionStart.new(source))] : []
55
+ #: (Hash[String, untyped]?, ?Array[Hash[String, untyped]], ?source: String, ?user_name: String?) -> Array[String]
56
+ def lines(waiting, not_found = [], source: "startup", user_name: nil)
57
+ start = SessionStart.new(source)
58
+ return [] unless waiting
59
+ return [resumed("#{how_long(waiting)} (#{oldest(waiting)})", not_found)] if start.resumed?
60
+ return [] if waiting.fetch("to_raise").zero?
61
+
62
+ [whole(waiting, not_found, start, user_name)]
66
63
  end
67
64
 
68
65
  private
69
66
 
70
- #: (Hash[String, untyped], Array[Hash[String, untyped]], SessionStart) -> String
71
- def line(waiting, not_found, start)
72
- return resumed("#{how_long(waiting)} (#{oldest(waiting)})", not_found) if start.resumed?
67
+ # The line with what to do about the findings, for a context that does not hold it yet: the facts, then the
68
+ # reply that raises them and why, then the command listing them all, which one finding's own need replaces.
69
+ #: (Hash[String, untyped], Array[Hash[String, untyped]], SessionStart, String?) -> String
70
+ def whole(waiting, not_found, start, user_name)
71
+ named = waiting.fetch("waiting_on_someone_named")
72
+ alone = waiting.fetch("to_raise") == 1 && named == 1
73
+ Prompts.text("start-a-session/act-on-the-open-findings",
74
+ facts: "#{waiting_on_someone(waiting)}#{no_one_named(waiting)}#{write_ups(not_found)}" \
75
+ "#{git_user(user_name) unless named.zero?}",
76
+ raise: raise_which(alone, waiting), reply: start.reply, command: alone ? "" : " All: #{all}")
77
+ end
78
+
79
+ # The command listing every open finding, a line each.
80
+ #: () -> String
81
+ def all = @invocation.in_project("list-open-findings", options: ["--lines"])
73
82
 
74
- whole(waiting, not_found, start)
83
+ # Which findings the agent raises: the one, if it waits on its user, or each that does, with those waiting on
84
+ # no one, or each when none names anyone.
85
+ #: (bool, Hash[String, untyped]) -> String
86
+ def raise_which(alone, waiting)
87
+ return "If it waits on your user, raise it" if alone
88
+ return "Raise each" if waiting.fetch("waiting_on_someone_named").zero?
89
+
90
+ "Raise each that waits on your user#{" or on no one" if waiting.fetch("waiting_on_no_one_named").positive?}"
75
91
  end
76
92
 
77
- # The line with what to do about the findings, for a context that does not hold it yet.
78
- #: (Hash[String, untyped], Array[Hash[String, untyped]], SessionStart) -> String
79
- def whole(waiting, not_found, start)
80
- count = waiting.fetch("count")
81
- Prompts.text("start-a-session/act-on-the-open-findings",
82
- when: start.raise_when,
83
- findings: "#{how_long(waiting)} (#{named(waiting)})",
84
- no_one_named: no_one_named(count, waiting.fetch("waiting_on_no_one_named", 0)),
85
- write_ups: write_ups(not_found),
86
- each: count == 1 ? "it" : "each",
87
- command: @invocation.in_project("list-open-findings", options: ["--lines"]))
93
+ # The sentence naming the oldest finding that waits on someone named, and whom, counting them when several do.
94
+ #: (Hash[String, untyped]) -> String
95
+ def waiting_on_someone(waiting)
96
+ oldest = waiting["oldest_waiting_on_someone"] or return ""
97
+ need = need(oldest.fetch("waits_on"))
98
+ need = "#{need}." unless need.end_with?(".")
99
+ named = waiting.fetch("waiting_on_someone_named")
100
+ return "Open finding #{oldest(oldest)} waits on: #{need}" if named == 1
101
+
102
+ "#{counted(named)} on someone; the oldest, #{oldest(oldest)}, waits on: " \
103
+ "#{need}"
104
+ end
105
+
106
+ # The sentence counting the findings deferred with no waits_on, after any naming someone.
107
+ #: (Hash[String, untyped]) -> String
108
+ def no_one_named(waiting)
109
+ unnamed = waiting.fetch("waiting_on_no_one_named")
110
+ return "" if unnamed.zero?
111
+ return " #{unnamed} #{unnamed == 1 ? "waits" : "wait"} on no one named." \
112
+ if waiting.fetch("waiting_on_someone_named").positive?
113
+
114
+ "#{counted(unnamed)} on no one named."
88
115
  end
89
116
 
117
+ # How many open findings wait, as the subject of the sentence saying on whom.
118
+ #: (Integer) -> String
119
+ def counted(count) = count == 1 ? "1 open finding waits" : "#{count} open findings wait"
120
+
90
121
  # A resumed session's line: its conversation already holds the line printed when that context began, so this
91
122
  # one gives the facts and where the instructions are, not the instructions again.
92
123
  #: (String, Array[Hash[String, untyped]]) -> String
@@ -96,14 +127,12 @@ module Principles
96
127
  command: @invocation.in_project("list-open-findings", options: ["--short"]))
97
128
  end
98
129
 
99
- # How many of several open findings are deferred with no waits_on, since the line names only the oldest's. One
100
- # open finding's own name already shows whether it does, so its line says nothing more.
101
- #: (Integer, Integer) -> String
102
- def no_one_named(count, unnamed)
103
- return "" if count == 1 || unnamed.zero?
104
- return " All #{count} have no waits_on." if unnamed == count
130
+ # git's user name as a fact, for the agent to judge whether the person a finding waits on is its user.
131
+ #: (String?) -> String
132
+ def git_user(name)
133
+ return " git has no user.name set." unless name
105
134
 
106
- " #{unnamed} #{unnamed == 1 ? "has" : "have"} no waits_on."
135
+ " git's user.name is #{VisibleText.new(name)}."
107
136
  end
108
137
 
109
138
  # The sentence naming the write-ups that can no longer be found, the first by its principle and id, or
@@ -121,10 +150,10 @@ module Principles
121
150
 
122
151
  # How many findings are open and how long the oldest has waited.
123
152
  #: (Hash[String, untyped]) -> String
124
- def how_long(waiting) = "#{counted(waiting.fetch("count"))}#{waited(waiting)}"
153
+ def how_long(waiting) = "#{still_open(waiting.fetch("count"))}#{waited(waiting)}"
125
154
 
126
155
  #: (Integer) -> String
127
- def counted(count)
156
+ def still_open(count)
128
157
  count == 1 ? "1 audit finding is still open, " : "#{count} audit findings are still open, the oldest "
129
158
  end
130
159
 
@@ -136,14 +165,12 @@ module Principles
136
165
  "for #{days} #{days == 1 ? "day" : "days"}"
137
166
  end
138
167
 
139
- # The oldest finding's principle and id, and what it waits on, cut when long. The id and waits_on are free
140
- # text, so each is cut by characters first and then escaped, which may run past the limit to show them.
141
- #: (Hash[String, untyped]) -> String
142
- def named(waiting)
143
- named = oldest(waiting)
144
- waits_on = waiting["waits_on"] or return named
168
+ # A finding's waits_on, cut when long. It is free text, so it is cut by characters first and then escaped,
169
+ # which may run past the limit to show it.
170
+ #: (String) -> String
171
+ def need(waits_on)
145
172
  waits_on = closed("#{whole_words(waits_on[0, WAITS_ON_LIMIT - 3].to_s)}...") if waits_on.length > WAITS_ON_LIMIT
146
- "#{named}, waits on: #{VisibleText.new(waits_on)}"
173
+ VisibleText.new(waits_on).to_s
147
174
  end
148
175
 
149
176
  # A cut waits_on up to its last whole word, so it never ends in part of one, or as cut when it is one
@@ -1,6 +1,7 @@
1
1
  # typed: strict
2
2
  # frozen_string_literal: true
3
3
 
4
+ require_relative "findings_result"
4
5
  require_relative "invocation"
5
6
  require_relative "printed_principle"
6
7
  require_relative "member_repairs"
@@ -43,6 +44,16 @@ module Principles
43
44
  { "principles" => entries, "next_action" => listed_next_action(entries, waiting, one_to_audit).join("\n") }
44
45
  end
45
46
 
47
+ # Each of list-principles' entries with its principle's open findings, a line each, for --open-findings. open
48
+ # maps each principle id to its findings' plain fields, as list-open-findings --lines takes them.
49
+ #: (Array[Hash[String, untyped]], Hash[String, Array[Hash[String, untyped]]]) -> Array[Hash[String, untyped]]
50
+ def with_open_findings(entries, open)
51
+ findings = FindingsResult.new(@invocation)
52
+ entries.map do |entry|
53
+ entry.merge("open_findings" => open.fetch(entry.fetch("id"), []).map { findings.summary(it) })
54
+ end
55
+ end
56
+
46
57
  # list-principles' note on the meta-principle's map, kept in file, when it has no members, with the two ways on.
47
58
  #: (String) -> Hash[String, String]
48
59
  def no_members(file)
@@ -43,26 +43,24 @@ module Principles
43
43
  status: assessed_change || !never_assessed.empty? ? CHANGED : 0)
44
44
  end
45
45
 
46
- # short's lines for a session-start hook: on stdout, first the context universal, unless source is
47
- # resume, whose conversation holds it already, then one line for each principle with a changed member an
46
+ # short's lines for a session-start hook: on stdout, one line for each principle with a changed member an
48
47
  # audit or acknowledgement assessed, counting them, with the command that lists them, from changed, in place of
49
48
  # the rows and never-assessed counts, which an always-loaded carrier cannot afford, then where to start, as
50
49
  # session_start_lines says; stderr and the status kept. Its command leaves
51
50
  # out --project, as the hook's own commands do, since a session runs in its project.
52
- #: (Lines, changed: Hash[String, Integer], source: String, skill: bool) -> Lines
53
- def at_session_start(short, changed:, source:, skill:)
54
- stdout = session_start_lines(changed:, source:, skill:)
51
+ #: (Lines, changed: Hash[String, Integer], skill: bool) -> Lines
52
+ def at_session_start(short, changed:, skill:)
53
+ stdout = session_start_lines(changed:, skill:)
55
54
  Lines.new(stdout: stdout.map { "#{it}\n" }.join, stderr: short.stderr, status: short.status)
56
55
  end
57
56
 
58
- # at_session_start's stdout, a line each: the context universal, but on resume, then each principle's count
59
- # of changed audited members with the command that lists them, then, when any is, where to start: the principles
60
- # skill when skill says this session has it, as the plugin installs it, else those commands.
61
- #: (changed: Hash[String, Integer], source: String, skill: bool) -> Array[String]
62
- def session_start_lines(changed:, source:, skill:)
57
+ # at_session_start's stdout, a line each: each principle's count of changed audited members with the command
58
+ # that lists them, then, when any is, where to start: the principles skill when skill says this session has
59
+ # it, as the plugin installs it, else those commands.
60
+ #: (changed: Hash[String, Integer], skill: bool) -> Array[String]
61
+ def session_start_lines(changed:, skill:)
63
62
  counts = changed.map { |id, count| changed_line(id, count) }
64
- [*(Prompts.text("start-a-session/every-loaded-line-costs-every-session") unless source == "resume"),
65
- *counts, *(where_to_start(skill) unless counts.empty?)]
63
+ [*counts, *(where_to_start(skill) unless counts.empty?)]
66
64
  end
67
65
 
68
66
  private
@@ -63,15 +63,15 @@ principle, id, `waits on:` its `waits_on`, `waits on no one named`, or `accepted
63
63
  design, and `open N days` since first raised, with no script over this JSON. It cannot be given with `--short`.
64
64
 
65
65
  `--short` is for a session-start hook, where an open finding would otherwise wait unseen until its principle's next full
66
- audit. It prints one line instead of JSON, and nothing at all when no finding is open, exiting 0 either way: how many
67
- findings are open, how many whole days the oldest has waited since its `first_raised_at`, that finding's principle and
68
- id, its `waits_on` when it has one, cut at a word within 80 characters with a parenthesis left open closed, how many of
69
- several deferred ones have no `waits_on`, and the command that lists them. While any open finding's
70
- `write_up_opening_reason` is `unavailable`, the line also names that write-up, or the first of them with their count, so
71
- a pointer that no longer resolves is seen at session start. With `--session-start SOURCE`, one of `startup`, `resume`,
72
- `clear` and `compact` as Claude Code's SessionStart hook names them, the line for `clear` or `compact` asks at the next
73
- pause rather than before the user's first task; without it the line is worded for `startup`. For `resume`, whose
74
- conversation holds the line already, it gives only the findings and the command that prints it whole. The days run from
75
- `first_raised_at`, not `waits_on_since`, which dates only the ask. For a finding raised before this tool kept the field
76
- the days are a lower bound, as `first_raised_at` is. The principles plugin's session-start hook prints this line,
77
- passing its source.
66
+ audit. It prints one line instead of JSON, and nothing at all when no deferred finding is open, exiting 0 either way:
67
+ how many deferred findings have a `waits_on`, the oldest of them by principle and id with its `waits_on`, cut at a word
68
+ within 80 characters with a parenthesis left open closed, how many have none, and git's `user.name`; then to raise in
69
+ the first reply each that waits on the agent's user, or on no one, since nothing else will, and the command that lists
70
+ them, which one finding's own line needs no command for. The agent judges whether that user is the one named. While
71
+ any open finding's `write_up_opening_reason` is `unavailable`, the line also names that write-up, or the first of them
72
+ with their count, so a pointer that no longer resolves is seen at session start. With `--session-start SOURCE`, one of
73
+ `startup`, `resume`, `clear` and `compact` as Claude Code's SessionStart hook names them, the line for `clear` or
74
+ `compact` asks for the next reply; without it the line is worded for `startup`. For `resume`, whose conversation holds
75
+ the line already, it gives only how many are open, how many whole days the oldest has waited since its
76
+ `first_raised_at`, not `waits_on_since`, which dates only the ask, and the command that prints the line whole. The
77
+ principles plugin's session-start hook prints this line, passing its source.
@@ -1,5 +1,8 @@
1
1
  Lists every mapped principle, with its members counted by whether they changed since the last audit.
2
2
  Run it to decide which principle to look at or audit.
3
+ To say what principles are in place and what each still waits on, give `--open-findings`, rather than joining
4
+ this list with `list-open-findings`: each row adds `open_findings`, one line per finding its last completed audit
5
+ deferred or accepted, with its id, whom it waits on, or that it is accepted, and how many days it has been open.
3
6
  With nothing mapped, `next_action` names `list-candidate-files`, which surveys the project's principles for the user.
4
7
  When the `sticking-to-your-principles` map has no members, its row adds `no_members`: setup no longer writes
5
8
  that map before its first member, so an earlier setup, or removing its last member, left it. It names the map's
@@ -1,4 +1 @@
1
- %{findings}.%{no_one_named}%{write_ups} %{when} raise in one short message only those waiting on your user or
2
- no one named, and not any this conversation shows you raised. Judge from context, such as git's user name, whether a
3
- named person is your user; if unsure, raise it. Whom %{each} waits on:
4
- %{command}
1
+ %{facts} %{raise} in your %{reply} reply; nothing else will.%{command}
data/principles.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  # Rakefile. Loaded from the checkout, as Bundler does, it is RELEASE, so Gemfile.lock does not change with
9
9
  # every commit.
10
10
  spec.version = Principles::BUILT_VERSION || Principles::RELEASE
11
- spec.summary = "Tighter harness, longer leash: agents you can leave running"
11
+ spec.summary = "Tighter harness, longer leash: trust the principles, loosen the supervision"
12
12
  spec.description = <<~TEXT
13
13
  A harness configuration framework that keeps every part of your Claude Code agent's harness in alignment.
14
14
  Name the principles your CLAUDE.md files, rules, skills, subagents and hooks encode, and map every place
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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sidu Ponnappa
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
10
+ date: 2026-11-20 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: |
13
13
  A harness configuration framework that keeps every part of your Claude Code agent's harness in alignment.
@@ -467,10 +467,7 @@ files:
467
467
  - lib/principles/views/prompts/set-principles-up/what-the-passage-presumes.md
468
468
  - lib/principles/views/prompts/set-principles-up/wire-the-report-hooks-with-the-user.md
469
469
  - lib/principles/views/prompts/start-a-session/act-on-the-open-findings.md
470
- - lib/principles/views/prompts/start-a-session/every-loaded-line-costs-every-session.md
471
470
  - lib/principles/views/prompts/start-a-session/hand-the-first-audit-to-a-subagent.md
472
- - lib/principles/views/prompts/start-a-session/raise-them-at-the-next-pause.md
473
- - lib/principles/views/prompts/start-a-session/raise-them-before-the-first-task.md
474
471
  - lib/principles/views/prompts/start-a-session/run-each-command-above.md
475
472
  - lib/principles/views/prompts/start-a-session/see-the-earlier-line.md
476
473
  - lib/principles/views/prompts/start-a-session/start-no-second-first-audit.md
@@ -514,5 +511,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
514
511
  requirements: []
515
512
  rubygems_version: 3.6.9
516
513
  specification_version: 4
517
- summary: 'Tighter harness, longer leash: agents you can leave running'
514
+ summary: 'Tighter harness, longer leash: trust the principles, loosen the supervision'
518
515
  test_files: []
@@ -1 +0,0 @@
1
- Meta-principle: what loads at start costs every session's context; load only what the task needs.
@@ -1 +0,0 @@
1
- Before the user's first task,