Repository navigation
docs(rfcs): import public Markdown mirrors of RFC-AI-0002, 0003, 0004 from the ASF Confluence wiki - #94
Merged
Conversation
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)
Member
Author
|
We have nice RFCs describing some of the choices of "basic" principles of the agentic skill-based usage for open-source maintainers.. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):
docs/rfcs/RFC-AI-0002.mddocs/rfcs/RFC-AI-0003.mddocs/rfcs/RFC-AI-0004.mdThe 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
$TMPDIR, never the repo tree, shredded after use).markdownifyfor HTML → Markdown.| --- |table separators (Confluence HTML lacks<th>markers so markdownify produces table-shaped lines without separator rows).%C2%A0that markdownlint MD051 rejects).textlanguage tags to bare```fences (MD040).PNGs→PNG filesto dodge a typos false positive onPN→ON.cwiki.apache.org/...link removed.lists.apache.org/list.html?private@...link removed.https://cwiki.apache.org/...URLs in plain text → replaced with<wiki-link removed>marker (none survive in the final files; verified bygrep).Trade-offs
RFC-AI-0004.mdin 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.RFC-AI-0004.md(verified bygrep '^## Principle').Out of scope
akm). Out of scope for this PR — this PR mirrors the three Apache Steward-authored RFCs only.RFC-AI-0004referring toRFC-AI-0003by hyperlink). Left for a follow-up so this PR stays a faithful mirror of the wiki content.