Niko Matsakis
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Lang team "shepherded project" proposal ## Key ingredients A **shepherded project** has the following "key ingredients": * Assigned **shepherd(s)** (and lang team **liason**, maybe same person) * Create a **repository** which contains at least the following: * charter, defining scope and goals of the project * exploration report, survey alternatives * current design, going into detail * design reports, documenting the reasons behind tricky or key decisions ## Officers "Officers" are members of the group who play a special role. They are often among the founding members of the group, though the set of active officers can also change over time. When first created, a project must define one or more shepherds along with a lang team liason: * **Shepherds** have the job of guiding the overall design and conversation: * They can be a lang-team member but do not have to be. * They also make regular updates to the lang team. * The first goal in any design conflict should be to fully and accurately describe the conflict and to identify the "key tradeoffs" being made. * If none of them shepherds is a lang-team member, then there should be a **liason** as well. * The liason is somebody who the shepherds can come to with questions and so forth. Groups may define additional officers as needed. For example, it is useful to have a **reviewer** and an **implementor** (who is writing the code). Similarly, it would be useful to recognize the people who are writing documentation. As we gain more experience, we'll probably come up with a "standard set" of such officers that groups tend to have. ### Decision makers In general, project groups don't "make the final decisions" -- the Rust teams do (e.g., lang team, compiler team, etc). However, in practice, a lot of the smaller details *do* wind up getting decided by the project group, with the lang team opting to trust their judgement. Therefore, it can be useful to define the formal decision makers for the group itself. By default, this set is just the shepherds and lang team liason, and that suffices for most projects. In some cases though it might be useful to have a larger set of folks. ### General membership It is not yet clear whether it makes sense to formally define other members beyond the officers. If nothing else, it can be a good way to recognize people who have contributed in a significant way to the design and discussion of a project. In that case, it is recommended that membership be granted to folks who have been contributing for some time in a consistent way. ## Stages of a project The **stages** of a project are determined by which of the documents they have that have been **approved** by the lang team. There are four major phases: 1. **Drafting charter** -- figuring out the rough goals/non-goals 2. **Exploring the solution space** -- figuring out what the options are and picking the best 3. **Developing the solution** -- building a test suite and developing the feature itself; also requires writing an explainer to help people use it 4. **Stabilizing and documenting** -- the feature becomes available on stable and we work on updating the reference or other "main bits" of documentation as appropriate Projects typically begin in the first phase. But in some cases we can just right to the 2nd or 3rd phase if the problem seems sufficiently simple. ### Stage 0: Sponsored - To start, create a lang team proposal, and a liaison takes interest in this - Lightweight decision making process: - someone has to #### Exit criteria - There must be a lang-team liaison assigned, who has available bandwidth. - There must be lang-team consensus that the problem *should* be solved, somehow, and should be part of Rust. ### Stage 1: Drafting a charter - When first created, projects typically have a shepherd, liason, and a draft charter. They begin then by fleshing out the charter and identifying non-goals. - In this time they can also begin creating the exploration report, as often this discussion will lead to a certain amount of exploration. #### Exit criteria - Present the fully fleshed out charter to the lang team for approval. - Criteria should identify goals and non-goals. - Reasons to **accept**: you think this problem is sufficiently important and that there is sufficient bandwidth available to see it through. For implementation heavy projects, this may require checking in with other teams, especially the compiler team. - Reasons to **block**: you do not think the charter has a clear or completable scope; you do not think there is available bandwidth or you do not feel that this problem is worth solving, compared to the other problems on hand. ### Stage 2: Exploring the solution space - In this phase projects are exploring the solution space more deeply. The goal is to enumerate the possible solutions and ultimately select one solution as the preferred direction. - Entering this stage implies that the **lang team agrees they would like to solve this problem in principle**. - In this stage, the lang team agrees that implementation work can begin in tree, though the goal should be to "prove out" possible solutions and not to develop the full feature. If at all possible, such work should be done in procedural macros or otherwise "out of tree". - NB. Landing PRs *in tree* also requires agreement with the compiler team. See the discussion below. - The result of this stage can be either: - continue work by moving to the "developing the solution" stage - put the work on hold #### Exit criteria when moving to development - Present the recommended solution and explain why the other solutions were not preferred - The recommended solution should come with a set of examples that will be the seed of the final test suite. - This test suite should show how the goals of the charter are met (or not met, as may be the case; in which case those goals will become non-goals). - It should also include a list of "unresolved questions" that are expected to be worked out over the remainder. - In general, lang team members should prefer to add things to the list of unresolved questions rather than blocking the proposal from moving forward. - Reasons to **accept**: - the proposed solution seems like the best approach - the set of examples covers all the major goals - it is *not* required for examples to be a full test suite, that would typically be done in the next stage - you can't think of any major alternatives worth discussing - you think there is available bandwidth to do the remaining implementation work - Reasons to **block**: (be specific) - you think the proposed solution has fundamental flaws that cannot be rectified (which and in what way?). - there is a solution you think is better (which and in what way?). - there is a solution that doesn't seem sufficiently explored (which and in what way?). - there are use cases that this solution does not address and without those you don't feel the work is worth doing (which and in what way?). #### Exit criteria when moving to postpone - **Exit criteria when moving to close or postpone:** It may be that no satisfactory solution is found. It may also be that the time doesn't seem to ripe to pursue the proposed solution (perhaps it is blocked on implementation work or another feature). In that case, the project can decide to **postpone** further work. - Reasons to **accept** - Not enough bandwidth to pursue now (no reviewer could be found, for example) - Blocking on some technical detail - Reasons to **block** (be specific) - Well, you can't really *block* this, but if you think the problem is imporant, you might recommend ways to reduce scope and still make progress, or look to find people to help and provide more bandwidth. ### Stage 3: Developing the solution - In this stage development work begins in earnest: - should be developing a full test suite - exploring the unresolved questions and coming up with proposed answers - if appropriate, writing an explainer to help "end users" evaluate the feature - If you reach a steady state, a good idea is to do a "call for feedback", where you point people at the explainer and encourage them to give feedback. - Best if you can collect that feedback in a google form #### Exit criteria - All unresolved questions are resolved -- though the "resolution" can be an explanation of why the question can be deferred - Complete test suite showing interaction with other language features - Suitable explainer is available - If appropriate, feedback from users has been received and taken into account - **Reasons to accept:** - You think this feature is ready to stabilize. - **Reasons to block:** (be specific) - You are concerned about the soundness of the feature. - You think the test suite is missing important coverage - You think the ### Stage 3: Stabilize and document At this point, the feature is basically done. What is needed is to stabilize it on master and to update the reference or other such documentation. ## Charter The purpose of the **charter** is to define the scope of the project. A good charter will clearly define the **goals** of the project, which generally take the form of a list of problems to be solved, with concrete examples. It can also define **non-goals**: things that are ruled out of scope. The charter is not immutable and is expected to evolve over time, though its "spirit" should remain the same. It is however expected that (a) new goals and examples will arise; (b) new non-goals will be identified; and (c) previous goals may move to non-goals as the nature of the solution space becomes clear. The charter is in some sense similar to the "motivation" section of today's RFC template, although it is likely quite a bit more general. ## Exploration report The **exploration report** (which may actually be many files) documents the various approaches that were considered. It should explain why this particular approach was chosen. This is roughly the "alternatives" section of today's RFC template. ## Current design The **design** documents the current approach. Like today's RFC template, it should include both the "guide-level expanation" and "reference-level explanation" of the design. Note that the "current design" can be split into multiple files as needed. ## Design reports Design reports are created during the process when a tricky question is encountered. They document the problem, the various options that were considered, and the reasons behind the ultimate decision that was taken. In the case of particularly contentious decisions, decision reports might also include a "dissent" from members who disagreed with the decision but chose not to block consensus (the dissent would explain their concerns). An example of where a dissent might've been appropriate is the choice to use `foo.await` syntax. The write-ups that came out of that discussion are also a good example of decision reports in action. Decision reports are particularly useful to avoid repeated discussion. When someone raises a topic that was previously decided, you can quickly refer them to the decision report and close the discussion (unless of course there is appetite to revisit the topic).

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully