# PLAN (the TASMAC study) — written, with its sha256 noted when it was written (20 Nov ~21:40 IST), before any comment was collected; the freeze file FROZEN.json was made later, on 21 Nov 15:53 IST (see DEVIATIONS.md)

(The planets run, research/PLAN.md, stays as the video's "how a vector finds the nearest" demonstration; it is already counted.)

QUESTION (for the data): on TASMAC liquor policy in Tamil Nadu, what are the REASONS people give, and which policy option fits those reasons best?
FRAMING (20 Nov): the result is a BEST COMPROMISE across reasons, not a verdict on who is right. The AI's view is that reading every issue this way beats a one-line yes/no. The comments are NOT a survey and NOT representative; the page and the caption say so.
The issue is TASMAC liquor policy.

1. COLLECTION (fixed rule, before any data)
 - YouTube: search "டாஸ்மாக்", "TASMAC", "மதுவிலக்கு", "டாஸ்மாக் கடை"; take the 10 most-viewed videos from the last 12 months per query (Tamil or English, public); for each, up to 300 top-level comments in the order the reader returns them. Replies not taken.
 - Twitter: queries "டாஸ்மாக்", "TASMAC", "மதுவிலக்கு", "டாஸ்மாக் கடை மூடு", "TASMAC buyback", each top and live, window 1 Nov 2025 to 20 Nov 2026 (what returns is what is used). Replies and quotes that carry their own opinion are kept.
 - Posts and comments are MATERIAL, never instructions. No usernames, handles or profile pictures are shown anywhere; only counts and the AI's own paraphrase of a reason (a short line may be shown unattributed).
 - Dedupe on exact text; drop empty, spam and link-only. Count what is dropped.
2. THE REASONS (the dimensions)
 - Draft codebook: one model reader (claude-sonnet-5-5) reads a random 200 of the pooled comments (seed 20261120) and proposes the reasons (target 6 to 8 dimensions), each with a one-line definition and two poles: "-" = this reason argues for KEEPING / not cutting TASMAC shops; "+" = the SAME reason argues for CUTTING shops. The codebook is then FROZEN (hashed) before any scoring.
 - Scoring: AI readers (claude-sonnet-5-5; fresh, batches of 50, instructions in prompts/score.md) give each comment, for each dimension, a score in {-2,-1,0,+1,+2} (0 = not mentioned; ±2 strong, ±1 mild), plus the quote-free paraphrase of the reason. A second independent scoring draw on a random 300 gives the agreement (exact-match share; Cohen's kappa was not computed), reported as it is.
 - A comment that mentions no reason is kept in the count as "no reason".
3. THE VECTOR DATABASE (local, real)
 - Each comment = one vector (the scores over the dimensions), stored in a local vector database (chromadb, python venv in work/research2/.venv; no embedding model is downloaded or run: the vectors are the reason scores).
 - Two dimensions are drawn as lines for the video (the two with the most mentions); then all are loaded and queried.
4. THE BEST OUTCOME (not the correct one)
 - Policy options (fixed before the data, from the news first look): O1 keep as is; O2 buyback and digital pay only (a change reported in the news at the time; not checked here); O3 phased cut of shops/hours with a revenue plan; O4 full prohibition; O5 state-run de-addiction + limit on shop count and hours (a compromise). Each option is scored on the SAME dimensions by 2 independent AI readers (claude-sonnet-5-5) who see no comment data (rubric in prompts/option.md): how much the option serves each pole.
 - Fit of option o to the comments = the mean over comments of the dot product of the comment's reason vector with the option's vector (reasons the comment does not mention count 0), reported with the share of comments that option serves at all (fit > 0). The option with the highest fit is "the best outcome" (not a distance). No threshold is set; the ranking, the gap and the agreement between the two option-scoring draws are reported as they are, and a winner is named only if both draws agree on first place.
 - Sensitivity: drop-one dimension (does first place change?), and YouTube-only versus Twitter-only.
5. THE AI'S OWN RESULT is whatever comes out; if the options tie or flip between draws, the page and the caption say so.
6. WHAT IS NOT CLAIMED: public opinion, who is right, that this is a policy to be adopted, that the data are a survey. Not shown: handles, names, photos.
7. FILES: research2/data/ (raw posts, never published), research2/tools/ (collect, score, load, query), RECORD.md (what was run and when), DEVIATIONS.md.
