|
| 1 | +--- |
| 2 | +'@objectstack/platform-objects': patch |
| 3 | +'@objectstack/spec': patch |
| 4 | +'@objectstack/plugin-security': patch |
| 5 | +'@objectstack/cli': patch |
| 6 | +--- |
| 7 | + |
| 8 | +feat(platform-objects): built-in tasks and notes, `sys_task` and `sys_note`, in every environment |
| 9 | + |
| 10 | +Clause-②: yes (widening) |
| 11 | +Metadata-protocol: none |
| 12 | + |
| 13 | +`PlatformObjectsPlugin` now registers two ordinary, customizable objects on their own manifest |
| 14 | +(`com.objectstack.platform-objects.work`), so any application can put tasks and notes in its menu |
| 15 | +without declaring its own: |
| 16 | + |
| 17 | +- `sys_task` — title (required), description (rich text), status (To Do / In Progress / Done, |
| 18 | + default To Do), due time, assignee (a user, defaulting to the creator) and a read-only completion |
| 19 | + time the platform writes when the status becomes Done and clears when it leaves Done. |
| 20 | +- `sys_note` — an optional title and a rich-text body; lists show a read-only heading that is the |
| 21 | + title, or the body's first line when the title is empty. |
| 22 | + |
| 23 | +Each keeps its own sharing: `sharingModel: 'private'` over a declared `owner_id` (the creator), and a |
| 24 | +task is also shared, with edit access, with its assignee through the declared `sys_task_assignee` |
| 25 | +sharing rule. Neither links to, grants access to, or derives access from any other record. Default |
| 26 | +views: tasks Assigned to Me (open, by due time), Created by Me and All Tasks (a board by status); |
| 27 | +notes My Notes and All Notes. Attachments are on for both. |
| 28 | + |
| 29 | +Both names join `PLATFORM_OBJECTS_BY_PACKAGE['platform-objects']` in `@objectstack/spec`, so |
| 30 | +validation treats them as platform-provided: an app's navigation entry reaches them with |
| 31 | +`requiresObject` beside `objectName` (`{ type: 'object', objectName: 'sys_task', requiresObject: |
| 32 | +'sys_task' }`), which `defineStack` accepts and the console hides on a kernel without the object. |
| 33 | +Their labels ship in the platform's eleven locales (zh-CN 任务 / 备忘). |
| 34 | + |
| 35 | +`@objectstack/plugin-security`: the member baseline `member_default` grants `sys_task` and |
| 36 | +`sys_note` read, create and edit, with no delete (maintainer ruling 7131539862, option A). It opens |
| 37 | +the objects only: which rows a member sees stays with each object's private sharing, so a task is |
| 38 | +read by its creator and its assignee and a note by its creator. |
| 39 | + |
| 40 | +`@objectstack/cli`: the organization-ownership inventory (ADR-0131 D10) gives `sys_task` and |
| 41 | +`sys_note` the `attribution` fate, so `os migrate organization-ownership` and the `os dev` upgrade |
| 42 | +plan databases that hold them instead of refusing an object with no fate. |
| 43 | + |
| 44 | +Clause-② reads `yes (widening)`: `defineStack` now accepts a top-level action whose `objectName` is |
| 45 | +`sys_task` or `sys_note`, and the public surface grows. `Metadata-protocol: none` follows the |
| 46 | +`sys_unit` roster-addition precedent: no metadata key, type or schema value is added, and a |
| 47 | +reference that already parsed now resolves. |
0 commit comments