charness 3.13.0 → 4.0.0

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 (97) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/COMMERCIAL-LICENSE.md +142 -0
  3. package/DEVELOPMENT.md +9 -6
  4. package/LICENSE +152 -21
  5. package/MIGRATION_3_TO_4.md +73 -0
  6. package/README.md +13 -3
  7. package/agent-plugin/.claude-plugin/plugin.json +1 -2
  8. package/dist/adapters/claudeCliAdapter.d.ts.map +1 -1
  9. package/dist/adapters/claudeCliAdapter.js +8 -15
  10. package/dist/adapters/claudeCliAdapter.js.map +1 -1
  11. package/dist/adapters/claudeJsonStreamAdapter.d.ts +29 -10
  12. package/dist/adapters/claudeJsonStreamAdapter.d.ts.map +1 -1
  13. package/dist/adapters/claudeJsonStreamAdapter.js +72 -27
  14. package/dist/adapters/claudeJsonStreamAdapter.js.map +1 -1
  15. package/dist/adapters/openCodeAdapter.d.ts +74 -11
  16. package/dist/adapters/openCodeAdapter.d.ts.map +1 -1
  17. package/dist/adapters/openCodeAdapter.js +215 -42
  18. package/dist/adapters/openCodeAdapter.js.map +1 -1
  19. package/dist/bot.d.ts.map +1 -1
  20. package/dist/bot.js +28 -11
  21. package/dist/bot.js.map +1 -1
  22. package/dist/connectors/telegram/commands/compaction.d.ts.map +1 -1
  23. package/dist/connectors/telegram/commands/compaction.js +12 -0
  24. package/dist/connectors/telegram/commands/compaction.js.map +1 -1
  25. package/dist/legacyNames.d.ts +8 -0
  26. package/dist/legacyNames.d.ts.map +1 -1
  27. package/dist/legacyNames.js +9 -1
  28. package/dist/legacyNames.js.map +1 -1
  29. package/dist/mcpConfig.d.ts +4 -1
  30. package/dist/mcpConfig.d.ts.map +1 -1
  31. package/dist/mcpConfig.js +27 -2
  32. package/dist/mcpConfig.js.map +1 -1
  33. package/dist/runnerUtility/launcher.d.ts.map +1 -1
  34. package/dist/runnerUtility/launcher.js +11 -3
  35. package/dist/runnerUtility/launcher.js.map +1 -1
  36. package/dist/runners/hubPackage.d.ts +1 -1
  37. package/dist/runners/hubPackage.d.ts.map +1 -1
  38. package/dist/runners/hubPackage.js +5 -4
  39. package/dist/runners/hubPackage.js.map +1 -1
  40. package/dist/scheduler/injection.d.ts +7 -3
  41. package/dist/scheduler/injection.d.ts.map +1 -1
  42. package/dist/scheduler/injection.js +7 -3
  43. package/dist/scheduler/injection.js.map +1 -1
  44. package/dist/scheduler/mcpBoot.d.ts +10 -1
  45. package/dist/scheduler/mcpBoot.d.ts.map +1 -1
  46. package/dist/scheduler/mcpBoot.js +6 -1
  47. package/dist/scheduler/mcpBoot.js.map +1 -1
  48. package/dist/scheduler/mcpSurface.js +1 -1
  49. package/dist/scheduler/mcpSurface.js.map +1 -1
  50. package/dist/scheduler/workerActivity.d.ts.map +1 -1
  51. package/dist/scheduler/workerActivity.js +2 -1
  52. package/dist/scheduler/workerActivity.js.map +1 -1
  53. package/dist/state.d.ts +1 -1
  54. package/dist/stateFile.d.ts.map +1 -1
  55. package/dist/stateFile.js +2 -1
  56. package/dist/stateFile.js.map +1 -1
  57. package/dist/testTimings.d.ts +3 -2
  58. package/dist/testTimings.d.ts.map +1 -1
  59. package/dist/testTimings.js +8 -1
  60. package/dist/testTimings.js.map +1 -1
  61. package/dist/types.d.ts +11 -8
  62. package/dist/types.d.ts.map +1 -1
  63. package/dist/utils/adoptReplayGate.d.ts +7 -5
  64. package/dist/utils/adoptReplayGate.d.ts.map +1 -1
  65. package/dist/utils/adoptReplayGate.js +7 -5
  66. package/dist/utils/adoptReplayGate.js.map +1 -1
  67. package/dist/utils/checkIsRecord.d.ts +6 -0
  68. package/dist/utils/checkIsRecord.d.ts.map +1 -0
  69. package/dist/utils/checkIsRecord.js +11 -0
  70. package/dist/utils/checkIsRecord.js.map +1 -0
  71. package/dist/utils/claudeCompactSummary.js +4 -4
  72. package/dist/utils/claudeCompactSummary.js.map +1 -1
  73. package/dist/utils/claudeMcpHeal.d.ts +18 -3
  74. package/dist/utils/claudeMcpHeal.d.ts.map +1 -1
  75. package/dist/utils/claudeMcpHeal.js +19 -4
  76. package/dist/utils/claudeMcpHeal.js.map +1 -1
  77. package/dist/utils/claudeRuntimeInfo.d.ts.map +1 -1
  78. package/dist/utils/claudeRuntimeInfo.js +4 -6
  79. package/dist/utils/claudeRuntimeInfo.js.map +1 -1
  80. package/dist/utils/claudeStreamJson.d.ts +0 -3
  81. package/dist/utils/claudeStreamJson.d.ts.map +1 -1
  82. package/dist/utils/claudeStreamJson.js +21 -26
  83. package/dist/utils/claudeStreamJson.js.map +1 -1
  84. package/dist/utils/claudeSubagentTail.d.ts.map +1 -1
  85. package/dist/utils/claudeSubagentTail.js +4 -11
  86. package/dist/utils/claudeSubagentTail.js.map +1 -1
  87. package/dist/utils/claudeUsage.d.ts.map +1 -1
  88. package/dist/utils/claudeUsage.js +8 -10
  89. package/dist/utils/claudeUsage.js.map +1 -1
  90. package/dist/utils/openCodeUsage.d.ts.map +1 -1
  91. package/dist/utils/openCodeUsage.js +8 -10
  92. package/dist/utils/openCodeUsage.js.map +1 -1
  93. package/dist/utils/telegramError.d.ts.map +1 -1
  94. package/dist/utils/telegramError.js +5 -7
  95. package/dist/utils/telegramError.js.map +1 -1
  96. package/npm-shrinkwrap.json +2 -2
  97. package/package.json +4 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 4.0.0 — 2026-11-16
6
+
7
+ **Charness 4.0 is free for personal use and for organizations with up to $500,000 revenue (funding included) and up to 20 people; larger organizations pay one annual license from $500, with unlimited users and agents; every release before 4.0 stays MIT.**
8
+ From 4.0 the license is the [Charness License 1.0.0](LICENSE) — source-available, not open source. Who pays: an organization group whose revenue plus the funding it raised in the last 12 months is above $500,000, or that has more than 20 people (everyone working for the group, not only the people who use Charness). The fee is the higher of the revenue band and the people band — $500, $2,000, $6,000, $15,000, $30,000 or $60,000 a year for the whole group, no seats — with 20% off for a "Powered by Charness" mark and 15% off for prepaying 2 or 3 years. Personal use, education, charities and public bodies' core work are free, and so is one 32-day evaluation.
9
+ What to do: nothing for personal use or a free group. An organization that already runs MIT Charness gets one 90-day transition from the first day it uses a 4.x release. Buying is by e-mail (charnesshub@gmail.com), with no license keys, no telemetry and no prompt inside the bot. Every release before 4.0 stays MIT, and an install is never moved to 4.0 by itself: General announces it and waits for your tap. Details: [licensing FAQ](docs/licensing-faq.md), [MIGRATION_3_TO_4.md](MIGRATION_3_TO_4.md), [commercial page](https://olosegres.github.io/charness/commercial/).
10
+
11
+ ## 3.14.0 — 2026-11-13
12
+
13
+ **The bot's MCP server is now named `charness` instead of `telegramBot`, so an agent's tools read `mcp__charness__schedule_create`, `mcp__charness__answer_request`, … in Claude Code (`charness_answer_request` in OpenCode) — the bot serves Jira too, not only Telegram.**
14
+ Before, a tool carried the Telegram name (`mcp__telegramBot__schedule_create`) even in a Jira conversation. The bot's skills, instructions and tool descriptions already name the tools bare (`schedule_create`), so they read right under either name.
15
+ What to do: a permission allow-list of your own that names `mcp__telegramBot__…` must be renamed to `mcp__charness__…` (the bot writes no such list itself). There is NO alias under the old name — a second registration would double every tool in an agent's context. A Claude agent that was already running keeps the old tool names until the bot stops it on idle (about an hour); for this release the bot still repairs its tools under the old name if a restart of the bot cut them (they would otherwise stay gone until the agent restarts). In OpenCode the bot disconnects the registration left under the old name the first time it starts after the update, so no folder ends up with the tools twice (a server of that name that you defined yourself in `opencode.json` is not the bot's and is left alone).
16
+ The name is the bot's: an entry called `charness` in `DATA_DIR/mcp.json` or `DATA_DIR/threads/<key>.json` is left out of what Claude is given (one warning in the log names the file) — rename your server to keep it. A server called `charness` in your own `~/.claude.json` or a project's `.mcp.json` needs the same rename; one in your `opencode.json` is replaced by the bot's own in each folder's OpenCode instance, with one warning per folder in the log, so rename it too.
17
+
18
+ **A Claude topic whose turn ran into a usage limit while the bot was down no longer gets a «usage limit reached» notice after the restart for a limit that is already over — the bot just says the work resumed.**
19
+ This happened when the bot took a while to come back up (a busy machine, or many topics with running agents). It read a running agent's output from the downtime too early, before it had worked out that the limit was already over. The same early read could also set up the retry twice, or stop a per-turn agent before the bot reconnected its own tools to it, which left the warning «MCP heal … left unhealed» in the log. Now the bot reads a running agent's output only once it has restored everything it had before the restart.
20
+
21
+ **A runner whose service is stopped now ends with its program's own exit code, not with 143, also on a busy machine.**
22
+ The `charness-runner` launcher passes the stop signal on to the runner program and waits for it. On a busy machine the program could end before the launcher checked on it again, and the launcher then reported the signal's 143 instead of the program's clean exit. A service manager reads 143 as a stop by a signal. The launcher now always waits for the program's own exit status. A runner writes the new launcher when it updates, and uses it from the next start of its service.
23
+
5
24
  ## 3.13.0 — 2026-11-12
6
25
 
7
26
  **A Jira instance with a `trustedGroup` can now trust only the apps and automations you list: the new `jira.json` key `trustedApps` names their account ids, and any other app is treated like a person outside the group.**
@@ -0,0 +1,142 @@
1
+ # Charness Commercial License Terms 1.0.0
2
+
3
+ Version 1.0.0, for Charness 4.0 and later. Read together with the [Charness License 1.0.0](https://olosegres.github.io/charness/license/1.0.0/).
4
+
5
+ These terms are between **Sergei Solo** (licensor; the details of the licensor's Georgian individual entrepreneur registration are given by email on request) and the designated organization buying on behalf of its organization group (licensee).
6
+
7
+ ## 1. Ordering and precedence
8
+
9
+ 1.1. To buy, write to charnesshub@gmail.com. Information: https://olosegres.github.io/charness/commercial/. There is no checkout currently. An agreed written order and payment establish the license; the order states the beneficiary legal entity, covered group, assessment date, certified R/H bands, list price in USD, any discount under section 2.4 with its condition, the net price, applicable taxes, the Term (one year, or a prepaid 2- or 3-year Term) with start/end dates and the fixed versions of these terms and the public Charness License 1.0.0 at https://olosegres.github.io/charness/license/1.0.0/. The representative warrants authority to bind and cover the named group.
10
+
11
+ 1.2. The order confirmation and invoice are proof; no keys, activation or compliance telemetry are required. A payment provider is not represented as live. If an order is later placed through Paddle or another authorized merchant of record, the seller and its buyer terms must be identified before acceptance: those terms govern the purchase, these terms the software rights. No mutable website silently changes an accepted price or grant.
12
+
13
+ 1.3. Independently available public-license or MIT permissions remain intact. Signed OEM or hosting/reseller addenda prevail for their expressly covered subject matter. Sections 17 and 18 define the terms to incorporate into such addenda; they do not activate onward rights just because an ordinary license was bought. The partner programme requires a separate agreement and grants no software rights.
14
+
15
+ ## 2. Definitions and schedule
16
+
17
+ 2.1. Software means Charness released by the licensor under the Charness License. Organization group, Control, Group people (H), Revenue and funding (R), Measurement date/period, Commercial operation and C have exactly the meanings in the fixed public License 1.0.0 incorporated in the order, including institutional separation. In particular, R includes investment and commercial-grant funding received in the measurement period, including equity, convertible notes and SAFEs; ordinary bank loans do not count. The entire group's workforce counts, not just Charness operators. Users, agents and instances are not billable quantities.
18
+
19
+ 2.2. Assess each column independently and choose the higher band. Free ordinary use requires BOTH free-column conditions. Prices are USD per group per year, excluding applicable taxes. Every upper revenue boundary belongs to the lower band.
20
+
21
+ | Band | R: trailing-12-month revenue plus counted funding | H: group people | Annual group fee |
22
+ |---|---|---|---:|
23
+ | Free | R <= $500,000 | H <= 20 | $0 |
24
+ | Small | $500,000 < R <= $2,000,000 | 21–50 | $500 |
25
+ | Growing | $2,000,000 < R <= $10,000,000 | 51–250 | $2,000 |
26
+ | Established | $10,000,000 < R <= $50,000,000 | 251–1,000 | $6,000 |
27
+ | Large | $50,000,000 < R <= $250,000,000 | 1,001–5,000 | $15,000 |
28
+ | Very large | $250,000,000 < R <= $1,000,000,000 | 5,001–10,000 | $30,000 |
29
+ | Global | R > $1,000,000,000 | H > 10,000 | $60,000 |
30
+
31
+ 2.3. The Term is the period stated in the paid order: one year, or two or three consecutive years when prepaid under section 2.4(b). Each consecutive year from the start date is a **Term year**. A new paid renewal grants another Term. One designated licensee buys once for the group, not once per affiliate, installation or user. Purpose-exempt institutions follow the public license's special C trigger and commercial-operation scope; the ordinary H trigger applies from the start to separate for-profit spin-offs and government trading companies.
32
+
33
+ 2.4. Discounts. Only the following discounts apply, and only when the order states them. They reduce the list price in section 2.2 and the total supplier fee in section 17.3, never a $0 fee, and do not apply to a hosting/reseller agreement under section 18 unless it says so.
34
+
35
+ (a) **Mark discount, 20%.** Throughout the Term the licensee displays the "Powered by Charness" mark, in the form and with the link to https://olosegres.github.io/charness the licensor supplies, in the customer-visible interface of a product the group offers (such as its about, credits or footer area) or on the group's public website, reachable without login. For that purpose only, and only during the Term, the licensor grants a non-exclusive, non-transferable, royalty-free permission to display that mark. It is no permission to use Charness in a product, company or domain name, to suggest endorsement, partnership or certification, or to alter the mark. "Charness" is not a registered trademark; this permission is a contractual term, not a statement that a registration exists, and the display is made under the licensor's permission and for its benefit. The mark is in addition to, never a substitute for, the required copyright and license notices. If the display lapses and is not restored within 30 days after written notice, the mark discount for the remainder of the Term becomes payable, prorated by days, and the permission ends; with both discounts, that is the difference between the price with the prepayment discount alone and the price with both. The licensor may ask the licensee to change or remove the mark at any time; complying keeps the discount for the current Term.
36
+
37
+ (b) **Prepayment discount, 15%.** The licensee pays a 2-year or 3-year Term in full in advance. The price schedule and these terms are fixed for every prepaid Term year. Band selection stays annual: at each Term-year anniversary the latest month-end assessment applies; if it selects a higher band, the licensee pays, for each remaining prepaid Term year, the difference between the discounted prices of the new and the prepaid band. A lower band creates no refund or credit. Acquisition adjustments under section 7.5 apply to every affected prepaid Term year.
38
+
39
+ (c) **Stacking.** Both discounts may apply together; they multiply, they do not add: net price = list price x 0.80 x 0.85, that is 68% of list (32% off, not 35%), rounded to the nearest cent. For example, the $6,000 band costs $4,800 a year with the mark, $5,100 a year prepaid, and $4,080 a year with both ($12,240 for a prepaid 3-year Term). Band differences, acquisition adjustments and supplier fees use the same discount factors while their conditions hold. Referral commission is calculated on the fees actually collected after discounts.
40
+
41
+ ## 3. Internal-use grant
42
+
43
+ 3.1. During the Term the licensor grants the licensee and its covered group a non-exclusive, worldwide license to install, run, copy and modify the Software for internal business work, with unlimited users, agents, jobs, machines and instances. This includes unattended CI, whether or not humans directly operate it. Contractors may act under this permission for the group's work without a separate user fee.
44
+
45
+ 3.2. A client remains the beneficiary licensee for its own installed or client-directed internal use. A provider may buy on its behalf and administer its instance. Output-only work with a provider's own properly licensed tools follows the provider's eligibility under the public Work for Clients conditions, not the client's size. A short-term installer can administer an instance without automatically counting in the client's H.
46
+
47
+ 3.3. Modifications do not escape eligibility or onward-distribution limits. Modifications made under this internal grant may be shared without charge on the same pass-through conditions as the public Distribution License; no broader recipient rights are granted. Independent public permissions remain available. Selling copies, embedding or supplying software access requires the appropriate separate addendum, not this sharing permission. Independently created output carries no Charness royalty or ownership claim.
48
+
49
+ ## 4. Term and expiry
50
+
51
+ 4.1. The Term covers all Software versions released before or during it, for every Term year of a prepaid Term. No future release, fix or update is promised. Rights to continued covered organizational operation are annual, not a purchase of a perpetual fallback version.
52
+
53
+ 4.2. At expiry without renewal, cease productive use under this agreement unless an independent free or MIT permission applies. Backups and source may be retained for records and migration planning, but retention does not authorize continued execution of the Software. Outputs remain yours, subject to third-party rights. There is no remote kill switch. The narrow surviving installed-customer OEM runtime right in section 17 is not a supplier or ordinary internal-use fallback.
54
+
55
+ 4.3. Existing MIT grants and any previously executed perpetual commercial grant remain governed by their own terms. These terms do not rewrite an executed agreement. Existing MIT organizational adopters receive the single 90-day new-version transition in the public license, not a retrospective MIT bill.
56
+
57
+ ## 5. Scope and services
58
+
59
+ 5.1. Ordinary rights do not authorize an embedded product, general-purpose hosting/resale or unrestricted sublicensing. Public no-charge mirrors/forks, authorized client installation and permitted classroom/research access remain allowed. Section 17 addresses genuine embedded products; section 18 addresses substantially Charness itself, including thin UI/API wrappers.
60
+
61
+ 5.2. The fee does not include hosting, model/API costs, installation, configuration, consulting, training, maintenance, support, priority service, custom development or an SLA. Independent providers may sell those services and keep their service fees without a Charness royalty. Their turnover still counts in their own group's R. This is not an offer of consulting services by the licensor.
62
+
63
+ ## 6. Third-party services
64
+
65
+ Charness grants no rights to Anthropic, OpenAI, OpenCode-connected providers, Telegram, issue trackers or other third-party services. The licensee supplies and pays for its own accounts and must comply with their terms. Individual subscriptions may prohibit account sharing or routing other people's requests. Use provider plans and access arrangements that expressly cover the intended organizational use; Team, Enterprise or API offerings may be relevant, but a plan name alone is not blanket authorization. This license does not authorize bypassing usage limits.
66
+
67
+ ## 7. Assessment, changes and verification
68
+
69
+ 7.1. Use the latest completed month-end assessment when purchasing or renewing, or actual formation-to-date figures if no month end yet exists. Self-certify the group scope, R/H bands and assessment date, not complete accounts or named employee lists. Keep sufficient records for three years as required by the public Eligibility Verification clause, which also governs paid verification here: credible discrepancy, certification first with 30 days to respond, then only a reasonably grounded unresolved discrepancy permits an independent confidential audit. Audits are limited to once per 12 months, at least 30 days' notice, relevant records and minimal interference; sufficient redacted accountant confirmations must be accepted. No repositories, prompts, credentials, customer data or production-system access is authorized.
70
+
71
+ 7.2. The licensor normally bears audit costs. Cost shifting requires actual underpayment exceeding both 10% of fees due for the reviewed period and $1,000, and is limited to reasonable documented costs capped at recovered underpayment. Only actual overdue fees are recoverable, not fees for genuinely free or transition-authorized periods or punitive multipliers. Confidentiality, permitted use of records, honest correction and payment-plan provisions of the public clause apply.
72
+
73
+ 7.3. A free group's first qualifying month-end crossing starts the public license's 90-day growth transition. Restored eligibility avoids purchase, but re-crossing within 12 months does not reset the original deadline. This is not extra evaluation time for groups above the line on adoption. The existing-MIT transition is distinct and cannot be stacked after evaluation.
74
+
75
+ 7.4. Ordinary organic growth, including new revenue and newly raised funding, does not raise the paid fee during a Term year. At renewal, and at each anniversary of a prepaid Term under section 2.4(b), the latest R/H assessment selects the band; decreases permit downgrading or returning to free use. A false or mistaken initial assessment is corrected to the fee actually due at purchase, subject to notice and cure, not protected by the price lock.
76
+
77
+ 7.5. A merger/acquisition adding a business requires reassessment of the combined group within 90 days of completion, including acquired trailing history. Pay only the positive difference, prorated from completion to the end of the affected Term, crediting prepaid overlapping group coverage for the same period. No duplicate billing; a negative difference creates no mid-term refund, but may lower the next renewal. The order adjustment records the new group and aligned coverage dates.
78
+
79
+ ## 8. Payment and renewal
80
+
81
+ Fees are payable in advance under the agreed order, with taxes separately stated: yearly, or for the whole Term when prepaid under section 2.4(b). The fixed schedule in section 2 applies unless a separately negotiated order expressly states otherwise; ordinary large-company bands are published, not custom-price-only. Renewals currently require an agreed renewal order and payment; no automatic checkout or automatic debit is represented. Prospective price or term changes require at least 30 days' notice before renewal and acceptance in the renewal order. Otherwise the prior price schedule and terms remain available for that renewal. No mid-Term website change affects the price; acquisition adjustments and correction of initial errors follow section 7.
82
+
83
+ ## 9. Refunds
84
+
85
+ Request a full refund within 30 days after any payment, including renewal and a multi-year prepayment, without giving a reason: write to charnesshub@gmail.com. A group can receive this no-reason refund once in any 12 months; a further refund in that period is at the licensor's discretion. After those 30 days, a prepayment is not refunded pro rata for unused Term years, except where section 7.5 or mandatory law requires it. If an identified merchant of record handled the order, the licensor arranges the refund through it. Corresponding paid rights end on refund, without removing independent free or MIT rights or valid surviving OEM customer runtime rights under section 17. Refunded fees and chargebacks are excluded from referral commission and offset against any already paid commission under the partner agreement. Mandatory legal rights are unaffected.
86
+
87
+ ## 10. No warranty
88
+
89
+ As far as the law allows, the Software comes as is, without any warranty or condition, express or implied, including merchantability, fitness for a particular purpose and non-infringement. The licensor does not promise error-free or uninterrupted operation or suitability for the licensee's needs.
90
+
91
+ ## 11. Limitation of liability
92
+
93
+ As far as the law allows, the licensor's total liability under or in connection with these terms and the Software is limited to license fees paid by the licensee in the 12 months before the event causing the claim. The licensor is not liable for indirect or consequential loss, or loss of profit, revenue, data, business or goodwill, including loss caused by an agent. Nothing limits liability that cannot lawfully be limited, including intent or fraud.
94
+
95
+ ## 12. Termination
96
+
97
+ For a material breach the licensor may terminate by a second written notice if the licensee fails to correct the breach and take practical steps to remedy past violations within 32 days after receiving written notice. The public first-notice cure is not shortened. A verification request is not itself a finding of breach. Non-renewal is not a breach; unauthorized continued operation after expiry is. Accrued payment/refund obligations, limited three-year record/verification obligations, confidentiality, exclusions, liability limits, law and valid surviving OEM customer runtime rights survive as applicable. No supplier operational rights survive merely because they once paid.
98
+
99
+ ## 13. Transfer
100
+
101
+ The license may transfer only with the business or relevant business part, on written notice identifying the successor and its group and subject to section 7.5 reassessment and credits. A sale cannot permanently carry a Small fee into a larger group. A departing business assesses its new group; coverage is not duplicated indefinitely between seller and buyer. The licensor may transfer this agreement to a successor of its Charness business on notice.
102
+
103
+ ## 14. Law and disputes
104
+
105
+ Georgian law governs these software-license terms; the UN Convention on Contracts for the International Sale of Goods does not apply. Courts in Tbilisi, Georgia, decide disputes unless mandatory applicable law prevents that choice. An identified merchant-of-record purchase, if used, remains governed separately by its disclosed buyer terms.
106
+
107
+ ## 15. Versions
108
+
109
+ These terms and their incorporated public license must remain available at fixed versioned locations. New versions operate prospectively under section 8, never by silently editing a version already issued. If an earlier version was issued, changed terms get a new version and the issued grant is honored.
110
+
111
+ ## 16. Notices
112
+
113
+ Licensor: charnesshub@gmail.com. Licensee: the email address in its order. Email is written notice. Commercial information: https://olosegres.github.io/charness/commercial/.
114
+
115
+ ## 17. OEM addendum terms (separate written activation required)
116
+
117
+ 17.1. A signed OEM addendum identifying the supplier group, covered product families, permitted on-premises/hosted architectures, product-specific agent tasks and Term dates (one year, or a prepaid 2- or 3-year Term) must expressly incorporate this section before onward distribution or hosted product launch. It is required even at a $0 fee. It grants the supplier, for that term, the right to embed, copy, modify and distribute the Software in those products, or operate the identified hosted products, and to grant customers the limited runtime permission in section 17.4. These explicit rights supplement the public license's no-sublicensing default; no general-purpose Charness resale is granted.
118
+
119
+ 17.2. P is aggregate external revenue over the same measurement period from all of the group's Charness-embedded product families, including related renamed SKUs. Count the whole relevant product, not an estimated Charness contribution. Include subscriptions, software licenses and mandatory bundled charges, less actual refunds and sales taxes but not reseller commissions. Exclude separately priced genuinely optional consulting, installation and training; allocate bundles by consistent standalone selling prices, not token product prices hiding compulsory setup. Investment/funding is not product-sales P; it remains in ordinary group R. Unrelated product revenue affects R but not P.
120
+
121
+ | Embedded-product revenue P | Annual OEM schedule amount |
122
+ |---|---:|
123
+ | P <= $500,000 | $0 |
124
+ | $500,000 < P <= $2,000,000 | $2,000 |
125
+ | $2,000,000 < P <= $10,000,000 | $6,000 |
126
+ | $10,000,000 < P <= $50,000,000 | $15,000 |
127
+ | $50,000,000 < P <= $250,000,000 | $30,000 |
128
+ | P > $250,000,000 | $60,000 |
129
+
130
+ Each paid OEM amount is deliberately one band above the ordinary schedule: it is the price the ordinary table charges for the next higher revenue band (P above $500,000 through $2,000,000 costs the Growing price, and so on; P above $250,000,000 costs the Global price). Embedded-product revenue up to $500,000 stays at $0.
131
+
132
+ 17.3. **Total annual supplier fee is the greater of the ordinary group fee and the OEM schedule amount, never their sum.** Credit ordinary fees already paid for overlapping coverage; co-term an added OEM grant and prorate the positive difference for the remainder. Apply the ordinary annual organic-growth lock to a paid combined fee, and the 90-day free-to-paid growth transition to a zero combined fee when either its ordinary eligibility or P first crosses its free limit at month end. Renewal assessment and acquisition rules apply to the combined fee. A no-fee OEM term also lasts one year and must be renewed in writing; growth grace does not dispense with an addendum before launch or extend an expired term. Keep product-sales calculations for the same limited verification. Section 2.4 discounts apply to the total supplier fee after the greater amount is chosen on list prices; for the mark discount, the mark may appear in the embedded product's customer-visible interface. This is a flat schedule, not a percentage royalty or promise of support.
133
+
134
+ 17.4. Customers may run the embedded component solely within the identified product for the authorized product-specific tasks, without a separate Charness fee or reporting their size. They may not extract/reuse it for unrelated automation or sublicense a general-purpose platform. For lawfully distributed on-premises product versions, that limited customer runtime permission is perpetual and survives supplier non-renewal, refund or later breach; it grants no right to new product distributions or updates. Supplier expiry ends new distribution/update and hosted operation rights, not compliant customers' installed runtime permission. Hosted customers require a current supplier agreement. Preserve copyright/license notices, allow different product branding without erasing attribution, and have the supplier handle customer support. There is no customer kill switch. The addendum must pass these rights and restrictions to customers expressly.
135
+
136
+ ## 18. Hosting/reseller addendum terms (separate written activation required)
137
+
138
+ Selling or providing substantially Charness itself, even through a new brand, UI, API or AI intermediary, requires a signed agreement naming the provider, beneficiary clients, permitted service and term. Each client independently qualifies free or holds its normal group license, which the provider may procure on its behalf; the provider's OEM amount is not blanket coverage. Pure operational administration for these named clients is covered by client permissions, not a second ordinary group fee for the same client work. The provider's separate internal business use follows its own group band. Any additional hosting/resale commercial consideration must be agreed separately; these terms promise no all-inclusive wholesale price. Without that signed agreement there is no host/resale grant, even for free clients.
139
+
140
+ ## 19. Referral programme (separate partner agreement required)
141
+
142
+ Approved referrals earn 20% of license fees actually collected for a new customer's first 12 months, excluding sales taxes, refunds and chargebacks. This is not a royalty on partners' consulting income or a perpetual renewal commission. A separate signed partner agreement must provide for accepted named referrals before purchase, one partner per customer, no self/affiliate referrals, no stacking with resale discounts, quarterly payout after the refund window, and a $100 minimum carried forward. Use an introduction email or order code, not mandatory tracking cookies. Required disclosures and bans on procurement kickbacks or payments to customer employees/public officials apply. No right to commission arises merely from these terms; partner settlement and bookkeeping are separate from customer licensing and any payment provider.
package/DEVELOPMENT.md CHANGED
@@ -183,7 +183,8 @@ of named overrides (`src/testTimings.ts`: `telegramSendIntervalMs` — the globa
183
183
  below the 10 s floor of `jira.json`, `requestTurnPollMs` — the wake-up engine's 10 s poll of the turns it watches,
184
184
  `requestSweepIntervalMs` and `requestFirstPostRetryDelayMs` — the wake-up engine's minutes, `limitProbeDelayMs` — the two-minute probe of an unconfirmed usage limit, `stateSaveDebounceMs` — `state.json`'s
185
185
  500 ms save debounce, `openCodeServerUpBudgetMs` — the OpenCode server's 60 s of retries, `backgroundHoldMaxMs` — the 6 h the
186
- agent's own pending work holds a json-stream process, `todoReminderPollMs` and `todoReminderIntervalMs` — the todo
186
+ agent's own pending work holds a json-stream process, `adoptedTailFirstReadMs` — the 300 ms from the boot's release of an
187
+ adopted json-stream session to the first read of its output, `todoReminderPollMs` and `todoReminderIntervalMs` — the todo
187
188
  reminder's 10 s poll and the interval `settings.json` sets, `creditRecheckIntervalMs` and `creditRecheckPollMs` — the 24 h between two rechecks of a used-up API credit and the 30 min poll that finds one due, `scheduleMinFireIntervalMs` — the 5 min minimum between cron fires, `checkStatusIntervalMs` — the 15 min gap between a passing check's status lines, `bindPickerClaimLimit` — how many `/bind` picker claims are kept (a count: 200), `remoteRunLeaseMs`, `remoteRunRunnerPollMs` and `remoteRunProbeDeadlineMs` — the 45 s heartbeat lease, the 10 s poll of the wait for a paired runner and the 20 s deadline of the probe of the runners in `charness remote-run`, `tscWatchCheckIntervalMs` and `tscWatchStaleGraceMs` — the
188
189
  hot supervisor's 30 s check of its `tsc -w` and the minute a source may stay newer than its output; the supervisor reads these last two, the remote-run CLI the three before them (the bot's `/runners` probe reads `remoteRunProbeDeadlineMs` too), the bot the rest).
189
190
  It is the ONE test-only timing seam,
@@ -283,9 +284,10 @@ publish, no tag, no push, the run is red; the next day's run tries again by itse
283
284
  major is released only by dispatching the workflow with `bump=major`.
284
285
  - **Nothing to release** (green, nothing tagged): no commits since the last tag, `HEAD` already tagged, or no shipped
285
286
  path in the net diff from the tag — `src/**/*.ts` outside `src/__tests__` and `src/release`, `stt/gigaam_sidecar.py`,
286
- and `package.json` only when `dependencies`, `bin`, `engines`, `files` or `main` differ. A docs-only or tests-only
287
- day, or a change and its revert, publishes nothing; README / SETUP changes reach the npm page with the next code
288
- release.
287
+ `npm-shrinkwrap.json`, `LICENSE`, `COMMERCIAL-LICENSE.md`, everything under `agent-plugin/`, and `package.json` only when
288
+ `dependencies`, `bin`, `engines`, `files`, `main` or `license` differ. A docs-only or tests-only day, or a change and its
289
+ revert, publishes nothing; README / SETUP changes reach the npm page with the next code release. A change to the license
290
+ texts or the `license` field does count: it is a release (`releasePlan.ts` is the source of truth for both lists).
289
291
  - **Manual run** (Actions → Release to npm → Run workflow): `bump` `auto|patch|minor|major`; `force` releases even when
290
292
  the skip rules say skip (never past the breaking-change guard of `auto`); `dryRun` does everything but the publish, the
291
293
  push and the GitHub Release — it runs `package` and `check-install` (the install and the merge with `main`) — and prints the
@@ -298,8 +300,9 @@ publish, no tag, no push, the run is red; the next day's run tries again by itse
298
300
  paragraph or `- ` bullet, in any `###` subsection — starts with a bold first sentence (`**…**`); the run fails,
299
301
  quoting the line, otherwise (`changelogFormat.test.ts` fails first on a commit that breaks it). An empty
300
302
  `## Unreleased` is filled with the `feat` / `fix` subjects.
301
- - **Package check** before anything is published: the tarball holds `dist/cli.js`, `stt/gigaam_sidecar.py`, `npm-shrinkwrap.json`,
302
- `CHANGELOG.md`, `README.md`, `LICENSE` and no `src/` or tests, and installed the way a user installs it — `npm install -g`
303
+ - **Package check** before anything is published: the tarball holds `package.json`, `dist/cli.js`, `stt/gigaam_sidecar.py`,
304
+ `remoteRun/runner-package-lock.json`, `remoteRun/ensureNode.sh`, `npm-shrinkwrap.json`, the agent plugin's manifest and
305
+ orchestration skill, `CHANGELOG.md`, `README.md`, `LICENSE`, `COMMERCIAL-LICENSE.md` (`requiredPackFiles`) and no `src/` or tests, and installed the way a user installs it — `npm install -g`
303
306
  from a loopback registry that serves the tarball and marks its shrinkwrap, as the npm registry does (an install of the
304
307
  tarball FILE ignores the shrinkwrap), dependencies passed on to the real registry — `charness --version` prints the new
305
308
  version and every package sits at the version the shrinkwrap pins (`yarn tsx src/release/cli.ts check-pack`, after
package/LICENSE CHANGED
@@ -1,21 +1,152 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Sergei Solo
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ Required Notice: Copyright 2026 Sergei Solo (https://github.com/olosegres/charness)
2
+ Required Notice: Commercial licenses for organization groups: https://olosegres.github.io/charness/commercial/
3
+
4
+ # Charness License 1.0.0
5
+
6
+ https://olosegres.github.io/charness/license/1.0.0/
7
+
8
+ ## Acceptance
9
+
10
+ In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
11
+
12
+ ## Copyright License
13
+
14
+ The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
15
+
16
+ ## Distribution License
17
+
18
+ The licensor grants you an additional copyright license to share copies of the software without charge, including public source mirrors and forks, with the notices required below and without granting recipients broader rights than these terms. This includes changes and new works lawfully made under [Changes and New Works License](#changes-and-new-works-license). You may also supply copies to a client solely to install or maintain its internal instance under that client's own permission or commercial license, and charge for those services, not for the software rights. These permissions do not authorize selling copies, supplying an embedded product, or offering hosted access to the software or its functionality; [Products and Hosted Services](#products-and-hosted-services) governs those activities, even if access is offered without charge. Recipients must independently qualify for their use or hold the required agreement.
19
+
20
+ ## Notices
21
+
22
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
23
+
24
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
25
+
26
+ ## Changes and New Works License
27
+
28
+ The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
29
+
30
+ Changes and new works based on the software remain subject to the same eligibility and distribution limits. Output merely created using the software, such as independently written code, documents or other deliverables that do not include the software, is not a work based on the software for these terms. The licensor claims no ownership or royalty in that output. Third-party rights in output are unaffected.
31
+
32
+ ## Patent License
33
+
34
+ The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
35
+
36
+ ## Fair Use
37
+
38
+ You may have "fair use" rights for the software under the law. These terms do not limit them.
39
+
40
+ ## Individuals
41
+
42
+ Personal hobby, study and independent non-business projects are permitted purposes. All paid own-account work, including freelance work and a one-person automated business, is business use and follows [Small Organizations](#small-organizations), not an unlimited individual exemption. A sole proprietorship counts whether registered or not.
43
+
44
+ Subject to [Work for Clients](#work-for-clients), work for an organization or whose results belong to it is for that organization's benefit, whoever owns the hardware. An employer is not a client, and employment is not own-account work. Mere use of the public results of your independent personal project does not turn it into organizational work.
45
+
46
+ ## Small Organizations
47
+
48
+ Internal use for an organization group is a permitted purpose if its R is at most USD 500,000 AND its H is at most 20, using the definitions below. Exactly USD 500,000 and 20 people qualify. All actual users, agents, jobs, machines and instances are unlimited; H counts the whole workforce, not software users. Unattended operation, including CI with no direct human users, is still group use. Public-benefit use and evaluation have the separate permissions below.
49
+
50
+ Assess R and current H at every month end, and at first adoption using the latest completed month-end assessment (or actual figures since formation if no month end exists). If a genuinely eligible free group later exceeds either limit at a month end, its internal use remains permitted during a 90-calendar-day growth transition starting at that month end. By the deadline it must buy the then-applicable annual license or stop covered use, unless it has regained free eligibility. Re-crossing within 12 months of the original crossing does not restart the allowance: the original deadline still applies. No fees are due for genuinely eligible free use or this authorized transition. A group already above the limits when first adopting does not get growth grace merely by adopting.
51
+
52
+ Paid groups select the higher of the R and H bands in the fixed schedule incorporated in their commercial order. Ordinary organic growth, including new revenue and newly raised funding, is covered through each paid term year with no mid-year surcharge; renewal uses the latest assessment and permits downgrading or returning to free eligibility. A merger or acquisition requires combined-group reassessment within 90 days of completion and only the prorated positive fee difference for the remaining term, with overlapping prepaid group fees credited. A free group that becomes part of a larger group through a merger or acquisition has the same 90-day period from completion to bring the combined group into compliance. Incorrect initial declarations are corrected to the band due then, not protected as growth. Paid rights expire at the term end without renewal; there is no perpetual internal-use fallback.
53
+
54
+ ## Work for Clients
55
+
56
+ Any service provider whose own group use is permitted under these terms or a commercial license may use its own tools to produce client deliverables. That remains the provider's use, irrespective of client size, as long as:
57
+
58
+ 1. the software itself runs only on systems you control that the client does not own, rent, pay for (including reimbursing their cost), or control; and
59
+
60
+ 2. neither the client nor anyone acting for it, other than the provider's people doing that work, administers the software or directs an agent through it, for example by writing to it or assigning work to it in an issue tracker. This access test applies regardless of how many days the person works for the client.
61
+
62
+ Accessing client repositories or systems through separately licensed tools or agents does not itself mean that the software runs there. A client's request to you is not direction of an agent unless the client can cause agent work through the software without your deciding to pass that request on.
63
+
64
+ Otherwise, client installation or client-directed operation is the client's use under its own eligibility or commercial license, optionally obtained by the provider on its behalf. Authorized contractors may install, administer and use the client's internal instance without a separate fee for that client-only work; their eligibility to act is not conditional on counting in H. The current-engagement and 30-worked-day rules determine H separately. The provider's separate internal use follows its own group band. There is no royalty on installation, configuration, consulting, maintenance or training invoices; that income still enters the provider's R for its own group assessment.
65
+
66
+ ## Products and Hosted Services
67
+
68
+ An embedded product includes or runs the software as an operational component, or supplies its agent-orchestration functionality as a feature of another product. Supplying such a product, on premises or hosted, requires a separate written OEM addendum identifying the products, architectures and allowed product-specific tasks, even when the OEM schedule amount is zero. A standard internal-use license alone does not grant these rights. Merely using the software to create output, or an independently written connector or input/output integration that does not supply the software or its functionality, does not require OEM rights.
69
+
70
+ Offering substantially the software itself as a hosted, managed, rebranded or resale service requires a separate written hosting/reseller agreement and each beneficiary client's own free eligibility or normal group license. It is not covered by a blanket OEM fee. These limits apply regardless of price, host size or recipient size, and cannot be avoided through a new UI, API or AI intermediary.
71
+
72
+ Internal access by people acting for the group and contractors administering its independently controlled internal instance is not onward hosting. That instance may run on contractor infrastructure. Ordinary client administration or separately supplied generic infrastructure is not itself a provider-controlled software-access service. Classroom, learning and genuine research access under [Education and Public Benefit](#education-and-public-benefit) is expressly permitted without an OEM/hosting agreement; it does not authorize a general-purpose public hosting business. Write to charnesshub@gmail.com; information: https://olosegres.github.io/charness/commercial/.
73
+
74
+ ## Education and Public Benefit
75
+
76
+ Teaching, student learning and genuine academic or noncommercial scientific research by recognized educational or research institutions and individual researchers are permitted purposes. Internal administration and mission delivery by public or nonprofit educational institutions, genuine charities (including nonprofit public-health, safety and environmental bodies) and public authorities are also permitted, irrespective of core budget, donations, genuine grants, other funding or headcount. Ordinary tuition for recognized education, public appropriations, taxes, statutory fees and cost-recovery public services do not end this exception. Saving costs is not commercial revenue. Industry-funded genuine academic research qualifies; a disguised contract to deliver a proprietary commercial product does not.
77
+
78
+ A recognized private for-profit school qualifies for actual teaching and learning, not commercial administration or non-educational business. A commercial employer's R&D is ordinary group use, not free academic research merely because a department calls itself a lab.
79
+
80
+ An otherwise exempt institution's commercial operation using the software remains permitted while its external commercial revenue C is at most USD 500,000 over the measurement period, even if its assigned workforce exceeds 20. If C exceeds that amount, the operation follows the ordinary banded license and growth/renewal rules, using its R and assigned H rather than the institution's exempt core budget and workforce. Funding alone does not trigger this C threshold or remove core-purpose permission. Once C triggers licensing, include investment/commercial-grant funding of the commercial operation in its R, but never core-purpose donations or grants. Connected commercial operations under common institutional control are combined; shared staff doing material work count once, not as fractional FTEs. Unrelated exempt teaching or public-service work remains free.
81
+
82
+ A separate for-profit spin-off or government-owned trading company follows ordinary group rules from the start, including the H limit. Aggregate related commercial entities under the institutional parent's control, but exclude the exempt core budget and workforce. A nonprofit label does not exempt ordinary commercial trading outside the institutional exception.
83
+
84
+ ## Evaluation
85
+
86
+ Use to evaluate suitability is permitted during one group-wide period of less than 32 consecutive calendar days, starting when anyone in the group first runs the software for that evaluation. Productive work is allowed only as part of evaluation. Pauses, different people, departments or versions do not restart it. Growth grace does not extend an above-threshold adopter's evaluation. This permission grants no OEM, hosting or resale rights.
87
+
88
+ ## Existing MIT Adopters
89
+
90
+ MIT grants already received remain unchanged, with no retrospective fees. A group already using an MIT-licensed Charness release before the first release under these terms may use newly licensed releases internally for a single 90-calendar-day transition starting on its first use of a release under these terms. At that deadline it must qualify free, buy the applicable annual license, or stop using the newly licensed releases. It may continue its MIT releases under MIT. This transition and evaluation run concurrently, not consecutively; neither restarts the other or creates a fresh growth allowance for an already above-threshold group. No installation or update by itself removes existing MIT rights. This transition grants no onward product or hosting rights.
91
+
92
+ ## Commercial Licenses
93
+
94
+ Any use not permitted by these terms needs the corresponding commercial license or separate OEM/hosting/reseller agreement. Authorized no-charge distribution does not authorize otherwise unpermitted operation or modification. Ordinary fees are annual per organization group, with unlimited users, agents and instances, never per seat. To buy, write to charnesshub@gmail.com or use a purchase route listed on the commercial page, https://olosegres.github.io/charness/commercial/.
95
+
96
+ These terms grant no trademark license and no right to use the name Charness or the licensor's other names or marks, beyond the notices required under [Notices](#notices) and uses the law allows without a license. A commercial order may add a limited contractual permission to display a "Powered by Charness" mark; that permission exists only as stated in the order.
97
+
98
+ ## Eligibility Verification
99
+
100
+ Organizational and commercial users, including groups claiming free eligibility, must self-assess and retain sufficient eligibility records for three years after the relevant assessment: R calculations, funding totals, aggregate workforce/contractor counts, group structure and applicable commercial-operation or OEM totals. Free ordinary use needs no registration or routine submission. Personal hobbyists' private affairs are outside this clause. Institutions may certify their permitted purpose and relevant commercial-operation bands instead of disclosing their whole budget.
101
+
102
+ On a credible discrepancy, the licensor may first request an officer's or accountant's written certification, allowing 30 days to respond. Only an unresolved, reasonably grounded discrepancy permits verification by an independent professional bound to confidentiality, at most once per 12 months, on at least 30 days' written notice, during ordinary business hours with minimal interference. Only records relevant to eligibility and fees may be inspected; sufficient redacted accountant confirmations must be accepted. There is no access right to repositories, prompts, model credentials, customer data or production systems. Information may be used only to establish compliance and resolve the discrepancy and must be kept confidential, except where disclosure is legally required.
103
+
104
+ The licensor pays verification costs unless actual underpayment exceeds BOTH 10% of the fees actually due for the reviewed period AND USD 1,000. Only then may reasonable documented audit costs be recovered, capped at the recovered underpayment. Actual overdue fees for unauthorized use may be collected, but never fees for genuinely free use or authorized transitions, and never a penalty multiplier. First-notice cure under [Violations](#violations) remains intact; a verification request alone is not a violation finding or termination. Prompt honest errors may be corrected, including through a written payment plan agreed with the licensor. Fraud remains subject to ordinary legal remedies. There are no license keys, activation, compliance telemetry or remote shutdown under this licensing model.
105
+
106
+ ## No Other Rights
107
+
108
+ These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
109
+
110
+ ## Patent Defense
111
+
112
+ If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your organization makes such a claim, your patent license ends immediately for work on behalf of your organization.
113
+
114
+ ## Violations
115
+
116
+ The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
117
+
118
+ Authorized transitions are not violations. A verification response deadline does not shorten this first-notice cure. Non-renewal itself is not a breach; continued use after paid rights expire must have independent permission. Payment of overdue fees does not create a perpetual license.
119
+
120
+ ## No Liability
121
+
122
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
123
+
124
+ ## Governing Law
125
+
126
+ These terms are governed by the law of Georgia, subject to mandatory applicable law. The United Nations Convention on Contracts for the International Sale of Goods does not apply.
127
+
128
+ ## Definitions
129
+
130
+ The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
131
+
132
+ **You** refers to the individual or entity agreeing to these terms.
133
+
134
+ An **organization** includes a legal entity, sole proprietorship, partnership or other group working together, whether or not incorporated.
135
+
136
+ An **organization group** or **group** is the beneficiary organization together with every organization controlling it, controlled by it or under common control, worldwide. Consolidate 100% of controlled entities' figures, eliminate intra-group sales and funding transfers, and count each person once. Include acquired entities' measurement-period history on a pro-forma combined basis. Reorganizations, split invoices, subsidiaries and new installations do not reset history or thresholds. Unrelated clients or suppliers are not affiliates merely because they trade. Shared passive investment without control is not common control. Shared sovereignty alone does not combine a whole country: an independently administered public institution and its controlled operating subsidiaries form the public-body unit, subject to the commercial-operation separation above.
137
+
138
+ **Group people (H)** counts current full-time and part-time employees (including leave), working founders/owners, working officers/directors and unpaid people regularly performing business work. Assigned contractors or agency personnel count only while currently engaged and after working on more than 30 calendar days in the preceding 12 months; casual unpaid helpers use the same rule. Any work on a day counts as one day; counting begins on worked day 31 without reclassifying earlier use. A genuinely ended engagement stops counting; re-engagement retains prior days within the rolling period. Count identifiable assigned workers in any business function, not an entire outside supplier's staff merely because its services are bought. Customers, enrolled students, passive investors, bots, AI agents, accounts and machines do not count merely as such. A person **works for** an organization when they meet these workforce rules; that phrase does not limit permission for authorized short-term contractors to act for a client.
139
+
140
+ **Measurement date** is the relevant calendar month end; the **measurement period** is the 12 completed calendar months ending then. New businesses use actual figures since formation, without annualizing, until 12 months exist; acquisition/reorganization does not erase history. H is current at the measurement date; its contractor test uses the preceding 12 months.
141
+
142
+ **Revenue and funding (R)** is consolidated gross revenue from all business lines PLUS investment/grant funding raised during the measurement period, including equity investment, capital contributions, convertible notes, SAFEs and other instruments convertible into equity, and commercial grants (grants, subsidies or prizes received for business activity, as distinct from core-purpose grants under Education and Public Benefit). Ordinary bank loans are excluded. Other loans from owners, investors or their affiliates count as funding unless made on ordinary arm's-length commercial terms, and a loan later converted into equity or forgiven counts when converted or forgiven if it was not already counted. Funding counts in the month it is received, not again on conversion of a note or intra-group transfer; never count the same receipt twice as both revenue and funding. Funding valuation and cash balances are not receipts. For revenue, apply consistently recognized local accounting principles or IFRS/GAAP: deduct sales taxes collected for the state and actual refunds/returns, not wages, infrastructure, model costs, commissions or payment fees. Customer advances enter revenue when recognized, not twice on receipt and earning. Consistent principal-versus-agent accounting determines recognized marketplace revenue; neither profit nor gross merchandise value is automatically R. Convert non-USD revenue and funding using monthly average rates from the relevant central bank or another consistently applied public source; retain the source and calculation. Purpose-exempt funding is treated as specified in Education and Public Benefit, not as a reason to revoke that exception.
143
+
144
+ **Commercial operation** is an institution's economically connected business activity using the software, including paid proprietary development/consulting, product subscriptions, IP licensing and commercial data/services. Its **external commercial revenue (C)** is all recognized revenue of that activity, not merely incremental revenue attributed to the software, using R's revenue accounting and measurement period but excluding investment/funding and exempt core-purpose receipts. Combine connected operations under common institutional control; where honest separation is unavailable assess the combined relevant commercial activity, not an artificially small department. The separate R measure includes that operation's counted funding once the C trigger applies.
145
+
146
+ **Your organization** is the organization you are, if you are one, and any legal entity, sole proprietorship, partnership, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with any of them. This definition applies only to [Patent Defense](#patent-defense).
147
+
148
+ **Control** means more than 50% of voting power or actual power to direct management and policies, by contract or otherwise, directly or indirectly. Voting power and rights held by persons acting together under an agreement or arrangement, including through nominees, are combined. A passive minority holding alone is not control.
149
+
150
+ **Your licenses** are all the licenses granted to you for the software under these terms.
151
+
152
+ **Use** means anything you do with the software requiring one of your licenses.
@@ -0,0 +1,73 @@
1
+ # Migrating from 3.x to 4.0
2
+
3
+ Charness 4.0 changes the **license**. The commands, the settings and the way you run the bot are the same; what changes
4
+ is what you may do with the software and who pays for it.
5
+
6
+ **Effective from the day 4.0.0 is released** (its date is on the GitHub release and in the CHANGELOG heading). Every
7
+ release before 4.0 was published under the MIT license and **stays MIT**: nothing about it is revoked, nothing is billed
8
+ retroactively, and you may keep running it for as long as you like.
9
+
10
+ ## What changed
11
+
12
+ - 4.0 and later are under the [Charness License 1.0.0](LICENSE) — **source-available, not open source**. It is PolyForm
13
+ Small Business 1.0.0 with its "small business" grant replaced by the terms below.
14
+ - Charness stays **free** for:
15
+ - personal use — hobby projects and study;
16
+ - any organization group whose **revenue plus funding** (R) is at most **$500,000** AND whose **people** (H) are at most
17
+ **20**;
18
+ - teaching, research, charities and public bodies for their core work, whatever their budget or headcount;
19
+ - a one-time evaluation of less than 32 consecutive days.
20
+ - Every other organization group buys **one annual license** for the whole group — unlimited users, agents, jobs and
21
+ machines, **no seats**. Hosting, model costs, setup and support are not included.
22
+ - No license keys, no activation, no telemetry and no remote shutdown: the license is honour-based, with a narrow
23
+ verification clause. The bot never shows a purchase prompt.
24
+
25
+ ## Who pays
26
+
27
+ The fee is the **higher** of the revenue band and the people band:
28
+
29
+ | Band | R: revenue plus counted funding | H: all people in the group | Per year |
30
+ |---|---|---|---:|
31
+ | Free | up to $500,000 | up to 20 | $0 |
32
+ | Small | up to $2 million | 21–50 | $500 |
33
+ | Growing | up to $10 million | 51–250 | $2,000 |
34
+ | Established | up to $50 million | 251–1,000 | $6,000 |
35
+ | Large | up to $250 million | 1,001–5,000 | $15,000 |
36
+ | Very large | up to $1 billion | 5,001–10,000 | $30,000 |
37
+ | Global | above $1 billion | above 10,000 | $60,000 |
38
+
39
+ - **Funding counts in R.** R is gross revenue plus the equity, convertible notes, SAFEs and commercial grants received in the
40
+ last 12 completed months; ordinary bank loans do not count. Ten people with no revenue and $20 million raised have
41
+ R = $20 million and pay $6,000.
42
+ - **H counts the whole workforce**, not Charness users: employees, working founders and officers, regular unpaid workers,
43
+ and contractors currently engaged after more than 30 worked days in 12 months. AI agents are not people.
44
+ - **The group is every company under common control**, worldwide — not a department. One operator in a 300-person group
45
+ pays for the group.
46
+ - Two optional discounts, together 32% off: 20% for showing a "Powered by Charness" mark, 15% for prepaying 2 or 3 years.
47
+ - Buying is by e-mail: charnesshub@gmail.com, see the [commercial page](https://olosegres.github.io/charness/commercial/)
48
+ and the [commercial terms](COMMERCIAL-LICENSE.md). Full refund within 30 days.
49
+
50
+ More cases, and what counts in R and H: the [licensing FAQ](docs/licensing-faq.md).
51
+
52
+ ## What you have to do
53
+
54
+ - **Personal use, or a group within the free limits:** nothing. No registration, no payment. If the group later crosses a
55
+ limit at a month end, it has 90 days to buy a license, to get back under the limit, or to stop.
56
+ - **An organization already above the limits:** buy the annual license for the group (or evaluate for under 32 days)
57
+ before you move to 4.0.
58
+ - **An organization that already runs MIT Charness:** your MIT releases are unchanged. Moving to a 4.x release gives your
59
+ group **one 90-day transition**, counted from the first day you use a 4.x release; by its end the group qualifies for
60
+ free use, buys the license, or stops using 4.x. The transition and the evaluation run together, not one after the other.
61
+
62
+ ## Staying on 3.x
63
+
64
+ Nothing forces the move. **Charness never installs a major version by itself:** with automatic updates on, the bot
65
+ announces 4.0 in the General topic and waits for your tap, and a git checkout also waits because the range adds this
66
+ guide. To make sure, set `/update` in General to **Off**. To pin an npm install on the newest 3.x release, run
67
+ `npm install -g charness@3`.
68
+
69
+ ## Updating to 4.0
70
+
71
+ Read this guide, then update the way you always do — `/update` in General, `npm install -g charness@latest`, or
72
+ `scripts/self-update.sh` in a checkout ([Updating](SETUP.md#updating)). The first CHANGELOG entry of 4.0 is the license
73
+ change.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  <p align="center">
4
4
  <a href="https://www.npmjs.com/package/charness"><img src="https://img.shields.io/npm/v/charness?logo=npm" alt="npm version"></a>
5
5
  <a href="https://www.npmjs.com/package/charness"><img src="https://img.shields.io/node/v/charness?logo=node.js" alt="Node.js version"></a>
6
- <a href="https://github.com/olosegres/charness/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/charness" alt="license"></a>
6
+ <a href="https://github.com/olosegres/charness/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Charness%20License-blue" alt="license: Charness License"></a>
7
7
  </p>
8
8
 
9
9
  <h2 align="center">Harness for running Claude Code / OpenCode agents in the cloud or on your laptop, controlled from Telegram or Jira.</h2>
@@ -15,7 +15,7 @@
15
15
 
16
16
  *In Telegram it may literally become your J.A.R.V.I.S. 😄 You talk — Charness does the rest. Send a voice note from the street — and an agent on your server opens the browser, calls your APIs, writes code, edits a video, drafts a post, generates an image, answers your email or messages someone for you, and sends you the result. It never sleeps: it keeps working while you do. Plug in a tool — and that becomes one more thing it can do.*
17
17
 
18
- <p align="center">It runs fine on your laptop. But it is called a <b>c</b>loud <b>harness</b> for a reason — put it on a VPS or VDS and your agents keep working while the laptop sleeps. Give an agent a cron schedule and it takes on a recurring task by itself, in the background, while you do something else.</p>
18
+ <p align="center">It runs fine on your laptop. Put it on a VPS or VDS and your agents keep working while the laptop sleeps. Give an agent a cron schedule and it takes on a recurring task by itself, in the background, while you do something else.</p>
19
19
 
20
20
  <p align="center">
21
21
  <img src="docs/images/hero-v2.png" alt="Charness — all your agents in Telegram; chat, code, ship; powerful slash commands" width="900" />
@@ -79,6 +79,9 @@ Yes. Send a voice message to a topic and it is transcribed (by Groq, OpenAI or y
79
79
  **Can agents work in the background or on a schedule?**
80
80
  Yes. `/schedule` arms cron, one-shot or N-times jobs per topic, so a scheduled agent can do recurring tasks — a nightly review, a morning digest, a weekly report — while you are away, and the agent can schedule itself. A scheduled check watches a service and wakes the agent only when it fails. Jobs survive a bot restart, and a run missed while the bot was down fires once as a catch-up.
81
81
 
82
+ **Is Charness free?**
83
+ Yes for personal use and for organizations with up to $500,000 revenue (funding included) and up to 20 people; above that, one annual license per organization from $500, with unlimited users and agents ([licensing FAQ](docs/licensing-faq.md), [commercial page](https://olosegres.github.io/charness/commercial/)). Every release before 4.0 stays MIT.
84
+
82
85
  ## Reference
83
86
 
84
87
  ### Features
@@ -138,6 +141,8 @@ Think **OpenClaw for vibe coding**, driven entirely from Telegram: no complex se
138
141
  - **[DEVELOPMENT.md](DEVELOPMENT.md)** — architecture and local development (build, test, hot-reload, Docker dev loop).
139
142
  - **[MIGRATION_1_TO_2.md](MIGRATION_1_TO_2.md)** — upgrading a 1.x install to 2.0.
140
143
  - **[MIGRATION_RENAME_TO_CHARNESS.md](MIGRATION_RENAME_TO_CHARNESS.md)** — upgrading an install that still uses the TelegramCode names.
144
+ - **[MIGRATION_3_TO_4.md](MIGRATION_3_TO_4.md)** — moving from 3.x to 4.0: the license change, who pays, how to stay on 3.x.
145
+ - **[docs/licensing-faq.md](docs/licensing-faq.md)** — who pays and how much: prices, what counts as revenue and as people, freelancers and consultants, the trial and transitions, education, OEM and hosting, refunds.
141
146
 
142
147
  ## The story behind it
143
148
 
@@ -151,4 +156,9 @@ Full write-up: [Vibe-coding by voice, from my phone](https://dev.to/olosegres/vi
151
156
 
152
157
  ## License
153
158
 
154
- MIT
159
+ **Charness 4.0 and later is source-available under the [Charness License 1.0.0](LICENSE)** — not open source:
160
+
161
+ - **Free** for personal use and for any organization group with revenue plus funding up to $500,000 and up to 20 people; also for education, charities and public bodies' core work, and a 32-day evaluation.
162
+ - **One annual license per organization group above that** — from $500 to $60,000 by the higher of its revenue band and its people band, with unlimited users, agents and machines and no seats. Buy by e-mail: [commercial page](https://olosegres.github.io/charness/commercial/), [commercial terms](COMMERCIAL-LICENSE.md).
163
+ - Every release before 4.0 was published under MIT and stays MIT.
164
+ - Questions and examples: [licensing FAQ](docs/licensing-faq.md); moving from 3.x: [MIGRATION_3_TO_4.md](MIGRATION_3_TO_4.md).
@@ -2,6 +2,5 @@
2
2
  "name": "charness",
3
3
  "description": "Skills Charness gives the agents it starts: orchestrating detached workers with the bot's own tools",
4
4
  "author": { "name": "Sergei Solo" },
5
- "homepage": "https://github.com/olosegres/charness",
6
- "license": "MIT"
5
+ "homepage": "https://github.com/olosegres/charness"
7
6
  }