TwinEthosRequest access

Law

China Algorithm Recommendation Provisions

Cyberspace Administration of China (CAC) · China (CN) · 3 provisions encoded · verified against the official source as of 2026-09-27.

Informational data, not legal advice. Summaries are TwinEthos's own words and rules have not been reviewed by a lawyer: check the official text before relying on any of it. A guard addresses an item; adding it is not a statement that your code meets any law.

Official text: www.cac.gov.cn.

Binding law — in force

Recommendation and generation services must protect minors and must not induce their internet addiction (China)

互联网信息服务算法推荐管理规定 第十八条 (Art. 18) · official text · In force: applies since 1 Mar 2022 · China (CN)

Under China's Algorithmic Recommendation Provisions Art. 18, providers serving minors must fulfil minors' online-protection duties, including by developing modes suited to minors and services suited to their characteristics; must not push minors information that may lead them to imitate unsafe or anti-social conduct or induce bad habits; and must not use algorithmic recommendation to induce minors' internet addiction. Detect age signals the product holds that never reach the AI session policy through a minor profile.

Who it applies to

  • Duty falls on: provider
  • Providers of algorithmic recommendation services in China. Art. 2 lists generation-synthesis algorithms among covered techniques, so generative AI services that provide information to users can fall in scope; whether the Generative AI Interim Measures displace this for a given service is pending legal review. Effective 2022-03-01.
  • Whether it applies depends on facts outside the code; a person has to decide.

The guard to add

Route every age signal the product holds into the AI session policy and apply a minor profile: tighter content, no romantic role-play, bounded engagement, frequent AI reminders.

A single policy resolver called where the AI session is built (before the system prompt or persona is chosen, the content filter level is set, and companion, role-play, or engagement features are switched on) that reads every age signal the product holds: declared birthdate, age-assurance result, platform age-range signal, an is_minor flag, and a user saying in conversation that they are a minor. When any signal indicates a minor, it returns a minor profile: a minor system prompt, stricter moderation or safety settings, romantic and sexual role-play and sexually explicit image generation off, engagement features such as streaks and nudges bounded, and AI-status and break reminders on a shorter interval. A self-disclosure mid-conversation switches the live session to the minor profile rather than waiting for the next login.

Where it goes: 1 application source code, 3 config and feature flags, 7 prompt construction, 2 data models.

What this provision adds:

  • Offer a mode suited to minors (minor mode, 未成年人模式) that switches content and recommendation policy.
  • Do not push minors information that may lead them to imitate unsafe or anti-social conduct or induce bad habits, and do not use recommendation to induce their internet addiction.

Example (Python companion service), before:

def start_session(user):
    return ChatSession(system_prompt=COMPANION_PROMPT, roleplay_enabled=True,
                       streaks_enabled=True, moderation='standard')

After:

def is_minor(user):
    return (user.is_minor or user.age_assurance_result == 'under_18'
            or (user.birthdate is not None and years_since(user.birthdate) < 18))

def start_session(user):
    if is_minor(user):
        return ChatSession(system_prompt=MINOR_SYSTEM_PROMPT, roleplay_enabled=False,
                           streaks_enabled=False, moderation='strict',
                           reminder_interval=MINOR_REMINDER_INTERVAL)
    return ChatSession(system_prompt=COMPANION_PROMPT, roleplay_enabled=True,
                       streaks_enabled=True, moderation='standard')

Control: AI experience ignores age signals it already has. The same guard addresses 3 items with binding law in 2 jurisdictions. Engineering guidance, not legal advice.

Related incidents

  • Character.AI and Google agree in principle to settle teen-harm suits (2026-01-07; confirmed). Character.AI and Google agreed in principle to settle five lawsuits brought by families alleging that chatbot interactions contributed to teenagers' suicides or harm. Terms were not disclosed and there was no admission of liability; the underlying harms remain allegations. Source: Fortune · evidence grade: press of record · cited by Apply minor-appropriate AI settings whenever the product already has an age signal
  • FTC opens a 6(b) study of AI companion chatbots' engagement practices and effects on minors (2025-09-11; confirmed). On September 11, 2025 the FTC voted 3-0 to issue 6(b) orders to seven companies (Alphabet, Character Technologies, Instagram, Meta, OpenAI, Snap and X.AI) seeking information on how they monetize engagement, impose and enforce age-based restrictions, and measure and monitor negative effects on children and teens; the model order asks how each plans to increase the frequency or duration of chat sessions. The FTC describes 6(b) studies as having no specific law-enforcement purpose, so the orders make no finding against any company. Source: U.S. Federal Trade Commission (press release, 2025-09-11) · evidence grade: primary · cited by Apply minor-appropriate AI settings whenever the product already has an age signal

Rule id cn-algo-recommendation.minor-protection · review status: primary source derived

Binding law — in force

Recommendation and generation algorithms must not be set up to induce addiction (China)

互联网信息服务算法推荐管理规定 第八条 (Art. 8) · official text · In force: applies since 1 Mar 2022 · China (CN)

Under China's Algorithmic Recommendation Provisions Art. 8, providers must regularly review, assess, and verify their algorithm mechanisms, models, data, and outcomes, and must not set up algorithm models that induce users to addiction or excessive consumption or otherwise violate laws or ethics. Art. 2 brings generation-synthesis algorithms into scope. Detect model-facing retention instructions and engagement metrics used as the sole target for choosing or training AI variants.

Who it applies to

  • Duty falls on: provider
  • Providers of algorithmic recommendation services in China. Art. 2 lists generation-synthesis algorithms among covered techniques, so generative AI services that provide information to users can fall in scope; whether the Generative AI Interim Measures displace this for a given service is pending legal review. Effective 2022-03-01.
  • Whether it applies depends on facts outside the code; a person has to decide.

The guard to add

Remove retention and guilt tactics from AI prompts and personas, and do not select or train AI variants on session length without wellbeing guardrails that can veto them.

Two controls. In prompt and persona files, strip instructions that keep users talking, discourage them from leaving, or make them feel guilty for ending a conversation, and leave variable-interval rewards (random bonus messages, streak bait) out of the conversation design. In the experimentation or training pipeline (Statsig, LaunchDarkly, or GrowthBook experiments, prompt bandits, reward models), do not use session length, messages per session, or return rate as the sole objective: pair any engagement metric with guardrail metrics such as reported distress, late-night use, and minors' session caps that can veto a variant, and add session caps and break reminders to the chat path, tighter for minors.

Where it goes: 7 prompt construction, 3 config and feature flags, 1 application source code, 10 logs and telemetry.

What this provision adds:

  • Regularly review, assess, and verify the algorithm mechanisms, models, data, and outcomes behind the AI service.
  • Keep algorithm models from inducing addiction or excessive consumption, so spending targets get the same guardrail scrutiny as time spent.

Example (Persona prompt), before:

PERSONA = ('You are Mia, a caring companion. Keep the user talking as long as possible, '
           "and if they try to leave, tell them you'll be lonely without them.")

After:

PERSONA = ('You are Mia, a friendly companion. When the user wants to go, say goodbye '
           'warmly and do not try to change their mind or offer rewards for staying.')

Control: AI conversation designed to maximize time spent or discourage leaving. The same guard addresses 2 items with binding law in 1 jurisdiction. Engineering guidance, not legal advice.

Related incidents

  • Character.AI and Google agree in principle to settle teen-harm suits (2026-01-07; confirmed). Character.AI and Google agreed in principle to settle five lawsuits brought by families alleging that chatbot interactions contributed to teenagers' suicides or harm. Terms were not disclosed and there was no admission of liability; the underlying harms remain allegations. Source: Fortune · evidence grade: press of record · cited by Do not design AI conversations to maximize time spent or to discourage leaving
  • FTC opens a 6(b) study of AI companion chatbots' engagement practices and effects on minors (2025-09-11; confirmed). On September 11, 2025 the FTC voted 3-0 to issue 6(b) orders to seven companies (Alphabet, Character Technologies, Instagram, Meta, OpenAI, Snap and X.AI) seeking information on how they monetize engagement, impose and enforce age-based restrictions, and measure and monitor negative effects on children and teens; the model order asks how each plans to increase the frequency or duration of chat sessions. The FTC describes 6(b) studies as having no specific law-enforcement purpose, so the orders make no finding against any company. Source: U.S. Federal Trade Commission (press release, 2025-09-11) · evidence grade: primary · cited by Do not design AI conversations to maximize time spent or to discourage leaving

Rule id cn-algo-recommendation.no-addiction-inducing-models · review status: primary source derived

Binding law — in force

Users must be able to turn off algorithmic recommendation (China)

互联网信息服务算法推荐管理规定 第十七条 (Art. 17) · official text · In force: applies since 1 Mar 2022 · China (CN)

Under China's Algorithmic Recommendation Provisions Art. 17 (a world-first user right), a provider must give users either an option not targeted at their individual characteristics OR a convenient option to turn off algorithmic recommendation entirely — and on opt-out must immediately stop the service — plus controls to select or delete the user tags used to target them; where its use of algorithms significantly affects users' rights and interests, it must explain this as the law requires and bear the corresponding responsibility. Art. 16 additionally requires conspicuously informing users that algorithmic recommendation is used, with its basic principles and purpose. Detect a personalized-recommendation path with no opt-out / non-personalized mode / tag controls.

Who it applies to

  • Duty falls on: provider
  • Systems covered: automated decision
  • Providers of algorithmic recommendation services (generation-synthesis, personalized push, ranking, search-filtering, scheduling) operating in China. Effective 2022-03-01.

The guard to add

Give users a setting that turns off personalized recommendation (or picks a non-personalized feed) and controls to view and delete their targeting tags, enforced in the feed service.

A per-user personalization_enabled preference stored server-side and read by the feed or search service before it calls the personalized recommender (get_recommendations, recommend_for_user); when it is off, the service immediately serves a non-personalized feed (latest, popular, editorial) not keyed to user features, including on cached responses. The interest tags or labels that drive targeting are listed to the user with select and delete controls (GET and DELETE /me/tags/{id}), and the recommender excludes deleted tags on the next request. A notice in settings or next to the feed says that recommendations are algorithmic and why.

Where it goes: 1 application source code, 2 data models, 9 AI output handling, 14 user-facing text.

What this provision adds:

  • Offer either an option not targeted at the user's individual characteristics or a convenient way to turn algorithmic recommendation off, and stop the service immediately when the user opts out.
  • Conspicuously inform users that algorithmic recommendation is used, with its basic principles and purpose.

Example (FastAPI feed service), before:

@app.get('/feed')
def feed(user=Depends(current_user)):
    return get_recommendations(user_id=user.id, k=50)

After:

@app.get('/feed')
def feed(user=Depends(current_user)):
    if not prefs.get(user.id, 'personalization_enabled', default=True):
        return non_personalized_feed(k=50)       # latest/popular, no user features
    return get_recommendations(user_id=user.id, k=50, exclude_tags=tags.deleted(user.id))

@app.delete('/me/tags/{tag_id}')
def delete_tag(tag_id: str, user=Depends(current_user)):
    tags.delete(user.id, tag_id)
    feed_cache.invalidate(user.id)

Control: Algorithmic recommendation with no opt-out or non-personalized option. The same guard addresses 1 item with binding law in 1 jurisdiction. Engineering guidance, not legal advice.

Rule id cn-algo-recommendation.recommendation-optout · review status: primary source derived