-
-
A local language model interprets candidate practices, while deterministic code verifies evidence and calculates the score.
-
The latest documented round reached 87.5% precision and 70% recall, with no perfect category set across the four localized pages.
-
It combine data mapping, personalized risk, gap detection, evidence, impact, consent, and privacy for everyone in English and Spanish.
-
Privacy decisions are often made without a clear understanding of what the user is accepting.
-
Possible-impact scenarios are clearly labeled and translated into practical consent actions.
-
The report combines a deterministic personal risk score with an identifier for the exact analyzed document.
-
p7 maps the data path declared in the policy without claiming to observe real network traffic.
-
p7 turns complex privacy policies into personalized, evidence-backed guidance before users accept them.
-
Users paste a policy, choose a privacy profile, and run the analysis without creating an account.
-
Every displayed finding is connected to an exact clause that the Go backend verifies against the source text.
-
The same four findings produce different priorities: 97 for Journalist and 80 for General.
Inspiration
Every day, people accept privacy policies without understanding what information they may be sharing, why it is collected, who may receive it, or how long it may be retained. These documents are often long, technical, and difficult to evaluate, especially for students and people without legal or cybersecurity experience.
I created p7 Privacy Decoded to turn privacy policies into personal, understandable, and verifiable decisions. Instead of producing another generic summary, p7 connects every important finding to the exact clause that supports it.
The project was also designed with Spanish-speaking users in mind. The complete experience is available in both English and Spanish.
What it does
Users paste a privacy policy and select one of five privacy profiles. p7 then maps the data flows declared in the policy, calculates a deterministic personal privacy-risk index, detects missing or ambiguous disclosures, connects findings to exact verified clauses, presents clearly labeled possible-impact scenarios, and creates a prioritized consent action plan. It also generates a SHA-256 identifier for the analyzed document.
Different people can receive different scores for the same policy because the result reflects the privacy priorities of their selected profile.
p7 is an informational tool. It does not provide legal advice, confirm regulatory compliance, or observe an application's real network traffic.
How I built it
The frontend was built with Next.js, React, and TypeScript. A Go API normalizes and divides the policy into clauses before sending structured batches to a locally running Ollama model.
The application uses qwen3:4b-instruct for semantic classification. The model identifies candidate clauses related to location, contact information, biometrics, third-party data sharing, advertising, AI training, and data retention.
AI output is never accepted blindly. The Go backend verifies that every quoted passage exists in its referenced clause, rejects unsupported categories, removes duplicate findings, and applies transparent deterministic weights to calculate the final score.
The MVP requires no user accounts, database, paid AI credits, cloud AI service, or API keys. Policy text remains on the user's machine when the application is run locally.
How I used AI
The executable product uses a real local language model through Ollama. AI performs semantic classification, while deterministic code handles evidence verification, profile weighting, and scoring.
ChatGPT and Codex also supported research, problem framing, architecture, development, testing, design, and documentation. This assistance is disclosed in the project repository.
I deliberately separated AI interpretation from verification because a plausible answer is not enough for privacy analysis. Every displayed finding must trace back to evidence in the submitted policy.
Prior work declaration
No application code existed before this hackathon. p7 was created during the event using credited open-source tools and models.
Challenges
The biggest challenge was preventing p7 from becoming another legal-text summarizer. A summary may be shorter than the original policy, but it does not necessarily help someone make a personal decision.
Another major challenge was handling negation. In an early synthetic test, the model detected all 28 affirmative examples but also treated 12 negative statements as if the described practices were taking place. After I revised the prompt, false positives in that test dropped to zero, although the model still missed one retention clause.
Other challenges included preserving exact evidence while keeping reports understandable, explaining uncertainty without presenting legal conclusions, treating pasted policy text as untrusted input, maintaining equivalent English and Spanish experiences, separating declared data flows from observed behavior, and connecting seven different features into one coherent workflow.
What I learned
The most important lesson was that convincing AI output is not the same as trustworthy output.
Building p7 taught me to separate what the document explicitly declares, what the system interprets from that evidence, and what could potentially happen as a result.
I also learned that a working demonstration proves that the system's components connect, but it does not prove accuracy. A labeled evaluation set reveals mistakes that a polished demo can hide.
In the latest documented complete-policy evaluation across four localized pages, p7 achieved 87.5% precision and 70% recall. None of the four pages produced a perfect category set. These results are promising, but they also show why the report must remain evidence-based and subject to human interpretation.
Accomplishments that I am proud of
All seven core differentiators work in one analysis flow. Every displayed citation is verified against its source clause. The same policy produces different deterministic results for different profiles. The complete interface and analysis output work in English and Spanish. The application uses local AI without paid credits or API keys. Automated tests cover the API contract, security behavior, language parity, production build, and core analysis features. The repository also includes reproducible setup and evaluation documentation.
What's next for p7
The next steps are to evaluate the classifier on an independent held-out dataset, conduct the prepared five-person usability study, compare different versions of the same privacy policy, add safe URL and PDF ingestion, provide accessible report exports, improve support for policies from Latin American jurisdictions, and add verified links to relevant legal and regulatory sources.
The long-term goal is to make privacy decisions more understandable, personal, and accountable without asking users to blindly trust an AI-generated answer.