CPSs: Ensure header and templated section correctness#1128
CPSs: Ensure header and templated section correctness#1128Ryun1 wants to merge 20 commits intocardano-foundation:masterfrom
Conversation
|
I still have a few more things to do here |
From the list of CPS files using we have these styles to choose from as precedents (not including the obvious syntax errors): Right now rendering on GitHub is our only priority because
I would further propose that the corresponding field in CIPs be structured in the same way... with both CIP-0001 and CIP-9999 updated accordingly to emphasise this link syntax as a validation requirement (right now I think it's offered more as an optional feature). This allows all existing CPS headers to be easily corrected, and will also allow linking to CIP candidates because authors can also link to an unmerged PR and also require a quoted p.s. to play my own devil's advocate here, there is another argument for leaving the structure loose... an approach that would naturally make more sense if we were able to make improvements to |
I agree 100%
I agree 100% again |
rphair
left a comment
There was a problem hiding this comment.
Looks great so far @Ryun1 - I guess you're moving through CPSs in numerical order but the new templates, CIP 9999 updates, and changes so far are all consistent and well expressed; just post again when you're done committing CPS updates so we can sign off or make further updates.
rphair
left a comment
There was a problem hiding this comment.
@Ryun1 @perturbing - both these related update proposals outlined & readily confirmed at the CIP meeting today. 🎉
|
okay thats all CPSs addressed for the moment the only thing I may change is |
I think people will reflexively push back about this (by not complying) because of its redundancy most of the time. The set of Having to include a CPS or CIP tag every time would therefore almost always be unnecessary and would introduce a common error and/or one more thing @Ryun1 to parse & check in your validator. However I do think that enough flexibility to tag some other CIP's or CPS's original pull request in the |
There was a problem hiding this comment.
@Ryun1 I might have missed something all along because in #1125 (comment) you had used the term "Enforced capitalisation" which only now I realised was part of a longer term "Enforced capitalisation consistency".
I've been assuming, and so writing my grep queries, that all the H2 document headings are "titles" (with anything after the : a "subtitle") and so should have every word capitalised. Currently we're not seeing that with the CPS text in the branch at this time:
$ egrep -n '^#\s|^##\s' CPS-*/README.md | egrep -v 'Abstract$|Problem$|Use Cases$|Goals$|Open Questions$|References$|Acknowledgments$|Acknowledgements$|Copyright$'
CPS-0003/README.md:36:## Use cases
CPS-0007/README.md:55:## Use cases
CPS-0008/README.md:32:## Use cases
CPS-0010/README.md:168:## Use cases
CPS-0011/README.md:36:## Use cases
CPS-0012/README.md:97:## Use cases
CPS-0013/README.md:37:## Use cases
CPS-0013/README.md:90:## Open questions
CPS-0014/README.md:53:## Use cases
CPS-0016/README.md:39:## Use cases
CPS-0017/README.md:64:## Use cases
CPS-0017/README.md:121:## Open questions
CPS-0018/README.md:92:## Use cases
CPS-0018/README.md:120:## Open questions
CPS-0020/README.md:118:## **References**
CPS-0022/README.md:96:## Open Questions
We should first confirm that these titles will have all words capitalised: unless I've misunderstood something.
- I also think it's fair to leave the question to you (as the validator architect) whether to standardise & validate the capitalisation of keys in the YAML header as well... personally I believe it will be even more important there, since it's more likely that parsers will have to digest that material.
good point, agreed lets keep it as
good spot, Id missed this |
|
@Ryun1 (cc @perturbing) following up on YAML keywords for |
Also let's consider using the concise I've modified my suggestion here so we can see how it would look: #1140 (comment) - cc @Cerkoryn |
|
@rphair it is nearly done 💪 one final query CPS, Title, Category, Status I have found it inconsistent across CPSs, CIPs and their templates |
|
that's awesome @Ryun1 ⭐ ... we rationalised this a couple years ago with CIP 1 & -1 and the templates themselves: they all run As you've seen, the documents themselves don't always confirm to this. Since YAML itself considers the ordering irrelevant we left the order arbitrary by default at the time. I certainly don't have a problem automatically standardising it now. 😎 |
|
@Ryun1 if that last commit takes care of it all (?) I can perhaps double-check it before tomorrow's meeting if ready some time today... otherwise I'll review / approve / proofread it ASAP after you confirm this later. |
Follow up PR to #1125 addressing formatting issues with existing CPSs.
CPS Validation
Validations applied to
/CPS-*/README.mdFile level validations:
yamlheader validations:DiscussionandSolutionsentries as dictionaries, to allow labelling of URLsTemplate compliance: