Summarize a rule notice with every date.
Done by an agent. Checked twice.
What a new rule changes, for whom and by when, with every date and time limit quoted from the notice itself.
Real files in
- federal_register_2023-16194.txt
Securities and Exchange Commission final rule on cybersecurity disclosure, 88 FR 51896, published August 4, 2023. Trimmed to the header, summary, dates, the compliance dates section and the full rule text with its form appendices. The contact paragraph, the discussion, the economic analysis, page markers and the signing officer's name were removed. Each cut is marked in the file.. 685 lines, 29 KB.
Real public documents. Links below.
Three steps
- 1.Read the whole notice
- 2.List every date and time limit
- 3.Write the summary
Claude Sonnet 5.5, 1 min 50 s. No web. It never saw the check.
Checked twice
- Passed: 8 of 8 calendar dates written in the notice have exactly one row in dates.csv, with 0 rows for a date the notice does not give
- Passed: 8 of 8 date quotes are found word for word in the notice and contain the date as the notice writes it
- Passed: 8 of 8 kinds equal the kind worked out from the notice (1 published, 1 signed, 1 effective, 5 compliance) and 5 of 5 compliance rows name the group the notice names
- Passed: 17 of 17 places where the notice writes a time limit (7 different limits) sit inside the quote of a row for that limit, with 17 of 17 rows quoting the notice word for word
- Passed: summary.md lists 6 of 6 effective and compliance dates under By when, once each and earliest first, with 5 of 5 naming the same group as the table
- Passed: summary.md names 4 of 4 new items the rule adds, with 109 of 109 dates, numbers and time limits in it found in the notice
- Passed: summary.md opens by saying it is a first pass for a person to decide and not legal advice
Second review by Claude Opus 5.5: pass.
Then we broke a copy of the output 7 ways on purpose. The check caught 7.
## By when - September 5, 2023: The amendments are effective. - December 15, 2023: all registrants must provide Item 106 of Regulation S-K and Item 16K of Form 20-F disclosures, beginning with annual reports for fiscal years ending on or after this date. - December 18, 2023: all registrants other than smaller reporting companies must begin complying with the incident disclosure requirements in Item 1.05 of Form 8-K and in Form 6-K. - June 15, 2024: smaller reporting companies must begin complying with Item 1.05 of Form 8-K. - December 15, 2024: all registrants must begin tagging Item 106 and Item 16K disclosure in Inline XBRL, beginning with annual reports for fiscal years ending on or after this date. - December 18, 2024: all registrants must begin tagging Item 1.05 of Form 8-K and Form 6-K disclosure in Inline XBRL.
How this was run
An AI agent on Claude Sonnet 5.5 was given a folder with the files below and a three-step flow, and nothing else. It had no web access and never saw the check. The check was written before the run and works the answer out again from the input files. Then Claude Opus 5.5 reviewed the result against the inputs. The input files are real public documents.
Run 2 of 2 on 1 December 2026. The agent took 1 min 50 s. Run 1 passed the check but not the second review. Each run starts clean. Between runs the written flow was made clearer, or a check was corrected or made stricter. Nobody edits the output.
What the second review verified
- All 8 dates written with the month as a word are in dates.csv, one row each, in date order. They run from 2023-07-26 (signed, 'Dated: July 26, 2023.') to 2024-12-18 ('beginning on DECEMBER 18, 2024'). All 33 quotes across both CSV files (8 in dates.csv, 25 in time_limits.csv) match the notice word for word when tested by script.
- All 25 places the notice states a time period are covered by a time_limits.csv row: 'four business days'/'four business day' (input lines 543, 545, 555, 557, 645-647), 'up to 30 days' twice, 'up to 60 days', '60-day', 'seven business days', '180 days', 'one year' and 'twelve calendar months' four times (two each in Sec. 239.13 and Form S-3 I.A.3(b)).
- The By when bullets copy the who cells word for word ('all registrants other than smaller reporting companies', 'smaller reporting companies', 'all registrants'). Smaller reporting companies are correctly named as the group that gets more time: 'an additional 180 days', ending on June 15, 2024.
- Every new item is named by its number: Item 106 (Sec. 229.106), Item 1.05 of Form 8-K, Item 16K of Form 20-F, Item 1C of Form 10-K, Form S-3 General Instruction I.A.3(b), Sec. 232.405(b)(4)(v). The 60-day Attorney General extension is correctly limited to national security only, without public safety.
What this run does not show
- The notice is a real Federal Register rule trimmed to its header, dates and rule text, so the summary says nothing about the discussion or cost analysis that were cut.
- Run 1 failed the second review for missing one use of a time limit and for wrongly saying two passages read the same.
- The check tests dates, groups and time limits but cannot tell whether the plain words under What changes describe the rule well.
Would the check catch a wrong answer?
A check that cannot fail proves nothing. After the run we took a copy of the output, broke it one small way at a time and ran the check again. It caught 7 of 7.
Open every file
flow.md · the three steps the agent followed
# Summarize a rule notice with every date function: legal for: the compliance or legal lead who must tell the business what a new rule changes goal: A short summary says what the rule changes, for whom and by when, with every date and time limit traced to the notice's own words. ## 1. Read the whole notice Read the notice in input/. It is a rule notice from the Federal Register, trimmed to its header, summary, dates, compliance dates and the rule text. Lines in square brackets that start "Trimmed" or "Name of" mark where parts were cut. Do not quote them. Read to the end: the rule text and the forms at the back hold time limits the summary at the top does not mention. Work only from this file. Do not use anything you know about the rule from elsewhere. This is a first pass for a person to decide, not legal advice. ## 2. List every date and time limit Write output/dates.csv with columns date,kind,who,what,quote. One row for every calendar date the notice writes with the month as a word, whatever capitals it uses. A date that appears more than once gets one row. Earliest first. - date: year-month-day. - kind: `published` for the day the notice was printed in the Federal Register, `signed` for the day the agency dated it, `effective` for the day the rule takes effect, `compliance` for a day from which someone must start doing something. - who: for a compliance row, the group that must act, in the notice's own words copied from the quote. Keep any exception the notice attaches to the group. Empty for the other kinds. - what: one plain sentence on what happens or must start on that date. - quote: words copied from the notice without change that include the date as the notice writes it and say what it is for. Write output/time_limits.csv with columns limit,what,quote. One row for every period of time the notice counts in days, business days, months or years, such as a filing deadline, a delay or a look-back period. Search the file for every place each period is written, in digits or in words. Every one of those places must sit inside the quote of a row for that period. When one period is used for two different things, give each use its own row, even inside one paragraph. When a rule is repeated in two parts of the notice, give each part its own row. - limit: the number and the unit as the notice writes them. - what: one plain sentence on what the period is for and what starts it. Do not say two passages read the same unless they match word for word. - quote: words copied from the notice without change that include the limit. Test every quote against the file with a script before you finish. Line breaks and the style of quote marks do not matter. Every other character does. ## 3. Write the summary Write output/summary.md. The first line must read exactly: First pass for a person to decide. Not legal advice. Then four parts with these headings, each under two hash marks: - `What changes`: what the rule adds, in plain words. Name every new item the rule adds to a form or regulation by its number, for example Item 9.99. - `For whom`: each group the notice names and what it must do. Say which group gets more time. Give each group everything the By when part asks of it. - `By when`: one bullet for the effective date and one for each compliance date, earliest first. Start each bullet with the date written like March 5, 2021 and then a colon. A compliance bullet repeats the who cell of its row in dates.csv, word for word. - `Time limits`: the periods from time_limits.csv that a company must meet or may use, in plain words, each written as the notice writes it. Use only dates, numbers and time limits that are in the notice. Do not work out new ones. ## Done looks like - Every date in the notice has one row with a quote that contains it. - Every time limit in the notice has a row with a quote that contains it. - The summary's dates and numbers all come from the notice and agree with the two tables.
input/federal_register_2023-16194.txt · 685 lines, 29 KB
[Federal Register Volume 88, Number 149 (Friday, August 4, 2023)]
[Rules and Regulations]
[Pages 51896-51945]
[FR Doc No: 2023-16194]
Federal Register / Vol. 88 , No. 149 / Friday, August 4, 2023 / Rules and Regulations
SECURITIES AND EXCHANGE COMMISSION
17 CFR Parts 229, 232, 239, 240, and 249
[Release Nos. 33-11216; 34-97989; File No. S7-09-22]
RIN 3235-AM89
Cybersecurity Risk Management, Strategy, Governance, and Incident
Disclosure
AGENCY: Securities and Exchange Commission.
ACTION: Final rule.
-----------------------------------------------------------------------
SUMMARY: The Securities and Exchange Commission (``Commission'') is
adopting new rules to enhance and standardize disclosures regarding
cybersecurity risk management, strategy, governance, and incidents by
public companies that are subject to the reporting requirements of the
Securities Exchange Act of 1934. Specifically, we are adopting
amendments to require current disclosure about material cybersecurity
incidents. We are also adopting rules requiring periodic disclosures
about a registrant's processes to assess, identify, and manage material
cybersecurity risks, management's role in assessing and managing
material cybersecurity risks, and the board of directors' oversight of
cybersecurity risks. Lastly, the final rules require the cybersecurity
disclosures to be presented in Inline eXtensible Business Reporting
Language (``Inline XBRL'').
DATES:
Effective date: The amendments are effective September 5, 2023.
Compliance dates: See Section II.I (Compliance Dates).
[Trimmed from this copy: the contact paragraph, the table of amended rules, the table of contents and Sections I to II.H of the discussion.]
II. Discussion of Final Amendments
I. Compliance Dates
The final rules are effective September 5, 2023. With respect to
Item 106 of Regulation S-K and item 16K of Form 20-F, all registrants
must provide such disclosures beginning with annual reports for fiscal
years ending on or after December 15, 2023. With respect to compliance
with the incident disclosure requirements in Item 1.05 of Form 8-K and
in Form 6-K, all registrants other than smaller reporting companies
must begin complying on DECEMBER 18, 2023. As discussed above, smaller
reporting companies are being given an additional 180 days from the
non-smaller reporting company compliance date before they must begin
complying with Item 1.05 of Form 8-K, on June 15, 2024.
With respect to compliance with the structured data requirements,
as noted above, all registrants must tag disclosures required under the
final rules in Inline XBRL beginning one year after the initial
compliance date for any issuer for the related disclosure requirement.
Specifically:
For Item 106 of Regulation S-K and item 16K of Form 20-F,
all registrants must begin tagging responsive disclosure in Inline XBRL
beginning with annual reports for fiscal years ending on or after
December 15, 2024; and
For Item 1.05 of Form 8-K and Form 6-K all registrants
must begin tagging responsive disclosure in Inline XBRL beginning on
DECEMBER 18, 2024.
III. Other Matters
If any of the provisions of these rules, or the application thereof
to any person or circumstance, is held to be invalid, such invalidity
shall not affect other provisions or application of such provisions to
other persons or circumstances that can be given effect without the
invalid provision or application.
Pursuant to the Congressional Review Act, the Office of Information
and Regulatory Affairs has designated these rules as not a ``major
rule,'' as defined by 5 U.S.C. 804(2).
[Trimmed from this copy: Sections IV to VI, the economic, paperwork and small business analysis.]
Statutory Authority
The amendments contained in this release are being adopted under
the authority set forth in Sections 7 and 19(a) of the Securities Act
and Sections 3(b), 12, 13, 15, and 23(a) of the Exchange Act.
List of Subjects in 17 CFR Parts 229, 232, 239, 240, and 249
Reporting and record keeping requirements, Securities.
Text of Amendments
For the reasons set forth in the preamble, the Commission amends
title 17, chapter II of the Code of Federal Regulations as follows:
PART 229--STANDARD INSTRUCTIONS FOR FILING FORMS UNDER SECURITIES
ACT OF 1933, SECURITIES EXCHANGE ACT OF 1934 AND ENERGY POLICY AND
CONSERVATION ACT OF 1975--REGULATION S-K
0
1. The authority citation for part 229 continues to read as follows:
Authority: 15 U.S.C. 77e, 77f, 77g, 77h, 77j, 77k, 77s, 77z-2,
77z-3, 77aa(25), 77aa(26), 77ddd, 77eee, 77ggg, 77hhh, 77iii, 77jjj,
77nnn, 77sss, 78c, 78i, 78j, 78j-3, 78l, 78m, 78n, 78n-1, 78o, 78u-
5, 78w, 78ll, 78mm, 80a-8, 80a-9, 80a-20, 80a-29, 80a-30, 80a-31(c),
80a-37, 80a-38(a), 80a-39, 80b-11 and 7201 et seq.; 18 U.S.C. 1350;
sec. 953(b), Pub. L. 111-203, 124 Stat. 1904 (2010); and sec.
102(c), Pub. L. 112-106, 126 Stat. 310 (2012).
0
2. Add Sec. 229.106 to read as follows:
Sec. 229.106 (Item 106) Cybersecurity.
(a) Definitions. For purposes of this section:
Cybersecurity incident means an unauthorized occurrence, or a
series of related unauthorized occurrences, on or conducted through a
registrant's information systems that jeopardizes the confidentiality,
integrity, or availability of a registrant's information systems or any
information residing therein.
Cybersecurity threat means any potential unauthorized occurrence on
or conducted through a registrant's information systems that may result
in adverse effects on the confidentiality, integrity, or availability
of a registrant's information systems or any information residing
therein.
Information systems means electronic information resources, owned
or used by the registrant, including physical or virtual infrastructure
controlled by such information resources, or components thereof,
organized for the collection, processing, maintenance, use, sharing,
dissemination, or disposition of the registrant's information to
maintain or support the registrant's operations.
(b) Risk management and strategy. (1) Describe the registrant's
processes, if any, for assessing, identifying, and managing material
risks from cybersecurity threats in sufficient detail for a reasonable
investor to understand those processes. In providing such disclosure, a
registrant should address, as applicable, the following non-exclusive
list of disclosure items:
(i) Whether and how any such processes have been integrated into
the registrant's overall risk management system or processes;
(ii) Whether the registrant engages assessors, consultants,
auditors, or other third parties in connection with any such processes;
and
(iii) Whether the registrant has processes to oversee and identify
such risks from cybersecurity threats associated with its use of any
third-party service provider.
(2) Describe whether any risks from cybersecurity threats,
including as a result of any previous cybersecurity incidents, have
materially affected or are reasonably likely to materially affect the
registrant, including its business strategy, results of operations, or
financial condition and if so, how.
(c) Governance. (1) Describe the board of directors' oversight of
risks from cybersecurity threats. If applicable, identify any board
committee or subcommittee responsible for the oversight of risks from
cybersecurity threats and describe the processes by which the board or
such committee is informed about such risks.
(2) Describe management's role in assessing and managing the
registrant's material risks from cybersecurity threats. In providing
such disclosure, a registrant should address, as applicable, the
following non-exclusive list of disclosure items:
(i) Whether and which management positions or committees are
responsible for assessing and managing such risks, and the relevant
expertise of such persons or members in such detail as necessary to
fully describe the nature of the expertise;
(ii) The processes by which such persons or committees are informed
about and monitor the prevention, detection, mitigation, and
remediation of cybersecurity incidents; and
(iii) Whether such persons or committees report information about
such risks to the board of directors or a committee or subcommittee of
the board of directors.
Instruction 1 to Item 106(c): In the case of a foreign private
issuer with a two-tier board of directors, for purposes of paragraph
(c) of this section, the term ``board of directors'' means the
supervisory or non-management board. In the case of a foreign private
issuer meeting the requirements of Sec. 240.10A-3(c)(3) of this
chapter, for purposes of paragraph (c) of this Item, the term ``board
of directors'' means the issuer's board of auditors (or similar body)
or statutory auditors, as applicable.
Instruction 2 to Item 106(c): Relevant expertise of management in
Item 106(c)(2)(i) may include, for example: Prior work experience in
cybersecurity; any relevant degrees or certifications; any knowledge,
skills, or other background in cybersecurity.
(d) Structured Data Requirement. Provide the information required
by this Item in an Interactive Data File in accordance with Rule 405 of
Regulation S-T and the EDGAR Filer Manual.
0
3. Amend Sec. 229.601 by revising paragraph (b)(101)(i)(C)(1) as
follows:
Sec. 229.601 (Item 601) Exhibits.
* * * * *
(b) * * *
(101) * * *
(i) * * *
(C) * * *
(1) Only when:
(i) The Form 8-K contains audited annual financial statements that
are a revised version of financial statements that previously were
filed with the Commission and that have been revised pursuant to
applicable accounting standards to reflect the effects of certain
subsequent events, including a discontinued operation, a change in
reportable segments or a change in accounting principle. In such case,
the Interactive Data File will be required only as to such revised
financial statements regardless of whether the Form 8-K contains other
financial statements; or
(ii) The Form 8-K includes disclosure required to be provided in an
Interactive Data File pursuant to Item 1.05(b) of Form 8-K; and
* * * * *
PART 232--REGULATION S-T--GENERAL RULES AND REGULATIONS FOR
ELECTRONIC FILINGS
0
4. The general authority citation for part 232 continues to read as
follows:
Authority: 15 U.S.C. 77c, 77f, 77g, 77h, 77j, 77s(a), 77z-3,
77sss(a), 78c(b), 78l, 78m, 78n, 78o(d), 78w(a), 78ll, 80a-6(c),
80a-8, 80a-29, 80a-30, 80a-37, 80b-4, 80b-6a, 80b-10, 80b-11, 7201
et seq.; and 18 U.S.C. 1350, unless otherwise noted.
* * * * *
0
5. Amend Sec. 232.405 by adding paragraph (b)(4)(v) to read as
follows:
Sec. 232.405 Interactive Data File submissions.
* * * * *
(b) * * *
(4) * * *
(v) Any disclosure provided in response to: Sec. 229.106 of this
chapter (Item 106 of Regulation S-K); Item 1.05 of Sec. 249.308 of
this chapter (Item 1.05 of Form 8-K); and Item 16K of Sec. 249.220f of
this chapter (Item 16K of Form 20-F).
* * * * *
PART 239--FORMS PRESCRIBED UNDER THE SECURITIES ACT OF 1933
0
6. The general authority citation for part 239 continues to read as
follows:
Authority: 15 U.S.C. 77c, 77f, 77g, 77h, 77j, 77s, 77z-2, 77z-3,
77sss, 78c, 78l, 78m, 78n, 78o(d), 78o-7 note, 78u-5, 78w(a), 78ll,
78mm, 80a-2(a), 80a-3, 80a-8, 80a-9, 80a-10, 80a-13, 80a-24, 80a-26,
80a-29, 80a-30, 80a-37, and sec. 71003 and sec. 84001, Pub. L. 114-
94, 129 Stat. 1321, unless otherwise noted.
* * * * *
0
7. Amend Sec. 239.13 by revising paragraph (a)(3)(ii) to read as
follows:
Sec. 239.13 Form S-3, for registration under the Securities Act of
1933 of securities of certain issuers offered pursuant to certain types
of transactions.
* * * * *
(a) * * *
(3) * * *
(ii) Has filed in a timely manner all reports required to be filed
during the twelve calendar months and any portion of a month
immediately preceding the filing of the registration statement, other
than a report that is required solely pursuant to Item 1.01, 1.02,
1.05, 2.03, 2.04, 2.05, 2.06, 4.02(a), 6.01, 6.03, or 6.05 of Form 8-K
(Sec. 249.308 of this chapter). If the registrant has used (during the
twelve calendar months and any portion of a month immediately preceding
the filing of the registration statement) Sec. 240.12b-25(b) of this
chapter with respect to a report or a portion of a report, that report
or portion thereof has actually been filed within the time period
prescribed by that section; and
* * * * *
0
8. Amend Form S-3 (referenced in Sec. 239.13) by adding General
Instruction I.A.3(b).
Note: Form S-3 is attached as Appendix A to this document. Form
S-3 will not appear in the Code of Federal Regulations.
PART 240--GENERAL RULES AND REGULATIONS, SECURITIES EXCHANGE ACT OF
1934
0
9. The authority citation for part 240 continues to read, in part, as
follows:
Authority: 15 U.S.C. 77c, 77d, 77g, 77j, 77s, 77z-2, 77z-3,
77eee, 77ggg, 77nnn, 77sss, 77ttt, 78c, 78c-3, 78c-5, 78d, 78e, 78f,
78g, 78i, 78j, 78j-1, 78j-4, 78k, 78k-1, 78l, 78m, 78n, 78n-1, 78o,
78o-4, 78o-10, 78p, 78q, 78q-1, 78s, 78u-5, 78w, 78x, 78dd, 78ll,
78mm, 80a-20, 80a-23, 80a-29, 80a-37, 80b-3, 80b-4, 80b-11, 7201 et
seq., and 8302; 7 U.S.C. 2(c)(2)(E); 12 U.S.C. 5221(e)(3); 18 U.S.C.
1350; and Pub. L. 111-203, 939A, 124 Stat. 1376 (2010); and Pub. L.
112-106, sec. 503 and 602, 126 Stat. 326 (2012), unless otherwise
noted.
* * * * *
Section 240.15d-11 is also issued under secs. 3(a) and 306(a),
Pub. L. 107-204, 116 Stat. 745.
* * * * *
0
10. Amend Sec. 240.13a-11 by revising paragraph (c) to read as
follows:
Sec. 240.13a-11 Current reports on Form 8-K (Sec. 249.308 of this
chapter).
* * * * *
(c) No failure to file a report on Form 8-K that is required solely
pursuant to Item 1.01, 1.02, 1.05, 2.03, 2.04, 2.05, 2.06, 4.02(a),
5.02(e), or 6.03 of Form 8-K shall be deemed to be a violation of 15
U.S.C. 78j(b) and Sec. 240.10b-5.
0
11. Amend Sec. 240.15d-11 by revising paragraph (c) to read as
follows:
Sec. 240.15d-11 Current reports on Form 8-K (Sec. 249.308 of this
chapter).
* * * * *
(c) No failure to file a report on Form 8-K that is required solely
pursuant to Item 1.01, 1.02, 1.05, 2.03, 2.04, 2.05, 2.06, 4.02(a),
5.02(e), or 6.03 of Form 8-K shall be deemed to be a violation of 15
U.S.C. 78j(b) and Sec. 240.10b-5.
PART 249--FORMS, SECURITIES EXCHANGE ACT OF 1934
0
12. The authority citation for part 249 continues to read, in part, as
follows:
Authority: 15 U.S.C. 78a et seq. and 7201 et seq.; 12 U.S.C.
5461 et seq.; 18 U.S.C. 1350; Sec. 953(b) Pub. L. 111-203, 124 Stat.
1904; Sec. 102(a)(3) Pub. L. 112-106, 126 Stat. 309 (2012), Sec. 107
Pub. L. 112-106, 126 Stat. 313 (2012), Sec. 72001 Pub. L. 114-94,
129 Stat. 1312 (2015), and secs. 2 and 3 Pub. L. 116-222, 134 Stat.
1063 (2020), unless otherwise noted.
Section 249.220f is also issued under secs. 3(a), 202, 208, 302,
306(a), 401(a), 401(b), 406 and 407, Pub. L. 107-204, 116 Stat. 745,
and secs. 2 and 3, Pub. L. 116-222, 134 Stat. 1063.
* * * * *
Section 249.308 is also issued under 15 U.S.C. 80a-29 and 80a-
37.
* * * * *
Section 249.310 is also issued under secs. 3(a), 202, 208, 302,
406 and 407, Public Law 107-204, 116 Stat. 745.
* * * * *
0
13. Revise Form 20-F (referenced in Sec. 249.220f) by adding Item 16K.
Note: Form 20-F is attached as Appendix B to this document. Form
20-F will not appear in the Code of Federal Regulations.
0
14. Amend Form 6-K (referenced in Sec. 249.306) by adding, in the
second paragraph of General Instruction B, the phrase ``material
cybersecurity incident;'' before the phrase ``and any
other information which the registrant deems of material importance to
security holders.''
0
15. Revise Form 8-K (referenced in Sec. 249.308) by:
0
a. Revising General Instruction B.1.;
0
b. Revising General Instruction G.1.; and
0
c. Adding Item 1.05.
Note: Form 8-K is attached as Appendix C to this document. Form
8-K will not appear in the Code of Federal Regulations.
0
16. Revise Form 10-K (referenced in Sec. 249.310) by:
0
a. Revising General Instruction J(1)(b); and
0
b. Adding Item 1C to Part I.
Note: Form 10-K is attached as Appendix D to this document. Form
10-K will not appear in the Code of Federal Regulations.
* * * * *
By the Commission.
Dated: July 26, 2023.
[Name of the signing officer trimmed from this copy.]
Note: The following appendices will not appear in the Code of
Federal Regulations.
Appendix A--Form S-3
FORM S-3
* * * * *
INFORMATION TO BE INCLUDED IN THE REPORT
* * * * *
General Instructions
I. Eligibility Requirements for Use of Form S-3
* * * * *
A. Registrant Requirements
* * * * *
3. * * *
(b) has filed in a timely manner all reports required to be
filed during the twelve calendar months and any portion of a month
immediately preceding the filing of the registration statement,
other than a report that is required solely pursuant to Item 1.01,
1.02, 1.04, 1.05, 2.03, 2.04, 2.05, 2.06, 4.02(a) or 5.02(e) of Form
8-K (Sec. 249.308 of this chapter). If the registrant has used
(during the twelve calendar months and any portion of a month
immediately preceding the filing of the registration statement) Rule
12b-25(b) (Sec. 240.12b-25(b) of this chapter) under the Exchange
Act with respect to a report or a portion of a report, that report
or portion thereof has actually been filed within the time period
prescribed by that rule.
* * * * *
Appendix B--Form 20-F
FORM 20-F
* * * * *
PART II
* * * * *
Item 16K. Cybersecurity
(a) Definitions. For purposes of this section:
(1) Cybersecurity incident means an unauthorized occurrence, or
a series of related unauthorized occurrences, on or conducted
through a registrant's information systems that jeopardizes the
confidentiality, integrity, or availability of a registrant's
information systems or any information residing therein.
(2) Cybersecurity threat means any potential unauthorized
occurrence on or conducted through a registrant's information
systems that may result in adverse effects on the confidentiality,
integrity, or availability of a registrant's information systems or
any information residing therein.
(3) Information systems means electronic information resources,
owned or used by the registrant, including physical or virtual
infrastructure controlled by such information resources, or
components thereof, organized for the collection, processing,
maintenance, use, sharing, dissemination, or disposition of the
registrant's information to maintain or support the registrant's
operations.
(b) Risk management and strategy. (1) Describe the registrant's
processes, if any, for assessing, identifying, and managing material
risks from cybersecurity threats in sufficient detail for a
reasonable investor to understand those processes. In providing such
disclosure, a registrant should address, as applicable, the
following non-exclusive list of disclosure items:
(i) Whether and how any such processes have been integrated into
the registrant's overall risk management system or processes;
(ii) Whether the registrant engages assessors, consultants,
auditors, or other third parties in connection with any such
processes; and
(iii) Whether the registrant has processes to oversee and
identify such risks from cybersecurity threats associated with its
use of any third-party service provider.
(2) Describe whether any risks from cybersecurity threats,
including as a result of any previous cybersecurity incidents, have
materially affected or are reasonably likely to materially affect
the registrant, including its business strategy, results of
operations, or financial condition and if so, how.
(c) Governance. (1) Describe the board of directors' oversight
of risks from cybersecurity threats. If applicable, identify any
board committee or subcommittee responsible for the oversight of
risks from cybersecurity threats and describe the processes by which
the board or such committee is informed about such risks.
(2) Describe management's role in assessing and managing the
registrant's material risks from cybersecurity threats. In providing
such disclosure, a registrant should address, as applicable, the
following non-exclusive list of disclosure items:
(i) Whether and which management positions or committees are
responsible for assessing and managing such risks, and the relevant
expertise of such persons or members in such detail as necessary to
fully describe the nature of the expertise;
(ii) The processes by which such persons or committees are
informed about and monitor the prevention, detection, mitigation,
and remediation of cybersecurity incidents; and
(iii) Whether such persons or committees report information
about such risks to the board of directors or a committee or
subcommittee of the board of directors.
Instructions to Item 16K(c)
1. In the case of a foreign private issuer with a two-tier board
of directors, for purposes of paragraph (c) of this Item, the term
``board of directors'' means the supervisory or non-management
board. In the case of a foreign private issuer meeting the
requirements of Sec. 240.10A-3(c)(3) of this chapter, for purposes
of paragraph (c) of this Item, the term ``board of directors'' means
the issuer's board of auditors (or similar body) or statutory
auditors, as applicable.
2. Relevant expertise of management in paragraph (c)(2)(i) of
this Item may include, for example: Prior work experience in
cybersecurity; any relevant degrees or certifications; any
knowledge, skills, or other background in cybersecurity.
(d) Structured Data Requirement. Provide the information
required by this Item in an Interactive Data File in accordance with
Rule 405 of Regulation S-T and the EDGAR Filer Manual.
Instruction to Item 16K. Item 16K applies only to annual
reports, and does not apply to registration statements on Form 20-F.
* * * * *
Appendix C--Form 8-K
FORM 8-K
* * * * *
GENERAL INSTRUCTIONS
* * * * *
B. Events To Be Reported and Time for Filing of Reports
1. A report on this form is required to be filed or furnished,
as applicable, upon the occurrence of any one or more of the events
specified in the items in Sections 1 through 6 and 9 of this form.
Unless otherwise specified, a report is to be filed or furnished
within four business days after occurrence of the event. If the
event occurs on a Saturday, Sunday or holiday on which the
Commission is not open for business, then the four business day
period shall begin to run on, and include, the first business day
thereafter. A registrant either furnishing a report on this form
under Item 7.01 (Regulation FD Disclosure) or electing to file a
report on this form under Item 8.01 (Other Events) solely to satisfy
its obligations under Regulation FD (17 CFR 243.100 and 243.101)
must furnish such report or make such filing, as applicable, in
accordance with the requirements of Rule 100(a) of Regulation FD (17
CFR 243.100(a)), including the deadline for furnishing or filing
such report. A report pursuant to Item 5.08 is to be filed within
four business days after the registrant determines the anticipated
meeting date. A report pursuant to Item 1.05 is to be filed within
four business days after the registrant determines that it has
experienced a material cybersecurity incident.
* * * * *
G. Use of This Form by Asset-Backed Issuers
* * * * *
1. * * *
(a) Item 1.05, Cybersecurity Incidents;
(b) Item 2.01, Completion of Acquisition or Disposition of
Assets;
(c) Item 2.02, Results of Operations and Financial Condition;
(d) Item 2.03, Creation of a Direct Financial Obligation or an
Obligation under an Off-Balance Sheet Arrangement of a Registrant;
(e) Item 2.05, Costs Associated with Exit or Disposal
Activities;
(f) Item 2.06, Material Impairments;
(g) Item 3.01, Notice of Delisting or Failure to Satisfy a
Continued Listing Rule or Standard; Transfer of Listing;
(h) Item 3.02, Unregistered Sales of Equity Securities;
(i) Item 4.01, Changes in Registrant's Certifying Accountant;
(j) Item 4.02, Non-Reliance on Previously Issued Financial
Statements or a Related Audit Report or Completed Interim Review;
(k) Item 5.01, Changes in Control of Registrant;
(l) Item 5.02, Departure of Directors or Principal Officers;
Election of Directors; Appointment of Principal Officers;
(m) Item 5.04, Temporary Suspension of Trading Under
Registrant's Employee Benefit Plans; and
(n) Item 5.05, Amendments to the Registrant's Code of Ethics, or
Waiver of a Provision of the Code of Ethics.
* * * * *
INFORMATION TO BE INCLUDED IN THE REPORT
Section 1--Registrant's Business and Operations
* * * * *
Item 1.05 Material Cybersecurity Incidents
(a) If the registrant experiences a cybersecurity incident that
is determined by the registrant to be material, describe the
material aspects of the nature, scope, and timing of the incident,
and the material impact or reasonably likely material impact on the
registrant, including its financial condition and results of
operations.
(b) A registrant shall provide the information required by this
Item in an Interactive Data File in accordance with Rule 405 of
Regulation S-T and the EDGAR Filer Manual.
(c) Notwithstanding General Instruction B.1. to Form 8-K, if the
United States Attorney General determines that disclosure required
by paragraph (a) of this Item 1.05 poses a substantial risk to
national security or public safety, and notifies the Commission of
such determination in writing, the registrant may delay providing
the disclosure required by this Item 1.05 for a time period
specified by the Attorney General, up to 30 days following the date
when the disclosure required by this Item 1.05 was otherwise
required to be provided. Disclosure may be delayed for an additional
period of up to 30 days if the Attorney General determines that
disclosure continues to pose a substantial risk to national security
or public safety and notifies the Commission of such determination
in writing. In extraordinary circumstances, disclosure may be
delayed for a final additional period of up to 60 days if the
Attorney General determines that disclosure continues to pose a
substantial risk to national security and notifies the Commission of
such determination in writing. Beyond the final 60-day delay under
this paragraph, if the Attorney General indicates that further delay
is necessary, the Commission will consider additional requests for
delay and may grant such relief through Commission exemptive order.
(d) Notwithstanding General Instruction B.1. to Form 8-K, if a
registrant that is subject to 47 CFR 64.2011 is required to delay
disclosing a data breach pursuant to such rule, it may delay
providing the disclosure required by this Item 1.05 for such period
that is applicable under 47 CFR 64.2011(b)(1) and in no event for
more than seven business days after notification required under such
provision has been made, so long as the registrant notifies the
Commission in correspondence submitted to the EDGAR system no later
than the date when the disclosure required by this Item 1.05 was
otherwise required to be provided.
Instructions to Item 1.05
1. A registrant's materiality determination regarding a
cybersecurity incident must be made without unreasonable delay after
discovery of the incident.
2. To the extent that the information called for in Item 1.05(a)
is not determined or is unavailable at the time of the required
filing, the registrant shall include a statement to this effect in
the filing and then must file an amendment to its Form 8-K filing
under this Item 1.05 containing such information within four
business days after the registrant, without unreasonable delay,
determines such information or within four business days after such
information becomes available.
3. The definition of the term ``cybersecurity incident'' in
229.106(a) [Item 106(a) of Regulation S-K] applies to this Item.
4. A registrant need not disclose specific or technical
information about its planned response to the incident or its
cybersecurity systems, related networks and devices, or potential
system vulnerabilities in such detail as would impede the
registrant's response or remediation of the incident.
* * * * *
Appendix D--Form 10-K
FORM 10-K
* * * * *
GENERAL INSTRUCTIONS
* * * * *
J. Use of This Form by Asset-Backed Issuers
* * * * *
(1) * * *
(b) Item 1A, Risk Factors and Item 1C, Cybersecurity;
* * * * *
Part I
* * * * *
Item 1C Cybersecurity
(a) Furnish the information required by Item 106 of Regulation
S-K (229.106 of this chapter).
* * * * *
[FR Doc. 2023-16194 Filed 8-3-23; 8:45 am]
BILLING CODE 8011-01-P
output/dates.csv · written by the agent, 9 lines
date,kind,who,what,quote 2023-07-26,signed,,"The Commission dated the final rule July 26, 2023.","Dated: July 26, 2023." 2023-08-04,published,,The notice was printed in the Federal Register on this day.,"[Federal Register Volume 88, Number 149 (Friday, August 4, 2023)]" 2023-09-05,effective,,The amendments take effect.,"The amendments are effective September 5, 2023." 2023-12-15,compliance,all registrants,Item 106 of Regulation S-K and Item 16K of Form 20-F disclosures must start with annual reports for fiscal years ending on or after this date.,"With respect to Item 106 of Regulation S-K and item 16K of Form 20-F, all registrants must provide such disclosures beginning with annual reports for fiscal years ending on or after December 15, 2023." 2023-12-18,compliance,all registrants other than smaller reporting companies,These registrants must begin complying with the incident disclosure requirements in Item 1.05 of Form 8-K and in Form 6-K.,"With respect to compliance with the incident disclosure requirements in Item 1.05 of Form 8-K and in Form 6-K, all registrants other than smaller reporting companies must begin complying on DECEMBER 18, 2023." 2024-06-15,compliance,smaller reporting companies,Smaller reporting companies must begin complying with Item 1.05 of Form 8-K.,"smaller reporting companies are being given an additional 180 days from the non-smaller reporting company compliance date before they must begin complying with Item 1.05 of Form 8-K, on June 15, 2024." 2024-12-15,compliance,all registrants,Inline XBRL tagging of Item 106 and Item 16K disclosure must start with annual reports for fiscal years ending on or after this date.,"For Item 106 of Regulation S-K and item 16K of Form 20-F, all registrants must begin tagging responsive disclosure in Inline XBRL beginning with annual reports for fiscal years ending on or after December 15, 2024" 2024-12-18,compliance,all registrants,Inline XBRL tagging of Item 1.05 of Form 8-K and Form 6-K disclosure must start.,"For Item 1.05 of Form 8-K and Form 6-K all registrants must begin tagging responsive disclosure in Inline XBRL beginning on DECEMBER 18, 2024."
output/summary.md · written by the agent, 58 lines
First pass for a person to decide. Not legal advice. Source: SEC final rule "Cybersecurity Risk Management, Strategy, Governance, and Incident Disclosure," FR Doc. 2023-16194, printed August 4, 2023, dated July 26, 2023. This copy is trimmed, so anything cut (the contact paragraph, the table of amended rules, Sections I to II.H and IV to VI) is not covered here. ## What changes The rule makes public companies that report under the Securities Exchange Act of 1934 disclose cybersecurity matters in two ways, and put the disclosures in Inline XBRL. - **Incident disclosure (current report).** New Item 1.05 of Form 8-K, "Material Cybersecurity Incidents." A registrant that has a cybersecurity incident it determines to be material must describe the nature, scope and timing of the incident and its material impact or reasonably likely material impact. Form 6-K General Instruction B also gets the phrase "material cybersecurity incident;" added. - **Risk management, strategy and governance (periodic reports).** New Item 106 of Regulation S-K (Sec. 229.106) covers risk management and strategy, board oversight, and management's role. The same disclosure is added as Item 16K of Form 20-F and, by reference to Item 106, as Item 1C of Part I of Form 10-K. - **Structured data.** Each of these disclosures must be provided in an Interactive Data File (Inline XBRL). Sec. 232.405(b)(4)(v) is added to list Item 106, Item 1.05 of Form 8-K and Item 16K of Form 20-F, and Item 601(b)(101)(i)(C)(1) is revised to cover Form 8-K disclosure under Item 1.05(b). - **Other form and rule edits that carry Item 1.05:** - Form 8-K General Instruction B.1 now sets the four-business-day filing time for Item 1.05. - Form 8-K General Instruction G.1 (asset-backed issuers) now lists Item 1.05. - Form 10-K General Instruction J(1)(b) now lists Item 1C. - Form S-3 gets General Instruction I.A.3(b), and Sec. 239.13(a)(3)(ii) is revised. In both, a late report required solely under Item 1.05 of Form 8-K (among other listed items) does not count against timely filing for Form S-3 eligibility. - Sec. 240.13a-11(c) and Sec. 240.15d-11(c) are revised so that failure to file a Form 8-K required solely under Item 1.05 (among other listed items) is not deemed a violation of 15 U.S.C. 78j(b) and Sec. 240.10b-5. - **Delays.** Item 1.05(c) lets the U.S. Attorney General delay disclosure for national security or public safety. Item 1.05(d) lets certain telecom registrants delay. Not in the notice (trimmed or absent): the cost or economic analysis and the name of the signing officer. Which companies are "smaller reporting companies" is not defined in this copy. ## For whom - **All registrants** (public companies subject to Exchange Act reporting): provide Item 106 of Regulation S-K and Item 16K of Form 20-F disclosures from annual reports for fiscal years ending on or after December 15, 2023, and tag them in Inline XBRL from annual reports for fiscal years ending on or after December 15, 2024. Tag Item 1.05 of Form 8-K and Form 6-K disclosure in Inline XBRL beginning December 18, 2024. All registrants are also subject to the Item 1.05 filing deadlines under Time limits below. - **All registrants other than smaller reporting companies:** begin complying with Item 1.05 of Form 8-K and Form 6-K incident disclosure on December 18, 2023. The notice names no separate Item 1.05 tagging date for any subgroup. - **Smaller reporting companies: this group gets more time.** They are given an additional 180 days from the non-smaller reporting company compliance date, so they begin complying with Item 1.05 of Form 8-K on June 15, 2024. Their Item 106 and Item 16K date is the same as for all registrants (December 15, 2023). The notice says tagging of Item 1.05 starts December 18, 2024 for "all registrants," so I found no later tagging date for them in this copy. - **Foreign private issuers:** Item 16K of Form 20-F applies only to annual reports, not to registration statements on Form 20-F. Form 6-K gets the incident language. For a foreign private issuer with a two-tier board, "board of directors" means the supervisory or non-management board. Where the issuer meets Sec. 240.10A-3(c)(3), it means the board of auditors (or similar body) or statutory auditors. The dates are those for all registrants, and for Form 6-K those for Item 1.05 above. - **Asset-backed issuers:** Form 8-K General Instruction G.1 lists Item 1.05 and Form 10-K General Instruction J(1)(b) lists Item 1C. The notice gives them no separate date in this copy. - **Registrants subject to 47 CFR 64.2011:** may delay Item 1.05 disclosure, if required to delay disclosing a data breach under that rule, for the period under 47 CFR 64.2011(b)(1), and in no event for more than seven business days after the required notification. They must notify the Commission in correspondence on EDGAR no later than the date the disclosure was otherwise due. - **The United States Attorney General:** not a company, but can determine that disclosure poses a substantial risk to national security or public safety and notify the Commission in writing. That is the trigger for the Item 1.05(c) delays. ## By when - September 5, 2023: The amendments are effective. - December 15, 2023: all registrants must provide Item 106 of Regulation S-K and Item 16K of Form 20-F disclosures, beginning with annual reports for fiscal years ending on or after this date. - December 18, 2023: all registrants other than smaller reporting companies must begin complying with the incident disclosure requirements in Item 1.05 of Form 8-K and in Form 6-K. - June 15, 2024: smaller reporting companies must begin complying with Item 1.05 of Form 8-K. - December 15, 2024: all registrants must begin tagging Item 106 and Item 16K disclosure in Inline XBRL, beginning with annual reports for fiscal years ending on or after this date. - December 18, 2024: all registrants must begin tagging Item 1.05 of Form 8-K and Form 6-K disclosure in Inline XBRL. ## Time limits Each is written as the notice writes it. - **Four business days** to file a Form 8-K report on an Item 1.05 event, counted from when the registrant determines that it has experienced a material cybersecurity incident. The materiality determination itself must be made "without unreasonable delay after discovery of the incident." - **Four business day** period when the event falls on a Saturday, Sunday or a holiday on which the Commission is not open: it begins on, and includes, the first business day after. This is in the same General Instruction B.1 as the default four-business-days rule for Form 8-K items. - **Four business days** to amend the Item 1.05 Form 8-K when information was not determined or available at the time of filing, counted from when the registrant, without unreasonable delay, determines the information. - **Four business days** as an alternative amendment deadline, counted from when that information becomes available. - **Up to 30 days**, if the Attorney General determines disclosure poses a substantial risk to national security or public safety and notifies the Commission in writing, a registrant may delay Item 1.05 disclosure for the time the Attorney General specifies. It counts from the date disclosure was otherwise due. - **Up to 30 days** more, if the Attorney General determines that disclosure continues to pose that risk and notifies the Commission in writing. - **Up to 60 days** more, in extraordinary circumstances, as a final additional period, on the same kind of determination and written notice, for national security. - **60-day** delay is a limit: beyond it, if the Attorney General says further delay is necessary, the Commission will consider additional requests and may grant relief by exemptive order. - **Seven business days** at most, for a registrant subject to 47 CFR 64.2011 that is required to delay disclosing a data breach, counted from when the notification required under that rule has been made. - **180 days** additional for smaller reporting companies, counted from the non-smaller reporting company compliance date, before they must comply with Item 1.05 of Form 8-K. - **One year** after the initial compliance date for any issuer for the related disclosure requirement: when Inline XBRL tagging begins. - **Twelve calendar months** (and any portion of a month) before filing a registration statement: the look-back for Form S-3 eligibility. It appears in Sec. 239.13(a)(3)(ii) and in Form S-3 General Instruction I.A.3(b), each in two uses: timely filing of all required reports, and use of Rule 12b-25(b) on a report. Late reports required solely under Item 1.05 of Form 8-K are excepted. The four-business-days rule for Item 5.08 reports also appears in the same instruction (see time_limits.csv). It is not tied to this rule's cybersecurity items.
output/time_limits.csv · written by the agent, 18 lines
limit,what,quote four business days,"Default deadline for a Form 8-K report: four business days after the event occurs, unless an item says otherwise.","Unless otherwise specified, a report is to be filed or furnished within four business days after occurrence of the event." four business day,"If the event falls on a Saturday, Sunday or Commission holiday, the four business day period starts on the first business day after.","If the event occurs on a Saturday, Sunday or holiday on which the Commission is not open for business, then the four business day period shall begin to run on, and include, the first business day thereafter." four business days,Item 5.08 report deadline: four business days after the registrant determines the anticipated meeting date.,A report pursuant to Item 5.08 is to be filed within four business days after the registrant determines the anticipated meeting date. four business days,Item 1.05 report deadline: four business days after the registrant determines it has experienced a material cybersecurity incident.,A report pursuant to Item 1.05 is to be filed within four business days after the registrant determines that it has experienced a material cybersecurity incident. four business days,"Deadline to amend the Item 1.05 Form 8-K once missing information is determined, counted from when the registrant, without unreasonable delay, determines it.","must file an amendment to its Form 8-K filing under this Item 1.05 containing such information within four business days after the registrant, without unreasonable delay, determines such information" four business days,"Alternative deadline to amend the Item 1.05 Form 8-K, counted from when the missing information becomes available.",or within four business days after such information becomes available. 30 days,"First Attorney General national-security or public-safety delay of Item 1.05 disclosure: for the time the Attorney General specifies, up to 30 days after the disclosure was otherwise due.","the registrant may delay providing the disclosure required by this Item 1.05 for a time period specified by the Attorney General, up to 30 days following the date when the disclosure required by this Item 1.05 was otherwise required to be provided." 30 days,A further delay of up to 30 days if the Attorney General again determines and notifies the Commission in writing that disclosure still poses a substantial risk.,Disclosure may be delayed for an additional period of up to 30 days if the Attorney General determines that disclosure continues to pose a substantial risk to national security or public safety and notifies the Commission of such determination in writing. 60 days,"In extraordinary circumstances, a final additional delay of up to 60 days if the Attorney General determines and notifies the Commission in writing that disclosure still poses a substantial risk to national security.","In extraordinary circumstances, disclosure may be delayed for a final additional period of up to 60 days if the Attorney General determines that disclosure continues to pose a substantial risk to national security and notifies the Commission of such determination in writing." 60-day,"After the final 60-day delay, the Commission will consider further delay requests and may grant relief by exemptive order if the Attorney General says more delay is needed.","Beyond the final 60-day delay under this paragraph, if the Attorney General indicates that further delay is necessary, the Commission will consider additional requests for delay and may grant such relief through Commission exemptive order." seven business days,"Delay cap for a registrant subject to 47 CFR 64.2011 that must delay disclosing a data breach: never more than seven business days after the required notification, and it must notify the Commission via EDGAR correspondence by the original due date.",it may delay providing the disclosure required by this Item 1.05 for such period that is applicable under 47 CFR 64.2011(b)(1) and in no event for more than seven business days after notification required under such provision has been made 180 days,Smaller reporting companies get an additional 180 days after the non-smaller reporting company compliance date before they must comply with Item 1.05 of Form 8-K.,"smaller reporting companies are being given an additional 180 days from the non-smaller reporting company compliance date before they must begin complying with Item 1.05 of Form 8-K, on June 15, 2024." one year,Inline XBRL tagging starts one year after the initial compliance date for any issuer for the related disclosure requirement.,all registrants must tag disclosures required under the final rules in Inline XBRL beginning one year after the initial compliance date for any issuer for the related disclosure requirement. twelve calendar months,Form S-3 eligibility rule in Sec. 239.13: look-back period before filing the registration statement for timely filing of all required reports.,Has filed in a timely manner all reports required to be filed during the twelve calendar months and any portion of a month immediately preceding the filing of the registration statement twelve calendar months,"Form S-3 eligibility rule in Sec. 239.13: look-back period before filing the registration statement for use of Sec. 240.12b-25(b) on a report, where the report must have been filed within the prescribed time.",If the registrant has used (during the twelve calendar months and any portion of a month immediately preceding the filing of the registration statement) Sec. 240.12b-25(b) of this chapter with respect to a report or a portion of a report twelve calendar months,Form S-3 General Instruction I.A.3(b) (Appendix A): look-back period before filing the registration statement for timely filing of all required reports.,has filed in a timely manner all reports required to be filed during the twelve calendar months and any portion of a month immediately preceding the filing of the registration statement twelve calendar months,"Form S-3 General Instruction I.A.3(b) (Appendix A): look-back period before filing the registration statement for use of Rule 12b-25(b) on a report, where the report must have been filed within the prescribed time.",If the registrant has used (during the twelve calendar months and any portion of a month immediately preceding the filing of the registration statement) Rule 12b-25(b) (Sec. 240.12b-25(b) of this chapter) under the Exchange Act with respect to a report or a portion of a report
check.py · the check, written before the run
"""Finds every date and time limit in the notice itself, then tests the two tables and the summary against them.
Nothing here is a stored answer. The dates, their kinds, the group each compliance date binds, the
time limits and the new items are all read out of the notice text by the small tests below.
"""
import csv, re, sys
from datetime import date
from pathlib import Path
root = Path(sys.argv[1]); ok = True
def say(passed, text):
global ok; ok = ok and passed; print(("PASS " if passed else "FAIL ") + text)
def norm(s):
s = (s or "").replace("“", '"').replace("”", '"').replace("’", "'").replace("‘", "'").replace("``", '"').replace("''", '"')
return re.sub(r"\s+", " ", s).strip()
raw = next((root / "input").glob("*.txt")).read_text()
notice = norm("\n".join(ln for ln in raw.splitlines() if not ln.startswith(("[Trimmed", "[Name of"))))
low = notice.lower()
MONTHS = "january february march april may june july august september october november december".split()
DATE = r"\b(" + "|".join(MONTHS) + r") (\d{1,2}), (\d{4})\b"
def as_day(m):
return date(int(m.group(3)), MONTHS.index(m.group(1).lower()) + 1, int(m.group(2)))
def written(d):
return f"{MONTHS[d.month - 1]} {d.day}, {d.year}"
# Every date, with the sentence or list item it sits in.
spots = {}
for m in re.finditer(DATE, notice, re.I):
a = max(notice.rfind(x, 0, m.start()) for x in (". ", ": ", "] ", "; ")) + 2
b = min([x for x in (notice.find(". ", m.end()), notice.find("; ", m.end())) if x != -1] or [len(notice)])
spots.setdefault(as_day(m), []).append((notice[max(0, m.start() - 60):m.start()], notice[a:b + 1]))
def kind_of(d):
before = " ".join(x for x, _ in spots[d]); around = " ".join(y for _, y in spots[d])
if "Federal Register" in before: return "published"
if before.rstrip().endswith("Dated:"): return "signed"
if re.search(r"\beffective\b", around, re.I): return "effective"
return "compliance"
def group_of(d):
m = re.search(r"\b((?:all registrants|smaller reporting companies)(?: other than [a-z ]+?)?) (?:must|are being given)", spots[d][0][1], re.I)
return m.group(1).lower() if m else ""
want = {d: kind_of(d) for d in spots}
acting = sorted(d for d, k in want.items() if k == "compliance")
# Every period of time counted in days, business days, months or years.
LIMIT = r"\b(\d+|one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve)[ -](business days?|calendar months?|days?|months?|years?)\b"
def limits(text):
return {(m.group(1).lower(), re.sub(r"s$", "", m.group(2).lower())) for m in re.finditer(LIMIT, text, re.I)}
all_limits = limits(notice)
def day(s):
m = re.fullmatch(r"(\d{4})-(\d{2})-(\d{2})", (s or "").strip())
return date(*map(int, m.groups())) if m else None
path = root / "output/dates.csv"
if not path.exists():
say(False, "output/dates.csv was not written"); sys.exit(1)
rows = list(csv.DictReader(path.open(newline="")))
got = {}
for r in rows:
got.setdefault(day(r.get("date")), []).append(r)
once = sum(1 for d in want if len(got.get(d, [])) == 1)
extra = [d for d in got if d not in want]
say(once == len(want) and not extra, f"{once} of {len(want)} calendar dates written in the notice have exactly one row in dates.csv, with {len(extra)} rows for a date the notice does not give")
row = {d: (got.get(d) or [{}])[0] for d in want}
def quoted(d):
q = norm(row[d].get("quote")).strip('"').strip()
return len(q) > len(written(d)) + 5 and q.lower() in low and written(d) in q.lower() # the date plus some words on what it is for
found = sum(1 for d in want if quoted(d))
say(found == len(want), f"{found} of {len(want)} date quotes are found word for word in the notice and contain the date as the notice writes it")
kinds = sum(1 for d, k in want.items() if norm(row[d].get("kind")).lower() == k)
def grouped(d):
who, exp = norm(row[d].get("who")).lower(), group_of(d)
marks = ("other than", "smaller reporting compan", "registrants")
return bool(who) and bool(exp) and who in norm(row[d].get("quote")).lower() and all((x in who) == (x in exp) for x in marks)
named = sum(1 for d in acting if grouped(d))
tally = list(want.values())
say(kinds == len(want) and named == len(acting),
f"{kinds} of {len(want)} kinds equal the kind worked out from the notice ({tally.count('published')} published, {tally.count('signed')} signed, "
f"{tally.count('effective')} effective, {len(acting)} compliance) and {named} of {len(acting)} compliance rows name the group the notice names")
lpath = root / "output/time_limits.csv"
lrows = list(csv.DictReader(lpath.open(newline=""))) if lpath.exists() else []
def held(r):
q = norm(r.get("quote")).strip('"').strip(); lim = limits(norm(r.get("limit")))
return len(q) >= 20 and q.lower() in low and len(lim) == 1 and lim <= limits(q)
sound = sum(1 for r in lrows if held(r))
covered = {x for r in lrows if held(r) for x in limits(norm(r.get("limit")))}
# Every place the notice writes a period must sit inside the quote of a row for that same period.
def places(q):
out, i = [], low.find(q.lower())
while i != -1:
out.append((i, i + len(q))); i = low.find(q.lower(), i + 1)
return out
spans = {}
for r in lrows:
if held(r):
spans.setdefault(next(iter(limits(norm(r.get("limit"))))), []).extend(places(norm(r.get("quote")).strip('"').strip()))
spots_l = [(m.start(), m.end(), (m.group(1).lower(), re.sub(r"s$", "", m.group(2).lower()))) for m in re.finditer(LIMIT, notice, re.I)]
inside = sum(1 for a, b, lim in spots_l if any(x <= a and b <= y for x, y in spans.get(lim, [])))
say(bool(lrows) and sound == len(lrows) and all_limits <= covered and inside == len(spots_l),
f"{inside} of {len(spots_l)} places where the notice writes a time limit ({len(all_limits)} different limits) sit inside the quote of a row for that limit, "
f"with {sound} of {len(lrows)} rows quoting the notice word for word")
summary = (root / "output/summary.md").read_text() if (root / "output/summary.md").exists() else ""
plain = norm(re.sub(r"[*`_]", "", summary))
part = re.search(r"^##\s*By when\s*$(.*?)(?=^##\s|\Z)", re.sub(r"\*\*|`|__", "", summary), re.M | re.S | re.I)
bullets = re.findall(r"^[-*+]\s+(.+)$", part.group(1), re.M) if part else [] # top level bullets only
listed = []
for b in bullets:
m = re.match(DATE + r"\s*:", b, re.I)
listed.append((as_day(m) if m else None, norm(b).lower()))
due = sorted(d for d, k in want.items() if k in ("effective", "compliance"))
in_order = [d for d, _ in listed] == due
same = sum(1 for d, text in listed if d in acting and norm(row[d].get("who")).lower() and norm(row[d].get("who")).lower() in text)
say(in_order and same == len(acting),
f"summary.md lists {len({d for d, _ in listed} & set(due))} of {len(due)} effective and compliance dates under By when, once each and earliest first, "
f"with {same} of {len(acting)} naming the same group as the table")
# New items the rule adds: "adding Item 1.05" in the amending instructions, or a new section whose heading gives its item number.
items = {"Item " + x for x in re.findall(r"\badd(?:ing)? Item (\w+(?:\.\d+)?)", notice, re.I)}
for sec in re.findall(r"\bAdd Sec\. +(\d+\.\d+) to read", notice):
m = re.search(r"Sec\. +" + re.escape(sec) + r" +\((Item \w+)\)", notice)
if m: items.add(m.group(1))
told = sum(1 for x in items if re.search(re.escape(x) + r"\b", plain))
NUM = r"(?<![\w.-])\d(?:[\d,]*\d)?(?:\.\d+)?(?![\w-])"
known = {x.replace(",", "") for x in re.findall(r"\d[\d,]*(?:\.\d+)?", notice)}
figures = [x for x in re.findall(NUM, re.sub(r"\d{4}-\d{2}-\d{2}", " ", plain)) if len(x) >= 2]
said_dates = [as_day(m) for m in re.finditer(DATE, plain, re.I)]
said_limits = limits(plain)
real = sum(1 for x in figures if x.replace(",", "") in known) + sum(1 for d in said_dates if d in want) + len(said_limits & all_limits)
total = len(figures) + len(said_dates) + len(said_limits)
say(bool(items) and told == len(items) and total > 0 and real == total,
f"summary.md names {told} of {len(items)} new items the rule adds, with {real} of {total} dates, numbers and time limits in it found in the notice")
first = next((ln.strip() for ln in summary.splitlines() if ln.strip()), "")
say(first == "First pass for a person to decide. Not legal advice.", "summary.md opens by saying it is a first pass for a person to decide and not legal advice")
sys.exit(0 if ok else 1)
federal_register_2023-16194.txt: public document. Fingerprint 541a52e7b3e9.
dates.csv: written by the agent. Fingerprint 89bbb1ae3e8f.
summary.md: written by the agent. Fingerprint 2a77219549fc.
time_limits.csv: written by the agent. Fingerprint 6ead44b51da4.