carlos / platform Public

cli: golden corpus records the billing usage with revenue and payments

Main's TestCLIGolden pins every usage line; the billing usage now names
the two new verbs (BDC-1).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 22a58d05e338480be2225c4f9fdbec6cee4c92c0 parent d55bd63
1 file changed, +6 −6
  • testdata/clireg-golden.jsonl +6 −6

CI passed — run details

diff --git a/testdata/clireg-golden.jsonl b/testdata/clireg-golden.jsonl
index 17f929279..f0a431d7b 100644
--- a/testdata/clireg-golden.jsonl
+++ b/testdata/clireg-golden.jsonl
@@ -104,12 +104,12 @@
{"case":"billing house | -h","argv":["billing","house","-h"],"exit":0,"stdout":"usage: carlos billing house [flags]\nflags:\n --account <string> account to mark or clear\n --console <string> console origin to use\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --note <string> why. this note is kept in the console log\n --off clear the house mark\n --on make the account a house account\n","stderr":""}
{"case":"billing problems | --zz-unknown-flag","argv":["billing","problems","--zz-unknown-flag"],"exit":1,"stdout":"flag provided but not defined: -zz-unknown-flag\nusage: carlos billing problems [flags]\nflags:\n --all include closed problems\n --console <string> console origin to use\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n","stderr":"billing: flag provided but not defined: -zz-unknown-flag\n"}
{"case":"billing problems | -h","argv":["billing","problems","-h"],"exit":0,"stdout":"usage: carlos billing problems [flags]\nflags:\n --all include closed problems\n --console <string> console origin to use\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n","stderr":""}
-{"case":"billing | --help","argv":["billing","--help"],"exit":1,"stdout":"","stderr":"billing: usage: carlos billing problems [-all] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"\n"}
-{"case":"billing | --zz-unknown-flag","argv":["billing","--zz-unknown-flag"],"exit":1,"stdout":"","stderr":"billing: usage: carlos billing problems [-all] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"\n"}
-{"case":"billing | -h","argv":["billing","-h"],"exit":1,"stdout":"","stderr":"billing: usage: carlos billing problems [-all] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"\n"}
-{"case":"billing | bare","argv":["billing"],"exit":1,"stdout":"","stderr":"billing: usage: carlos billing problems [-all] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"\n"}
-{"case":"billing | help","argv":["billing","help"],"exit":1,"stdout":"","stderr":"billing: usage: carlos billing problems [-all] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"\n"}
-{"case":"billing | zz-unknown","argv":["billing","zz-unknown"],"exit":1,"stdout":"","stderr":"billing: usage: carlos billing problems [-all] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"\n"}
+{"case":"billing | --help","argv":["billing","--help"],"exit":1,"stdout":"","stderr":"billing: usage: carlos billing problems [-all] | revenue | payments [-month YYYY-MM] [-kind K] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"\n"}
+{"case":"billing | --zz-unknown-flag","argv":["billing","--zz-unknown-flag"],"exit":1,"stdout":"","stderr":"billing: usage: carlos billing problems [-all] | revenue | payments [-month YYYY-MM] [-kind K] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"\n"}
+{"case":"billing | -h","argv":["billing","-h"],"exit":1,"stdout":"","stderr":"billing: usage: carlos billing problems [-all] | revenue | payments [-month YYYY-MM] [-kind K] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"\n"}
+{"case":"billing | bare","argv":["billing"],"exit":1,"stdout":"","stderr":"billing: usage: carlos billing problems [-all] | revenue | payments [-month YYYY-MM] [-kind K] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"\n"}
+{"case":"billing | help","argv":["billing","help"],"exit":1,"stdout":"","stderr":"billing: usage: carlos billing problems [-all] | revenue | payments [-month YYYY-MM] [-kind K] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"\n"}
+{"case":"billing | zz-unknown","argv":["billing","zz-unknown"],"exit":1,"stdout":"","stderr":"billing: usage: carlos billing problems [-all] | revenue | payments [-month YYYY-MM] [-kind K] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"\n"}
{"case":"bootstrap | --zz-unknown-flag","argv":["bootstrap","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos bootstrap [flags]\nflags:\n --offcloud off-cloud box: require a staged 0600 credentials file instead of an EC2 instance profile\n --plan-json with -root: print the arming plan as JSON on stdout instead of the human summary\n --root <string> install root; a staging dir writes files only (no user creation, no systemctl) (default: /)\n --socket-consumer <value> host-app user to enroll in the carlos-sockets group (repeatable); members may dial every instance socket on the box\n"}
{"case":"bootstrap | -h","argv":["bootstrap","-h"],"exit":0,"stdout":"","stderr":"usage: carlos bootstrap [flags]\nflags:\n --offcloud off-cloud box: require a staged 0600 credentials file instead of an EC2 instance profile\n --plan-json with -root: print the arming plan as JSON on stdout instead of the human summary\n --root <string> install root; a staging dir writes files only (no user creation, no systemctl) (default: /)\n --socket-consumer <value> host-app user to enroll in the carlos-sockets group (repeatable); members may dial every instance socket on the box\n"}
{"case":"canary ./site | extra","argv":["canary","./site"],"exit":1,"stdout":"","stderr":"not in a git repository — pass --version\n"}