project-tiny-context-harness 0.8.4 → 0.8.6
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/LICENSE +21 -21
- package/README.md +394 -363
- package/assets/README.md +570 -514
- package/assets/README.zh-CN.md +331 -300
- package/assets/agents/.gitkeep +1 -1
- package/assets/agents/AGENTS_CORE.md +45 -25
- package/assets/context_templates/architecture.md +26 -25
- package/assets/context_templates/area.md +32 -31
- package/assets/context_templates/context.toml +30 -24
- package/assets/context_templates/deployment.md +35 -35
- package/assets/context_templates/global.md +57 -57
- package/assets/context_templates/product-surface-contract.md +70 -70
- package/assets/context_templates/screen-contract.md +189 -189
- package/assets/context_templates/verification.md +31 -30
- package/assets/github/.gitkeep +1 -1
- package/assets/github/harness.yml +39 -39
- package/assets/make/.gitkeep +1 -1
- package/assets/make/ty-context.mk +48 -48
- package/assets/skills/context_development_engineer/SKILL.md +155 -122
- package/assets/skills/context_full_project_export/SKILL.md +28 -28
- package/assets/skills/context_harness_upgrade/SKILL.md +60 -60
- package/assets/skills/context_product_plan/SKILL.md +99 -79
- package/assets/skills/context_surface_contract/SKILL.md +191 -191
- package/assets/skills/context_uiux_design/SKILL.md +171 -171
- package/assets/skills/design-resource-authoring/SKILL.md +86 -84
- package/assets/skills/design-resource-authoring/references/downstream-handoff.md +138 -123
- package/assets/skills/design-resource-authoring/references/open-design-provider.md +132 -127
- package/assets/skills/design-resource-authoring/references/resource-selection.md +181 -154
- package/assets/skills/design-system-authoring/SKILL.md +57 -57
- package/assets/skills/design-system-authoring/agents/openai.yaml +6 -6
- package/assets/skills/design-system-authoring/references/authority-adoption.md +48 -48
- package/assets/skills/design-system-authoring/references/open-design-design-system-provider.md +110 -110
- package/assets/skills/long-task-workflow/SKILL.md +98 -92
- package/assets/skills/long-task-workflow/agents/openai.yaml +3 -1
- package/assets/skills/long-task-workflow/references/authority-lifecycle.md +72 -72
- package/assets/skills/long-task-workflow/references/contract-authoring.md +122 -101
- package/assets/skills/long-task-workflow/references/evidence-design.md +82 -61
- package/assets/skills/long-task-workflow/references/source-authoring.md +109 -90
- package/assets/skills/source-plan-authoring/SKILL.md +14 -14
- package/assets/tools/validate_context.py +442 -442
- package/dist/commands/long-task-authoring.js +27 -2
- package/dist/lib/context-default-footprint.js +2 -0
- package/dist/lib/context-manifest.js +6 -0
- package/dist/lib/context-templates.js +1 -1
- package/dist/lib/design-resource-fact-enums.d.ts +20 -0
- package/dist/lib/design-resource-fact-enums.js +170 -0
- package/dist/lib/design-resource-fact-locator-extractors.d.ts +8 -0
- package/dist/lib/design-resource-fact-locator-extractors.js +108 -0
- package/dist/lib/design-resource-fact-locator-resolver.d.ts +3 -0
- package/dist/lib/design-resource-fact-locator-resolver.js +112 -0
- package/dist/lib/design-resource-fact-locator-validation.d.ts +5 -0
- package/dist/lib/design-resource-fact-locator-validation.js +16 -0
- package/dist/lib/design-resource-fact-manifest-catalog.d.ts +4 -0
- package/dist/lib/design-resource-fact-manifest-catalog.js +249 -0
- package/dist/lib/design-resource-fact-manifest-model.d.ts +91 -0
- package/dist/lib/design-resource-fact-manifest-model.js +21 -0
- package/dist/lib/design-resource-fact-manifest-shape-axes.d.ts +6 -0
- package/dist/lib/design-resource-fact-manifest-shape-axes.js +159 -0
- package/dist/lib/design-resource-fact-manifest-shape-evidence.d.ts +4 -0
- package/dist/lib/design-resource-fact-manifest-shape-evidence.js +59 -0
- package/dist/lib/design-resource-fact-manifest-shape-facts.d.ts +4 -0
- package/dist/lib/design-resource-fact-manifest-shape-facts.js +109 -0
- package/dist/lib/design-resource-fact-manifest-shape-inspector.d.ts +5 -0
- package/dist/lib/design-resource-fact-manifest-shape-inspector.js +144 -0
- package/dist/lib/design-resource-fact-manifest-shape.d.ts +7 -0
- package/dist/lib/design-resource-fact-manifest-shape.js +75 -0
- package/dist/lib/design-resource-fact-manifest-types.d.ts +3 -0
- package/dist/lib/design-resource-fact-manifest-types.js +3 -0
- package/dist/lib/design-resource-fact-manifest-universe.d.ts +5 -0
- package/dist/lib/design-resource-fact-manifest-universe.js +50 -0
- package/dist/lib/design-resource-fact-manifest-validation.d.ts +3 -0
- package/dist/lib/design-resource-fact-manifest-validation.js +106 -0
- package/dist/lib/design-resource-fact-policy.d.ts +18 -0
- package/dist/lib/design-resource-fact-policy.js +72 -1
- package/dist/lib/design-resource-fact-property-methods.d.ts +3 -0
- package/dist/lib/design-resource-fact-property-methods.js +158 -0
- package/dist/lib/design-resource-fact-shape-primitives.d.ts +3 -0
- package/dist/lib/design-resource-fact-shape-primitives.js +18 -0
- package/dist/lib/design-resource-fact-types.d.ts +164 -0
- package/dist/lib/design-resource-fact-types.js +1 -0
- package/dist/lib/design-resource-fact-universe-assets.d.ts +4 -0
- package/dist/lib/design-resource-fact-universe-assets.js +71 -0
- package/dist/lib/design-resource-fact-universe-catalog.d.ts +4 -0
- package/dist/lib/design-resource-fact-universe-catalog.js +151 -0
- package/dist/lib/design-resource-fact-universe-conditions.d.ts +2 -0
- package/dist/lib/design-resource-fact-universe-conditions.js +92 -0
- package/dist/lib/design-resource-fact-universe-facts.d.ts +4 -0
- package/dist/lib/design-resource-fact-universe-facts.js +108 -0
- package/dist/lib/design-resource-fact-universe-helpers.d.ts +30 -0
- package/dist/lib/design-resource-fact-universe-helpers.js +167 -0
- package/dist/lib/design-resource-fact-universe-inspector.d.ts +7 -0
- package/dist/lib/design-resource-fact-universe-inspector.js +119 -0
- package/dist/lib/design-resource-fact-universe-proof.d.ts +4 -0
- package/dist/lib/design-resource-fact-universe-proof.js +113 -0
- package/dist/lib/design-resource-fact-universe-subjects.d.ts +5 -0
- package/dist/lib/design-resource-fact-universe-subjects.js +97 -0
- package/dist/lib/design-resource-fact-universe-variations.d.ts +2 -0
- package/dist/lib/design-resource-fact-universe-variations.js +75 -0
- package/dist/lib/design-resource-fact-value-validation.d.ts +2 -0
- package/dist/lib/design-resource-fact-value-validation.js +80 -0
- package/dist/lib/design-resource-handoff-file-primitives.js +2 -0
- package/dist/lib/design-resource-handoff-file-validation.js +13 -100
- package/dist/lib/design-resource-handoff-policy.d.ts +1 -0
- package/dist/lib/design-resource-handoff-policy.js +118 -11
- package/dist/lib/design-resource-handoff-shape-evidence.js +46 -3
- package/dist/lib/design-resource-handoff-shape-primitives.d.ts +5 -0
- package/dist/lib/design-resource-handoff-shape-primitives.js +28 -0
- package/dist/lib/design-resource-handoff-shape-structure.js +143 -22
- package/dist/lib/design-resource-handoff-shape.js +25 -0
- package/dist/lib/design-resource-handoff-types.d.ts +97 -21
- package/dist/lib/design-resource-handoff-types.js +22 -0
- package/dist/lib/design-resource-handoff-validation-coverage.d.ts +1 -1
- package/dist/lib/design-resource-handoff-validation-coverage.js +145 -118
- package/dist/lib/design-resource-handoff-validation-fact-cells.d.ts +2 -0
- package/dist/lib/design-resource-handoff-validation-fact-cells.js +60 -0
- package/dist/lib/design-resource-handoff-validation-fact-records.d.ts +2 -0
- package/dist/lib/design-resource-handoff-validation-fact-records.js +90 -0
- package/dist/lib/design-resource-handoff-validation-facts.js +10 -94
- package/dist/lib/design-resource-handoff-validation-proofs.d.ts +2 -0
- package/dist/lib/design-resource-handoff-validation-proofs.js +67 -0
- package/dist/lib/design-resource-handoff-validation-resource-closure.d.ts +3 -0
- package/dist/lib/design-resource-handoff-validation-resource-closure.js +88 -0
- package/dist/lib/design-resource-handoff-validation-structure.js +43 -14
- package/dist/lib/design-resource-handoff-validation.js +32 -0
- package/dist/lib/design-resource-handoff-web-dependency-validation.d.ts +2 -1
- package/dist/lib/design-resource-handoff-web-dependency-validation.js +67 -7
- package/dist/lib/execution-target-capabilities.d.ts +1 -1
- package/dist/lib/execution-target-capabilities.js +14 -0
- package/dist/lib/long-task-activation-validation.js +6 -2
- package/dist/lib/long-task-applicability-shape.js +3 -3
- package/dist/lib/long-task-authoring-authority-preview.js +1 -0
- package/dist/lib/long-task-authority-policy.d.ts +1 -0
- package/dist/lib/long-task-authority-policy.js +1 -0
- package/dist/lib/long-task-authority.js +13 -0
- package/dist/lib/long-task-claim-definitions.js +13 -1
- package/dist/lib/long-task-claims.js +23 -1
- package/dist/lib/long-task-contract-types.d.ts +3 -0
- package/dist/lib/long-task-delivery-compiler.js +1 -0
- package/dist/lib/long-task-delivery-parser.js +11 -1
- package/dist/lib/long-task-delivery-types.d.ts +1 -0
- package/dist/lib/long-task-delivery-types.js +1 -0
- package/dist/lib/long-task-delivery-validation.js +17 -0
- package/dist/lib/long-task-design-resource-handoff.js +62 -38
- package/dist/lib/long-task-design-target-capabilities.d.ts +14 -0
- package/dist/lib/long-task-design-target-capabilities.js +126 -0
- package/dist/lib/long-task-evidence-capability-codec.d.ts +94 -0
- package/dist/lib/long-task-evidence-capability-codec.js +395 -22
- package/dist/lib/long-task-evidence-capability-policy.js +18 -0
- package/dist/lib/long-task-evidence-capability-runtime.js +78 -0
- package/dist/lib/long-task-evidence-capability-types.d.ts +114 -1
- package/dist/lib/long-task-outcome-parser.js +4 -0
- package/dist/lib/long-task-playwright-capability-records.d.ts +5 -0
- package/dist/lib/long-task-playwright-capability-records.js +146 -0
- package/dist/lib/long-task-playwright-case-evidence.d.ts +3 -2
- package/dist/lib/long-task-playwright-case-evidence.js +10 -79
- package/dist/lib/long-task-playwright-case-primitives.d.ts +28 -0
- package/dist/lib/long-task-playwright-case-primitives.js +143 -0
- package/dist/lib/long-task-playwright-evidence.d.ts +1 -1
- package/dist/lib/long-task-playwright-evidence.js +10 -75
- package/dist/lib/long-task-runner-freeze.d.ts +2 -2
- package/dist/lib/long-task-runner-freeze.js +15 -1
- package/dist/lib/long-task-runtime-types.d.ts +4 -1
- package/dist/lib/long-task-semantic-contract-types.d.ts +1 -1
- package/dist/lib/long-task-semantic-drift-migration.js +2 -2
- package/dist/lib/long-task-semantic-fact-binding-types.d.ts +57 -0
- package/dist/lib/long-task-semantic-fact-binding-types.js +1 -0
- package/dist/lib/long-task-semantic-fact-closure-primitives.d.ts +5 -0
- package/dist/lib/long-task-semantic-fact-closure-primitives.js +43 -0
- package/dist/lib/long-task-semantic-fact-closure.d.ts +13 -0
- package/dist/lib/long-task-semantic-fact-closure.js +48 -0
- package/dist/lib/long-task-semantic-fact-contract-closure.d.ts +4 -0
- package/dist/lib/long-task-semantic-fact-contract-closure.js +24 -0
- package/dist/lib/long-task-semantic-fact-contract-facts.d.ts +4 -0
- package/dist/lib/long-task-semantic-fact-contract-facts.js +30 -0
- package/dist/lib/long-task-semantic-fact-contract-proofs.d.ts +4 -0
- package/dist/lib/long-task-semantic-fact-contract-proofs.js +97 -0
- package/dist/lib/long-task-semantic-fact-evidence.d.ts +21 -0
- package/dist/lib/long-task-semantic-fact-evidence.js +165 -0
- package/dist/lib/long-task-semantic-fact-input-closure.d.ts +4 -0
- package/dist/lib/long-task-semantic-fact-input-closure.js +101 -0
- package/dist/lib/long-task-semantic-fact-provenance-closure.d.ts +4 -0
- package/dist/lib/long-task-semantic-fact-provenance-closure.js +140 -0
- package/dist/lib/long-task-semantic-fact-shape.d.ts +3 -0
- package/dist/lib/long-task-semantic-fact-shape.js +89 -0
- package/dist/lib/long-task-semantic-fact-value-closure.d.ts +3 -0
- package/dist/lib/long-task-semantic-fact-value-closure.js +110 -0
- package/dist/lib/long-task-shape-primitives.d.ts +2 -1
- package/dist/lib/long-task-shape-primitives.js +7 -0
- package/dist/lib/long-task-source-item-parser.js +25 -6
- package/dist/lib/long-task-source-target-continuity.js +4 -1
- package/dist/lib/long-task-source-target-index.d.ts +1 -1
- package/dist/lib/long-task-source-target-index.js +5 -1
- package/dist/lib/long-task-ui-design-policy.js +8 -4
- package/dist/lib/long-task-ui-surface-shape.js +83 -1
- package/dist/lib/long-task-ui-surface-types.d.ts +29 -0
- package/dist/lib/modularity.js +7 -1
- package/dist/lib/semantic-fact-base-types.d.ts +14 -0
- package/dist/lib/semantic-fact-base-types.js +1 -0
- package/dist/lib/semantic-fact-catalog.d.ts +8 -0
- package/dist/lib/semantic-fact-catalog.js +191 -0
- package/dist/lib/semantic-fact-condition-shape.d.ts +48 -0
- package/dist/lib/semantic-fact-condition-shape.js +111 -0
- package/dist/lib/semantic-fact-input-shape.d.ts +34 -0
- package/dist/lib/semantic-fact-input-shape.js +111 -0
- package/dist/lib/semantic-fact-inventory-types.d.ts +147 -0
- package/dist/lib/semantic-fact-inventory-types.js +1 -0
- package/dist/lib/semantic-fact-manifest-shape.d.ts +4 -0
- package/dist/lib/semantic-fact-manifest-shape.js +135 -0
- package/dist/lib/semantic-fact-manifest-types.d.ts +58 -0
- package/dist/lib/semantic-fact-manifest-types.js +19 -0
- package/dist/lib/semantic-fact-policy-authority.d.ts +8 -0
- package/dist/lib/semantic-fact-policy-authority.js +79 -0
- package/dist/lib/semantic-fact-policy-census.d.ts +2 -0
- package/dist/lib/semantic-fact-policy-census.js +80 -0
- package/dist/lib/semantic-fact-policy-condition-references.d.ts +7 -0
- package/dist/lib/semantic-fact-policy-condition-references.js +19 -0
- package/dist/lib/semantic-fact-policy-conditions.d.ts +2 -0
- package/dist/lib/semantic-fact-policy-conditions.js +105 -0
- package/dist/lib/semantic-fact-policy-facts.d.ts +3 -0
- package/dist/lib/semantic-fact-policy-facts.js +73 -0
- package/dist/lib/semantic-fact-policy-primitives.d.ts +26 -0
- package/dist/lib/semantic-fact-policy-primitives.js +169 -0
- package/dist/lib/semantic-fact-policy-proofs.d.ts +2 -0
- package/dist/lib/semantic-fact-policy-proofs.js +75 -0
- package/dist/lib/semantic-fact-policy-properties.d.ts +3 -0
- package/dist/lib/semantic-fact-policy-properties.js +84 -0
- package/dist/lib/semantic-fact-policy-units.d.ts +4 -0
- package/dist/lib/semantic-fact-policy-units.js +103 -0
- package/dist/lib/semantic-fact-policy.d.ts +17 -0
- package/dist/lib/semantic-fact-policy.js +41 -0
- package/dist/lib/semantic-fact-proof-shape.d.ts +51 -0
- package/dist/lib/semantic-fact-proof-shape.js +121 -0
- package/dist/lib/semantic-fact-proof-types.d.ts +74 -0
- package/dist/lib/semantic-fact-proof-types.js +1 -0
- package/dist/lib/semantic-fact-property-shape.d.ts +29 -0
- package/dist/lib/semantic-fact-property-shape.js +77 -0
- package/dist/lib/semantic-fact-shape-constants.d.ts +3 -0
- package/dist/lib/semantic-fact-shape-constants.js +38 -0
- package/dist/lib/semantic-fact-shape-primitives.d.ts +15 -0
- package/dist/lib/semantic-fact-shape-primitives.js +68 -0
- package/dist/lib/semantic-fact-source-parser.d.ts +9 -0
- package/dist/lib/semantic-fact-source-parser.js +46 -0
- package/dist/lib/semantic-fact-support-shape.d.ts +21 -0
- package/dist/lib/semantic-fact-support-shape.js +59 -0
- package/dist/lib/semantic-fact-types.d.ts +5 -0
- package/dist/lib/semantic-fact-types.js +5 -0
- package/dist/lib/semantic-fact-unit-shape.d.ts +34 -0
- package/dist/lib/semantic-fact-unit-shape.js +89 -0
- package/dist/lib/semantic-fact-value-shape.d.ts +12 -0
- package/dist/lib/semantic-fact-value-shape.js +39 -0
- package/dist/schemas/long-task-delivery-v2/long-task-delivery-v2.schema.json +1339 -131
- package/migrations/README.md +15 -15
- package/package.json +84 -84
- package/source-mappings.yaml +25 -25
package/assets/agents/.gitkeep
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,62 +1,82 @@
|
|
|
1
1
|
# Minimal Context Harness Protocol
|
|
2
2
|
|
|
3
|
-
This project uses Tiny Context. The Harness maintains durable Context and workflow authority; project tests, CI, runtime evidence and human acceptance prove product quality. Its three capabilities are Minimal Context, the default Workflow Contract and the explicitly
|
|
3
|
+
This project uses Tiny Context. The Harness maintains durable Context and workflow authority; project tests, CI, runtime evidence and human acceptance prove product quality. Its three capabilities are Minimal Context, the automatically applicable default Workflow Contract and the explicitly selected Single-Goal Long-Task Workflow.
|
|
4
4
|
|
|
5
5
|
## Shared Architecture Quality Obligation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Before the first implementation edit, every delivery surfaces one externally observable, repository-bound `Architecture Deliberation`. Depth is risk-proportional, but the checkpoint always names affected owners, the current extension point/source of truth, dependency and state/lifecycle boundaries, the selected design and material alternatives, one plausible future-change challenge, touched technical debt and its disposition, forbidden shortcuts and project-owned checks. A small change may record preservation, but it still names the concrete owner/extension point and why no new or worsened debt is introduced. Refresh the checkpoint when scope, ownership or selected design materially changes.
|
|
8
8
|
|
|
9
|
-
After implementation and project verification, perform one `Architecture Conformance
|
|
9
|
+
After implementation and project verification, perform one current-candidate `Architecture Conformance`. Default work embeds it in Contract Conformance; an active Long-Task embeds it only in Final Gate. Never schedule both, and recheck after any candidate change. New/worsened debt, a duplicate source of truth, wrong dependency direction, owner bypass, scope escape or a forbidden shortcut blocks handoff unless a bounded project-owned exception records owner, rationale, tracking and removal condition. This creates no architecture artifact, second Authority, workflow state or generic analyzer.
|
|
10
10
|
|
|
11
11
|
## Default Workflow Contract
|
|
12
12
|
|
|
13
|
-
Unless
|
|
13
|
+
Unless a valid Long-Task binding is active, this prompt-level protocol applies automatically. It guides Agent execution but creates no validator result, Receipt, persisted phase state or machine-completion authority.
|
|
14
14
|
|
|
15
15
|
1. Read `project_context/global.md`, `project_context/architecture.md`, `project_context/context.toml` and the default area root, then collect graph/trigger candidates.
|
|
16
|
-
2. Before deciding `Context Delta`, run one bounded text search over `project_context/**` using a small
|
|
17
|
-
3.
|
|
18
|
-
4.
|
|
19
|
-
5.
|
|
20
|
-
6.
|
|
16
|
+
2. Before deciding `Context Delta`, run one bounded text search over `project_context/**` using a small high-signal set: explicit area/module names plus relevant API/schema/state/security/verification/deployment terms. Merge matches with manifest candidates, read relevant Context and widen whenever another Area/shared dependency becomes relevant; search supplements rather than replaces semantic judgment.
|
|
17
|
+
3. In a multi-Area or otherwise multi-target repository, separate the expandable read scope from the intended change target. Area/default/read-policy selection is neither a read ACL nor edit authorization, and Areas need not map one-to-one to workspaces. If user language plus durable repository ownership still leaves materially different sibling product targets ambiguous, ask one concise target question before product edits; enumerate every intentional cross-Area target and keep shared/backend/supporting reads distinct from edit scope.
|
|
18
|
+
4. For every material non-UI product or technical change, complete the task-local semantic obligation below before implementation: inventory all material inputs, atomize every applicable semantic Fact and condition, extend the standard catalog for domain-specific meaning, and bind every Fact to an owner and attributable proof. Missing authority stays decision-required rather than becoming an implementation default.
|
|
19
|
+
5. For UI/product-surface work, confirm information/action/feedback ownership and use `context_surface_contract` when durable responsibility is unclear or changes. For material UI, reconcile affected stable surface/control/target keys as Context-covered, requiring a Context update, task-local, out of scope or decision-required; traverse owning Context and `DESIGN.md`; and open every affected selected `exact-target` or `constraint`. Missing, stale, unreadable or conflicting authority fails closed for the affected claim. Local fixes and explicit non-fidelity prototypes stay lightweight.
|
|
20
|
+
6. Complete `Architecture Deliberation`, then decide exactly one `Context Delta: none|required`. Update owning Context before code for durable product ownership, architecture, API/schema/data, state/recovery, dependency, security, product-surface responsibility or repeatable verification/deployment change. Local fixes preserving durable semantics are `none`.
|
|
21
|
+
7. Use the agent/platform internal plan. Keep `Architecture Context Hit`, `Decision Rationale Hit: existing|required|none` and `Modularity Check: none|required|exception` as internal routing questions, not artifacts or extra deltas.
|
|
22
|
+
8. Implement precisely and run project-owned verification. When the repository exposes a changed-path/target-scope check, run it against the intended/supporting targets and exact task-attributable paths; otherwise review the final diff against durable owners during Conformance. Do not attribute unrelated pre-existing dirty paths to the task without provenance. Perform Contract Conformance including `Architecture Conformance`, the non-UI semantic closure and any selected-design closure below, then run the separate Context drift check. Report implementation, verification, architecture conformance, Context status and blockers. For material UI, use the first useful independently runnable production slice as a recommended real-entry feedback point when its expected early-localization value exceeds the run cost; it is not a prerequisite for expanding implementation. Always rerun the affected cold-start journey on the final candidate. Detached routes, specimens and deep links remain supplemental.
|
|
21
23
|
|
|
22
|
-
The default workflow never requires a plan artifact, matrix, verdict, evidence ledger or result document. Optional scratch is not Context or
|
|
24
|
+
The default workflow never requires a plan artifact, target declaration, matrix, verdict, evidence ledger or result document. Optional scratch is not Context or proof. Bounded Context search creates no index, cache, state or second authority; it also creates no read isolation. Do not make the full Context graph the ordinary default or add a required workspace/applicability schema, target registry, generic path/import/runtime scanner or duplicate Long-Task scope classifier.
|
|
25
|
+
|
|
26
|
+
## Shared Non-UI Semantic Completeness Obligation
|
|
27
|
+
|
|
28
|
+
For every delivery-significant non-UI input, “complete and accurate Source” means the finest independently decidable semantic Fact granularity supported by the expressed, logically entailed, explicitly delegated and evidence-backed scope—not paragraph, Requirement, Product Control, status-catalog or current-code granularity. Inventory every material request fragment, attachment, controlling Context unit, canonical specification, selected external constraint, repository-preservation fact and delegated instruction. Classify each as non-UI material, UI design owned by the independent selected-design closure, honestly supporting-only or explicitly excluded with exact basis; an ordinary Material Source Item cannot be hidden as supporting-only.
|
|
29
|
+
|
|
30
|
+
The standard semantic catalog is a mandatory floor and custom domain families/properties/axes extend it. Explicitly disposition product goals/scope/glossary; actors/roles/tenants/entitlements; business rules/calculations; entities/fields/relations; commands/queries/workflows/state machines/time; validation/output/error/API/protocol/event/job; persistence/cache/search/transactions/consistency/concurrency/idempotency; faults/retry/degradation/recovery/backup; configuration/flags/secrets; compatibility/migration/rollout; performance/capacity/cost/reliability/SLO; security/privacy/safety/compliance; observability/deployment/operations; external integrations; notification/file/media/localization; commercial/billing; hardware; AI/ML; and architecture ownership/boundaries/debt. Every applicable subject, typed relation and static/dynamic population has a stable identity. Every applicable actor/role/tenant/version/environment/state/input/boundary/locale/time/concurrency/dependency/failure/migration/rollout/threat or custom condition value is first-class; exact combinations are enumerated or explicitly excluded with basis. Aggregate strings, default paths, representative/pairwise samples and ungrounded N/A do not close atomic cells.
|
|
31
|
+
|
|
32
|
+
One semantic Fact binds `Outcome × subject/relation/population × exact condition combination × atomic property × typed expected predicate`, owner, Source locator/digest, provenance, sensitivity and quantifier. Fact identity is distinct from proof obligation: expand every Fact to all required methods and the furthest independently failing observation boundary, with frozen comparator/parameters/tolerance/mask, Oracle identity/capability, environment and protected-value policy. The closure is exact:
|
|
33
|
+
|
|
34
|
+
`Expected Semantic Facts = Source Indexed Facts = implementation/acceptance accounted Facts`
|
|
35
|
+
|
|
36
|
+
`Fact × required-method obligations = attributable current-candidate result rows`
|
|
37
|
+
|
|
38
|
+
Default work keeps this accounting ephemerally and creates no manifest, matrix, Claim set, state or Gate. Contract Conformance records for every obligation the actual observation/environment, frozen comparison authority, Oracle and pass/fail verdict from project-owned current-candidate checks. Missing, extra, duplicate, unresolved, unreadable, unmapped, unimplemented, unexecuted, stale, failed, proxy-only, reused or indistinguishable rows block a complete claim. An active Long-Task instead persists one Source-embedded `semantic-fact-manifest-v1`, projects exact Fact/obligation identities into its existing Claims/Assertions/Checks/bindings and requires set-equal typed `semantic_fact` results in its sole Final Gate; never run both carriers.
|
|
39
|
+
|
|
40
|
+
Durable product, API/schema/data/state/security/privacy/architecture/verification/deployment meaning still belongs in its existing owning Context; exact task facts and provenance remain Source, code remains implementation truth and Contract stores bindings rather than copied semantic values. Genuine user/product/legal/security/commercial/safety/external decisions remain blocking or typed External Confirmations. This mechanism cannot discover unexpressed intent or prove an arbitrary Inspector/Oracle semantically sound; unsupported meaning fails closed and custom extensions remain mandatory when the standard catalog is insufficient.
|
|
23
41
|
|
|
24
42
|
## Selected-Design Conformance Obligation
|
|
25
43
|
|
|
26
|
-
This
|
|
44
|
+
This obligation activates only for a selected implementation handoff. Run `ty-context design-resource preflight <handoff.md>` before UI Authority Closure. A formal Web/App target needs one completely acquired machine-readable canonical entry, its exact dependency closure and one frozen-Inspector observable-Fact manifest. Authoring derives the complete scoped `subject × target × condition × variation × atomic property` Expected Fact Universe before generation; complete Census, axis/combination/property expansion, explicit N/A/exclusions and non-sampling/non-truncation must prove `Expected Fact Universe = Canonical Resource Facts = Handoff Indexed Facts`. Product Control and eight-dimension roll-ups are not the Fact ceiling. Preserve exact located values and design-system lineage in canonical resources, every property-required Fact × method obligation, comparator/tolerance/mask, Oracle/environment and sensitive-observation policy; an exact target also needs full-target layout and pixel Facts for every condition. Deliberately partial input remains a constraint or blocking unresolved. Incomplete acquisition, aggregate labels, unreadable Census/locators, missing/extra Fact Cells or proofs, unresolved conflicts/blockers, unsupported evidence or stale digests fail closed. Preflight proves input completeness/integrity relative to the named Inspector/Oracle TCB, never production conformance.
|
|
45
|
+
|
|
46
|
+
Every adopted target has exactly one canonical record: `DESIGN.md` for project/system/component-family scope or the owning Screen Contract for one-screen/interaction scope. It owns interpretation, selection basis, immutable locator/digest, conditions and editable-upstream update route; other layers keep only a stable key, owner/anchor and local applicability. Use the on-demand UI/UX Skill for Design Source Projection. Never overwrite an adopted baseline; create a new immutable version and update its canonical record.
|
|
27
47
|
|
|
28
|
-
|
|
48
|
+
Externally authored resources remain ordinary Source. Authoring Skills do not change Context, code or Contract and do not claim acceptance.
|
|
29
49
|
|
|
30
|
-
|
|
50
|
+
For every external product, architecture, technical or acceptance constraint, internally classify it as Context-covered, requiring a Context update, task-local, out of scope or decision-required. Conformance confirms it reached the correct owner and verification.
|
|
31
51
|
|
|
32
|
-
|
|
52
|
+
Default work keeps one ephemeral exact accounting of Fact Cells, Facts, property-required proof methods, Source Items, blockers, targets and conditions. Route every item to its production owner, cold-start journey and an attributable final-candidate project check; retain per-Fact actual observation/environment, declared comparison authority and pass/fail verdict. Any unresolved, unmapped, unexecuted, stale, failed or indistinguishable item blocks a complete claim and is reported as a gap. This creates no file, matrix, Claim set, state or Gate. An active Long-Task projects the same obligation into existing Source/Claims/Assertions/bindings, `fact_expectations`, `fact_results` and Final Gate and never also runs the default closure.
|
|
33
53
|
|
|
34
54
|
## Long-Task Routing
|
|
35
55
|
|
|
36
56
|
Do not infer long-task mode from duration, complexity, file count or agent preference.
|
|
37
57
|
|
|
38
|
-
1. A valid Git common-dir active record plus matching worktree Git-config marker resumes
|
|
39
|
-
2.
|
|
40
|
-
3. Otherwise remain on the default Workflow Contract
|
|
58
|
+
1. A valid Git common-dir active record plus matching worktree Git-config marker resumes with `ty-context long-task resume <workdir>` in the currently selected host execution Goal; directly load and follow the installed package-managed `long-task-workflow` Skill. This recovery path does not depend on implicit invocation.
|
|
59
|
+
2. An explicit selection of the logical `long-task-workflow` Skill authors or resumes exactly one complete `long-task-delivery-v2` Contract. In Codex, select it with `$long-task-workflow` or through `/skills`.
|
|
60
|
+
3. Otherwise remain on the default Workflow Contract.
|
|
41
61
|
|
|
42
|
-
|
|
62
|
+
“One native Goal” is selected and owned by the host/user and means the currently selected host execution Goal for this delivery and workspace. Harness does not create, persist or reconnect a Goal identifier. Compaction may continue inside the Goal; a later physical Goal/session restores semantic workflow state through `resume` rather than reconnecting a prior Turn.
|
|
43
63
|
|
|
44
|
-
|
|
64
|
+
The loaded Skill and its progressive references own Source/Contract authoring, Control/applicability closure, selected-design projection, evidence design, protected revision, rolling repair and lifecycle commands. Do not duplicate those low-frequency rules in this startup router. During Draft/proof/lifecycle work, read the applicable Skill reference and use `ty-context long-task help` for CLI syntax.
|
|
45
65
|
|
|
46
|
-
|
|
66
|
+
After the first Authority Lock, `execution_model_checkpoint.required: true` is a terminal-turn boundary. Unless the user already stated an explicit task-specific current-model or switch-and-resume strategy, stop before product implementation, edits, builds or tests and ask the user to choose `continue_current_model` or switch models and then resume. Generic continue/resume/finish/continue-goal language does not satisfy it; later revisions do not repeat it and Harness records no model route or checkpoint acknowledgement state.
|
|
47
67
|
|
|
48
|
-
|
|
68
|
+
Long-Task Final Gate is the sole `Architecture Conformance` and selected-design closure owner. It source-recompiles and reruns every declared Check on one current snapshot; targeted Progress, prose, historical tests, Receipts, compiled cache or Agent judgment never create acceptance. Exactly fresh `machine_accepted` with no pending External Confirmation is the complete declared-machine terminal; qualified/external-pending results never complete the platform-native Goal.
|
|
49
69
|
|
|
50
|
-
|
|
70
|
+
The `F = Implementation Freedom Boundary` keeps implementation order, methods, local feedback cadence and optional platform-native one-agent/multi-agent execution Goal-owned within Source/Contract, architecture, safety, forbidden-shortcut and external-action boundaries. Harness creates no development method Gate, per-edit mandate, agent scheduler/delegation state or proof from delegated reports; all proof-bearing output converges into the selected verification workspace.
|
|
51
71
|
|
|
52
|
-
|
|
72
|
+
Long-Task Anti-Degradation Assurance requires mechanism changes to preserve or strengthen coverage, false-negative resistance, fail-closed Authority and final-snapshot proof before positive net ROI matters. Replacing the controlling purpose requires an explicit project-owner design-purpose decision plus replacement proof.
|
|
53
73
|
|
|
54
|
-
Tiny Context does not create or restore platform Goals, invoke models, spawn agents, call an App Server, create branches/worktrees, merge, push, open PRs, deploy or manage process trees. `ty-context enable long-task` installs the Long-Task Workflow Skill, the retired Source Plan compatibility pointer and package-owned completion Hook.
|
|
74
|
+
Tiny Context does not create or restore platform Goals, invoke models, spawn agents, call an App Server, create branches/worktrees, merge, push, open PRs, deploy or manage process trees. `ty-context enable long-task` installs the Long-Task Workflow Skill, the retired Source Plan compatibility pointer and package-owned completion Hook. `design-system-authoring` is explicit-only.
|
|
55
75
|
|
|
56
76
|
## Durable Facts And Generated Surfaces
|
|
57
77
|
|
|
58
78
|
- Context is intended ownership/boundary/contract truth; code is current implementation truth. Treat disagreement as drift, missing work or stale Context.
|
|
59
|
-
- Long-term facts live only in `project_context/**` or `DESIGN.md
|
|
79
|
+
- Long-term facts live only in `project_context/**` or `DESIGN.md`. Selected targets remain Context-reachable Source/verifier inputs; generated screenshots/diffs/logs/raw evidence/runtime state/Receipts do not become Context.
|
|
60
80
|
- Managed `AGENTS.md` blocks, `<harnessRoot>/ty-context-managed/**` and package-managed Skills are generated and sync-overwritten.
|
|
61
81
|
- Explicit upgrades use `context_harness_upgrade`; package sync never imports retired Campaign or development-period authority state.
|
|
62
82
|
|
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
# Architecture Context
|
|
2
|
-
|
|
3
|
-
This is the restrained architecture context. Keep only facts that help a fresh agent recover system shape, boundaries and durable constraints quickly.
|
|
4
|
-
|
|
5
|
-
## System Boundary
|
|
6
|
-
|
|
7
|
-
- Describe what is inside this project and what external systems, providers or runtime assumptions sit outside it.
|
|
8
|
-
|
|
1
|
+
# Architecture Context
|
|
2
|
+
|
|
3
|
+
This is the restrained architecture context. Keep only facts that help a fresh agent recover system shape, boundaries and durable constraints quickly.
|
|
4
|
+
|
|
5
|
+
## System Boundary
|
|
6
|
+
|
|
7
|
+
- Describe what is inside this project and what external systems, providers or runtime assumptions sit outside it.
|
|
8
|
+
|
|
9
9
|
## Component Map
|
|
10
10
|
|
|
11
11
|
- List the smallest useful set of components, areas or context units and how they relate.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
- In a monorepo, record durable Area-to-code/workspace ownership and shared dependency direction where it helps recovery. Do not assume one Area per workspace or turn the map into a read/edit ACL.
|
|
13
|
+
|
|
14
|
+
## Data / Control Flow
|
|
15
|
+
|
|
16
|
+
- Summarize only the durable request, event, state or data flow that is hard to infer from code alone.
|
|
17
|
+
|
|
17
18
|
## Design Rationale
|
|
18
19
|
|
|
19
20
|
- Record architecture-level choices, rejected alternatives and tradeoffs that still constrain future work; leave this empty when no stable architecture reason exists.
|
|
20
21
|
- Do not invent rationale or store implementation summaries, PR notes, command output, test result claims, debug history, agent reasoning or reasons inferred only from current code shape.
|
|
21
22
|
- Architecture boundary changes should be captured here before implementation alignment.
|
|
22
|
-
|
|
23
|
-
## Constraints And Tradeoffs
|
|
24
|
-
|
|
25
|
-
- Capture performance, safety, integration, deployment or maintainability constraints that matter for future changes.
|
|
26
|
-
|
|
27
|
-
## Verification Implications
|
|
28
|
-
|
|
29
|
-
- List project-specific verification entry points affected by architectural changes; do not claim tests already passed.
|
|
30
|
-
|
|
31
|
-
## Open Risks
|
|
32
|
-
|
|
33
|
-
- List unresolved architectural risks or unknowns.
|
|
23
|
+
|
|
24
|
+
## Constraints And Tradeoffs
|
|
25
|
+
|
|
26
|
+
- Capture performance, safety, integration, deployment or maintainability constraints that matter for future changes.
|
|
27
|
+
|
|
28
|
+
## Verification Implications
|
|
29
|
+
|
|
30
|
+
- List project-specific verification entry points affected by architectural changes; do not claim tests already passed.
|
|
31
|
+
|
|
32
|
+
## Open Risks
|
|
33
|
+
|
|
34
|
+
- List unresolved architectural risks or unknowns.
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
# Area Context: main
|
|
2
|
-
|
|
3
|
-
## Responsibility
|
|
4
|
-
|
|
5
|
-
- Describe this product/domain area or context unit's responsibility.
|
|
6
|
-
|
|
7
|
-
## User / System Contract
|
|
8
|
-
|
|
9
|
-
- Describe the external behavior, API, CLI, UI, screen state, interaction or data contract. Contract changes should be captured here before implementation alignment.
|
|
10
|
-
- For UI/page areas, name the page responsibility, core user judgment, persistent information/actions/feedback, non-persistent information, and what belongs in downstream consumption, ops, detail or other surfaces when those facts are durable.
|
|
11
|
-
|
|
12
|
-
## Core Data / API / State
|
|
13
|
-
|
|
14
|
-
- Summarize important data structures, APIs, state transitions or rules.
|
|
15
|
-
|
|
16
|
-
## Module Design Capsule
|
|
17
|
-
|
|
1
|
+
# Area Context: main
|
|
2
|
+
|
|
3
|
+
## Responsibility
|
|
4
|
+
|
|
5
|
+
- Describe this product/domain area or context unit's responsibility.
|
|
6
|
+
|
|
7
|
+
## User / System Contract
|
|
8
|
+
|
|
9
|
+
- Describe the external behavior, API, CLI, UI, screen state, interaction or data contract. Contract changes should be captured here before implementation alignment.
|
|
10
|
+
- For UI/page areas, name the page responsibility, core user judgment, persistent information/actions/feedback, non-persistent information, and what belongs in downstream consumption, ops, detail or other surfaces when those facts are durable.
|
|
11
|
+
|
|
12
|
+
## Core Data / API / State
|
|
13
|
+
|
|
14
|
+
- Summarize important data structures, APIs, state transitions or rules.
|
|
15
|
+
|
|
16
|
+
## Module Design Capsule
|
|
17
|
+
|
|
18
18
|
- Principles: stable execution constraints that should affect future module work.
|
|
19
19
|
- Design Logic: the minimum logic for choosing, rejecting, degrading or composing module behavior.
|
|
20
20
|
- Design Rationale: only durable reasons, rejected alternatives and tradeoffs that change later implementation or verification decisions; leave it empty when no stable reason exists.
|
|
21
21
|
- Do not invent rationale or store implementation summaries, PR notes, command output, test result claims, screenshot review notes, debug history, agent reasoning or reasons inferred only from current code shape.
|
|
22
22
|
- Current standards, thresholds and commands belong in the relevant contract or verification Context, not as permanent principles.
|
|
23
|
-
|
|
24
|
-
## Key Constraints
|
|
25
|
-
|
|
26
|
-
- List constraints that are not obvious from code alone, including product rules, responsive/a11y needs or visual boundaries.
|
|
27
|
-
|
|
23
|
+
|
|
24
|
+
## Key Constraints
|
|
25
|
+
|
|
26
|
+
- List constraints that are not obvious from code alone, including product rules, responsive/a11y needs or visual boundaries.
|
|
27
|
+
|
|
28
28
|
## Code Entry Points
|
|
29
29
|
|
|
30
30
|
- `src/` or the concrete file/function entry points.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
- In a monorepo, name the code/workspace roots this Area primarily owns and any shared/supporting roots future work commonly needs. Give each root one primary Area owner when the mapping is material; one Area may own several workspaces. This documents ownership and discovery, not read isolation or edit permission.
|
|
32
|
+
|
|
33
|
+
## Related Role Context
|
|
34
|
+
|
|
35
|
+
- Verification paths live in this area's `verification` role Context, such as `project_context/areas/main/verification.md`.
|
|
36
|
+
- Deployment/runtime/bootstrap paths live in this area's optional `deployment` role Context when those facts exist.
|
|
37
|
+
|
|
38
|
+
## Open Risks
|
|
39
|
+
|
|
40
|
+
- List unresolved risks or blockers.
|
|
@@ -1,30 +1,36 @@
|
|
|
1
1
|
# Schema v4 Minimal Context graph manifest.
|
|
2
2
|
# Keep the default product/domain area for ordinary projects. Role context nodes
|
|
3
3
|
# are read-purpose slices owned by an area or, only when cross-domain, by the project root.
|
|
4
|
+
# An area is a durable ownership/discovery unit, not a read/edit ACL or a required
|
|
5
|
+
# one-to-one workspace mapping. One area may own several code/workspace roots.
|
|
4
6
|
# Use read_policy = "default" only for near-universal recovery facts; prefer
|
|
5
7
|
# "on-demand" for specialized architecture, contract, deployment or history detail.
|
|
8
|
+
# Default/on-demand selection defines the starting read set, not a maximum:
|
|
9
|
+
# widen to any relevant area/shared Context when task dependencies require it.
|
|
10
|
+
# Monorepos need no additional manifest fields; record useful code/workspace
|
|
11
|
+
# ownership in area or architecture Context and use project-owned scope checks.
|
|
6
12
|
# `ty-context doctor` reports the deterministic default read footprint and exact duplicates.
|
|
7
|
-
# When migrating deep files under project_context/areas/**, refine obvious
|
|
8
|
-
# contract/foundation/subdomain/verification/deployment/implementation-index/
|
|
9
|
-
# decision-rationale/archive files into [[context]] entries instead of keeping
|
|
10
|
-
# every Markdown file as an [[areas]] product owner.
|
|
11
|
-
|
|
12
|
-
[[areas]]
|
|
13
|
-
id = "main"
|
|
14
|
-
root = "."
|
|
15
|
-
context = "project_context/areas/main.md"
|
|
16
|
-
kind = "app"
|
|
17
|
-
default = true
|
|
18
|
-
|
|
19
|
-
[[context]]
|
|
20
|
-
path = "project_context/areas/main/verification.md"
|
|
21
|
-
role = "verification"
|
|
22
|
-
read_policy = "default"
|
|
23
|
-
triggers = ["test", "verify", "verification", "smoke", "ci"]
|
|
24
|
-
|
|
25
|
-
# Example optional node:
|
|
26
|
-
# [[context]]
|
|
27
|
-
# path = "project_context/areas/main/deployment.md"
|
|
28
|
-
# role = "deployment"
|
|
29
|
-
# read_policy = "on-demand"
|
|
30
|
-
# triggers = ["deploy", "deployment", "runtime", "cloud", "docker"]
|
|
13
|
+
# When migrating deep files under project_context/areas/**, refine obvious
|
|
14
|
+
# contract/foundation/subdomain/verification/deployment/implementation-index/
|
|
15
|
+
# decision-rationale/archive files into [[context]] entries instead of keeping
|
|
16
|
+
# every Markdown file as an [[areas]] product owner.
|
|
17
|
+
|
|
18
|
+
[[areas]]
|
|
19
|
+
id = "main"
|
|
20
|
+
root = "."
|
|
21
|
+
context = "project_context/areas/main.md"
|
|
22
|
+
kind = "app"
|
|
23
|
+
default = true
|
|
24
|
+
|
|
25
|
+
[[context]]
|
|
26
|
+
path = "project_context/areas/main/verification.md"
|
|
27
|
+
role = "verification"
|
|
28
|
+
read_policy = "default"
|
|
29
|
+
triggers = ["test", "verify", "verification", "smoke", "ci"]
|
|
30
|
+
|
|
31
|
+
# Example optional node:
|
|
32
|
+
# [[context]]
|
|
33
|
+
# path = "project_context/areas/main/deployment.md"
|
|
34
|
+
# role = "deployment"
|
|
35
|
+
# read_policy = "on-demand"
|
|
36
|
+
# triggers = ["deploy", "deployment", "runtime", "cloud", "docker"]
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
# Deployment Context: main
|
|
2
|
-
|
|
3
|
-
This optional role Context records critical repeat-execution paths for deploy, runtime bootstrap, cloud initialization and operational recovery. Keep it minimal and durable.
|
|
4
|
-
|
|
5
|
-
## Owner
|
|
6
|
-
|
|
7
|
-
- Owning area: `main`.
|
|
8
|
-
|
|
9
|
-
## Runtime Topology
|
|
10
|
-
|
|
11
|
-
- List durable service distribution only when it matters for rerunning deploy or bootstrap, such as Web/API/worker/Redis/DB/Docker/cloud instance boundaries.
|
|
12
|
-
|
|
13
|
-
## Deployment Paths
|
|
14
|
-
|
|
15
|
-
- List the shortest deploy, CI/CD, bootstrap, migration, health-check or rollback/degradation command/path.
|
|
16
|
-
|
|
17
|
-
## Required Preparation
|
|
18
|
-
|
|
19
|
-
- List only durable setup such as cloud resources, env files, compose profiles, secret mounting names or database initialization steps. Do not store secret values.
|
|
20
|
-
|
|
21
|
-
## Expected Signals
|
|
22
|
-
|
|
23
|
-
- Name health checks, status transitions, URLs, queues, containers or logs-at-a-glance that show the path reached the intended stage.
|
|
24
|
-
|
|
25
|
-
## Acceptable Warnings
|
|
26
|
-
|
|
27
|
-
- List known benign warnings or slow-start states.
|
|
28
|
-
|
|
29
|
-
## Excluded Dead Ends
|
|
30
|
-
|
|
31
|
-
- List previously ruled-out deploy/bootstrap paths only when remembering them prevents repeated wasted work.
|
|
32
|
-
|
|
33
|
-
## Forbidden Content
|
|
34
|
-
|
|
35
|
-
- Do not record one-off logs, full command output, CI artifacts, release ledgers, secrets, tokens, cookies, device ids, raw payloads or claims that deployment already succeeded.
|
|
1
|
+
# Deployment Context: main
|
|
2
|
+
|
|
3
|
+
This optional role Context records critical repeat-execution paths for deploy, runtime bootstrap, cloud initialization and operational recovery. Keep it minimal and durable.
|
|
4
|
+
|
|
5
|
+
## Owner
|
|
6
|
+
|
|
7
|
+
- Owning area: `main`.
|
|
8
|
+
|
|
9
|
+
## Runtime Topology
|
|
10
|
+
|
|
11
|
+
- List durable service distribution only when it matters for rerunning deploy or bootstrap, such as Web/API/worker/Redis/DB/Docker/cloud instance boundaries.
|
|
12
|
+
|
|
13
|
+
## Deployment Paths
|
|
14
|
+
|
|
15
|
+
- List the shortest deploy, CI/CD, bootstrap, migration, health-check or rollback/degradation command/path.
|
|
16
|
+
|
|
17
|
+
## Required Preparation
|
|
18
|
+
|
|
19
|
+
- List only durable setup such as cloud resources, env files, compose profiles, secret mounting names or database initialization steps. Do not store secret values.
|
|
20
|
+
|
|
21
|
+
## Expected Signals
|
|
22
|
+
|
|
23
|
+
- Name health checks, status transitions, URLs, queues, containers or logs-at-a-glance that show the path reached the intended stage.
|
|
24
|
+
|
|
25
|
+
## Acceptable Warnings
|
|
26
|
+
|
|
27
|
+
- List known benign warnings or slow-start states.
|
|
28
|
+
|
|
29
|
+
## Excluded Dead Ends
|
|
30
|
+
|
|
31
|
+
- List previously ruled-out deploy/bootstrap paths only when remembering them prevents repeated wasted work.
|
|
32
|
+
|
|
33
|
+
## Forbidden Content
|
|
34
|
+
|
|
35
|
+
- Do not record one-off logs, full command output, CI artifacts, release ledgers, secrets, tokens, cookies, device ids, raw payloads or claims that deployment already succeeded.
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
# Project / Delivery Context
|
|
2
|
-
|
|
3
|
-
## Project Goal
|
|
4
|
-
|
|
5
|
-
- Describe the user-visible goal this project is trying to achieve.
|
|
6
|
-
|
|
7
|
-
## Non-goals / Boundaries
|
|
8
|
-
|
|
9
|
-
- List what this project intentionally does not do.
|
|
10
|
-
|
|
11
|
-
## Background
|
|
12
|
-
|
|
13
|
-
- Capture only near-universal background a fresh agent needs before changing code. Route specialized facts through on-demand role Context instead of copying them here.
|
|
14
|
-
|
|
15
|
-
## Design Rationale
|
|
16
|
-
|
|
17
|
-
- Record only project-wide durable choices, rejected alternatives and tradeoffs that are hard to infer from code or tests and likely to affect future work. Leave this sparse when no stable reason exists.
|
|
18
|
-
- Do not invent rationale or store implementation summaries, PR notes, command output, test result claims, screenshot review notes, debug history, agent reasoning or reasons inferred only from current code shape.
|
|
19
|
-
- Classify changes before implementation; if a change alters product ownership/plans, module responsibilities, information architecture, API/Schema, state/scheduler semantics, cross-area boundaries, verification role paths or deployment role paths, update Context before code with enough durable context to guide implementation.
|
|
20
|
-
|
|
21
|
-
## Architecture Context
|
|
22
|
-
|
|
23
|
-
- Link to `project_context/architecture.md`; keep architecture notes minimal and focused on boundaries, components and constraints that are not obvious from code.
|
|
24
|
-
|
|
25
|
-
## Context Graph
|
|
26
|
-
|
|
27
|
-
- Link to `project_context/context.toml` and keep its default area, role, trigger, read policy and boundary metadata aligned with this Context.
|
|
28
|
-
- When adding or reorganizing files under `project_context/areas/**`, run a soft role placement scan before registering every Markdown file as an area: product ownership stays in `area` / `domain` / `subdomain`; contracts, foundations, verification, deployment, implementation indexes, decision rationale and archives should use role Context when that better fits the reading purpose.
|
|
29
|
-
|
|
30
|
-
## Product / Delivery Brief
|
|
31
|
-
|
|
32
|
-
- Capture durable product goals, users, core flows, acceptance signals and non-goals.
|
|
33
|
-
|
|
34
|
-
## UX / Screen Brief
|
|
35
|
-
|
|
36
|
-
- Capture durable screen, flow, interaction, responsive and accessibility facts. Use `DESIGN.md` for visual identity and design tokens when needed.
|
|
37
|
-
- For web/front-end surfaces, record durable page responsibilities, core user judgments, persistent information boundaries and cross-page or cross-layer ownership when they guide future changes.
|
|
38
|
-
- Reference durable versioned design targets at their project-native path or URI and classify them as `exact-target`, `constraint` or `inspiration`; do not paste generated implementation screenshots, diffs or review logs into Context.
|
|
39
|
-
- When selected resources arrive through a validated `design-resource-handoff-v1`, keep only durable surface/control/target ownership and a route to its immutable Source here. Do not copy the handoff's condition/evidence/coverage index into Context; future work must open the handoff and affected exact/constraint resources and rerun shared preflight before fidelity implementation.
|
|
40
|
-
|
|
41
|
-
## Verification Entry Points
|
|
42
|
-
|
|
43
|
-
- Point to the default verification context for repeatable test, smoke, CI or validation paths.
|
|
44
|
-
- Project-level cross-domain verification may live here only as a short index; execution details belong in `verification` role Context.
|
|
45
|
-
|
|
46
|
-
## Current State
|
|
47
|
-
|
|
48
|
-
- Summarize what is implemented, blocked or risky right now.
|
|
49
|
-
|
|
50
|
-
## Next Safe Action
|
|
51
|
-
|
|
52
|
-
- State
|
|
53
|
-
|
|
54
|
-
## Context Index
|
|
55
|
-
|
|
56
|
-
- [main](areas/main.md)
|
|
57
|
-
- [main verification](areas/main/verification.md)
|
|
1
|
+
# Project / Delivery Context
|
|
2
|
+
|
|
3
|
+
## Project Goal
|
|
4
|
+
|
|
5
|
+
- Describe the user-visible goal this project is trying to achieve.
|
|
6
|
+
|
|
7
|
+
## Non-goals / Boundaries
|
|
8
|
+
|
|
9
|
+
- List what this project intentionally does not do.
|
|
10
|
+
|
|
11
|
+
## Background
|
|
12
|
+
|
|
13
|
+
- Capture only near-universal background a fresh agent needs before changing code. Route specialized facts through on-demand role Context instead of copying them here.
|
|
14
|
+
|
|
15
|
+
## Design Rationale
|
|
16
|
+
|
|
17
|
+
- Record only project-wide durable choices, rejected alternatives and tradeoffs that are hard to infer from code or tests and likely to affect future work. Leave this sparse when no stable reason exists.
|
|
18
|
+
- Do not invent rationale or store implementation summaries, PR notes, command output, test result claims, screenshot review notes, debug history, agent reasoning or reasons inferred only from current code shape.
|
|
19
|
+
- Classify changes before implementation; if a change alters product ownership/plans, module responsibilities, information architecture, API/Schema, state/scheduler semantics, cross-area boundaries, verification role paths or deployment role paths, update Context before code with enough durable context to guide implementation.
|
|
20
|
+
|
|
21
|
+
## Architecture Context
|
|
22
|
+
|
|
23
|
+
- Link to `project_context/architecture.md`; keep architecture notes minimal and focused on boundaries, components and constraints that are not obvious from code.
|
|
24
|
+
|
|
25
|
+
## Context Graph
|
|
26
|
+
|
|
27
|
+
- Link to `project_context/context.toml` and keep its default area, role, trigger, read policy and boundary metadata aligned with this Context.
|
|
28
|
+
- When adding or reorganizing files under `project_context/areas/**`, run a soft role placement scan before registering every Markdown file as an area: product ownership stays in `area` / `domain` / `subdomain`; contracts, foundations, verification, deployment, implementation indexes, decision rationale and archives should use role Context when that better fits the reading purpose.
|
|
29
|
+
|
|
30
|
+
## Product / Delivery Brief
|
|
31
|
+
|
|
32
|
+
- Capture durable product goals, users, core flows, acceptance signals and non-goals.
|
|
33
|
+
|
|
34
|
+
## UX / Screen Brief
|
|
35
|
+
|
|
36
|
+
- Capture durable screen, flow, interaction, responsive and accessibility facts. Use `DESIGN.md` for visual identity and design tokens when needed.
|
|
37
|
+
- For web/front-end surfaces, record durable page responsibilities, core user judgments, persistent information boundaries and cross-page or cross-layer ownership when they guide future changes.
|
|
38
|
+
- Reference durable versioned design targets at their project-native path or URI and classify them as `exact-target`, `constraint` or `inspiration`; do not paste generated implementation screenshots, diffs or review logs into Context.
|
|
39
|
+
- When selected resources arrive through a validated `design-resource-handoff-v1`, keep only durable surface/control/target ownership and a route to its immutable Source here. Do not copy the handoff's condition/evidence/coverage index into Context; future work must open the handoff and affected exact/constraint resources and rerun shared preflight before fidelity implementation.
|
|
40
|
+
|
|
41
|
+
## Verification Entry Points
|
|
42
|
+
|
|
43
|
+
- Point to the default verification context for repeatable test, smoke, CI or validation paths.
|
|
44
|
+
- Project-level cross-domain verification may live here only as a short index; execution details belong in `verification` role Context.
|
|
45
|
+
|
|
46
|
+
## Current State
|
|
47
|
+
|
|
48
|
+
- Summarize what is implemented, blocked or risky right now.
|
|
49
|
+
|
|
50
|
+
## Next Safe Action
|
|
51
|
+
|
|
52
|
+
- State a stable safe re-entry rule for a fresh agent, including when Context must be updated before code. Do not store task-local progress or a one-off next edit here.
|
|
53
|
+
|
|
54
|
+
## Context Index
|
|
55
|
+
|
|
56
|
+
- [main](areas/main.md)
|
|
57
|
+
- [main verification](areas/main/verification.md)
|