Skip to content

Dataset

Engineering design doc and RFC datasets for AI training

A design doc dataset is a collection of engineering proposals written before code: design docs, RFCs and architecture decision records, with their reviewer comments, approval status, the alternatives considered and links to the changes that implemented them. SourceX sources these to a buyer's specification from established businesses whose engineering teams keep them in docs tools such as Google Docs and Confluence or in repositories alongside the code. Each dataset is de-identified and licensed for an agreed permitted use, with security-sensitive detail and reviewer identities handled as agreed.

Dataset manifest

Sourced to your spec
What it is
Design docs, RFCs and decision records with review threads, status history and links to implementing changes
Typical systems
Google Docs, Confluence, Notion, and Markdown files reviewed as pull requests on GitHub or GitLab
Typical history
Varies by partner; docs-tool migrations and reorganizations often cut comment and revision history
Modality
Long-form documents with diagrams, anchored comment threads and structured status and link records
Delivery formats
Agreed per order; Markdown or HTML per revision, comments and links as JSONL, diagrams as source where it exists
Preparation
People pseudonymized with role kept; secrets, hostnames and agreed security detail removed; links mapped to IDs
Licensing
Permitted use agreed per license; scoped by organization, system area and date range
Availability
Sourced to your spec from engineering organizations; not guaranteed
Office documents and PDFsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
proposal_idstringStable pseudonymous ID that review comments, superseding records and implementation links refer to.
proposal_kindenumDesign doc, RFC, architecture decision record, one-pager or technical spec, from the organization's own template names.
authorshipobjectAuthor and co-author roles, seniority band and owning team, with names replaced.
lifecyclearrayDated status changes: draft, in review, accepted, rejected, withdrawn, superseded or implemented, with the superseding record.
sectionsobjectTitle and text parsed by heading, such as context, goals and non-goals, design, rollout and open questions, with diagram source where it exists.
alternativesarrayEach option the proposal weighed, with the verdict and the stated reason it was chosen or set aside.
stated_predictionsarrayCheckable claims pulled from the text: load and latency estimates, assumptions, accepted risks and timelines.
review_commentsarrayThreads anchored to quoted text, with reviewer role, replies, resolved state and the revision each was made on.
approvalsarraySign-offs by role, such as architecture, security or the owning team, with decision, conditions and date.
revision_historyobjectRevisions with timestamps, the snapshot as approved and a flag for edits made after approval.
system_scopearrayPseudonymous IDs of the services and components the proposal changes, the key that joins it to incidents.
implementation_linksobjectEpics and pull requests that carried out the design, and whether each link is explicit or inferred.
later_eventsarrayIncidents, postmortems, amendments and rewrites on the same system after approval, with dates.
redaction_notesobjectHow people were pseudonymized and which security-sensitive details were generalized or removed.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "proposal_id": "rfc_0142",
  "proposal_kind": "rfc",
  "authorship": {"author_role": "senior_engineer", "team": "team_platform"},
  "lifecycle": [
    {"status": "in_review", "t": "2022-05-09"},
    {"status": "accepted", "t": "2022-05-27"},
    {"status": "implemented", "t": "2022-10-14"}
  ],
  "sections": {"title": "Move job scheduling from cron hosts to a queue-backed scheduler", "headings": ["Context", "Goals", "Design", "Alternatives considered", "Rollout"], "diagrams": [{"format": "mermaid", "source": true}]},
  "alternatives": [
    {"option": "Keep cron hosts and add leader election", "verdict": "rejected", "reason": "Does not fix runs missed while a host is replaced."},
    {"option": "Managed workflow service", "verdict": "rejected", "reason": "Cost per run at our job count. Raised again in review."}
  ],
  "stated_predictions": [
    {"kind": "assumption", "claim": "Duplicate runs are safe because every job is idempotent."},
    {"kind": "timeline", "claim": "All jobs migrated within one quarter."}
  ],
  "review_comments": [
    {"rev": 3, "anchor_text": "every job is idempotent", "reviewer": "rev_17", "reviewer_role": "staff_engineer", "text": "Billing close is not. Who audits the job list?", "replies": 2, "resolved": true}
  ],
  "approvals": [
    {"role": "architecture_review", "decision": "approved", "t": "2022-05-27"}
  ],
  "revision_history": {"revisions": 9, "as_approved": "rev_9", "edited_after_approval": true},
  "system_scope": ["svc_scheduler", "svc_billing_jobs"],
  "implementation_links": {"epic": "epic_771", "pull_requests": 23, "method": "rfc_number_in_pr_description"},
  "later_events": [
    {"t": "2023-02-11", "type": "incident", "ref": "inc_3a9", "summary": "Billing job ran twice after a worker restart."},
    {"t": "2023-03-02", "type": "decision_record", "ref": "adr_0061", "relation": "amends"}
  ],
  "redaction_notes": {"people": "pseudonym_with_role", "security_detail": "network_layout_generalized"}
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

System design reasoning

Proposals with their alternatives and the reasons each lost give a model worked examples of trade-offs under real constraints.

Design review assistants

Reviewer comments anchored to the passage they question are direct supervision for a model that reviews a draft.

Grounding coding agents in decisions

Retrieval over decision records tells an agent why the code is shaped the way it is before it changes it.

Evaluating design judgment

Proposals joined to later incidents make test items where a model's predicted risks are graded against what happened.

Drafting decision records

Review threads paired with the record that closed them train a model to write up a decision from a discussion.

Use-case guides: Coding agents, Document AI, enterprise search and RAG, Private evaluation sets

What makes this data valuable

Every status kept

Rejected, withdrawn, superseded and abandoned proposals are delivered and counted by status.

Anchored review threads

Comments carry the quoted passage, replies, resolved state and the revision they refer to.

Snapshot as approved

The text at approval is separate from later edits and post-hoc notes.

Explicit implementation links

Pull requests and epics cite the proposal by number or URL, not by inferred match.

Outcome records joined

Incidents and follow-up decisions on the same system are linked with dates.

Diagram source preserved

Diagrams arrive as Mermaid, PlantUML or draw.io source where the authors used it, not only as images.

Process

Design doc dataset

This page covers engineering design docs, RFCs and decision records.Illustrative

Why alternatives, review threads and rejected proposals matter

Code records what was built. It does not record the two other designs the team weighed or the constraint that ruled them out. A design doc does, in the section its template calls alternatives considered, or in the context and consequences of a decision record. That section is still the author's account, often written once the choice was made. The contested reasoning is in the review, where a senior engineer highlights a sentence, asks why the existing queue will not do, and gets an answer the document never stated.

Where that thread lives decides whether an export has it. In Google Docs and Confluence it is a comment anchored to a quoted passage. Once resolved it is closed out of the page view and kept in the tool's comment history, and a flat PDF or plain-text export usually carries no comments at all, so ask what each export route kept. In a repository RFC process the proposal is a Markdown file in a pull request, and the discussion stays on the code host, so cloning the repository gives the final text and none of the argument. A comment also refers to the wording at the time, so it needs the document revision it was made against.

Rejected and withdrawn proposals are the first thing a tidy export drops. In a repository they are closed pull requests that never reached the main branch. In a docs tool they are files marked rejected, or drafts that simply stopped. An approved-only folder is a survivor set. Every design looks right because the ones that lost are gone, and with them the paragraph that says why not. Superseded decision records belong in for the same reason. The common convention is to keep an accepted record's text as written, mark it superseded and add a new record that replaces it, and that chain is a decision being reversed in writing. Ask for every status.

Testing design predictions against what happened

A design doc is a set of predictions. It estimates load, sets a latency budget, lists the failure modes it considered and the ones it accepted, and promises a migration by a date. Inside one organization the record of whether those held exists: the pull requests that implemented the design or quietly cut its scope, the rollout, the postmortems on that system, and the later document that opens by explaining what the first one got wrong.

Joining them takes keys that survive export. Pull request descriptions cite the doc by URL or RFC number, the doc header carries an epic key, and incident records name an affected service. Internal short links and document URLs go dead outside the company unless they are mapped to stable IDs before delivery, and services get renamed. Some approved designs were never built, which is an outcome to label, not a record to drop. Ask how each link was made, by explicit reference or by inference, and what share of proposals have any.

A public RFC repository rarely supports this. An open-source project can tie an RFC to a tracking issue and the changes that implemented it, but the project is usually not the operator of the software in production, so its repository holds no incident record, capacity history or cost to hold the proposal against. The private join allows an evaluation item of this form: here is the proposal as approved, name the risks. The answer is graded against the incidents that followed. That works only if the document is delivered as it stood at approval. Authors go back and add notes saying a decision did not hold, which are useful labels and a leak if left in the input.

What to check before licensing

  • Ask for counts by status. A delivery with no rejected, withdrawn or superseded proposals has been filtered.
  • Check on the sample that comment threads are present with anchor text, replies and resolved state, and ask how they were captured from each tool.
  • For repository-based RFCs, confirm the pull request discussion and closed, unmerged pull requests are included, not only the merged Markdown files.
  • Agree how security-sensitive detail is handled, such as threat models, authentication flows, network layout and known weaknesses. Then search the sample for hostnames, IP addresses and credentials.
  • Agree how authors and reviewers appear. Check that names are gone from comment bodies and mentions, and that role and seniority were kept if you need them.
  • Ask how proposals were linked to pull requests and incidents, which links are explicit, and what share of proposals have each kind.
  • Ask for the revision as approved, kept apart from later edits, and check whether diagrams arrive as source or as flattened images.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

What is the difference between a design doc, an RFC and an ADR?

They differ in length and in how the decision is reached. A design doc is a long proposal for one system or feature, an RFC is a proposal circulated for comment under a defined process with an accept or reject outcome, and an architecture decision record is a short note of one decision with its context and consequences. Organizations mix the terms, so ask that each record keep its source's own template name.

Are rejected and withdrawn proposals included?

They should be, and you should ask for them by name. Rejected, withdrawn, superseded and abandoned proposals hold the clearest statements of why a design was not chosen, and exports of an approved folder or a main branch leave them out. Ask for counts by status, and for the closing comment or decision note on each proposal that did not go ahead.

How are reviewer comments captured?

They have to be pulled from each tool's comment history or API, not from an exported file. Docs tools hold comments as threads tied to a quoted passage, with replies and a resolved flag, and repository RFCs hold them as pull request review comments on the code host. A PDF or text export usually drops them. Ask for the capture route per source and whether resolved threads were recovered.

Can design docs be linked to the code and incidents that followed?

Yes, where the organization left references to join on. Common keys are an RFC number or document URL in pull request descriptions, an epic key in the doc header, and a service name shared with incident records. Coverage is uneven, so specify whether links are required or preferred, and whether you also want the linked pull requests and postmortems delivered or only their IDs and dates.

How is security-sensitive architecture detail handled?

It is handled as you and the partner agree, and you should check the result. Design docs describe authentication flows, network boundaries, secrets handling and known weaknesses, some of them still true of running systems. Options include excluding security reviews and threat models, generalizing hostnames and topology, or limiting scope to retired systems. Ask that credentials and keys pasted into documents be removed in every case.

How are authors and reviewers identified?

By pseudonymous IDs, with whatever attributes you agree to keep. Role, seniority band and team make a comment interpretable, since an objection from the owning team's principal engineer weighs differently from a passing remark. Names are replaced in headers, comment bodies and mentions. Ask that one person keep the same ID across documents, and check a sample for names left in free text.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 25 November 2026.

See if your company qualifies