CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

Autonomous wave: 26 new pages + 24 templates + audit ledger live + scorecard advanced #3885

Merged⚡ AI-generatedXSccantynz wants to mergeclaude/expand-professional-services-5g6Simainopened May 8, 20263/5 tasks
3 changed files+285−1
ModifiedSCORECARD.md+1−1View fileUnifiedSplit
4545| # | Move | Status | Notes |
4646|---|---|---|---|
4747| 1 | Specialty matrix marketplace (50 × 4 jurisdictions = 200 SEO entry points) | 🟡 | `/specialties` index live with 56 specialties, profession + jurisdiction filters, search. 6 flagship deep pages live (family, employment, commercial-corporate, IP, audit-assurance, SMSF). Remaining 50 deep pages queued |
48| 2 | AI form library (500+ pre-drafted forms per jurisdiction) | 🟡 | `/generate` front-door + template engine + 7 templates × 4 jurisdictions = 28 substantive drafts: NDA (mutual), Employment Agreement, Will + Testamentary Trust, Shareholders / Stockholders Agreement, Residential Tenancy / AST / Lease, Power of Attorney (general / ordinary / durable), and Sale of Goods Contract (B2B with retention of title + warranty + limitation of liability + UCC opt-out where applicable). Engine reads from `lib/templates/*`. ~472 templates queued |
48| 2 | AI form library (500+ pre-drafted forms per jurisdiction) | 🟡 | `/generate` front-door + template engine + 8 templates × 4 jurisdictions = 32 substantive drafts: NDA, Employment Agreement, Will, Shareholders Agreement, Lease, Power of Attorney, Sale of Goods Contract, and Directors' Resolution by Written Consent (NZ s 167 / AU s 248A / UK Model Articles Reg 8 / US DGCL § 141(f)). Engine reads from `lib/templates/*`. ~468 templates queued |
4949| 3 | Court-rules engine (every court's deadlines + service rules across NZ/AU/UK/US) | 🟡 | `lib/court-rules.ts` shipped with 28 rules across NZ/AU/UK/US. `/tools/court-rules` interactive calculator live (pick rule + trigger date → cited deadline). Public-holiday calendars + service-of-process variations + fuller rule catalogue queued |
5050| 4 | Multi-jurisdictional referral rail | ⬜ | Wave 4 |
5151| 5 | Document automation studio (variables-once-fill-forever) | 🟡 | Template engine live (`lib/templates/engine.ts`): variable contracts, substitution, watermark wrapper, registry. NDA template authored across 4 jurisdictions as canonical first template. Firm-side template-override UI (Wave 4) still queued |
Addedlib/templates/directors-resolution.ts+283−0View fileUnifiedSplit
1/**
2 * Directors' / board resolution templates — NZ / AU / UK / US.
3 *
4 * Standard written-resolution-of-the-board document recording a
5 * decision the board has made (or is about to make) outside a formal
6 * meeting. Each variant satisfies the relevant company-law requirements
7 * for written resolutions to be valid + binding on the company.
8 *
9 * - NZ: Companies Act 1993 — directors may act by written resolution
10 * where the constitution permits (s 167); standard practice for
11 * SMEs.
12 * - AU: Corporations Act 2001 + Replaceable Rules s 248A — written
13 * circulating resolution signed by all directors valid.
14 * - UK: Companies Act 2006 + Articles — directors may pass written
15 * resolutions if Articles permit. Model Articles Reg 8 allows it.
16 * - US: DGCL § 141(f) — board may act without a meeting if all
17 * directors consent in writing or by electronic transmission.
18 */
19
20import {
21 registerTemplate,
22 substitute,
23 type DocumentTemplate,
24 type TemplateVariable,
25} from "./engine";
26
27const SHARED_VARIABLES: TemplateVariable[] = [
28 {
29 key: "companyName",
30 label: "Company full legal name",
31 required: true,
32 placeholder: "[Company full legal name]",
33 example: "Zoobicon Limited",
34 },
35 {
36 key: "companyNumber",
37 label: "Company / corporate number",
38 placeholder: "[Company number / NZBN / ACN / EIN]",
39 example: "NZBN 9429051234567",
40 },
41 {
42 key: "directors",
43 label: "Directors signing (one per line)",
44 required: true,
45 placeholder: "[Directors — one per line]",
46 example: "Craig Canty\nMarama Wilson\nTama Ngata",
47 },
48 {
49 key: "resolutionSubject",
50 label: "Resolution subject (short heading)",
51 required: true,
52 placeholder: "[Subject]",
53 example: "Approval of US Delaware C-Corp incorporation",
54 },
55 {
56 key: "resolutionBody",
57 label: "Resolution text (the operative resolutions)",
58 required: true,
59 placeholder: "[Resolution text — usually one or more 'IT IS RESOLVED THAT' paragraphs]",
60 example:
61 "IT IS RESOLVED THAT:\n(a) the Company approve the incorporation of a Delaware C-Corporation as a wholly-owned subsidiary;\n(b) the directors of the Company be authorised to take all steps reasonably necessary to effect such incorporation, including signing all documents on behalf of the Company.",
62 },
63 {
64 key: "resolutionDate",
65 label: "Date of the resolution",
66 placeholder: "[Date]",
67 example: "1 June 2026",
68 },
69];
70
71// === NZ ===
72registerTemplate({
73 slug: "directors-resolution",
74 jurisdiction: "NZ",
75 label: "Directors' Resolution by Written Consent (NZ)",
76 summary:
77 "NZ written directors' resolution under Companies Act 1993. Confirms the directors' decision outside a board meeting; signed by all directors. Recording it in the minute book is a directors' duty under s 189.",
78 authorities: [
79 "Companies Act 1993 — directors' duties (ss 131–138), interest disclosure (s 139), board procedure (s 167)",
80 "Companies Act 1993 s 189 — directors' obligation to keep company records",
81 "Companies Act 1993 s 145 — disclosure of interest in transactions",
82 ],
83 variables: SHARED_VARIABLES,
84 reviewerNotes:
85 "Verify the company's constitution permits written resolutions of directors (most NZ constitutions do). If any director has an interest in the matter under s 139, disclosure must be made + the interested director cannot vote (s 144) unless the constitution permits. Resolution must be filed in the company's minute book per s 189(1)(d).",
86 render: (values) => {
87 const body = `## Resolution of the Directors of {{companyName}}
88
89**Company:** {{companyName}} ({{companyNumber}})
90**Date:** {{resolutionDate}}
91
92**Subject:** {{resolutionSubject}}
93
94### Background
95
96The Directors of the Company resolve the following matters by written resolution under the Company's constitution and section 167 of the Companies Act 1993.
97
98### Resolutions
99
100{{resolutionBody}}
101
102### Disclosure of interests
103
104Each Director signing this resolution confirms that, in respect of the matters resolved, they have made any disclosure of interest required under section 139 of the Companies Act 1993, or that no such interest exists.
105
106### Effective
107
108This resolution takes effect on {{resolutionDate}} and is to be filed in the Company's minute book in accordance with section 189(1)(d) of the Companies Act 1993.
109
110---
111
112**Signed by all Directors:**
113
114{{directors}}
115
116Director signature: ____________________________
117
118Date: {{resolutionDate}}
119
120(Repeat the signature block for each director.)`;
121 return substitute(body, SHARED_VARIABLES, values).body;
122 },
123});
124
125// === AU ===
126registerTemplate({
127 slug: "directors-resolution",
128 jurisdiction: "AU",
129 label: "Directors' Resolution by Written Consent (AU)",
130 summary:
131 "AU circulating written resolution of directors under Corporations Act 2001 s 248A (Replaceable Rule). Signed by all directors. Resolution takes effect when signed by the last director.",
132 authorities: [
133 "Corporations Act 2001 (Cth) s 248A — circulating written resolution",
134 "Corporations Act 2001 s 191 — director's duty to disclose material personal interest",
135 "Corporations Act 2001 s 195 — voting on matters in which director has material personal interest (proprietary companies)",
136 "Corporations Act 2001 s 251A — minute books",
137 ],
138 variables: SHARED_VARIABLES,
139 reviewerNotes:
140 "S 248A is a Replaceable Rule — verify the company's constitution doesn't displace it. Where the constitution applies, its written-resolution mechanism governs. S 191 disclosure of material personal interest is mandatory. For proprietary companies, s 195 prevents an interested director from voting (subject to certain exceptions). Record in minute book under s 251A.",
141 render: (values) => {
142 const body = `## Circulating Resolution of the Directors of {{companyName}}
143
144**Company:** {{companyName}} ({{companyNumber}})
145**Date:** {{resolutionDate}}
146
147**Subject:** {{resolutionSubject}}
148
149### Resolutions
150
151The undersigned, being all of the directors of {{companyName}}, hereby pass the following resolutions by way of circulating written resolution under section 248A of the Corporations Act 2001 (Cth) (or under the Company's Constitution where applicable):
152
153{{resolutionBody}}
154
155### Disclosure of material personal interests
156
157Each director signing this resolution confirms that, in respect of the matters resolved, any material personal interest has been disclosed in accordance with section 191 of the Corporations Act 2001, or that no such interest exists. Where applicable, no director with such an interest has voted on the relevant resolution under section 195.
158
159### Effective
160
161This resolution takes effect on the date signed by the last director and is to be entered in the Company's minute book under section 251A.
162
163---
164
165**Signed by all Directors:**
166
167{{directors}}
168
169Director signature: ____________________________
170
171Date:
172
173(Repeat the signature block for each director.)`;
174 return substitute(body, SHARED_VARIABLES, values).body;
175 },
176});
177
178// === UK ===
179registerTemplate({
180 slug: "directors-resolution",
181 jurisdiction: "UK",
182 label: "Directors' Written Resolution (England & Wales)",
183 summary:
184 "UK written resolution of directors under the Articles of Association (Model Articles for private companies, Reg 8). Signed by all directors entitled to vote.",
185 authorities: [
186 "Companies Act 2006 — directors' duties (ss 171–177), interest declaration (s 177)",
187 "Model Articles for Private Companies Limited by Shares (Companies (Model Articles) Regulations 2008) Reg 8 — directors' written resolutions",
188 "Companies Act 2006 s 248 — minutes of directors' meetings + written resolutions",
189 ],
190 variables: SHARED_VARIABLES,
191 reviewerNotes:
192 "Verify the Articles permit directors' written resolutions — Model Articles Reg 8 does for private companies. Disclosure of director's interest under s 177 CA 2006 (proposed transactions) or s 182 (existing transactions) required. Resolution must be entered in the directors' minute book + retained for 10 years (s 248).",
193 render: (values) => {
194 const body = `## Directors' Written Resolution of {{companyName}}
195
196**Company:** {{companyName}} ({{companyNumber}})
197**Date:** {{resolutionDate}}
198
199**Subject:** {{resolutionSubject}}
200
201### Background
202
203The undersigned, being all of the directors of {{companyName}} entitled to vote on the matters below, pass the following resolutions in writing under the Company's Articles of Association (Model Articles Reg 8 or equivalent):
204
205### Resolutions
206
207{{resolutionBody}}
208
209### Declaration of interests
210
211Each director signing this resolution confirms that any interest in the matters resolved has been declared in accordance with section 177 of the Companies Act 2006 (proposed transactions) or section 182 (existing transactions), or that no such interest exists.
212
213### Effective
214
215This resolution takes effect on the date signed by the last director, and shall be entered in the Company's directors' minute book in accordance with section 248 of the Companies Act 2006.
216
217---
218
219**Signed:**
220
221{{directors}}
222
223Director signature: ____________________________
224
225Date:
226
227(Repeat the signature block for each director.)`;
228 return substitute(body, SHARED_VARIABLES, values).body;
229 },
230});
231
232// === US ===
233registerTemplate({
234 slug: "directors-resolution",
235 jurisdiction: "US",
236 label: "Action by Unanimous Written Consent of the Board (US · Delaware default)",
237 summary:
238 "US Action by Unanimous Written Consent of the Board under DGCL § 141(f). Signed by all directors; takes effect when the last director signs. Standard tool for board decisions outside a meeting.",
239 authorities: [
240 "Delaware General Corporation Law (DGCL) § 141(f) — action by written consent of directors",
241 "Model Business Corporation Act § 8.21 — equivalent in MBCA states",
242 "DGCL § 144 — interested-director transactions (disclosure + disinterested approval)",
243 "Section 102(b)(7) DGCL — exculpation provisions in the Certificate of Incorporation",
244 ],
245 variables: SHARED_VARIABLES,
246 reviewerNotes:
247 "DGCL § 141(f) requires consent of ALL directors (unanimous), not just a majority. If any director objects, the board must hold a meeting under DGCL § 141. For interested-director transactions under DGCL § 144, the resolution must include disclosure + a finding of fairness OR approval by disinterested directors. Some matters (Cert of Inc amendments, mergers) require additional stockholder action under DGCL.",
248 render: (values) => {
249 const body = `## Action by Unanimous Written Consent of the Board of Directors of {{companyName}}
250
251**Corporation:** {{companyName}} ({{companyNumber}})
252**Effective:** {{resolutionDate}}
253
254**Subject:** {{resolutionSubject}}
255
256The undersigned, being all of the members of the Board of Directors of {{companyName}}, a Delaware corporation (the "**Corporation**"), hereby take the following action by unanimous written consent in lieu of a meeting, in accordance with Section 141(f) of the Delaware General Corporation Law:
257
258### Resolutions
259
260{{resolutionBody}}
261
262### Interested-director acknowledgment
263
264To the extent any director has an interest in any of the foregoing matters, such interest has been fully disclosed prior to this Consent + the relevant resolution has been considered in compliance with DGCL § 144. Where required, the relevant transaction has been authorised by the affirmative votes of a majority of the disinterested directors.
265
266### Effectiveness; filing
267
268This Consent takes effect on the date the last director signs. The Corporation's Secretary shall file this Consent with the minutes of proceedings of the Board.
269
270---
271
272**Executed by all Directors:**
273
274{{directors}}
275
276Director signature: ____________________________
277
278Date:
279
280(Repeat the signature block for each director.)`;
281 return substitute(body, SHARED_VARIABLES, values).body;
282 },
283});
Modifiedlib/templates/index.ts+1−0View fileUnifiedSplit
1414import "./lease";
1515import "./power-of-attorney";
1616import "./sale-of-goods";
17import "./directors-resolution";
1718
1819// Re-export the engine API.
1920export {
2021
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts