Code, design and documents 3 files
docs/DATA-MAINTENANCE.md +11 −0
@@ -1807,2 +1807,13 @@ schedule; the fourteen-year maximum remains. Existing scores and historical
vectors are preserved. Ten regression tests cover the corrected distinctions;
Latvian and New Zealand full-text retrieval limits are documented.
+
+A [remaining-bug review for #145 and #159](research/bug-followups-145-159-2026-10-26.md)
+corrects the Egypt article's residual 1798 India tax claim and Costa Rica's
+unsupported operational medical-supply claim. Costa Rica retains limited medical
+status; access becomes 0 pending verified operating THC supply, and the 2022
+enabling law becomes unscored. Personal imports and compounded preparations
+remain explicit exceptions to ordinary product-registration rules. Regression
+coverage includes the article cross-reference and patient-access distinction.
+The same review resolves #180 by separating India's federal leaf-only bhang
+exclusion from state prohibitions and authorisations, including Maharashtra;
+licensed bhang supply in other states and national scores remain explicit.
docs/research/bug-followups-145-159-2026-10-26.md +73 −0
@@ -0,0 +1,73 @@
+# Remaining bug reports #145, #159 and #180 — 26 October 2026
+
+## Egypt article cross-reference (#145, reopened)
+
+Read the reopening comment: the homepage fix was correct, but
+`articles/egypt-import-tax-1874.md` still claimed India taxed cannabis from 1798.
+Read paragraph 556 of the Indian Hemp Drugs Commission's report in the existing
+local chapter transcription and the [NLS scan reproduced by New Revenue](https://newrevenue.org/wp-content/uploads/2017/08/ihd-vol-1-pages-263-282-or-so74464868_53_72.pdf),
+printed p.267. It reproduces the Board's advice of 29 May 1798, not an enacted
+1798 tariff. Replaced the Egypt comparison with that precise recommendation and
+added a direct source. A corpus-wide regression now guards the residual claim,
+in addition to the existing homepage assertion. No score or history change.
+The original chapter website timed out; the previously saved transcription and
+PDF reproduction were readable.
+
+## Costa Rica medical supply (#159)
+
+Read the following primary material:
+
+- [Health Ministry announcement, 23 June 2025](https://www.ministeriodesalud.go.cr/index.php/prensa/62-noticias-2025/2162-costa-rica-inicia-registro-de-productos-medicinales-a-base-de-cannabis-con-thc): applications open; pharmacy access follows approval.
+- [Decree 44917-S, RTCR 515:2024](https://www.pgrweb.go.cr/DOCS/NORMAS/1/VIGENTE/D/2020-2029/2025-2029/2025/1969D/173FBA.HTML): sections 6.1.3, 8.4, 9.1 and 10.1.1 distinguish ordinary finished-product registration, personal import authorisation, non-sterile pharmacy compounding and prescription dispensing.
+- [Health Ministry's 2026 registration instructions](https://ministeriodesalud.go.cr/index.php?catid=81&id=2553&option=com_content&view=article): current applications/material notifications and implementation guidance, not an approvals or stock list.
+
+The [Diario Extra report](https://www.diarioextra.com/noticia/medicinas-con-marihuana-se-pueden-vender-en-c-r/)
+quotes the registration unit about no applications for conventional medicines.
+Its page displayed 7 October while the search index displayed 1 October 2026;
+no precise date from that conflict is added to history. That category is not a
+complete count of specialised medicinal-cannabis approvals. The MEDEC FAQ was
+also retrieved, but its current text did not corroborate the pharmacy-pending
+quotation in the issue, so it is not used for that claim.
+
+No comprehensive public approval count or named approved and dispensed THC
+product was verified. This does not prove that every exceptional patient route
+is unavailable. The profile now describes the conditional finished-product
+route, the individual unregistered-import authorisation and the compounding
+exception, with no promise of stocked medicines.
+
+Score review applies DATA-MAINTENANCE's operating-access rule: the existing
+access 1 and the 2022 score increase were justified solely by enactment. Correct
+access to 0 pending evidence of a working THC patient-supply route, retain
+`medical: limited`, and remove the 2022 `before` with an explicit `unscored`
+reason. This is a correction to unsupported scoring, not a new 2026 legal
+restriction. Earlier Costa Rican score vectors remain unchanged. The 2022
+article's final section now explains this distinction. A custom buy answer
+prevents generic medical-availability guidance.
+
+## India state restrictions (#180)
+
+The final open-issue search found #180, concerning leaf-only bhang. Read the
+[Law and Judiciary Department’s 21 May 2025 consolidation](https://cdnbbsr.s3waas.gov.in/s36a4cbdaedcbda0fa8ddc7ea32073c475/uploads/2025/09/202509291714459013.pdf),
+linked from its official document page. Web PDF retrieval timed out, but a direct
+download and local text extraction succeeded. Sections 2(23), 11, 14, 48 and
+66(1)(b) establish the definition, prohibitions, authorisations and use penalty.
+Read NDPS section 2(iii)(b) in the existing statutory reproduction: the leaves/seed
+exclusion is conditional on absence of flowering/fruiting tops. This federal
+exclusion does not establish nationwide bhang permission.
+
+Updated summary, possession, consumption, access, visitors and quick answers.
+Licensed outlets in some states remain explicit; Maharashtra’s unauthorised
+possession/use restrictions and first-use maximum are stated separately.
+Purchasing in one state supplies no automatic right to cross state borders with
+it. National scores, death-penalty status and the visitor category are unchanged:
+the state exceptions are described rather than erasing actual licensed supply.
+No new legal event is invented in 2026. A regression covers the federal/state
+scope and the visitor/answer qualification.
+
+## Validation
+
+Answer/profile and history tests, score-chain inspection and a full production
+build cover the final edits. Generated Costa Rica profile/API/FAQ and panel
+exports show access 0; the 2022 history page has no score step. The Egypt article
+renders the corrected recommendation with its new reference. Unrelated work
+and the source archive are excluded from this commit.
scripts/profile-claims.test.mjs +28 −0
@@ -17,4 +17,5 @@ const texts = files.map((file) => [path.relative(root, file), fs.readFileSync(fi
const CLAIMS = [
+ { claim: /India taxed cannabis from \[?1798/i, why: "the 1798 record is a Board recommendation, including Egypt-article cross-references (#145)" },
{ claim: /Before Law 242 Panama had no lawful cannabis of any kind/i, why: "the 2021 framework did not establish operational supply (#128)" },
// Malta (2021) and Germany (2024) license non-profit associations: issue #127
@@ -301,2 +302,29 @@ test('new pilot and resin permissions are recorded without inventing broad retai
}
});
+
+test('Costa Rica permissions do not establish stocked THC patient medicines (#159)', () => {
+ const cr = country('cr');
+ assert.equal(cr.medical, 'limited');
+ assert.equal(cr.scores.access, 0);
+ assert.match(cr.context.medical.text, /Routine pharmacy availability.*has not been established/);
+ assert.match(cr.context.medical.text, /personal imports.*unregistered/);
+ assert.match(cr.context.products.text, /pharmacy-made.*exempt.*registration/);
+ assert.match(cr.answers.buy.text, /has not been verified/);
+ const e = events().find((e) => e.id === 'costa-rica-medical-2022');
+ assert.equal(e.before, undefined);
+ assert.match(e.unscored, /operating THC patient-supply/);
+ const article = fs.readFileSync(path.join(root, 'articles/costa-rica-medical-2022.md'), 'utf8');
+ assert.doesNotMatch(article, /Only access changes, from 0 to 1/);
+});
+
+test('India federal bhang exclusion does not override state prohibition (#180)', () => {
+ const india = country('in');
+ assert.match(india.summary, /state law differs.*Maharashtra/);
+ assert.match(india.segments.possession.text, /only when not accompanied.*tops.*State laws still apply/);
+ assert.doesNotMatch(india.segments.possession.text, /which is why bhang is legal/);
+ assert.match(india.context.visitors.text, /does not authorise carrying it into another state/);
+ assert.match(india.answers.buy.text, /states that permit it/);
+ assert.match(india.segments.consumption.text, /six months.*₹10,000/);
+ assert.equal(india.scores.access, 2);
+ assert.equal(india.recreational, 'death');
+});