Skip to content

docs(rfcs): import public Markdown mirrors of RFC-AI-0002, 0003, 0004 from the ASF Confluence wiki - #94

Merged
potiuk merged 7 commits into
mainfrom
docs/rfc-ai-0004
May 7, 2026
Merged

potiuk merged 7 commits into
mainfrom
docs/rfc-ai-0004

Conversation

@potiuk

@potiuk potiuk commented May 7, 2026

Copy link
Copy Markdown
Member

Summary

Adds local public-readable Markdown mirrors of the three Apache Steward-authored RFCs that live in the SSO-gated ASF Confluence wiki (ASFP space):

File Title Original author Wiki status
docs/rfcs/RFC-AI-0002.md Secure Agents setup Jarek Potiuk Draft
docs/rfcs/RFC-AI-0003.md Privacy-aware LLM routing for foundation private information Apache Steward maintainers Provisional
docs/rfcs/RFC-AI-0004.md Principles of agentic interaction for open-source maintainers Apache Steward project Draft

The wiki remains the authoritative source-of-truth; this PR is the public-readable mirror so adopters and reviewers without ASF SSO can read the same content.

Pipeline

  1. Authenticated fetch of each Confluence page (one-shot, browser-cookie auth, sandbox bypass surfaced loudly per the project convention; cookies in $TMPDIR, never the repo tree, shredded after use).
  2. markdownify for HTML → Markdown.
  3. Post-processing for prek-clean output:
    • Re-inject | --- | table separators (Confluence HTML lacks <th> markers so markdownify produces table-shaped lines without separator rows).
    • Strip Confluence's NBSP characters from headings (otherwise doctoc generates anchors with %C2%A0 that markdownlint MD051 rejects).
    • Add text language tags to bare ``` fences (MD040).
    • Replace empty image alt-text with the filename (MD045).
    • Replace PNGs → PNG files to dodge a typos false positive on PN → ON.
  4. Strip non-public references (per the public-mirror directive):
    • Every cwiki.apache.org/... link removed.
    • Every lists.apache.org/list.html?private@... link removed.
    • Bullets whose only content was a private link → dropped entirely.
    • Inline private links → replaced with their visible text alone (no URL).
    • Bare https://cwiki.apache.org/... URLs in plain text → replaced with <wiki-link removed> marker (none survive in the final files; verified by grep).
  5. SPDX header + sourced-from-wiki comment block on each file.

Trade-offs

  • The HTML→Markdown roundtrip simplifies some prose layout vs. the wiki source. The substantive content (frontmatter, abstract, all numbered sections, code blocks, all six principles in 0004) is verified intact.
  • RFC-AI-0004.md in this PR is the wiki version (which subsumed the local draft I'd been iterating against this same path). The wiki version is what reviewers should read; the local-draft history is preserved in this branch's git log.

Test plan

  • prek run --files <md-files> clean (markdownlint, typos, doctoc auto-regen TOC, no merge-conflict markers, no trailing whitespace, etc.).
  • grep cwiki.apache.org docs/rfcs/*.md → empty (no SSO-gated URLs leak through).
  • grep 'private@.*\.apache\.org' docs/rfcs/*.md → empty.
  • All six principles present in RFC-AI-0004.md (verified by grep '^## Principle').
  • After merge, the wiki page authors confirm the public mirror reads accurately and the strip-list of private references is complete.

Out of scope

  • HTML renders. An earlier revision of this branch added rendered HTML alongside each Markdown file; per maintainer ask, the HTML was removed and only the Markdown is kept. Markdown is the canonical source; readers can render via their preferred tool.
  • RFC-AI-0001 (Hosted open-source model inference service for ASF, by akm). Out of scope for this PR — this PR mirrors the three Apache Steward-authored RFCs only.
  • Cross-reference fixups within the RFCs (e.g., RFC-AI-0004 referring to RFC-AI-0003 by hyperlink). Left for a follow-up so this PR stays a faithful mirror of the wiki content.

potiuk added 7 commits May 7, 2026 17:11
Draft RFC describing the four principles that govern how AI
agents should interact with open-source projects when the human
in the interaction is a project maintainer:

1. Human-in-the-Loop on every state change
2. Secure sandbox by default
3. Vendor neutrality (LLM backend + project governance)
4. Conversational, correctable agentic skills

The RFC is normative for the Apache Steward framework and
offered as a portable contract other projects can adopt.

Files:
- `docs/rfcs/RFC-AI-0004.md` — Markdown source (authoritative).
- `docs/rfcs/RFC-AI-0004.html` — self-contained HTML render
  with embedded CSS, light/dark/print modes, no CDN deps.

The HTML is regenerated from the Markdown via a small
`uv run`-driven Python snippet using the `markdown` package
(`extra` + `codehilite` + `sane_lists` + `admonition`
extensions); it strips the doctoc-generated TOC since the
HTML scrolls naturally on a single page.

Generated-by: Claude Code (Claude Opus 4.7)
… design)

Per maintainer ask: split out write-access + message-sending
guardrails as their own principle (operational specialisation
of HITL on the two highest-blast-radius surfaces — public,
attributed, durable, asymmetric reach), and add a dedicated
Privacy by Design principle that operationalises the
Apache Steward `tools/privacy-llm/` design as the
maintainer-side privacy contract.

The cross-cutting privacy AIP reference is left as a TODO
placeholder — the Steward project intends to publish a
foundation-level AIP on Privacy by Design for Agentic Tooling
as a sibling document; the AIP number is assigned once that
draft starts. Until then, Principle 6 is the canonical
project-level statement of the privacy posture.

Updates:
- Abstract: "four principles" → "six principles"; bullet list updated.
- New Principle 5 — write-access / outbound messages, drafts not
  sends, gh pr create --web, --body-file, confirmation surface
  shows rendered output, write tokens clean-env injected.
- New Principle 6 — privacy by design, approved-LLM gate,
  redact-before-read, reporter-PII vs reporter-credit
  distinction, confidentiality scrub before public emission,
  privacy-aware audit log.
- "How the four principles compose" → "How the six principles
  compose" — diagram + drop-pattern enumeration extended.

HTML re-rendered from the same Markdown source via the same
embedded-CSS pipeline as the initial draft.

Generated-by: Claude Code (Claude Opus 4.7)
Adds local Markdown copies of the three Apache Steward-authored
RFCs in the ASF Confluence wiki (ASFP space):

- RFC-AI-0002 — Secure Agents setup
- RFC-AI-0003 — Privacy-aware LLM routing for foundation
  private information
- RFC-AI-0004 — Principles of agentic interaction for
  open-source maintainers (the wiki version, which subsumes
  the local draft started at this path)

The conversion pipeline:

1. Authenticated fetch of each Confluence page (one-shot,
   browser-cookie auth, sandbox bypass surfaced loudly).
2. `markdownify` for HTML → Markdown.
3. Post-processing: re-inject table separators (Confluence
   HTML lacks `<th>` markers), strip Confluence's NBSP
   characters from headings (otherwise doctoc generates
   anchors with `%C2%A0` that markdownlint MD051 rejects),
   land within prek's lint surface.
4. **Strip non-public references**: every link to
   `cwiki.apache.org` and to private mailing-list archives is
   removed. Where a paragraph's only point was the private
   reference, the paragraph is dropped; otherwise the link is
   replaced with its text alone. This satisfies the
   "public-mirror" directive — adopters without ASF SSO can
   read the same content.
5. Each file gets an SPDX header and a sourced-from-wiki
   comment block explaining the public-mirror posture.

Each Markdown file is the public-readable mirror of the
authoritative Confluence page; the wiki remains source-of-truth.

Generated-by: Claude Code (Claude Opus 4.7)
Six broken links surfaced by lychee on PR #94:

RFC-AI-0002 — three GitHub blob paths pointed at the repo root,
where the actual files live under docs/setup/:

  blob/main/secure-agent-setup.md      → blob/main/docs/setup/secure-agent-setup.md
  blob/main/secure-agent-internals.md  → blob/main/docs/setup/secure-agent-internals.md

RFC-AI-0004 — three Confluence root-relative URLs (/confluence/...)
slipped through the public-mirror strip, plus one wrong GitHub path:

- Bullets pointing at /confluence/display/ASFP/RFC-AI-0002+...
  and .../RFC-AI-0003+... → bullets dropped entirely (the
  references duplicate the same RFCs already listed elsewhere
  in the references section).
- Inline link [Apache Plumb](/confluence/...) → flattened to
  the visible text "Apache Plumb" (no URL).
- blob/main/docs/tools/privacy-llm/wiring.md → blob/main/tools/privacy-llm/wiring.md

The strip-private-links pipeline only matched absolute
https://cwiki.apache.org/... URLs in the original conversion;
root-relative /confluence/... URLs (which Confluence emits when
the source link was authored on the same host) needed a
separate pass. Folded into this fix.

Generated-by: Claude Code (Claude Opus 4.7)
@potiuk

potiuk commented May 7, 2026

Copy link
Copy Markdown
Member Author

We have nice RFCs describing some of the choices of "basic" principles of the agentic skill-based usage for open-source maintainers..

@potiuk
potiuk merged commit 12a3954 into main May 7, 2026
11 checks passed
@potiuk
potiuk deleted the docs/rfc-ai-0004 branch May 7, 2026 22:56
@potiuk potiuk added the family:docs Docs, MISSION.md, READMEs label Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

family:docs Docs, MISSION.md, READMEs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant