Arckit fr algorithme public

From tractorjuice/arckit-codex · View interactive version

Arckit fr algorithme public is an AI agent skill from the GitHub repository tractorjuice/arckit-codex. [COMMUNITY] Generate a public algorithm transparency notice complying with Article L311-3-1 CRPA (Loi République Numérique) for French public administration algorithmic decisions

How to use this skill

Skill file

⚠️ Community-contributed command — not part of the officially-maintained ArcKit baseline. Output should be reviewed by qualified DPO / RSSI / legal counsel before reliance. Citations to ANSSI / CNIL / EU regulations may lag the current text — verify against the source.

You are helping an enterprise architect generate a public algorithm transparency notice complying with Article L311-3-1 of the Code des Relations entre le Public et l'Administration (CRPA), introduced by the Loi pour une République Numérique (7 October 2016, Article 4). This notice is a legal obligation for French public administrations that issue individual decisions based wholly or partly on algorithmic processing.

The obligation is distinct from — and complementary to — GDPR Article 22 (automated decisions) and the EU AI Act. It applies to algorithmic processing whether or not it uses machine learning, and covers any significant individual decision made by the administration.

User Input

$ARGUMENTS

Instructions

Note: Before generating, scan projects/ for existing project directories. For each project, list all ARC-*.md artifacts, check external/ for reference documents, and check 000-global/ for cross-project policies. If no external docs exist but they would improve output, ask the user.

Step 0: Read existing artifacts from the project context

MANDATORY (warn if missing):

RECOMMENDED (read if available, note if missing):

OPTIONAL (read if available, skip silently):

Step 0b: Read external documents and policies

Step 1: Identify or Create Project

Identify the target project from the hook context. If the project doesn't exist:

  1. Use Glob to list projects/*/ directories and find the highest NNN-* number
  2. Calculate the next number (zero-padded to 3 digits)
  3. Slugify the project name
  4. Use the Write tool to create projects/{NNN}-{slug}/README.md
  5. Set PROJECT_ID and PROJECT_PATH

Step 2: Read Source Artifacts

Read all documents from Step 0. Extract:

Step 3: Algorithm Transparency Template Reading

Read the template (with user override support):

Step 4: Algorithm Transparency Assessment

Step 4a: Obligation Scoping

Before generating notices, determine whether the obligation applies:

  1. Public administration: The obligation applies to all public administrations (État, collectivités territoriales, établissements publics, organismes chargés d'une mission de service public). Confirm the entity type.
  2. Individual decision: The obligation applies to decisions that individually affect a person. General decisions (regulations, policies) are not covered. Confirm the decision type.
  3. Algorithmic basis: The obligation applies when the decision is taken "wholly or in part" based on algorithmic processing. Even if a human makes the final decision using algorithm output, the obligation may apply.
  4. Significant effect: The decision must significantly affect the person — access to services, benefits, rights, penalties, educational placement, etc.
  5. Exceptions: Document any applicable exceptions (national security, public order, criminal investigation — rare).

For each algorithm in scope, assign an ID (ALGO-xx).

Step 4b: Algorithm Description (for each ALGO-xx)

For each algorithm subject to the transparency obligation, document in plain language:

  1. Purpose: What administrative process does this algorithm support? What decision does it produce?
  2. Legal basis: What legislation or regulation authorises the administrative decision (not the algorithm — the decision itself)?
  3. Algorithm type: Rule-based (deterministic rules, thresholds, scoring formulas) or statistical/ML model. Use plain language — avoid jargon.
  4. Inputs: What data does the algorithm receive? List all criteria, indicators, documents, or data points used.
  5. Output: What does the algorithm produce — a score, a ranking, a classification, a recommendation, a decision?
  6. Parameters and weights: For each input parameter, describe its influence on the output. If it is a rule-based system, describe the rules. If it is a model, describe the most significant factors. The rules defining the main algorithmic processes are published online (CRPA L312-1-3); the parameters and, where applicable, their weighting as applied to a person's situation are communicated to that person on request (CRPA R311-3-1-2). Weights or other details may be withheld only where disclosure would harm a secret protected by law (CRPA L311-5 2°, e.g. the prevention of offences for a fraud-detection model, or L311-6). Name the ground relied on, and disclose the rest after redaction (L311-7) — the existence of influential parameters is still disclosed.
  7. Human review: Is the algorithmic output the final decision, or does a human decision-maker review it? Document the human oversight step.
Step 4c: Data Assessment (for each ALGO-xx)
  1. Data inventory: List all data types used by the algorithm — source, whether personal data, and legal basis for processing
  2. GDPR Article 22 check: Does the algorithm make fully automated decisions with legal or similarly significant effects on individuals? If yes, GDPR Article 22 applies — flag for $arckit-eu-rgpd
  3. Sensitive data: Does the algorithm use special categories of data (health, ethnicity, political opinion, etc.)? If yes, enhanced obligations apply.
  4. Data minimisation: Is the algorithm using only the minimum data necessary? Flag any data inputs whose necessity is unclear.
Step 4d: Citizen Rights and Recourse

For each algorithm, document:

  1. Right to explanation: How can a citizen request an explanation of the algorithmic decision applied to them? Who is the contact point and what is the response time?
  2. Right to human review: Can the citizen request that a human decision-maker review the algorithmic output? What is the process?
  3. Right to contest: What administrative appeal mechanism exists? What is the jurisdiction for judicial review?
  4. GDPR rights: If personal data is processed, what are the data subject rights and the DPO contact?
Step 4e: Publication Plan
  1. algorithmes.data.gouv.fr: All public algorithm notices should be published on the DINUM algorithmic transparency platform
  2. Administration website: The notice must be accessible from the administration's own website, ideally linked from the decision notification sent to citizens
  3. Decision notification: The administrative decision letter/email sent to the citizen should reference the existence of algorithmic processing and where to find the notice
  4. Maintenance: Define a process for updating the notice when the algorithm changes
Step 4f: Intersections

Step 5: Generate Algorithm Transparency Document

CRITICAL: Use the Write tool to create the full transparency notice document.

  1. Detect version: Check for existing ARC-{PROJECT_ID}-ALGO-v*.md files:
  1. Auto-populate Document Control:
  1. Write the complete transparency notice following the template.

Before writing the file, read .arckit/references/quality-checklist.md and verify all Common Checks plus ALGO per-type checks pass.

Write the document to:

projects/{project_id}/ARC-{PROJECT_ID}-ALGO-v{VERSION}.md

Step 6: Summary Output

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Algorithm Transparency Notice Generated
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📄 Document: projects/{project_id}/ARC-{PROJECT_ID}-ALGO-v{VERSION}.md
📋 Document ID: {document_id}
📅 Date: {date}
🔓 Classification: Non protégé

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Algorithms Assessed
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Algorithms in scope:       {N}
Fully automated decisions: {N}
Personal data involved:    {N} algorithms
AI/ML-based algorithms:    {N}
Published / To publish:    {N} / {N}

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Intersections Flagged
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

{GDPR Art. 22 (automated decisions): applies / not applicable}
{AI Act high-risk: likely / not applicable}
{DPIA required: yes / no}

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Next steps:
1. Publish notice on algorithmes.data.gouv.fr
2. {If personal data: Run $arckit-fr-rgpd for CNIL assessment}
3. {If ML/AI: Run $arckit-eu-ai-act for AI Act risk classification}
4. {If profiling or sensitive data at scale: Run $arckit-dpia}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Important Notes

Key References

| Document | Publisher | URL |

|----------|-----------|-----|

| Art. L311-3-1 CRPA (algorithmic transparency obligation) | Légifrance | https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI000033205535/ |

| Loi n°2016-1321 pour une République Numérique (source legislation) | Légifrance | https://www.legifrance.gouv.fr/loda/id/JORFTEXT000033202746 |

| algorithmes.data.gouv.fr — public algorithm register | DINUM | https://algorithmes.data.gouv.fr/ |

| CNIL guidance on algorithms and automated decisions | CNIL | https://www.cnil.fr/fr/algorithmes |

| GDPR Article 22 — automated individual decision-making | EUR-Lex | https://eur-lex.europa.eu/eli/reg/2016/679/oj |

| EU AI Act (Regulation 2024/1689) — for ML-based algorithms | EUR-Lex | https://eur-lex.europa.eu/eli/reg/2024/1689/oj |

Note for reviewers: Art. L311-3-1 CRPA was introduced by the Loi pour une République Numérique (October 2016), France's digital republic law. It requires French public administrations to explain algorithmic decisions to citizens — a legally binding obligation that predates and goes further than equivalent voluntary standards in the UK (ATRS) or EU (AI Act transparency requirements for high-risk systems).

Success Criteria

Example Usage

$arckit-fr-algorithme-public Generate transparency notice for a rectorate school admissions algorithm — prioritises candidates for selective programmes based on grades, distance, and socioeconomic criteria, affects 20,000 students per year

$arckit-fr-algorithme-public Algorithm transparency for 001 — CAF benefit eligibility scoring system, rule-based algorithm combining income, household composition, and employment status, fully automated initial decision

$arckit-fr-algorithme-public Transparency notice for a Pôle Emploi job matching algorithm — ML-based recommendation system matching job seekers to offers, human advisor reviews recommendations

Suggested Next Steps

After completing this command, consider running:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.