Add news-articles category schema, examples, and tests#15
Conversation
|
@Akshatshukla-25 Thanks, this is a strong contribution and you clearly understood the main Memact rule: reading one article should not become a permanent identity claim. A few changes before merge:
Other than that, the direction is good. The durable vs temporary split and sensitive-topic protection match the issue well. @MohitBareja16 @adikulkarni006 Can you please review the PR once? |
|
Small support note: if you like what Memact is trying to build, please consider following the Memact GitHub org and starring the repo. It helps the project get a little more visibility while SSoC26 contributions come in. |
…nsitive topics as draft heuristics
|
@keepsloading, I made the changes you said and thank you for the feedback. |
|
Can you merge it |
Done. Sorry for the delay. |
Description
Closes #9
This PR adds the
news-articlescategory schema to translate raw reading activity into user-readable Wiki entry proposals. It fully enforces the core product rule: reading a single article should never become a permanent identity claim.What was done:
src/categories/news-articles.mjs): Defines context fields, permission suggestions, and sensitive keyword rules. Implements normalization logic that graduates topics to durable interests only when read0.4and flagsrequires_user_confirmation: truefor sensitive topics (politics, health, religion, finance) to protect user identity.examples/news-articles/): Includes comprehensive JSON flows showing raw app dumps, normalized context models, and human-readable Wiki entry templates.test/news-articles.test.mjs): Native test suite verifying durable graduation, temporary curiosity clicks, same-day research bings, sensitive topic protection, and preference mapping. All tests pass successfully.