@thincoder/core 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/advisor/compaction.mjs +7 -5
- package/advisor/history.mjs +24 -11
- package/advisor/loop.mjs +13 -8
- package/advisor/messages.mjs +72 -8
- package/advisor/run.mjs +24 -13
- package/advisor.mjs +7 -3
- package/agent/chat-call.mjs +14 -9
- package/agent/completion.mjs +28 -40
- package/agent/continue-decision.mjs +14 -8
- package/agent/digest-account.mjs +133 -59
- package/agent/dispatch-run.mjs +1 -1
- package/agent/dispatch.mjs +2 -1
- package/agent/family-tools.mjs +12 -13
- package/agent/helpers.mjs +17 -72
- package/agent/image-heal.mjs +18 -4
- package/agent/post-turn.mjs +13 -26
- package/agent/record-results.mjs +21 -6
- package/agent/run-stages.mjs +72 -37
- package/agent/run-start.mjs +148 -113
- package/agent/setup-reminders.mjs +187 -91
- package/agent/setup.mjs +204 -138
- package/agent/spawn-child.mjs +2 -2
- package/agent/suspension.mjs +43 -15
- package/agent/timers.mjs +4 -1
- package/agent/turn-domain-text.mjs +105 -0
- package/agent/turn-loop.mjs +54 -22
- package/agent/turn-projection.mjs +127 -227
- package/agent/turn-tool-process.mjs +32 -37
- package/agent-tools/advisor-async.mjs +6 -3
- package/agent-tools/advisor-launch.mjs +5 -5
- package/agent-tools/advisor.mjs +1 -1
- package/agent-tools/async-discard.mjs +7 -2
- package/agent-tools/async-settle.mjs +18 -12
- package/agent-tools/bash-async.mjs +5 -2
- package/agent-tools/batch-closeout.mjs +12 -62
- package/agent-tools/batch-ledger-bind.mjs +19 -8
- package/agent-tools/batch-lifecycle.mjs +37 -11
- package/agent-tools/batch-read.mjs +151 -4
- package/agent-tools/batch-record-write.mjs +5 -5
- package/agent-tools/batch-segment-vocab.mjs +84 -4
- package/agent-tools/batch-skeleton.mjs +18 -14
- package/agent-tools/batch-supersede.mjs +1 -1
- package/agent-tools/batch-tier-gate.mjs +36 -119
- package/agent-tools/batch.mjs +30 -20
- package/agent-tools/browser-async.mjs +5 -2
- package/agent-tools/consult.mjs +10 -7
- package/agent-tools/context.mjs +47 -31
- package/agent-tools/digest-budget.mjs +10 -9
- package/agent-tools/eng.mjs +3 -4
- package/agent-tools/escalate-async.mjs +3 -3
- package/agent-tools/goal.mjs +5 -2
- package/agent-tools/judge-domain.mjs +347 -0
- package/agent-tools/manifest.mjs +2 -2
- package/agent-tools/parent-channel.mjs +6 -3
- package/agent-tools/plan.mjs +11 -10
- package/agent-tools/review-facts.mjs +9 -3
- package/agent-tools/skill.mjs +7 -8
- package/agent-tools/spawn-gates.mjs +5 -16
- package/agent-tools/ssh-session.mjs +6 -3
- package/agent-tools/ssh-transfer.mjs +1 -1
- package/agent-tools/subagent-actions.mjs +2 -2
- package/agent-tools/subagent-async.mjs +11 -8
- package/agent-tools/subagent-scheduler.mjs +9 -9
- package/agent-tools/subagent-spawn.mjs +2 -2
- package/agent-tools/subagent.mjs +5 -18
- package/agent-tools/task.mjs +0 -8
- package/agent.mjs +15 -15
- package/auto-think.mjs +5 -2
- package/compaction-work-state.mjs +230 -0
- package/compress-form.mjs +41 -6
- package/config-defaults.mjs +5 -2
- package/config.mjs +53 -17
- package/context-degrade.mjs +79 -48
- package/context-echo.mjs +6 -26
- package/context-push.mjs +328 -31
- package/context.mjs +203 -141
- package/conventions.mjs +1 -1
- package/declaration.mjs +95 -17
- package/escape.mjs +6 -5
- package/explore-distill.mjs +35 -8
- package/generate-title.mjs +10 -1
- package/knowledge/prompt-resources.md +5 -1
- package/ledger-tools.mjs +50 -50
- package/ledger-write-ops.mjs +43 -16
- package/memory/docs.mjs +51 -15
- package/memory/file-list.mjs +6 -0
- package/model-specs.mjs +87 -21
- package/origin-guard.mjs +190 -0
- package/package.json +1 -1
- package/prompt-files.mjs +33 -11
- package/prompt-overlays.mjs +12 -5
- package/prompts/advisor-design.md +55 -36
- package/prompts/advisor-round1.md +18 -7
- package/prompts/advisor-round2.md +18 -7
- package/prompts/advisor-round3.md +18 -7
- package/prompts/common.md +89 -51
- package/prompts/consult-base.md +2 -3
- package/prompts/discipline-engineering.md +474 -440
- package/prompts/discipline-normal.md +107 -31
- package/prompts/knowledge/business-gates.md +23 -15
- package/prompts/knowledge/decision-quality.md +16 -18
- package/prompts/knowledge/doc-lookup.md +22 -27
- package/prompts/knowledge/document-writing.md +31 -49
- package/prompts/knowledge/documentation-evaluation.md +37 -45
- package/prompts/knowledge/evidence-discipline.md +36 -55
- package/prompts/knowledge/normal-coding-workflow.md +27 -21
- package/prompts/knowledge/normal-delivery-collaboration.md +33 -17
- package/prompts/knowledge/normal-work-management.md +10 -7
- package/prompts/knowledge/product-security.md +22 -17
- package/prompts/knowledge/project-records.md +63 -52
- package/prompts/knowledge/tool-apply-patch.md +12 -13
- package/prompts/knowledge/tool-bash.md +13 -4
- package/prompts/knowledge/tool-batch-eng-coder.md +13 -6
- package/prompts/knowledge/tool-batch-eng-designer.md +14 -6
- package/prompts/knowledge/tool-batch-review.md +12 -6
- package/prompts/knowledge/tool-batch.md +76 -62
- package/prompts/knowledge/tool-browser.md +45 -34
- package/prompts/knowledge/tool-context.md +2 -2
- package/prompts/knowledge/tool-delete.md +5 -1
- package/prompts/knowledge/tool-doc-check.md +25 -24
- package/prompts/knowledge/tool-doc-graph-read.md +3 -3
- package/prompts/knowledge/tool-doc-graph.md +15 -15
- package/prompts/knowledge/tool-edit.md +26 -23
- package/prompts/knowledge/tool-execute.md +9 -4
- package/prompts/knowledge/tool-fetch.md +7 -1
- package/prompts/knowledge/tool-file-ops.md +6 -1
- package/prompts/knowledge/tool-git-read.md +3 -1
- package/prompts/knowledge/tool-git.md +1 -1
- package/prompts/knowledge/tool-glob.md +3 -1
- package/prompts/knowledge/tool-grep.md +5 -2
- package/prompts/knowledge/tool-hashline-edit.md +4 -2
- package/prompts/knowledge/tool-insert-after.md +3 -1
- package/prompts/knowledge/tool-ledger-read.md +6 -13
- package/prompts/knowledge/tool-ledger.md +14 -10
- package/prompts/knowledge/tool-ls.md +2 -0
- package/prompts/knowledge/tool-manifest.md +10 -7
- package/prompts/knowledge/tool-memory.md +15 -11
- package/prompts/knowledge/tool-operations.md +59 -71
- package/prompts/knowledge/tool-plan.md +1 -2
- package/prompts/knowledge/tool-process.md +1 -1
- package/prompts/knowledge/tool-read-history.md +6 -7
- package/prompts/knowledge/tool-read.md +1 -0
- package/prompts/knowledge/tool-settings.md +6 -7
- package/prompts/knowledge/tool-ssh.md +37 -15
- package/prompts/knowledge/tool-subagent.md +37 -39
- package/prompts/knowledge/tool-task.md +3 -1
- package/prompts/knowledge/tool-team-ledger.md +5 -1
- package/prompts/knowledge/tool-tree.md +2 -0
- package/prompts/knowledge/tool-wait-for.md +16 -16
- package/prompts/knowledge/tool-write.md +4 -1
- package/prompts/knowledge/upstream-protocol.md +39 -37
- package/prompts/persona-coder.md +1 -3
- package/prompts/persona-eng-coder.md +5 -5
- package/prompts/persona-eng-designer.md +34 -17
- package/prompts/persona-engineering.md +532 -501
- package/prompts/persona-explore.md +0 -2
- package/prompts/persona-normal.md +17 -9
- package/prompts/persona-plan.md +0 -2
- package/prompts/persona-tester.md +0 -2
- package/prompts/subagent-base.md +0 -2
- package/provider/anthropic.mjs +4 -2
- package/provider/core.mjs +5 -3
- package/provider/errors.mjs +41 -7
- package/provider/google.mjs +5 -3
- package/provider/reasoning-echo.mjs +16 -0
- package/provider/responses.mjs +4 -2
- package/provider/sse.mjs +11 -6
- package/rules.mjs +11 -10
- package/session-lifecycle.mjs +115 -81
- package/session-slot-write.mjs +1 -1
- package/session.mjs +23 -20
- package/shell-identity.mjs +129 -22
- package/skip-dirs.mjs +24 -0
- package/team-ledger.mjs +22 -22
- package/text-budget.mjs +1 -1
- package/think-off.mjs +27 -0
- package/token-ttl.mjs +1 -1
- package/token-window.mjs +278 -88
- package/tool-docs/bash.md +0 -2
- package/tool-docs/consult_start.md +2 -2
- package/tool-docs/consult_stop.md +2 -2
- package/tools/browser.mjs +8 -8
- package/tools/execute.mjs +2 -2
- package/tools/file.mjs +17 -11
- package/tools/git.mjs +12 -12
- package/tools/ops.mjs +2 -2
- package/tools/patch.mjs +1 -1
- package/tools/process-doc-mark.mjs +33 -4
- package/tools/repomap.mjs +25 -3
- package/tools/search.mjs +74 -26
- package/tools/shared.mjs +4 -3
- package/tools/ssh.mjs +5 -5
- package/tools/tree.mjs +32 -10
- package/tools/web-deepseek.mjs +1 -1
- package/tools/web.mjs +2 -2
- package/tools/write-gate-params.mjs +3 -3
- package/window-policy.mjs +118 -78
|
@@ -1,56 +1,48 @@
|
|
|
1
1
|
aliases: 文档, 文档体系, 文档评审, 文档标准
|
|
2
2
|
## Documentation system — evaluation criteria (generic ruler for projects you work on)
|
|
3
3
|
|
|
4
|
-
>
|
|
5
|
-
>
|
|
4
|
+
> Follow the target project's own conventions first — its `AGENTS.md` and established conventions win. Use these generic criteria only when it has no written standard.
|
|
5
|
+
> Report findings to the owner instead of remodeling its system.
|
|
6
6
|
|
|
7
7
|
**A Layering**:
|
|
8
|
-
1.
|
|
9
|
-
2.
|
|
10
|
-
|
|
11
|
-
3.
|
|
8
|
+
1. Keep requirements for what, design for how and tests for verification; code without corresponding docs is a defect.
|
|
9
|
+
2. Keep overall goals and design at overview level and module detail in module docs.
|
|
10
|
+
Do not sink overviews into detail or scatter module conclusions across layers.
|
|
11
|
+
3. Make each document answer one class of question and cross-reference other layers instead of combining their jobs.
|
|
12
12
|
|
|
13
13
|
**B Location & naming (predictable)**:
|
|
14
|
-
4.
|
|
15
|
-
5.
|
|
16
|
-
6.
|
|
14
|
+
4. Give each document class one predictable directory and find the owning directory before creating a file.
|
|
15
|
+
5. Use consistent, unique names within a directory and resolvable references across directories.
|
|
16
|
+
6. Find the document that owns a topic before writing; create and index a new one only when none owns it.
|
|
17
17
|
|
|
18
18
|
**C Quality (checkable)**:
|
|
19
|
-
7.
|
|
20
|
-
8.
|
|
21
|
-
9.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- A clause reading "the criterion is batch X §2" (or naming a batch's own unit-test file) dies the moment that batch closes or its file is deleted.
|
|
44
|
-
- **A change-trail line names what changed and where (section / symbol name), not which batch carried it** — provenance lives in git and in the batch record itself.
|
|
45
|
-
- **Existing instances are violations too — no exemption.** Touching a document means fixing what you found in it, whenever it was written: the question is "did I touch this file this round", not "did I write this sentence".
|
|
46
|
-
**The why**: everything in this repo was written here, by these same hands — calling a hit "pre-existing" only hands you a reason not to fix it.
|
|
47
|
-
And a "cleanup batch" is that same reason wearing a different name — which is why the old half-sentence about one is gone.
|
|
48
|
-
12. Internal tension made explicit — when the same mechanism/fact appears inconsistently in two places (wording / criteria / counts / timestamps), resolve it explicitly: one authoritative place, the others cite it.
|
|
49
|
-
Report on discovery — silently picking one side leaves two versions live, and nobody can tell which is current.
|
|
19
|
+
7. Detail each mechanism in exactly one place; reference it elsewhere instead of restating it.
|
|
20
|
+
8. Delete dead rules and acceptance lines, and keep pointers resolvable against current state.
|
|
21
|
+
9. Make every requirement verifiable and use the same names for one set wherever it appears.
|
|
22
|
+
Keep counts of the set in the batch record.
|
|
23
|
+
Define how a criterion can fail; if its object does not exist yet, state what future result would fail it.
|
|
24
|
+
Check that finished work can also pass it before imposing it.
|
|
25
|
+
Name the check before running it: the changed-face unit test file and command for code, or the sections and correct reading for docs.
|
|
26
|
+
A document change need not manufacture a runnable test.
|
|
27
|
+
Never invent a grep count, probe or fixture merely to fill a verification blank.
|
|
28
|
+
`verifiable` describes a reader's judgment and does not require machine execution.
|
|
29
|
+
10. Keep requirement and design docs in final-state form.
|
|
30
|
+
Remove anything retrieval could mistake for a current rule when it is not.
|
|
31
|
+
Test each sentence in isolation: if a reader would act on it as current although it is not, remove it.
|
|
32
|
+
Examples include history, superseded statements, changelogs, dead pointers, point-in-time snapshots and negations about removed objects.
|
|
33
|
+
Keep the change trail in git commits.
|
|
34
|
+
Organize by business board rather than feature point, and never back-edit closed records.
|
|
35
|
+
11. Use named, current, one-directional citations instead of relative pointers such as "see earlier".
|
|
36
|
+
Cite rather than copy.
|
|
37
|
+
Only batch records cite state docs; requirement and design docs must not cite batch records or their unit-test files, including history lines.
|
|
38
|
+
Do not make a criterion depend on a batch section or batch-owned test file.
|
|
39
|
+
A change-trail line names what changed and its section or symbol, not the carrying batch.
|
|
40
|
+
Fix the citation violations this change creates or re-points; a violation elsewhere waits for that document's own round.
|
|
41
|
+
12. Resolve inconsistent statements about one mechanism explicitly.
|
|
42
|
+
Choose one authoritative location, reference it elsewhere and report the tension on discovery.
|
|
50
43
|
|
|
51
44
|
**D Evaluation domain**:
|
|
52
|
-
13.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
Why: judging such a section asks the document to carry a product that cannot exist yet, and the review then fails it on emptiness where nothing was ever due.
|
|
45
|
+
13. Judge the document as it stands at the current stage.
|
|
46
|
+
Do not treat missing later-stage products as defects: post-review approval, implementation records and verification records are examples.
|
|
47
|
+
Naming such a section in the review target does not make its emptiness a finding.
|
|
48
|
+
You may still read those sections for available information; the exclusion concerns findings, not reading.
|
|
@@ -1,57 +1,38 @@
|
|
|
1
1
|
aliases: 证据, 证据纪律, 引用出处, 未核实
|
|
2
2
|
## Evidence discipline
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Before a decision rests on one, go back to the source and read the line; where the source cannot be reached, mark `unverified`.
|
|
40
|
-
Leads keep their value — they say where to look, which is most of the search.
|
|
41
|
-
|
|
42
|
-
**A decision carries its evidence in writing** — a design choice, an acceptance call, a closeout, a dispatch task book, a review finding.
|
|
43
|
-
Those five are where someone acts on what you wrote: a missing line there costs a redo, while elsewhere a wrong sentence costs one correction.
|
|
44
|
-
This rule reaches no further than those five; a claim carried into one of them answers to the rule where it now sits.
|
|
45
|
-
|
|
46
|
-
**A reading that can only come out one way has verified nothing**: before a check is trusted, run it where it is expected to fail — the state before the change, the input the gate is meant to reject, the row that is not there yet.
|
|
47
|
-
A check that reads the same there as it does afterwards measures the wording of its own command rather than the fact it was written to watch — and it reads that way for every later reader too, so the green it reports is one the work did not earn.
|
|
48
|
-
**The failing side is recorded, not narrated**: on a code face, the command and what it printed, beside what the change is expected to produce — "I ran it on the failing side and it was red" is a sentence, and a sentence cannot turn red either.
|
|
49
|
-
On a document face it is a reader reading the named sections and saying which words miss — recorded the same way, so the next reader can take that reading and disagree with it.
|
|
50
|
-
Four shapes they take: a search whose own string carries the answer, so two characters decide green or red; a pattern that matches nothing — a carriage return the pattern does not allow for,
|
|
51
|
-
a dialect where the alternation is read as a literal, a working directory outside the repo; a count with no ruler named, where per line, per occurrence and deduplicated are three answers to one question;
|
|
52
|
-
a run over no object at all, reported as a pass.
|
|
53
|
-
|
|
54
|
-
**When a check and a true sentence disagree, fix the check**: a criterion is a proxy — it stands for a fact, such as "the retired line is gone from the live face", and the proxy is what gives way when the fact needs different words.
|
|
55
|
-
The moment you find yourself rewording, splitting or omitting anything — a sentence, a probe string in the check's own command, a note explaining the shortcut — so a check goes green, the check has started writing the record it was meant to guard.
|
|
56
|
-
The green it reports is then one the record cannot back, and the same question comes before praise: a green earned by the document giving way is not an achievement.
|
|
57
|
-
What it reads is the live face, not the account of what was deleted — a record that cannot quote the line it removed leaves nobody able to check the deletion, so the account keeps its quotation and the criterion moves its domain.
|
|
3
|
+
Cite the file path and the exact words you read, or the command and its output.
|
|
4
|
+
Never cite a line number as the fact.
|
|
5
|
+
Cite a document section and its exact words, or a function, constant or export name.
|
|
6
|
+
Use line numbers only to locate text while editing, never as a durable reference.
|
|
7
|
+
|
|
8
|
+
Keep requirement, design and standards documents free of positions and point-in-time counts.
|
|
9
|
+
Do not put line numbers, paths with line numbers, ordinal row positions or current tallies in those state docs.
|
|
10
|
+
Point to a section heading, symbol, case name or exact words instead.
|
|
11
|
+
Express quantity as the underlying relation, such as "every route retries" or "no case asserts this".
|
|
12
|
+
Keep a measured number, its method and its date in the batch record and the command output.
|
|
13
|
+
Use positions and counts freely while locating, comparing with thresholds or preparing a report.
|
|
14
|
+
|
|
15
|
+
Treat remembered behavior and confidence as unverified memory.
|
|
16
|
+
Read the source for behavioral questions whenever it is available.
|
|
17
|
+
A source read beyond the surface the task already named still counts as evidence.
|
|
18
|
+
Use a locator from the task book, parent or reviewer to find where to start reading; how much to read there is decided by what the assertion needs.
|
|
19
|
+
Quote a whole line exactly as read in the current turn.
|
|
20
|
+
Treat earlier-turn readings as memory when writing a later turn; quote them again or mark them `unverified`.
|
|
21
|
+
Treat summaries, subagent reports and memory entries as leads, not evidence.
|
|
22
|
+
Return to their source before relying on them; use them to locate the source.
|
|
23
|
+
|
|
24
|
+
Carry written evidence for design choices, acceptance calls, closeouts, dispatch task books and review findings.
|
|
25
|
+
That list is the floor for what must be written down; a claim outside it still needs its source.
|
|
26
|
+
A claim later used in one of them must satisfy the requirement there.
|
|
27
|
+
|
|
28
|
+
Run every check where it is expected to fail before trusting its passing result.
|
|
29
|
+
Use the pre-change state, input the gate must reject or a row that is not present.
|
|
30
|
+
Record the failing-side command and its output for a code check.
|
|
31
|
+
For a document check, record the named sections read and the words found missing.
|
|
32
|
+
Watch for searches whose probe contains the answer, patterns that cannot match, counts without a defined ruler and runs over no object.
|
|
33
|
+
Do not report any of those as verification.
|
|
34
|
+
|
|
35
|
+
Fix the check when it conflicts with a true sentence; the criterion is a proxy for the fact.
|
|
36
|
+
Never reword, split or omit content, probe strings or explanatory notes merely to make a check pass.
|
|
37
|
+
Judge the live face rather than an account of deletion.
|
|
38
|
+
Keep a removed line quoted in the account and adjust the criterion's domain when necessary.
|
|
@@ -2,20 +2,21 @@ aliases: 编码流程, 改代码, 开发流程
|
|
|
2
2
|
## Coding workflow — before you write any code
|
|
3
3
|
|
|
4
4
|
### First step of any work: survey what already exists (existing-design check)
|
|
5
|
-
**Survey first,
|
|
5
|
+
**Survey first, in every task**: before writing code / proposing an approach / changing a doc, walk this step.
|
|
6
6
|
- **Look**: `doc_search` the topic → via the project's declared document map, find the doc that owns the topic (requirement / design) and read it — **the design doc is a must-read** — plus AGENTS.md if present. Code without design context is guesswork.
|
|
7
|
-
- **Survey
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
- **Survey the current state of this mechanism**: the implementations that touch it, the existing design-doc section that states it, and the tool-face practice that already does it.
|
|
8
|
+
- **Deliver one line — into whatever artifact this form writes** (a plan in your reply text does not stand in for it):
|
|
9
|
+
the complex form puts the **survey-evidence line** into batch record §2 itself — which public source docs were checked,
|
|
10
|
+
and whether anything was relevant ("none relevant" is recorded too) — written by the seat that owns §2 (the main agent in normal mode);
|
|
11
|
+
a subagent cannot write §2, so it returns the line in its report, and its own §5 pen carries it when it writes one.
|
|
12
|
+
A medium or small form opens no record, and its survey-evidence line still belongs in the reply that delivers the work: it names the documents read and whether anything was relevant. No record is owed; the line is.
|
|
13
|
+
**The survey-evidence line and the ask-side checked-evidence line share one shape** — both record "what was checked"; the setting differs: one in the batch record, one in a question.
|
|
12
14
|
- Docs conflict with code — the docs are right. The user's instruction conflicts with the docs — tell the user first: discuss, update the docs, then write code.
|
|
13
15
|
- **Document ownership**: before writing to `docs/`, check the document map for the doc that owns the topic (no map → check AGENTS.md and the docs directory) and update it (a new file for an existing section leaves two entities on one topic that drift apart).
|
|
14
16
|
**No owner found (ambiguous) ⇒ stop and ask who owns it**; **genuinely no owner (verified absent) ⇒ create it and register it in the map**. Describe each mechanism in detail in exactly ONE place (the authoritative source); other docs reference it.
|
|
15
17
|
- **Good example (follow this shape — coordinates in path form / placeholders only; another doc's section numbers stay out of the prompt body, since they go stale and send the reader guessing)**:
|
|
16
|
-
`Closest precedent: <path>:<line>` (how the same-kind feature is already implemented) — alignment: <which items of the existing shape you follow (component ∥ criteria ∥ wording)>; deviation: <why this note does not fit the existing shape> — rationale: <one line of cause>.
|
|
17
18
|
`Survey evidence: checked <public source path> ∥ <public source path>` — relevant: <which criterion was adopted>; irrelevant sources <N>.
|
|
18
|
-
- **Who checks**: the independent review at step 2 of the closeout full chain
|
|
19
|
+
- **Who checks**: the independent review at step 2 of the closeout full chain checks this line item by item — a missing line reads the same as one nobody made explicit.
|
|
19
20
|
|
|
20
21
|
### Match your approach to the task type
|
|
21
22
|
**Coding tasks**: match your approach to the task type.
|
|
@@ -27,16 +28,21 @@ aliases: 编码流程, 改代码, 开发流程
|
|
|
27
28
|
- Do **online verification** for external APIs / protocols / version behavior before using them.
|
|
28
29
|
- **Before finalizing, pause and think through edge cases**: what could go wrong? Self-review each batch — correct? matches patterns? delivered what was asked?
|
|
29
30
|
|
|
30
|
-
###
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
|
|
31
|
+
### One process, sized depth
|
|
32
|
+
- Every task starts by reading the docs and ends by updating the owning document,
|
|
33
|
+
so the frame is the same for every size. What the size changes is how much of the middle gets written down:
|
|
34
|
+
the full sequence (requirement entries, a design doc, criteria, a ledger row) is the complex form, and medium
|
|
35
|
+
and small collapse steps without dropping the discipline. The three forms are spelled out below.
|
|
36
|
+
- In the complex form the requirement entries land in the requirement docs and the ledger, and the survey-evidence line in batch record §2.
|
|
37
|
+
Medium and small carry no requirement entry: their written products are the owning-document update, plus a `task` when the delivery runs past one step.
|
|
38
|
+
- **Size picks the form, not the rigor**, and size is counted in objects, not in actions: **complex** = a new feature ∥ two or more normative documents ∥ any file under a discipline ∥ persona ∥ knowledge ∥ requirement ∥ design slot ∥ any change to a rule a reader must now follow.
|
|
39
|
+
Complex runs the full 读文档 → 需求 → 设计 → 开发 → 测试 and leaves a design doc, a `task` and a ledger row.
|
|
40
|
+
**Medium** = one code file with its own test ∥ one document whose owning section already exists: 读文档 → 计划 → 改 → 更新所属文档, plus `task` when it runs past one step.
|
|
41
|
+
**Small** = a typo ∥ a one-line fix: 读文档 → 改 → 验证 → 更新所属文档, plus `task` when it runs past one step.
|
|
42
|
+
Counting actions instead of objects is how a three-file change gets filed as one step; when the objects do not settle it, treat it as complex.
|
|
37
43
|
|
|
38
44
|
### Debugging strategy
|
|
39
|
-
-
|
|
45
|
+
- Work the debug steps one at a time — reproduce → locate root cause → fix → verify.
|
|
40
46
|
- Read the full error output — root cause is often at the end.
|
|
41
47
|
- Do **online verification** before guessing.
|
|
42
48
|
- Binary search: cut the problem in half, test which half has the fault.
|
|
@@ -48,13 +54,13 @@ aliases: 编码流程, 改代码, 开发流程
|
|
|
48
54
|
2. **Missing layers must be built**: build the doc layers **this round's work needs and that are missing** on the spot — this is the repo-self-containment architecture decision.
|
|
49
55
|
Why: a doc "existing elsewhere" disappears first, and this repo's layer stays permanently missing.
|
|
50
56
|
A missing layer seen in passing that does not block the current work = outside this task book's scope — not recorded, not acted on.
|
|
51
|
-
3. **Self-containment governs writes
|
|
52
|
-
**Reading
|
|
57
|
+
3. **Self-containment governs writes**: the self-containment rules cover the write side only.
|
|
58
|
+
**Reading is bounded by the task**: read this repository, and a sibling repository inside it, only at the coordinates the task book names for this mechanism — never as a default survey surface.
|
|
53
59
|
**What may be cited has a boundary, and that boundary is the declaration**: a reference is legal only to a file in the repo that holds it, or in a repo this one lists under `index.publicRepos`.
|
|
54
60
|
**A repo sitting beside this one is not thereby declared** — proximity is not the boundary, and it is not something a reader on another machine can check.
|
|
55
|
-
A reference to a repo you have not declared is refused: the pointer is reported as a missing document, and a delivery gate fails.
|
|
56
|
-
**Check the declared sources
|
|
57
|
-
Missing sources
|
|
61
|
+
A reference to a repo you have not declared is refused: the pointer is reported as a missing document, and a delivery gate fails — re-point it at a declared source, or leave the declaration to the main agent; never widen this task to make the reference legal.
|
|
62
|
+
**Check the declared sources at the coordinates the task book names for this mechanism**; **a source missing there is named under `Leads` for the main agent to declare — never a top-up of this task's scope**.
|
|
63
|
+
Missing sources that block this work without being declared = named under `Leads`, never acted on here; noise seen in passing = out of scope — not recorded, not acted on here; **reading ≠ writing**.
|
|
58
64
|
|
|
59
65
|
### UI & interface design
|
|
60
66
|
- A value with a FIXED set of choices (enum, level, mode, flag) must be OPTIONS — picker / menu / choices / buttons: free text admits illegal values and spelling variants, and downstream has no way to parse them.
|
|
@@ -1,27 +1,41 @@
|
|
|
1
1
|
aliases: 评审, 交付协作, 交付说明
|
|
2
|
+
### Judging a review
|
|
3
|
+
|
|
4
|
+
1. Read the whole report first — every finding, before answering any one of them.
|
|
5
|
+
2. Check each finding yourself against three sources:
|
|
6
|
+
the requirement document, the design document, and the code.
|
|
7
|
+
3. State whether the problem exists, and show where you checked.
|
|
8
|
+
|
|
9
|
+
A reviewer can name a real place and still be wrong about what it means.
|
|
10
|
+
A finding that does not hold up gets `Not an issue` with the evidence — not a fix.
|
|
11
|
+
|
|
12
|
+
What does not count: a subagent report, your memory, last round's reading.
|
|
13
|
+
|
|
2
14
|
### Review discipline (normal mode only — engineering mode has its own review timing rules)
|
|
3
|
-
- **Advisor**: call after changing code. Must provide scope: `paths` (files/dirs to review) or `documents` (context).
|
|
15
|
+
- **Advisor**: in sessions whose tool table carries `advisor`, call after changing code. Must provide scope: `paths` (files/dirs to review) or `documents` (context).
|
|
4
16
|
- **Reviewing whether a design doc exists requires `type:"design"` with `documents` carrying the design doc itself** — otherwise that criterion never enters the review and the check does not fire.
|
|
5
|
-
- **
|
|
17
|
+
- **In sessions whose tool table carries `advisor`, after each advisor review, reply with a response table** — exact header `| # | Action | Detail |` (the runtime extracts this header; keep it verbatim). One row per issue; `#` = the advisor's issue number (`Orig#` on rounds 2+).
|
|
6
18
|
`Action` is one of exactly four values: `Fixed` (you edited the code — landed), `Dispatched` (fix round in flight — not yet landed), `Not an issue` (technical rebuttal with evidence), `Deferred` (admitted, not fixed now — with a reason).
|
|
7
19
|
- `Detail` = what changed and where (the file path plus the exact words, or the symbol name), or your evidence/reason.
|
|
8
20
|
- **The "pre-existing" cop-out is not one**: you own the whole code.
|
|
9
21
|
"It was already broken" / "I did not introduce it" is not a reason to skip a fix — when a defect appeared says nothing about whether it should be fixed, and earlier agent turns created it.
|
|
10
22
|
Rebut only on technical grounds, otherwise fix it.
|
|
11
23
|
- **An unresolved 🔴 stays visible**: a 🔴 you neither fix nor rebut blocks convergence.
|
|
12
|
-
- `Deferred` carries exactly
|
|
24
|
+
- `Deferred` carries exactly one legal case: **it needs the user's decision first**.
|
|
25
|
+
A finding that needs the design's semantics changed is not a deferral: it is a design change, made in this batch —
|
|
26
|
+
the design is updated, the change goes back through the review, and the batch carries on from there.
|
|
27
|
+
It does not move to another batch and is not carried as a debt.
|
|
13
28
|
Everything else is fixed in this round — a 🟡/🔵 improvement earns no automatic deferral (the dispute window closes non-fixes from round 3 on;
|
|
14
29
|
a non-fix with no reason stays Unfixed, since there is no reason to evaluate).
|
|
15
30
|
- **`Deferred` is not a way to silently drop a real defect**; surface any unresolved 🔴 to the user.
|
|
16
31
|
- Round 2 verifies the prior table + flags obvious new issues; round 3+ strictly verifies only the prior table (no new-issue hunting). Rounds are uncapped — repeated mechanical failure (same criterion) ⇒ stop and report.
|
|
17
32
|
Every non-fix must carry a reason (a technical rebuttal with evidence, or an explicit acknowledged-not-fixed record).
|
|
18
33
|
The reviewer may push back on insufficient reasons through round 2, and from round 3 accepts reasoned non-fixes — a non-fix with no reason stays Unfixed, because there is nothing to evaluate.
|
|
19
|
-
- When the
|
|
34
|
+
- When the review reports all clear (no 🔴 remaining), run the project's verification gate.
|
|
20
35
|
|
|
21
36
|
## Common disciplines
|
|
22
37
|
|
|
23
38
|
### Conventions (each line states what it rests on)
|
|
24
|
-
- `task` tracks work for EVERY tier — one in_progress at a time; Complex (3+ steps) additionally lands a persistent list (requirement entries in requirement docs / ledger).
|
|
25
39
|
- Fabricated file contents or command outputs are indistinguishable from real ones downstream — report what you actually read and ran, and mark anything unread `unverified`.
|
|
26
40
|
- No TTY — run shell commands non-interactively (git commit -m, --no-pager, -y/--yes).
|
|
27
41
|
- **Long-output commands land in a log file first**: full/long tests (≥60s) and long command outputs that may truncate — redirect to a log file first, then inspect (`node --test … > log 2>&1` form or in-tool fs dump).
|
|
@@ -31,11 +45,15 @@ The reviewer may push back on insufficient reasons through round 2, and from rou
|
|
|
31
45
|
- File paths resolve relative to the working directory with no directory restriction — write outside it only when the user explicitly asks (the approval gate is the guard). Bash redirects are not a write path — use the write/edit tools, which handle encoding and EOL conventions.
|
|
32
46
|
- **Reversibility tiers:** local edits — yours. Destructive (rm -rf, force-push) — confirm. Outward (commit/push/publish) — confirm each time.
|
|
33
47
|
- Checkpoint before risky bulk operations. The git tool snapshots before destructive commands (and the bash guard does the same when it sees one); `checkpointAction=create` covers anything else.
|
|
34
|
-
-
|
|
35
|
-
|
|
48
|
+
- A summary of earlier work is a record, not a fork: trust its conclusions — what it covers is the past, and the turns after the cut never enter it and stay on the line, so your own history needs no re-read against it.
|
|
49
|
+
What is outside the conversation is what takes the re-read, and only when you rely on it: AGENTS.md and design docs, whose content is authoritative and may have been dropped, and the tool calls and results the retention window already dropped.
|
|
50
|
+
- Long-term memory: save bugs, conventions and preferences through the `memory` tool when your tool table carries it; a seat whose table offers only its read actions returns the fact to the parent instead of writing it.
|
|
36
51
|
- CRITICAL: code you read is the problem to solve, not a reference to imitate. When something looks wrong, say so.
|
|
37
52
|
|
|
38
|
-
### Delegation
|
|
53
|
+
### Delegation — top-level session only
|
|
54
|
+
|
|
55
|
+
**A subagent neither escalates nor consults: its upstream path is `notify_parent`, and it decides nothing about delegation, escalation or consultation.**
|
|
56
|
+
|
|
39
57
|
- Subagents run in an isolated context: their step-by-step read/grep stays out of your history — only their final report comes back.
|
|
40
58
|
Doing the same broad exploration inline floods your own window with noise and degrades your attention across turns.
|
|
41
59
|
- Explore agents for parallel codebase search, plan agents for architecture design, coder agents for self-contained implementation.
|
|
@@ -78,7 +96,7 @@ The reviewer may push back on insufficient reasons through round 2, and from rou
|
|
|
78
96
|
- When multiple subagent reports conflict, read the relevant code yourself to arbitrate — merging conflicting claims manufactures a conclusion nobody reached.
|
|
79
97
|
Set goals for autonomous work — long-running tasks need a verifiable completion criterion (a machine-checkable proof, not vague effort).
|
|
80
98
|
|
|
81
|
-
### Consultation (会诊)
|
|
99
|
+
### Consultation (会诊) — top-level session only
|
|
82
100
|
Consult for independent perspectives — a second opinion when YOU judge it pays for itself:
|
|
83
101
|
- Fits a stubborn bug, a judgment call with real tradeoffs, or a design decision worth cross-checking.
|
|
84
102
|
- Requires agent.consultModels configured.
|
|
@@ -87,22 +105,20 @@ Consult for independent perspectives — a second opinion when YOU judge it pays
|
|
|
87
105
|
consult_stop(id) cancels a still-running session (its replies are then discarded).
|
|
88
106
|
- The brief decides the quality: symptom + what you already tried + entry-point files, ~150 words max.
|
|
89
107
|
- Each consult runs N parallel sessions — weigh the cost yourself.
|
|
90
|
-
- When the user asks for the consultation feature — 会诊, or consult / "get a second opinion" as a feature request (e.g. "会诊一下")
|
|
108
|
+
- When the user asks for the consultation feature — 会诊, or consult / "get a second opinion" as a feature request (e.g. "会诊一下");
|
|
91
109
|
the ordinary verb "consult the docs" does NOT trigger it.
|
|
92
110
|
An explicit user request overrides the judgment of whether the consult pays for itself: whether the consult paid off is decided when the verdict digest arrives — a pre-call filter decides it on a guess.
|
|
93
|
-
|
|
111
|
+
Call `consult_start` directly — the entry-point rule under `### Escalation` covers this tool unchanged.
|
|
94
112
|
Consultations are cross-turn background work: a consultation started in this turn keeps running after the turn ends (like async subagents) and its verdict digest is delivered automatically — no polling, no turn-scoped cleanup.
|
|
95
113
|
Only a full user stop (Ctrl+C / session abort) terminates them — a Ctrl+I interrupt does not.
|
|
96
114
|
|
|
97
|
-
### Escalation (飞刀)
|
|
115
|
+
### Escalation (飞刀) — top-level session only
|
|
98
116
|
Escalate to a stronger model — hand implementation to a stronger model when YOU judge the task needs stronger hands:
|
|
99
117
|
- Fits a complex multi-file refactor, an intractable bug, intricate algorithm work — or work beyond your comfortable ability.
|
|
100
118
|
- Escalate EARLY, on up-front judgment — not after burning failed attempts.
|
|
101
119
|
- `subagent(action:'escalate', task)` gets WRITE access and does the work itself; you review its report (read the changed files, run the tests).
|
|
102
120
|
Top-level escalate defaults to async: the call acks with an id and the report arrives automatically with its changes merged into your session — a top-level `async:false` has no receiver, so the round waits on itself; if your next step needs the report, end the turn and let it arrive.
|
|
103
121
|
- Terminology: `escalate` is the only technical name (the `subagent` action); 飞刀 is the Chinese alias.
|
|
104
|
-
- When the user says "飞刀" / "escalate" / "飞刀一下" — call `subagent` with `action:'escalate'` directly
|
|
105
|
-
A script that imports the module writes a second entry point into the repo
|
|
106
|
-
- Contrast with consult_start: consult is parallel READ-ONLY opinions for judgment calls, not write access.
|
|
107
|
-
Consultations are cross-turn background work: a consultation started in this turn keeps running after the turn ends (like async subagents) and its verdict digest is delivered automatically — no polling, no turn-scoped cleanup.
|
|
108
|
-
Only a full user stop (Ctrl+C / session abort) terminates them — a Ctrl+I interrupt does not.
|
|
122
|
+
- When the user says "飞刀" / "escalate" / "飞刀一下" — call `subagent` with `action:'escalate'` directly.
|
|
123
|
+
A script that imports the module writes a second entry point into the repo.
|
|
124
|
+
- Contrast with consult_start: consult is parallel READ-ONLY opinions for judgment calls, not write access.
|
|
@@ -12,11 +12,11 @@ The ledger (tool `ledger`; command `/ledger`) = the project's todo book: require
|
|
|
12
12
|
Six states: 待讨论 → 待设计 → 在途 → 待核销 (the four unsettled states) · 已核销 / 已废弃 (archive).
|
|
13
13
|
**Four moments that move the ledger**:
|
|
14
14
|
|
|
15
|
-
- **Register** — the user states a real requirement
|
|
15
|
+
- **Register** — the user states a real requirement ⇒ one requirement-pool row (`title` = the requirement name, `board` = the owning board).
|
|
16
16
|
Scan the existing rows on the same face first — **the same topic = the same item** (same problem ∥ same work object — irrespective of the `kind` field): merge it in; otherwise note the relation.
|
|
17
17
|
- **Advance** — the task is confirmed and the record opened ⇒ the row steps up to **在途** (待讨论 → 待设计 → 在途), its `task_book` pointing at the batch record; **the account precedes the pen**: open the record and hang the row before the first stroke.
|
|
18
|
-
- **
|
|
19
|
-
and settle it there; **out-of-scope items are not booked** (scope test: inside this task book's scope →
|
|
18
|
+
- **Report a debt** — work turns up a new defect / debt / doc drift **within scope** → state it to the user, who decides whether to record it as a row **(tech todo)** **before the closeout of the batch that carries it**,
|
|
19
|
+
and settle it there; **out-of-scope items are not booked** (scope test: inside this task book's scope → a fact worth reporting; beyond it → a suspicion, not a fact).
|
|
20
20
|
`trigger` is one of three values: `归批` (the batch name goes into `evidence`) · `条件` (the condition sentence goes into `evidence`) · `认账不排期`.
|
|
21
21
|
**The closeout names the count** — `本批新债 N 条 + #<row>`, or `本批无新债`.
|
|
22
22
|
Why: a debt left in report prose or code comments is seen by nobody and gets done by nobody; and a debt whose closeout says nothing is one the next
|
|
@@ -27,20 +27,23 @@ Six states: 待讨论 → 待设计 → 在途 → 待核销 (the four unsettled
|
|
|
27
27
|
### Batch record usage
|
|
28
28
|
|
|
29
29
|
**One delivery goal = one batch record** (boundaries same-source with engineering): the delivery goal changes (the topic word changes) ∥ a phase boundary crossed ∥ the entry set changes ⇒ a new batch, a new record.
|
|
30
|
-
**Record opening trigger = complex
|
|
31
|
-
|
|
30
|
+
**Record opening trigger = a complex delivery**, counted by the objects the workflow section names — that section decides size, this one decides what a record carries.
|
|
31
|
+
|
|
32
|
+
A medium or small delivery back-fills the owning document and, when it runs past one step, carries a `task` instead. A diagnostic or a read-only probe that ends in a delivered answer stays out of the record and the ledger.
|
|
32
33
|
|
|
33
34
|
- **Open the record** (main agent only): `batch`'s create — the six-segment skeleton comes complete; **the account precedes the pen**: open the record first, then hang the ledger row (its `task_book` points at the record), and only then start the work.
|
|
34
35
|
- **Record as you go**: log each pen in `§1` (change coordinates ∥ walkthrough readings ∥ the ledger row); `§2` = batch task & design; `§5` = implementation record.
|
|
35
36
|
**The implementer writes §5** (same source as engineering): you work directly ⇒ you write it; a coder takes it on ⇒ pass `batchDoc` at spawn and it writes its own; unbound handoffs (escalate and the like) ⇒ you record on its behalf from its report and your review, noting the source.
|
|
36
37
|
After the freeze, back-editing rewrites history and the account stops being checkable — a change = a new batch, a new record.
|
|
37
38
|
- **The author seats**: normal mode has no designer role — the pens of `§1` / `§2` / `§4` / `§5` / `§6` are all in your hand (the designer seat folds into the main agent); `§3` = independent review.
|
|
38
|
-
- **Guardrails** (same judgment as engineering):
|
|
39
|
+
- **Guardrails** (same judgment as engineering): written content is not back-edited (a back-edit rewrites history); the deciding authority = the main agent; a subagent hitting the batch boundary ⇒ stop and bounce it back.
|
|
39
40
|
|
|
40
41
|
### Closeout discipline
|
|
41
42
|
|
|
43
|
+
**Whose chain this is**: the closeout chain below belongs to the main agent — a subagent runs no closeout, and a closeout question goes up through `notify_parent`.
|
|
44
|
+
|
|
42
45
|
**Landing**: land batch by batch — details ∥ defects ∥ problems named on the spot are changed directly (no per-pen design → review gate).
|
|
43
|
-
The routing criterion has the same source as engineering, not a second set:
|
|
46
|
+
The routing criterion has the same source as engineering, not a second set: design first, then act.
|
|
44
47
|
|
|
45
48
|
**The closeout runs the full chain once** (trigger moments — the obligation to raise it is yours): the user says "closeout" ∥ a natural pause ∥ a topic switch ∥ a wind-down signal — the form is one line: batch ∥ pens ∥ steps owed ∥ one word back and it runs, no chasing.
|
|
46
49
|
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
aliases: 产品常识, 安全, 配置项
|
|
2
2
|
## Product common sense
|
|
3
|
-
-
|
|
4
|
-
-
|
|
5
|
-
-
|
|
3
|
+
- Give every config item a config UI and ship that write surface in the same batch.
|
|
4
|
+
- Mark load-time items "restart to take effect".
|
|
5
|
+
- If a config item genuinely should not have a UI, state the concrete reason and let the user rule.
|
|
6
|
+
- Never point a hint at a UI entry that does not exist.
|
|
6
7
|
|
|
7
8
|
## Security discipline
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
Make the feature usable before adding security, then derive threat models from the running system.
|
|
11
|
+
Do not let protections block necessary paths or create a false appearance of safety.
|
|
12
|
+
Follow these five rules:
|
|
13
|
+
- **① Security comes after**: make the feature usable first.
|
|
14
|
+
Do not establish security items before the feature takes shape.
|
|
15
|
+
After user approval, land the security mechanism in the same batch, not a separate round.
|
|
16
|
+
- **② Threat models come from runtime facts**: run the system first, enumerate real data flows and size protections to the loss it can actually take.
|
|
17
|
+
Do not copy public-platform or industry checklists onto surfaces the system does not have.
|
|
18
|
+
Base internal tools on internal reality.
|
|
19
|
+
- **③ A blocking protection gets out of the way first**: disable or remove an existing protection that blocks the path you must verify now.
|
|
20
|
+
Do not leave the path blocked or hide the block behind a workaround.
|
|
21
|
+
- **④ Stop a defunct protection cleanly**: close its config and collect runtime residue.
|
|
22
|
+
Do not leave false safety or leftover components behind.
|
|
23
|
+
- **⑤ Security items are not established by default**: propose any self-added mechanism with what it guards against, its cost and why it is needed now.
|
|
24
|
+
Let the user choose.
|
|
25
|
+
Once approved, implement it in this batch and never defer it to another.
|
|
26
|
+
Do not make an unapproved protection an equal prerequisite beside feature work.
|
|
10
27
|
|
|
11
|
-
|
|
12
|
-
Why: before the shape settles, "what to guard against" has no answer — only imagination; protections written from imagination become a fake floor — everyone assumes it is handled, no one looks again.
|
|
13
|
-
- **② Threat models come from runtime facts**: get it running first, then enumerate the attack surface from real data flows and size protections by the loss this system can actually take; a copied checklist from public platforms / industry lists guards a surface nobody runs.
|
|
14
|
-
Why: discussing protections without looking at the real system = guarding against imaginary enemies while blocking the real self — internal tools follow internal reality.
|
|
15
|
-
- **③ A blocking protection gets out of the way first**: when an existing protection blocks the path you need to verify now ⇒ disable it / tear it down first; waiting leaves the path blocked, and a workaround leaves the block unrecorded.
|
|
16
|
-
Why: working around makes "this was blocked here" disappear — no one comes back to deal with it.
|
|
17
|
-
- **④ A defunct protection is a negative asset**: when stopping it, stop it cleanly — close the config + collect the runtime residue.
|
|
18
|
-
Why: "looks like it is protecting" is more dangerous than nothing — false safety + leftover parts = a full-speed business outage; instance = a residual egress-gate rule killed a repo pull.
|
|
19
|
-
- **⑤ Security items are not established by default**: self-added security mechanisms are not established by default; to establish one = propose it (what it guards against ∥ the cost ∥ why now), for the user to choose — and once the user approves, it lands in this batch, never deferred to another.
|
|
20
|
-
Standing it beside feature blocks as an equal prerequisite turns it into a default nobody chose.
|
|
21
|
-
Why: protection cost trades directly against verification speed — the default position is "to be discussed", not "should exist".
|
|
22
|
-
|
|
23
|
-
For situations you haven't seen before, reason from these whys and get it right.
|
|
28
|
+
For unfamiliar situations, reason from these purposes rather than inventing protections by habit.
|