mercury-agent 0.5.2 → 0.5.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.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/docs/ARCHITECTURE.md +0 -34
  3. package/docs/DESIGN.md +0 -42
  4. package/docs/ROADMAP.md +0 -43
  5. package/docs/TODOS.md +0 -147
  6. package/docs/VISION.md +0 -32
  7. package/docs/archive/.gitkeep +0 -0
  8. package/docs/archive/applicative-profiles/2026-07-01-applicative-profiles.md +0 -270
  9. package/docs/archive/applicative-profiles/2026-07-01-caller-bound-capability-token.md +0 -184
  10. package/docs/archive/applicative-profiles/2026-07-01-dm-auto-space.md +0 -273
  11. package/docs/archive/summarization/2026-07-02-recent-dev-summary.md +0 -71
  12. package/docs/backlog/.gitkeep +0 -0
  13. package/docs/bugs/.gitkeep +0 -0
  14. package/docs/debug/major/.gitkeep +0 -0
  15. package/docs/debug/major/2026-07-01-strict-yaml-schema-crash.md +0 -85
  16. package/docs/debug/major/2026-07-02-bwrap-privileged-linux-docker.md +0 -160
  17. package/docs/debug/major/2026-07-02-e2big-prompt-delivery-fix.md +0 -382
  18. package/docs/debug/major/2026-07-02-registry-pull-no-local-fallback.md +0 -194
  19. package/docs/debug/minor/.gitkeep +0 -0
  20. package/docs/debug/moderate/.gitkeep +0 -0
  21. package/docs/debug/summarization/2026-07-02-common-bug-patterns.md +0 -72
  22. package/docs/html-slides/.gitkeep +0 -0
  23. package/docs/ideas/.gitkeep +0 -0
  24. package/docs/ideas/business-extensions.md +0 -48
  25. package/docs/in-progress/.gitkeep +0 -0
  26. package/docs/notes/.gitkeep +0 -0
  27. package/docs/pending-updates/.gitkeep +0 -0
  28. package/docs/runbooks/gws-oauth-setup.md +0 -211
  29. package/docs/runbooks/publish-checklist.md +0 -54
  30. package/docs/templates/TEMPLATE-AUTOPILOT-CONFIG.yaml +0 -35
  31. package/docs/templates/TEMPLATE-BUG.md +0 -71
  32. package/docs/templates/TEMPLATE-CI.yml +0 -25
  33. package/docs/templates/TEMPLATE-DECISIONS.md +0 -11
  34. package/docs/templates/TEMPLATE-FEATURE.md +0 -127
  35. package/docs/templates/TEMPLATE-GOAL.md +0 -31
  36. package/docs/templates/TEMPLATE-IDEA.md +0 -31
  37. package/docs/templates/TEMPLATE-NOTE.md +0 -27
  38. package/docs/templates/TEMPLATE-ROADMAP.md +0 -21
@@ -1,71 +0,0 @@
1
- # Bug: {Title}
2
-
3
- **Status**: Open | In-Progress | Fixed
4
- **Severity**: minor | moderate | major
5
- **Slug**: {slug}
6
- **Reported**: {YYYY-MM-DD}
7
- **Last updated**: {YYYY-MM-DD}
8
-
9
- ---
10
-
11
- ## Summary
12
-
13
- {One-sentence description of what's broken and where.}
14
-
15
- ## Steps to Reproduce
16
-
17
- 1.
18
- 2.
19
- 3.
20
-
21
- ## Expected Behavior
22
-
23
- {What should happen.}
24
-
25
- ## Actual Behavior
26
-
27
- {What actually happens. Include any error messages or observable symptoms.}
28
-
29
- ## Impact
30
-
31
- - {Who or what is affected, and how severely.}
32
-
33
- ## Suspected Location
34
-
35
- - {File path(s) or component(s) most likely responsible.}
36
-
37
- ## Notes
38
-
39
- - {Workarounds, related issues, env var context, etc.}
40
-
41
- ---
42
-
43
- ## Implementation Checklist
44
-
45
- - [ ] Root cause identified
46
- - [ ] Fix implemented
47
- - [ ] `{your check command}` passes
48
- - [ ] No secrets or `.env` files committed
49
- - [ ] No unrelated files modified
50
-
51
- ---
52
-
53
- ## Post-Mortem
54
-
55
- > Fill in after the fix is complete.
56
-
57
- ### Investigation
58
-
59
- {How you traced the bug — files read, code paths followed, assumptions tested.}
60
-
61
- ### Root Cause
62
-
63
- {Precise explanation of the defective code and why it caused the symptom.}
64
-
65
- ### Fix
66
-
67
- {What changed and why. Include file paths and key line references.}
68
-
69
- ### Lessons
70
-
71
- - {Takeaways applicable to future work — patterns to avoid, checks to add, etc.}
@@ -1,25 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches: [main]
6
- pull_request:
7
- branches: [main]
8
-
9
- jobs:
10
- check:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - uses: actions/checkout@v4
14
-
15
- # TODO: Add stack setup steps, e.g.:
16
- # - uses: actions/setup-node@v4
17
- # with: { node-version: 20 }
18
- # - run: npm ci
19
-
20
- - name: Run checks
21
- run: |
22
- # TODO: Paste your check command from .claude/project-checks.md
23
- # Example: npm run typecheck && npm run lint && npm test
24
- echo "CI not configured — fill in the check command above"
25
- exit 1
@@ -1,11 +0,0 @@
1
- # Decisions: {Goal Title}
2
-
3
- **Goal**: [{goal-slug}](goal.md)
4
-
5
- ## D-001: {Decision title}
6
- - **Category:** tech-stack | architecture | scope | pattern | trade-off
7
- - **Decided:** {what was chosen}
8
- - **Alternatives considered:** {list}
9
- - **Reasoning:** {why this choice}
10
- - **Revisit if:** {condition that would invalidate this decision}
11
- - **Used by:** {feature-slug-1}, {feature-slug-2}
@@ -1,127 +0,0 @@
1
- # {Feature Name}
2
-
3
- **Status**: Proposed | Backlog | In-Progress | Done
4
- **Slug**: {slug}
5
- **Created**: {YYYY-MM-DD}
6
- **Last updated**: {YYYY-MM-DD}
7
-
8
- ---
9
-
10
- ## Goal
11
-
12
- > One paragraph. Why does this feature exist? What problem does it solve, for whom, and why now?
13
-
14
- ## User Stories
15
-
16
- - As a {role}, I want {action} so that {outcome}.
17
-
18
- ## MVP Scope
19
-
20
- **In scope:** what ships in v1.
21
-
22
- **Out of scope:** what is explicitly deferred — each item with a one-line reason.
23
-
24
- ---
25
-
26
- ## Context for Claude
27
-
28
- > Key files to read before touching anything. 2-5 pointers — the exact paths and what lives there.
29
-
30
- - `{path/to/file}` — relevant pattern / existing logic
31
-
32
- ---
33
-
34
- ## Architecture & Data
35
-
36
- ### Data Models
37
-
38
- Schema definitions, column types, relationships, migrations required.
39
-
40
- ```
41
- // exact table/type definitions here
42
- ```
43
-
44
- ### API Contracts
45
-
46
- Endpoints — HTTP method, URL, auth, request body, response shapes, error codes.
47
-
48
- ### File & Folder Structure
49
-
50
- | Path | New / Modified | Purpose |
51
- |------|---------------|---------|
52
- | `{path}` | New | … |
53
-
54
- ### Implementation Sequence
55
-
56
- Ordered steps. Call out blockers explicitly ("Step 3 must precede Step 4 because…").
57
- Each step must include `Read first:` (files to load before starting) and `Verify:` (how to confirm the step is done).
58
-
59
- 1. {Description}
60
- - Read first: `{path}`
61
- - Verify: {observable outcome or command}
62
-
63
- ---
64
-
65
- ## Non-Negotiable Rules
66
-
67
- > Hard constraints that must not be violated. Security invariants, data-loss rules, API contracts other systems depend on.
68
-
69
- - Rule 1
70
- - Rule 2
71
-
72
- ---
73
-
74
- ## Edge Cases & Risks
75
-
76
- | Scenario | Handling |
77
- |----------|---------|
78
- | … | … |
79
-
80
- ---
81
-
82
- ## Implementation Checklist
83
-
84
- ### Phase 1 — Goal (fill before asking for approval)
85
- - [ ] Goal, User Stories, and MVP Scope written and reviewed
86
-
87
- ### Phase 2 — Architecture (fill after Goal approved)
88
- - [ ] Architecture & Data section complete
89
- - [ ] Non-Negotiable Rules defined
90
- - [ ] Edge Cases covered
91
- - [ ] Context for Claude pointers filled in
92
-
93
- ### Implementation (tick off as you go)
94
- - [ ] Step 1 …
95
- - [ ] Step 2 …
96
- - [ ] `{your check command}` passes
97
- - [ ] No secrets or `.env` files committed
98
- - [ ] No unrelated files modified
99
- - [ ] All user stories verifiably met
100
-
101
- ---
102
-
103
- ## Open Questions
104
-
105
- - [ ] Question 1 — owner: TBD
106
-
107
- ---
108
-
109
- ## Retrospective
110
-
111
- > Fill this section when archiving. 3–5 bullets max. Focus on surprises and decisions — not a summary of what was built (the code is the record of that).
112
-
113
- **Residual risks / follow-ups:**
114
- > Every known limitation or deferred risk must be tracked or accepted — `/f-feature-dev` hard-blocks archival otherwise. Each bullet must be one of: `<desc> → ideas/<slug>.md`, `<desc> → backlog/<slug>.md`, `<desc> — accepted`, or exactly `- none` if there are no residual risks.
115
- - none
116
-
117
- **What changed from the plan:**
118
- - …
119
-
120
- **Key decisions made during implementation:**
121
- - …
122
-
123
- **Architecture impact** (update `docs/ARCHITECTURE.md` if any of these apply):
124
- - [ ] New package/module added
125
- - [ ] New data model or schema change
126
- - [ ] New inter-package interaction
127
- - [ ] Deployment topology changed
@@ -1,31 +0,0 @@
1
- # {Goal Title}
2
-
3
- **Status**: Proposed | Active | Paused | Complete | Abandoned
4
- **Slug**: {goal-slug}
5
- **Created**: {YYYY-MM-DD}
6
- **Last updated**: {YYYY-MM-DD}
7
-
8
- ---
9
-
10
- ## Goal Statement
11
-
12
- {The user's original goal, captured verbatim or lightly edited for clarity}
13
-
14
- ## Constraints
15
-
16
- {Hard constraints: budget, timeline, must-integrate-with, regulatory, etc.
17
- "None stated" if the user had none.}
18
-
19
- ## Preferences
20
-
21
- {User preferences: "use Vue.js", "keep it simple", "no ORMs", etc.
22
- Each preference is labeled (required) or (preferred) or (you decide).
23
- "None stated" if the user left all decisions to AI.}
24
-
25
- ## Target Users
26
-
27
- {Who uses this product and how. If not stated, AI's best inference marked as "(inferred)".}
28
-
29
- ## Success Criteria
30
-
31
- {What "done" looks like — observable, testable outcomes. 3-5 bullets max.}
@@ -1,31 +0,0 @@
1
- # {Idea Title}
2
-
3
- **Status**: Idea | Considering | Promoted | Dropped
4
- **Slug**: {slug}
5
- **Created**: {YYYY-MM-DD}
6
-
7
- ---
8
-
9
- ## Problem
10
-
11
- > What pain or opportunity does this address? For whom?
12
-
13
- ## Idea
14
-
15
- > One paragraph. What's the rough solution or approach?
16
-
17
- ## How It Might Work
18
-
19
- > Optional rough sketch — not architecture, just enough to evaluate feasibility.
20
-
21
- | What | Where |
22
- |------|-------|
23
- | … | … |
24
-
25
- ## Why Now
26
-
27
- > What makes this worth capturing? Urgency, dependencies, strategic fit.
28
-
29
- ## Open Questions
30
-
31
- - [ ] …
@@ -1,27 +0,0 @@
1
- # {Title}
2
-
3
- **Date**: {YYYY-MM-DD}
4
- **Context**: {What triggered this note — a question, comparison, research session, or discussion.}
5
-
6
- ---
7
-
8
- ## Summary
9
-
10
- > 2–3 sentences. What was explored and what's the takeaway?
11
-
12
- ## Findings
13
-
14
- > Main content. Structure freely — tables, sections, bullet lists, whatever fits the topic.
15
-
16
- ## Decisions
17
-
18
- > Optional. Concrete decisions made during or after this session. Omit if the note is purely informational.
19
-
20
- - {Decision 1}
21
- - {Decision 2}
22
-
23
- ## Open Questions
24
-
25
- > Optional. Unresolved items worth revisiting. Omit if none.
26
-
27
- - [ ] {Question 1}
@@ -1,21 +0,0 @@
1
- # Roadmap: {Goal Title}
2
-
3
- **Goal**: [{goal-slug}](goal.md)
4
- **Last updated**: {YYYY-MM-DD}
5
-
6
- ## Milestones
7
-
8
- ### Milestone 1: {name}
9
- > {One-line description of what's testable after this milestone}
10
-
11
- | ID | Story | Slug | Depends on | Status |
12
- |----|-------|------|------------|--------|
13
- | M1.1 | {story title} | {feature-slug} | — | backlog |
14
- | M1.2 | {story title} | {feature-slug} | M1.1 | blocked |
15
-
16
- **Checkpoint:** {What the human should test after this milestone completes}
17
-
18
- ## Dependency Graph
19
-
20
- {ASCII or text description of which stories block which. Can be as simple as
21
- "1 → 2 → 3, 1 → 4" for linear + parallel branches.}