@ryuenn3123/agentic-senior-core 4.2.5 → 4.2.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.
@@ -4,6 +4,16 @@ Use this prompt for UI, UX, frontend layout, screen, Tailwind, animation, 3D, ca
4
4
  Create or refine `docs/DESIGN.md` for human reasoning and `docs/design-intent.json` for machine-readable design intent, guardrails, and review signals.
5
5
 
6
6
  This contract is a decision scaffold, not a style preset. We guide the agent; we do not pick the final style, stack, framework, palette, typography, layout paradigm, or animation library offline.
7
+
8
+ ## MANDATORY FIRST STEP
9
+
10
+ Check `docs/design-intent.json`:
11
+ - If `status` contains "seed" OR `researchDossier.metadata.researchVerifiedAt` is null → STOP.
12
+ - Do NOT write UI code.
13
+ - Do NOT fill `conceptualAnchor`, color tokens, typography tokens, or motion tokens with concrete values.
14
+ - **Existing UI exception**: If the project already has a mature UI and the user only asked for an additive feature (not a redesign), you may skip Sections 3-5 of `research-design.md`. Instead, document the existing direction as the `conceptualAnchor`, set token classifications to `continuity-retained`, set `status` to `active`, set `researchVerifiedAt` to today's date, and proceed.
15
+ - Otherwise, run `research-design.md` Sections 3, 4, and 5 first. All three must produce filled artifacts before proceeding.
16
+ - The scaffold file is a structure only. Filling placeholders without completing research is a violation of this contract.
7
17
  ## Authority
8
18
  - Treat `.agent-context/` and current project docs as technical authority.
9
19
  - Treat `README.md` as public and developer overview, setup, usage, and user-facing context only. Do not use it as coding, architecture, or design authority when `.agent-context/` gives a stricter rule.
@@ -23,6 +33,28 @@ This contract is a decision scaffold, not a style preset. We guide the agent; we
23
33
  8. Set `derivedTokenLogic.tokenContinuityClassification` for each of typography, palette, motion, and spacing. Use `anchor-derived` only when the token choice is causally tied to the anchor's real-world reality. Use `continuity-retained` when the token is kept from a previous design iteration without re-derivation. Use `newly-introduced` when the token is fresh but not anchor-derived. If any token category is `continuity-retained`, the typography, palette, or motion entry in `researchDossier.metadata.antiRepeatLedger` stays as historical record, and the classification declares the retention is intentional with explicit rationale recorded in the matching `derivationSource` field.
24
34
  9. After agent and user select an anchor, set `researchDossier.metadata.researchVerifiedAt` to today's ISO date and flip `status` from any seed value to `active`. This closes the freshness window for additive UI tasks within `freshnessWindowDays`.
25
35
  10. Complete the Live Source Freshness Gate from `research-design.md` before claiming that a visual pattern, library, browser feature, accessibility requirement, or interaction style is current. Record `sourceFreshness` and `evidenceTable[]` in `docs/design-intent.json`.
36
+ ## Internal Vocabulary Rule
37
+
38
+ The following terms are internal process labels only.
39
+ They must NEVER appear in:
40
+ - UI copy or component text
41
+ - Public-facing documentation
42
+ - Section headings in DESIGN.md
43
+ - Any text the user reads in the product
44
+
45
+ Forbidden in output: evidence, dossier, anchor, category-code,
46
+ morphological, rename test, freshness gate, ledger, accession,
47
+ provenance, custody, specimen, taxonomy, invariant.
48
+
49
+ Translate all decisions into plain product language before writing
50
+ them into DESIGN.md or any UI-facing artifact.
51
+
52
+ Good: "Typography uses a serif display font paired with monospace for
53
+ code blocks, creating clear hierarchy between narrative and technical content."
54
+
55
+ Bad: "The anchor-derived typographic decision pairs a display serif
56
+ with strict mono per the morphological exploration output."
57
+
26
58
  ## Creative Commitment Gate
27
59
  Before broad compliance review or UI implementation, record an agent-chosen visual direction in both design docs:
28
60
  - one concrete real-world anchor reference
@@ -69,6 +69,44 @@ Before any visual choice, write a structured product reading:
69
69
 
70
70
  Output: `productReading` block. Each field must be one sentence, evidence-backed from repo or brief. Speculation is not allowed; if a field is unknown, name it as such and stop until the user resolves it.
71
71
 
72
+ ## Reference Routing
73
+
74
+ After Section 1, identify the product category. Then run web_search
75
+ and web_fetch on the matching domains below (or other modern, highly-regarded digital product equivalents) before picking any anchor.
76
+
77
+ Developer tool / CLI / AI infrastructure:
78
+ → Linear, Raycast, Vercel, Warp, Resend, Railway (or equivalents)
79
+
80
+ SaaS / B2B productivity:
81
+ → Notion, Loom, Cron, Superhuman, Intercom (or equivalents)
82
+
83
+ AI product / API:
84
+ → Anthropic, Perplexity, ElevenLabs, Replicate, Mistral (or equivalents)
85
+
86
+ Ecommerce:
87
+ → SSENSE, Allbirds, Represent, Shopify examples (or equivalents)
88
+
89
+ Design tool / creative:
90
+ → Framer, Spline, Rive, Penpot (or equivalents)
91
+
92
+ Consumer / mobile:
93
+ → Arc browser, Craft, Things, Bear (or equivalents)
94
+
95
+ Data / analytics:
96
+ → Retool, Posthog, Metabase, Grafana (or equivalents)
97
+
98
+ You may fetch other modern digital products that fit the category.
99
+ DO NOT fetch Wikipedia, generic documentation sites, Dribbble templates,
100
+ or non-product informational pages as design references.
101
+
102
+ For each reference: fetch the actual page this session, record what
103
+ mechanic or hierarchy is borrowed, and explicitly state what is NOT
104
+ borrowed (palette, component skin, layout rhythm).
105
+
106
+ If the anchor concept you're considering would make sense to someone
107
+ from 1920, it's too archival. The anchor must be legible to someone
108
+ who uses the web today.
109
+
72
110
  ## Section 2 — Reference Intake
73
111
 
74
112
  Reference material is fuel for variance, not a style source.
@@ -1,3 +1,4 @@
1
+ // @file-size-exception: Structural validation gates expanded size
1
2
  /**
2
3
  * Design Intent Contract builder. Composes the structured contract from
3
4
  * focused section builders living under `design-contract/`. Public exports
@@ -57,6 +58,18 @@ function buildDesignIntentContractObject({
57
58
  });
58
59
 
59
60
  return {
61
+ _gate: {
62
+ phase: 'scaffold-only',
63
+ instruction: 'DO NOT fill conceptualAnchor, derivedTokenLogic, or any token values until research-design.md Sections 3, 4, and 5 are complete. Do not simplify or rewrite this scaffold. Fill fields in-place after research.',
64
+ blockedFields: [
65
+ 'conceptualAnchor.anchorReference',
66
+ 'conceptualAnchor.categoryCodes.candidateEntries',
67
+ 'conceptualAnchor.morphologicalExploration.selectedCombination',
68
+ 'conceptualAnchor.anchorCandidates.candidates',
69
+ 'derivedTokenLogic.colorDerivationSource',
70
+ 'motionPaletteDecision'
71
+ ]
72
+ },
60
73
  mode: 'dynamic',
61
74
  status,
62
75
  seedPolicy: {
@@ -408,6 +421,10 @@ export function buildDesignIntentSeed({
408
421
  */
409
422
  export const __DESIGN_CONTRACT_SCHEMA_INDEX__ = Object.freeze([
410
423
  // top-level structural fields
424
+ '_gate',
425
+ 'phase',
426
+ 'instruction',
427
+ 'blockedFields',
411
428
  'tokenSystem',
412
429
  'seedPolicy',
413
430
  'structure-first-scaffold',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuenn3123/agentic-senior-core",
3
- "version": "4.2.5",
3
+ "version": "4.2.6",
4
4
  "type": "module",
5
5
  "description": "Change your AI Agent to code like a Staff Engineer, not a Junior.",
6
6
  "bin": {
@@ -355,7 +355,7 @@ export async function validateInstructionAdapters(context) {
355
355
  ];
356
356
  const instructionFootprintLimits = [
357
357
  { path: 'AGENTS.md', maxLines: 180 },
358
- { path: '.agent-context/prompts/bootstrap-design.md', maxLines: 180 },
358
+ { path: '.agent-context/prompts/bootstrap-design.md', maxLines: 220 },
359
359
  { path: '.agent-context/rules/frontend-architecture.md', maxLines: 180 },
360
360
  ];
361
361