You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Aperture Core owns continuity, replay, engagement, and attention mechanics.
57
+
- The plugin worker owns Paperclip-specific host adaptation, reconciliation, approval overlays, and persisted review state.
58
+
- The UI owns presentation and operator interaction wiring.
59
+
60
+
This plugin is not meant to become a second independent attention engine. If a change starts inventing new generic ranking policy inside the plugin, pause and ask whether it belongs in Aperture Core instead.
61
+
62
+
## Change Expectations
63
+
64
+
- Prefer extending the worker-side adapters and typed contracts over ad hoc UI logic.
65
+
- Keep task and interaction identity flowing through the shared task-ref helpers instead of hand-parsing ids.
66
+
- Preserve bounded exports and bundle budgets unless you deliberately revisit those limits.
67
+
- Add or update tests whenever behavior, persistence, or reconciliation logic changes.
Paperclip Aperture adds a Focus surface to Paperclip that deterministically ranks approvals, issue activity, and other human-facing events into `now`, `next`, and `ambient`.
16
+
Paperclip Aperture adds a Focus surface to Paperclip that turns approvals, issue activity, and other human-facing signals into `now`, `next`, and `ambient`.
17
17
18
18
It is designed as a live attention layer, not an inbox clone:
19
19
@@ -66,16 +66,27 @@ and agents attention now? actually sees to th
66
66
- a Focus surface inside Paperclip
67
67
- ranked `now`, `next`, and `ambient` attention lanes
68
68
- embedded explainability in the Focus UI, including `Why now`, `Why next`, confidence, signals, thread context, and related activity
69
+
- bounded focus hold while the operator is actively working the current `now` item, so `Show context` and inline commenting do not immediately lose the thread beneath them
69
70
- approval handling, including budget-specific approval semantics
70
71
- issue-aware operator language such as `review required`, `blocked`, and targeted recommended moves
71
72
- agent-aware routing that distinguishes known company agents from human/operator roles when issue text references them
72
-
- a plugin-local deterministic semantic mapping layer that interprets Paperclip issue, approval, and agent signals before publishing them into Aperture Core
73
+
- a plugin-local semantic mapping and policy layer that interprets Paperclip issue, approval, and agent signals before composing the final Focus view
73
74
- richer semantic continuity hints on mapped issue events, including `supersedes` and `resolves` relationships where Paperclip-specific intent is clear
74
75
- document-aware review interpretation for memo/spec-backed issues so Focus can tell the difference between `review is blocked on the artifact` and `the artifact is attached, monitor instead`
75
76
- dynamic re-stacking so items can move between `now`, `next`, and `ambient` as new evidence arrives
76
77
- inline issue commenting from the Focus surface when a Paperclip issue supports written response
77
78
- durable acknowledge/suppression behavior backed by plugin state and ledger replay
79
+
- worker-owned display composition that merges live Paperclip approvals into the final Focus snapshot before the UI sees it
80
+
- bounded Core trace export and sparse Focus action telemetry/activity writes for replay and debugging
81
+
- live Core diagnostics export, including signal summaries, memory profile snapshots, and current-session attention state for offline analysis
82
+
- worker-bridged operator signals for Focus page presence, active-item viewing, and context expansion so Aperture Core sees real interaction evidence instead of the plugin faking a second attention model
83
+
- overlay diagnostics export that compares `core -> reconciled -> display` so the plugin's host-policy contribution is inspectable without confusing it for Core judgment
78
84
- a sidebar entry, page, and dashboard widget
85
+
- worker-side host read caching for issue/comment/document/agent reconciliation, with fresh summary/export reads when you need the latest host truth
86
+
- bounded per-company Core sessions with health reporting so the worker does not grow without limit during normal multi-company use
87
+
- a corpus-backed `issue-intelligence` regression check in CI so heuristic edits stay inspectable
88
+
- rollback-safe local mutations that restore the last durable attention state if persistence fails
89
+
- versioned persisted attention envelopes with an explicit migration path for older schemas
79
90
80
91
## Explainability
81
92
@@ -99,33 +110,39 @@ The intent is not to expose every internal scoring detail. It is to help an oper
99
110
100
111
This plugin treats Paperclip as the host runtime and UI shell, while embedding [Aperture Core](https://github.com/tomismeta/aperture/tree/main/packages/core) through the npm package [`@tomismeta/aperture-core`](https://www.npmjs.com/package/@tomismeta/aperture-core).
101
112
102
-
It is a pure SDK integration: Aperture Core is used as-is inside a self-contained Paperclip plugin, with no changes to Aperture Core or Paperclip core.
113
+
It is an SDK-first integration with explicit plugin-side host policy. Aperture Core handles continuity, replay, and global attention mechanics; the plugin adds Paperclip-specific candidate generation, approval overlays, and operator language where the host can know more than Core alone.
103
114
104
-
For `0.3.x`, the boundary works like this:
115
+
For `0.4.x`, the boundary works like this:
105
116
106
-
- the plugin worker owns Aperture ingestion, replay, review state, and display composition
117
+
- the plugin worker owns Aperture ingestion, replay, review state, display composition, reconciliation caching, and Paperclip-native policy overlays
118
+
- the final Focus view is therefore Core-backed but not Core-only today: the plugin still owns some Paperclip-specific candidate and lane policy where the host has facts Core cannot infer by itself
107
119
- Paperclip remains the system of record for issue and approval writes
108
-
- approval transport still goes through same-origin Paperclip HTTP APIs from the plugin UI because the current plugin SDK does not expose approval read/write clients
120
+
- approval transport now goes through a worker-side Paperclip adapter using the plugin SDK HTTP client, so the browser UI no longer talks to host approval APIs directly
109
121
- the plugin intentionally publishes `ApertureEvent`s today, using a Paperclip-specific semantic mapping layer and ontology, rather than switching fully to `SourceEvent`
110
-
- that semantic layer includes reusable intent detectors, actor resolution against real company agents, downstream blocker extraction, and shared operator-language generation inside the plugin
122
+
- that semantic layer includes reusable intent detectors, actor resolution against real company agents, downstream blocker extraction, explicit rule ids for matched issue heuristics, and shared operator-language generation inside the plugin
123
+
-`activity.logged` document events invalidate stale reconciled state so document-backed review blockers refresh promptly without a full browser-side merge layer
124
+
- Focus exports the live Core snapshot, the reconciled/plugin-composed display snapshot, and bounded Core traces so replay/debug flows can inspect both the engine substrate and the final operator view
111
125
112
-
The plugin has been validated against [`@tomismeta/aperture-core@0.4.0`](https://www.npmjs.com/package/@tomismeta/aperture-core).
126
+
The plugin has been validated against [`@tomismeta/aperture-core@0.6.0`](https://www.npmjs.com/package/@tomismeta/aperture-core) and [`@paperclipai/plugin-sdk@2026.403.0`](https://www.npmjs.com/package/@paperclipai/plugin-sdk).
127
+
128
+
If your Paperclip host is not running at the default local address, set the plugin config field `paperclipApiBase` so the worker-side approval adapter can reach the correct host API.
113
129
114
130
## Development
115
131
116
132
```bash
117
133
pnpm install
118
-
pnpm typecheck
119
-
pnpm test
120
-
pnpm build
134
+
pnpm verify
121
135
```
122
136
123
137
Before releasing, run:
124
138
125
139
```bash
140
+
pnpm clean
126
141
pnpm release:check
127
142
```
128
143
144
+
`pnpm verify` runs typecheck, tests, the issue-intelligence eval corpus, a production build, and bundle-size checks.
145
+
129
146
For a live local Paperclip smoke test, start Paperclip first:
130
147
131
148
```bash
@@ -156,6 +173,8 @@ Then open `http://127.0.0.1:3100/APE/aperture` and verify:
156
173
157
174
- Plugin on npm: [`@tomismeta/paperclip-aperture`](https://www.npmjs.com/package/@tomismeta/paperclip-aperture)
158
175
- Roadmap and releasing: [docs/ROADMAP.md](./docs/ROADMAP.md)
0 commit comments