[DO NOT MERGE] adopt 立意 (liyi) intent spec convention#99
Draft
xen0n wants to merge 1 commit into
Draft
Conversation
56e5a47 to
805dca9
Compare
…viewable Extend AGENTS.md with 立意 workflow section covering: - Intent spec sidecar files (.liyi.jsonc) - Module-level invariants (@liyi:module) - Triage workflow for stale specs - JSON schemas for sidecar and triage reports Add .liyiignore for node_modules and generated files. Add sidecar specs with correct source spans and hashes: - generateDatabase.ts: 29 items (9 non-trivial, 20 trivial) - chipsPages.ts: 11 items (5 non-trivial, 6 trivial) - devicesPages.ts: 10 items (4 non-trivial, 6 trivial) Add module doc LIYI.md for src/node/routes documenting clean build compatibility invariant. Original prompt: ```plain check out https://github.com/loongson-community/loongfans, sync latest main branch, checkout the adopt-liyi-pattern branch, reset to main (yeah abandon the previous work) and redo the liyi bootstrap with fresh https://github.com/liyi-run/liyi binary. ``` Co-authored-by: kimi-coding/k2p5
805dca9 to
3465b3f
Compare
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
This PR proposes adopting the 立意 (Lìyì) convention for making code intent explicit, persistent, and reviewable in AI-assisted development.
What is 立意?
立意 addresses a core problem in AI-assisted development: the gap between "what the human wanted" and "what the AI produced." It makes intent:
<filename>.liyi.jsonc)Changes
AGENTS.md.liyiignoresrc/node/plugins/loongfans-data/generateDatabase.ts@liyi:requirement(data-integrity)markersrc/node/plugins/loongfans-data/generateDatabase.ts.liyi.jsoncdocs/liyi-proposal.mdBenefits for loongfans
Adoption Plan
See
docs/liyi-proposal.mdfor detailed rationale, FAQ, and workflow documentation.Resources
Note: This is a documentation/convention change. No runtime behavior is affected. The project can adopt 立意 gradually — the linter is optional for local development but can be added to CI later.