jaz-clio 9.4.7 → 9.5.1
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.
- package/README.md +4 -4
- package/assets/skills/api/SKILL.md +1 -1
- package/assets/skills/api/references/endpoints.md +240 -0
- package/assets/skills/api/references/feature-glossary.md +39 -1
- package/assets/skills/api/references/full-api-surface.md +67 -1
- package/assets/skills/cli/SKILL.md +3 -3
- package/assets/skills/cli/references/command-catalog.md +77 -3
- package/assets/skills/conversion/SKILL.md +1 -1
- package/assets/skills/jaz-kit/SKILL.md +1 -1
- package/assets/skills/jaz-pseudo-sql/SKILL.md +1 -1
- package/assets/skills/jobs/SKILL.md +2 -2
- package/assets/skills/jobs/references/building-blocks.md +1 -1
- package/assets/skills/jobs/references/fa-review.md +1 -1
- package/assets/skills/jobs/references/month-end-close.md +5 -1
- package/assets/skills/jobs/references/year-end-close.md +3 -0
- package/assets/skills/transaction-recipes/SKILL.md +5 -3
- package/assets/skills/transaction-recipes/references/asset-disposal.md +2 -0
- package/assets/skills/transaction-recipes/references/bank-loan.md +2 -0
- package/assets/skills/transaction-recipes/references/deferred-revenue.md +2 -0
- package/assets/skills/transaction-recipes/references/hire-purchase.md +2 -0
- package/assets/skills/transaction-recipes/references/ifrs16-lease.md +2 -0
- package/assets/skills/transaction-recipes/references/prepaid-amortization.md +2 -0
- package/assets/templates/platform-rules/jaz-agent-rules.md +15 -13
- package/cli.mjs +543 -534
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jaz-jobs
|
|
3
|
-
version: 9.
|
|
3
|
+
version: 9.5.1
|
|
4
4
|
description: >-
|
|
5
5
|
Use this skill for recurring accounting workflows: month/quarter/year-end
|
|
6
6
|
close, bank reconciliation, GST/VAT filing, payment runs, credit control,
|
|
@@ -29,7 +29,7 @@ You orchestrate the **real platform tools directly**, following the phase sequen
|
|
|
29
29
|
|
|
30
30
|
### Scheduled and calculated entries
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Leases, hire purchases, loans, prepaid expenses and deferred revenue kept on the books live in their registers (`leases`, `loans`, `loan_events`, `deferrals`), which post their own periodic entries, never cash: a close step only verifies and finalizes what they posted. If a register refuses (403), tell the user and offer the calculated schedule with manual journals; do not use it unasked. For everything else, and for items kept manually, when a step needs a calculated schedule, do it in three steps (there is no one-call recipe execution):
|
|
33
33
|
|
|
34
34
|
1. **Calculate:** `calculate` with `type` = `loan` | `lease` | `depreciation` | `prepaid-expense` | `deferred-revenue` | `ecl` | `provision` | `fixed-deposit` | `asset-disposal` | `accrued-expense` | `leave-accrual` | `dividend` (CLI: `clio calc <type> ... --json`). Offline; returns the schedule and, with a start date, dated steps with journal lines. Posts nothing.
|
|
35
35
|
2. **Group:** `list_capsule_types`, then `create_capsule` with the matching `capsuleTypeResourceId` and a `title`.
|
|
@@ -50,7 +50,7 @@ Standard assertions:
|
|
|
50
50
|
|
|
51
51
|
## Calculated schedules: calculate, capsule, post
|
|
52
52
|
|
|
53
|
-
There is no one-call "recipe" execution. Any job step that needs a schedule (
|
|
53
|
+
Loans, leases, prepaid expenses and deferred revenue are kept in their registers (`loans`, `leases`, `deferrals`), which post their own entries, never cash; use the three steps below for those only when the register is not available to the organization and the user asks for journals. There is no one-call "recipe" execution. Any other job step that needs a schedule (accrual, ECL, provision, dividend, disposal) is three steps you perform yourself:
|
|
54
54
|
|
|
55
55
|
```
|
|
56
56
|
calculate(type: 'prepaid-expense', amount: 12000, periods: 12, startDate: '2025-01-01')
|
|
@@ -75,7 +75,7 @@ Cross-check via `clio calc depreciation --frequency annual --json` per asset; au
|
|
|
75
75
|
|
|
76
76
|
## Step 5: Process disposals
|
|
77
77
|
|
|
78
|
-
For each disposal identified in step 2:
|
|
78
|
+
For each disposal identified in step 2, an asset in the register gets its figures from the register itself: `calculate_fixed_asset_disposal(resourceId, depreciationEndDate)` (`fixed_asset_schedules`) before `mark_fixed_asset_sold` or `discard_fixed_asset`. The calculator below is the cross-check, and the route for an asset that is not in the register:
|
|
79
79
|
|
|
80
80
|
```
|
|
81
81
|
calculate(type: 'asset-disposal', cost, salvageValue, usefulLifeYears, acquisitionDate, disposalDate, proceeds, method)
|
|
@@ -110,6 +110,8 @@ Cross-check: `generate_trial_balance(endDate: '2025-01-31')`. Sum credit movemen
|
|
|
110
110
|
|
|
111
111
|
### Step 7: Prepaid expense recognition (finalize this period's draft journal)
|
|
112
112
|
|
|
113
|
+
Items kept in the `deferrals` register post their own recognition entries (check them with `get_deferral_totals`); the capsule route below is for items kept manually.
|
|
114
|
+
|
|
113
115
|
For each existing `Prepaid Expenses` capsule (via `search_capsules(filter: {status: {eq: 'ACTIVE'}})` (capsule type is not filterable; see `building-blocks.md` § Filter limits)):
|
|
114
116
|
|
|
115
117
|
1. **STOP: do not select these with a filter.** Journals cannot be narrowed to one capsule by a filter: `JournalFilter` declares no `capsuleResourceId`, and `GET /capsules/{id}` returns only `totalTransactions`, a count (measured 2026-09-07). A date+status search returns EVERY matching DRAFT in the org, including drafts a practitioner deliberately parked, so passing it to `bulk_update_journals(items: [{resourceId, saveAsDraft: false}])` finalizes unrelated work. `get_journal` (`GET /journals/{id}`) does return the link as `capsule: {resourceId, type, title}` (measured 2026-09-23), so check each candidate journal's `capsule.resourceId` against this capsule, keep only the matches, and confirm the count with the practitioner before finalizing.
|
|
@@ -119,7 +121,7 @@ For each existing `Prepaid Expenses` capsule (via `search_capsules(filter: {stat
|
|
|
119
121
|
|
|
120
122
|
### Step 8: Deferred revenue recognition
|
|
121
123
|
|
|
122
|
-
Mirror of step 7. Existing `Deferred Revenue` capsules: find this period's DRAFT journal in each, then `bulk_update_journals(items: [{resourceId, saveAsDraft: false}])`. New deferred setups: `calculate(type: 'deferred-revenue', amount, periods, startDate)`, `create_capsule` (type `Deferred Revenue`), post the invoice (`create_invoice`) and the recognition journals (`create_journal`) with `capsuleResourceId`, then finalize the current period's journal in the same `bulk_update_journals` call.
|
|
124
|
+
Items kept in the `deferrals` register post their own recognition entries (check them with `get_deferral_totals`); the capsule route below is for items kept manually. Mirror of step 7. Existing `Deferred Revenue` capsules: find this period's DRAFT journal in each, then `bulk_update_journals(items: [{resourceId, saveAsDraft: false}])`. New deferred setups: `calculate(type: 'deferred-revenue', amount, periods, startDate)`, `create_capsule` (type `Deferred Revenue`), post the invoice (`create_invoice`) and the recognition journals (`create_journal`) with `capsuleResourceId`, then finalize the current period's journal in the same `bulk_update_journals` call.
|
|
123
125
|
|
|
124
126
|
### Step 9: Depreciation
|
|
125
127
|
|
|
@@ -141,6 +143,8 @@ On first month of FY only: `create_capsule` (type `Employee Benefits`), then eit
|
|
|
141
143
|
|
|
142
144
|
### Step 11: Loan interest (finalize this period's draft journal)
|
|
143
145
|
|
|
146
|
+
Loans kept in the `loans` register post their own interest and the current/non-current move, never cash: you record every repayment yourself (check the balances with `get_loan_totals`; `generate_loans_reconciliation_summary` shows a missed or mis-coded repayment). The capsule route below is for loans kept manually.
|
|
147
|
+
|
|
144
148
|
For each active loan capsule (via `search_capsules(filter: {status: {eq: 'ACTIVE'}})` (capsule type is not filterable; see `building-blocks.md` § Filter limits)):
|
|
145
149
|
|
|
146
150
|
1. **STOP: do not select these with a filter.** Journals cannot be narrowed to one capsule by a filter: `JournalFilter` declares no `capsuleResourceId`, and `GET /capsules/{id}` returns only `totalTransactions`, a count (measured 2026-09-07). A date+status search returns EVERY matching DRAFT in the org, including drafts a practitioner deliberately parked, so passing it to `bulk_update_journals(items: [{resourceId, saveAsDraft: false}])` finalizes unrelated work. `get_journal` (`GET /journals/{id}`) does return the link as `capsule: {resourceId, type, title}` (measured 2026-09-23), so check each candidate journal's `capsule.resourceId` against this capsule, keep only the matches, and confirm the count with the practitioner before finalizing.
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
- **`update_account(resourceId: <CoA root>, lockDate: <FY-end>)`**: Y8 final lock.
|
|
20
20
|
|
|
21
21
|
### Platform tools: current/non-current reclassification (manual annual journals)
|
|
22
|
+
- **Skip loans and leases kept in the `loans` / `leases` registers**: they post the current/non-current move every month-end (verify with `get_loan_totals` / `get_lease_totals`). The manual journals below are only for loans and leases kept manually in capsules.
|
|
22
23
|
- **`search_capsules(filter: {status: {eq: 'ACTIVE'}})` (capsule type is not filterable; see `building-blocks.md` § Filter limits)** + per-capsule `clio calc loan` to compute next-12-months principal portion.
|
|
23
24
|
- **`search_capsules(filter: {status: {eq: 'ACTIVE'}})` (capsule type is not filterable; see `building-blocks.md` § Filter limits)** + per-capsule `clio calc lease` for IFRS 16 reclassification.
|
|
24
25
|
- **`create_journal(...)`** for the reclassification entries (Dr Loan Payable Non-current / Cr Loan Payable Current; Dr Lease Liability Non-current / Cr Lease Liability Current).
|
|
@@ -161,6 +162,8 @@ Per capsule, recompute the present value at FY-end (`clio calc provision`). Top-
|
|
|
161
162
|
|
|
162
163
|
### Y6: Current/non-current reclassification (manual journals)
|
|
163
164
|
|
|
165
|
+
Skip loans and leases kept in the `loans` / `leases` registers: they post the move every month-end (verify with `get_loan_totals` / `get_lease_totals`). This step is only for loans and leases kept manually in capsules.
|
|
166
|
+
|
|
164
167
|
For each loan capsule:
|
|
165
168
|
```
|
|
166
169
|
clio calc loan --principal <outstanding-at-FY-end> --rate <r> --term <remaining-months> --json
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jaz-recipes
|
|
3
|
-
version: 9.
|
|
3
|
+
version: 9.5.1
|
|
4
4
|
description: >-
|
|
5
5
|
Use this skill when modeling complex multi-step accounting transactions:
|
|
6
6
|
anything that spans multiple periods, involves changing amounts, or requires
|
|
@@ -19,7 +19,7 @@ compatibility: Works with Claude Code, Claude Cowork, Claude.ai, and any agent t
|
|
|
19
19
|
|
|
20
20
|
You are modeling **complex multi-step accounting scenarios** in Jaz: transactions that span multiple periods, involve changing amounts, or require several linked entries to complete a single business event.
|
|
21
21
|
|
|
22
|
-
> **Jaz-native, not generic.** Every recipe in this skill is designed around the Jaz calculators (`calculate` / `clio calc`), Jaz capsule types, Jaz CoA classifications, and Jaz scheduler primitives. It is NOT an interchangeable IFRS reference; it is the operating manual for posting these transactions through the Jaz ledger. Never work the amounts by hand: run the calculator first and post the lines it returns. Nothing posts a recipe for you: the calculator posts nothing, and you create the capsule and each entry yourself (see "Posting a Recipe: Three Steps").
|
|
22
|
+
> **Jaz-native, not generic.** Every recipe in this skill is designed around the Jaz calculators (`calculate` / `clio calc`), Jaz capsule types, Jaz CoA classifications, and Jaz scheduler primitives. It is NOT an interchangeable IFRS reference; it is the operating manual for posting these transactions through the Jaz ledger. Never work the amounts by hand: run the calculator first for a what-if, a topic with no register, or the manual alternative, and post the lines it returns. A lease, loan, deferral or fixed asset the user wants kept goes to its register first. Nothing posts a recipe for you: the calculator posts nothing, and you create the capsule and each entry yourself (see "Posting a Recipe: Three Steps").
|
|
23
23
|
|
|
24
24
|
**This skill provides Jaz-contextual recipes with full accounting logic. For API field names and payloads, load the `jaz-api` skill alongside this one. For the operational close workflows that invoke these recipes (month-end close, GST/VAT filing, year-end close), load the `jaz-jobs` skill.**
|
|
25
25
|
|
|
@@ -41,6 +41,8 @@ You are modeling **complex multi-step accounting scenarios** in Jaz: transaction
|
|
|
41
41
|
- Capitalizing costs in WIP and transferring to fixed assets
|
|
42
42
|
- Any scenario that groups related transactions in a capsule over multiple periods
|
|
43
43
|
|
|
44
|
+
> **Registers first.** For a lease, hire purchase, loan, prepaid expense, deferred revenue or fixed asset the user wants kept on the books, use its register (`leases`, `loans` and `loan_events`, `deferrals`, `fixed_assets` and `fixed_asset_schedules`; reports in `register_reports`). The register keeps the schedule and posts the periodic entries itself, and never posts cash: never post those entries again by hand. The recipes for those topics below are the manual alternative: for organizations whose plan or role does not include the register (it answers 403), or when the user asks for journals. If the register refuses, tell the user, name this alternative, and wait. A "what would this look like" question with nothing to record is still a calculator question.
|
|
45
|
+
|
|
44
46
|
## Building Blocks
|
|
45
47
|
|
|
46
48
|
Every recipe uses a combination of these Jaz features. See `references/building-blocks.md` for details.
|
|
@@ -133,7 +135,7 @@ Each recipe includes: scenario description, accounts involved, journal entries,
|
|
|
133
135
|
|
|
134
136
|
## Posting a Recipe: Three Steps
|
|
135
137
|
|
|
136
|
-
No tool runs a recipe end to end.
|
|
138
|
+
No tool runs a recipe end to end. For a topic with no register, or the manual alternative, you perform three explicit steps (full detail, the action-to-tool mapping and the draft / reference rules are in `references/building-blocks.md`):
|
|
137
139
|
|
|
138
140
|
1. **Calculate.** `calculate(type, ...)` (MCP) or `clio calc <type> ... --json` (CLI). Offline, read-only, no account needed. It returns the schedule and, when a start date is given, a `blueprint` with dated steps and the journal lines for each step. It posts nothing.
|
|
139
141
|
2. **Create the capsule.** `list_capsule_types` (create the type with `create_capsule_type` if it is missing), then `create_capsule`.
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> One-shot recipe for fixed-asset disposal under IAS 16.67-72 (sale, scrap, write-off). One disposal journal, plus the fixed-asset register update that stops depreciation. The calculator returns the accumulated depreciation, net book value, gain or loss and the journal lines; you post the journal and update the register yourself (see `building-blocks.md` § The three-step flow).
|
|
4
4
|
|
|
5
|
+
> **Register first.** For an asset in the fixed-asset register, take the figures from `calculate_fixed_asset_disposal` (`fixed_asset_schedules`), then `mark_fixed_asset_sold` or `discard_fixed_asset`, which record the disposal themselves. This recipe covers an asset that is not in the register, and is the cross-check for one that is.
|
|
6
|
+
|
|
5
7
|
## Tools and calculator this recipe uses
|
|
6
8
|
|
|
7
9
|
### Calculator (offline, posts nothing)
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> Canonical recipe for term loans with fixed monthly installments. Never hand-build the amortization table: the calculator returns it, with the journal lines for every installment. You create the capsule and post the disbursement and each repayment yourself (see `building-blocks.md` § The three-step flow).
|
|
4
4
|
|
|
5
|
+
> **Register first.** To keep a loan on the books, use the `loans` register (changes in `loan_events`) (`create_loan`): it keeps the schedule and posts the interest and the current/non-current move itself, never cash (you record the drawdown and every repayment). This recipe is the manual alternative, for organizations whose plan or role does not include the register, or when the user asks for journals.
|
|
6
|
+
|
|
5
7
|
## Tools and calculator this recipe uses
|
|
6
8
|
|
|
7
9
|
### Calculator (offline, posts nothing)
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> Mirror of prepaid-amortization for the income side: customer pays upfront for a service delivered over time. One upfront invoice coded to the Deferred Revenue liability, then N recognition entries that roll the liability into revenue, all in one capsule. Same operational pattern; opposite accounting direction. You calculate, create the capsule and post each entry yourself (see `building-blocks.md` § The three-step flow).
|
|
4
4
|
|
|
5
|
+
> **Register first.** To keep deferred revenue on the books, use the `deferrals` register (`create_deferral`): it keeps the schedule and posts the periodic entries itself. This recipe is the manual alternative, for organizations whose plan or role does not include the register, or when the user asks for journals.
|
|
6
|
+
|
|
5
7
|
## Tools and calculator this recipe uses
|
|
6
8
|
|
|
7
9
|
### Calculator (offline, posts nothing)
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> Variant of the IFRS 16 lease recipe where ownership transfers at the end of the term. Same calculator, same step structure as `ifrs16-lease.md`, but the ROU asset depreciates over its USEFUL LIFE (typically longer), not the financing term.
|
|
4
4
|
|
|
5
|
+
> **Register first.** To keep a hire purchase on the books, use the `leases` register (`create_lease`): it keeps the schedule and posts the interest, depreciation and the current/non-current move itself, never rent (you record every payment). This recipe is the manual alternative, for organizations whose plan or role does not include the register, or when the user asks for journals.
|
|
6
|
+
|
|
5
7
|
## Why hire-purchase uses the lease calculator
|
|
6
8
|
|
|
7
9
|
Per IFRS 16.32: when ownership transfers at the end of the lease term, OR a purchase option is reasonably certain, the ROU asset is depreciated to the end of its USEFUL LIFE (not the lease term). For a vehicle on a 36-month HP with 60-month useful life: financing/liability over 36 months, depreciation over 60 months.
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> Canonical recipe for leases (office, equipment, vehicles) under IFRS 16. An initial recognition journal (Dr ROU Asset / Cr Lease Liability at present value), the ROU asset registered in the Jaz fixed-asset register, and N liability-unwinding journals. ROU depreciation runs through the Jaz native FA register (straight-line, auto-posted by Jaz). You calculate, create the capsule and post each entry yourself (see `building-blocks.md` § The three-step flow).
|
|
4
4
|
|
|
5
|
+
> **Register first.** To keep a lease on the books, use the `leases` register (`create_lease`): it keeps the schedule and posts the interest, depreciation and the current/non-current move itself, never rent (you record every payment). This recipe is the manual alternative, for organizations whose plan or role does not include the register, or when the user asks for journals.
|
|
6
|
+
|
|
5
7
|
## Tools and calculator this recipe uses
|
|
6
8
|
|
|
7
9
|
### Calculator (offline, posts nothing)
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> Canonical recipe for prepaid expenses paid upfront and recognized over a fixed schedule. Calculate the schedule, create the capsule, then post the supplier bill and the recognition entries yourself (see `building-blocks.md` § The three-step flow).
|
|
4
4
|
|
|
5
|
+
> **Register first.** To keep a prepaid expense on the books, use the `deferrals` register (`create_deferral`): it keeps the schedule and posts the periodic entries itself. This recipe is the manual alternative, for organizations whose plan or role does not include the register, or when the user asks for journals.
|
|
6
|
+
|
|
5
7
|
## Tools and calculator this recipe uses
|
|
6
8
|
|
|
7
9
|
### Calculator (offline, posts nothing)
|
|
@@ -4,13 +4,13 @@ Jaz accounting guidance for this workspace. Load the installed Jaz skills for de
|
|
|
4
4
|
|
|
5
5
|
## Discovery
|
|
6
6
|
|
|
7
|
-
Jaz exposes **
|
|
7
|
+
Jaz exposes **476 tools across 56 namespaces**. Your tool list shows **3, 56, or 476** entries depending on packaging; **never infer capability from its length.**
|
|
8
8
|
|
|
9
9
|
- **3**: `search_tools(query)` → `describe_tools(names)` → `execute_tool(name, args)`. Empty query returns the namespace map.
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
10
|
+
- **56**: namespace routers; call one with `{ operation, arguments }`.
|
|
11
|
+
- **476**: call operations directly by name.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
**Before telling the user Jaz cannot do something, call `describe_capabilities`** (the capability map, on all three).
|
|
14
14
|
|
|
15
15
|
No API key needed: `describe_capabilities`, `calculate` (marked `Offline.`), and `search_help_center`.
|
|
16
16
|
|
|
@@ -20,12 +20,14 @@ No API key needed: `describe_capabilities`, `calculate` (marked `Offline.`), and
|
|
|
20
20
|
2. **Transaction dates are `valueDate`** (YYYY-MM-DD), never `issueDate` / `invoiceDate` / `date`.
|
|
21
21
|
3. **Line item text field is `name`**, never `description`.
|
|
22
22
|
4. **`saveAsDraft` defaults `false`** at the API; CLI/MCP create-tools default `true`. Set explicitly when the user says "finalize".
|
|
23
|
-
5. **Pagination uses `limit` / `offset`**: `offset` is a 0-indexed page number (offset=1 = second page), not a row-skip. Exceptions
|
|
23
|
+
5. **Pagination uses `limit` / `offset`**: `offset` is a 0-indexed page number (offset=1 = second page), not a row-skip. Exceptions use a 0-indexed ROW offset (next page = offset + limit): general ledger, AR/AP details reports (both also templated), purchase items, currency rates, employee payouts search. Sort is required when `offset` is set.
|
|
24
24
|
6. **Create responses return `{ resourceId }` only**; re-GET to load the full entity.
|
|
25
25
|
|
|
26
|
-
## Transactions:
|
|
26
|
+
## Transactions: registers first, then calculators
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
A lease, hire purchase, loan, prepaid expense, deferred revenue or fixed asset kept on the books goes in its register (`leases`, `loans`, `loan_events`, `deferrals`, `fixed_assets`, `fixed_asset_schedules`, `register_reports`), which posts the periodic entries itself, never cash. On a 403 (plan or role) do not fall back to journals: say it is not available, name the alternative (a calculated schedule with manual journals), and wait for the user to ask.
|
|
29
|
+
|
|
30
|
+
For what-ifs and for ECL, IAS 37 provisions, fixed deposits, accrued expenses, leave accrual and dividends, **run the calculator, then post its steps**:
|
|
29
31
|
|
|
30
32
|
1. `calculate(type, ...)` → schedule + journal lines (offline).
|
|
31
33
|
2. `create_capsule` (type from `list_capsule_types`).
|
|
@@ -46,15 +48,15 @@ Prefer OAuth (`clio auth login` locally); API keys are optional.
|
|
|
46
48
|
|
|
47
49
|
- Never echo OAuth tokens, `JAZ_API_KEY`, or `jk-*` strings to the user or into generated code.
|
|
48
50
|
- Never invent enum values (UPPER_SNAKE_CASE only, match exactly).
|
|
49
|
-
- Errors come back structured (`code`, `message`, `failedRows[]`, `errorDetails[]`). Read them
|
|
51
|
+
- Errors come back structured (`code`, `message`, `failedRows[]`, `errorDetails[]`). Read them, do not guess.
|
|
50
52
|
|
|
51
53
|
## Jaz Jots: record the judgment behind a write
|
|
52
54
|
|
|
53
|
-
A jot is a one-line record of a judgment call: the decision and why.
|
|
55
|
+
A jot is a one-line record of a judgment call: the decision and why.
|
|
54
56
|
|
|
55
|
-
**The one rule:** record a judgment when you chose among real alternatives and a write followed, or when you deliberately decided NOT to write. Skip mechanical actions and calls
|
|
57
|
+
**The one rule:** record a judgment when you chose among real alternatives and a write followed, or when you deliberately decided NOT to write. Skip mechanical actions and calls with no real choice.
|
|
56
58
|
|
|
57
|
-
- **Two ways to write one.** The `jot` field on the mutation you are already making
|
|
58
|
-
- **Recall before repeating.** Call `recall` before repeating a judgment on the same record, kind, or workflow
|
|
59
|
+
- **Two ways to write one.** The `jot` field on the mutation you are already making, or the `jot` tool alone. Jot AFTER the write succeeds, never before, and carry the record's resourceId.
|
|
60
|
+
- **Recall before repeating.** Call `recall` before repeating a judgment on the same record, kind, or workflow; a flag on a prior one is a warning.
|
|
59
61
|
- **9 kinds:** CLASSIFICATION · MATCH · SCOPE · ASSUMPTION · RISK · METHOD · RECOVERY · DEVIATION · NOTE.
|
|
60
|
-
- Optional
|
|
62
|
+
- Optional: a jot never delays or fails the action it rides on.
|