create-mercato-app 0.9.0 → 0.9.1-develop.7459.1.99e3accd30
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/README.md +1 -1
- package/agentic/guides/customers-calendar.md +57 -0
- package/agentic/guides/extensions.md +2 -0
- package/agentic/shared/ai/harness/README.md +4 -2
- package/agentic/shared/ai/harness/RELEASE.md +4 -4
- package/agentic/shared/ai/harness/cases.json +292 -34
- package/agentic/shared/ai/harness/cases.schema.json +4 -4
- package/agentic/shared/ai/harness/design-system-inventory.json +63 -3
- package/agentic/shared/ai/harness/source-link-inventory.json +316 -8
- package/agentic/shared/ai/harness/validators.json +1 -1
- package/agentic/shared/ai/skills/om-integration-builder/references/provider-families.md +1 -1
- package/dist/agentic/guides/customers-calendar.md +57 -0
- package/dist/agentic/guides/extensions.md +2 -0
- package/dist/agentic/guides/module-facts.json +671 -157
- package/dist/agentic/guides/module-facts.v2.json +671 -157
- package/dist/agentic/guides/modules/agent_orchestrator/index.md +1 -1
- package/dist/agentic/guides/modules/ai_assistant/index.md +1 -1
- package/dist/agentic/guides/modules/api_docs/index.md +1 -1
- package/dist/agentic/guides/modules/api_keys/index.md +1 -1
- package/dist/agentic/guides/modules/attachments/index.md +1 -1
- package/dist/agentic/guides/modules/audit_logs/index.md +1 -1
- package/dist/agentic/guides/modules/auth/index.md +1 -1
- package/dist/agentic/guides/modules/availability/index.md +1 -1
- package/dist/agentic/guides/modules/business_rules/index.md +1 -1
- package/dist/agentic/guides/modules/catalog/index.md +1 -1
- package/dist/agentic/guides/modules/channel_apns/index.md +1 -1
- package/dist/agentic/guides/modules/channel_discord/index.md +1 -1
- package/dist/agentic/guides/modules/channel_expo/index.md +1 -1
- package/dist/agentic/guides/modules/channel_fcm/index.md +1 -1
- package/dist/agentic/guides/modules/channel_gmail/index.md +1 -1
- package/dist/agentic/guides/modules/channel_imap/index.md +1 -1
- package/dist/agentic/guides/modules/channel_resend/index.md +1 -1
- package/dist/agentic/guides/modules/channel_ses/index.md +1 -1
- package/dist/agentic/guides/modules/checkout/index.md +1 -1
- package/dist/agentic/guides/modules/communication_channels/index.md +1 -1
- package/dist/agentic/guides/modules/configs/index.md +1 -1
- package/dist/agentic/guides/modules/content/index.md +1 -1
- package/dist/agentic/guides/modules/currencies/index.md +1 -1
- package/dist/agentic/guides/modules/customer_accounts/index.md +1 -1
- package/dist/agentic/guides/modules/customer_groups/index.md +1 -1
- package/dist/agentic/guides/modules/customers/active-extension-bindings.md +1 -1
- package/dist/agentic/guides/modules/customers/di-registrations-rich.md +5 -3
- package/dist/agentic/guides/modules/customers/exact-override-targets.md +5 -3
- package/dist/agentic/guides/modules/customers/index.md +2 -2
- package/dist/agentic/guides/modules/customers/umes-hosts.md +2 -0
- package/dist/agentic/guides/modules/dashboards/index.md +1 -1
- package/dist/agentic/guides/modules/data_sync/index.md +1 -1
- package/dist/agentic/guides/modules/design_system/index.md +1 -1
- package/dist/agentic/guides/modules/devices/index.md +1 -1
- package/dist/agentic/guides/modules/dictionaries/index.md +1 -1
- package/dist/agentic/guides/modules/directory/index.md +1 -1
- package/dist/agentic/guides/modules/documents/index.md +1 -1
- package/dist/agentic/guides/modules/entities/index.md +1 -1
- package/dist/agentic/guides/modules/eudr/index.md +1 -1
- package/dist/agentic/guides/modules/events/index.md +1 -1
- package/dist/agentic/guides/modules/feature_toggles/index.md +1 -1
- package/dist/agentic/guides/modules/forms/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_stripe/index.md +1 -1
- package/dist/agentic/guides/modules/gateway_tpay/acl-features.md +12 -0
- package/dist/agentic/guides/modules/gateway_tpay/cli-commands.md +12 -0
- package/dist/agentic/guides/modules/gateway_tpay/contribution-resolutions.md +12 -0
- package/dist/agentic/guides/modules/gateway_tpay/di-registrations-rich.md +11 -0
- package/dist/agentic/guides/modules/gateway_tpay/exact-override-targets.md +17 -0
- package/dist/agentic/guides/modules/gateway_tpay/index.md +19 -0
- package/dist/agentic/guides/modules/gateway_tpay/owned-contract-module-metadata.md +11 -0
- package/dist/agentic/guides/modules/gateway_tpay/setup.md +11 -0
- package/dist/agentic/guides/modules/gateway_tpay/umes-contributions.md +12 -0
- package/dist/agentic/guides/modules/generators/index.md +1 -1
- package/dist/agentic/guides/modules/inbox_ops/index.md +1 -1
- package/dist/agentic/guides/modules/integrations/index.md +1 -1
- package/dist/agentic/guides/modules/messages/index.md +1 -1
- package/dist/agentic/guides/modules/notifications/index.md +1 -1
- package/dist/agentic/guides/modules/onboarding/index.md +1 -1
- package/dist/agentic/guides/modules/payment_gateways/index.md +1 -1
- package/dist/agentic/guides/modules/perspectives/index.md +1 -1
- package/dist/agentic/guides/modules/phone_calls/index.md +1 -1
- package/dist/agentic/guides/modules/planner/index.md +1 -1
- package/dist/agentic/guides/modules/portal/index.md +1 -1
- package/dist/agentic/guides/modules/progress/index.md +1 -1
- package/dist/agentic/guides/modules/push_notifications/index.md +1 -1
- package/dist/agentic/guides/modules/query_index/index.md +1 -1
- package/dist/agentic/guides/modules/record_locks/index.md +1 -1
- package/dist/agentic/guides/modules/resources/index.md +1 -1
- package/dist/agentic/guides/modules/sales/index.md +1 -1
- package/dist/agentic/guides/modules/scheduler/exact-override-targets.md +1 -1
- package/dist/agentic/guides/modules/scheduler/index.md +1 -1
- package/dist/agentic/guides/modules/scheduler/workers.md +1 -1
- package/dist/agentic/guides/modules/search/index.md +1 -1
- package/dist/agentic/guides/modules/security/index.md +1 -1
- package/dist/agentic/guides/modules/seeds/index.md +1 -1
- package/dist/agentic/guides/modules/shipping_carriers/index.md +1 -1
- package/dist/agentic/guides/modules/sso/index.md +1 -1
- package/dist/agentic/guides/modules/staff/index.md +1 -1
- package/dist/agentic/guides/modules/storage_s3/index.md +1 -1
- package/dist/agentic/guides/modules/sync_akeneo/index.md +1 -1
- package/dist/agentic/guides/modules/sync_excel/index.md +1 -1
- package/dist/agentic/guides/modules/system_status_overlays/index.md +1 -1
- package/dist/agentic/guides/modules/telemetry/index.md +1 -1
- package/dist/agentic/guides/modules/tillio/index.md +1 -1
- package/dist/agentic/guides/modules/translations/index.md +1 -1
- package/dist/agentic/guides/modules/warranty_claims/index.md +1 -1
- package/dist/agentic/guides/modules/webhooks/index.md +1 -1
- package/dist/agentic/guides/modules/wms/index.md +1 -1
- package/dist/agentic/guides/modules/workflows/index.md +1 -1
- package/dist/agentic/guides/reference-module-facts.json +269 -25
- package/dist/agentic/guides/reference-modules/example/active-extension-bindings.md +1 -0
- package/dist/agentic/guides/reference-modules/example/contribution-resolutions.md +7 -4
- package/dist/agentic/guides/reference-modules/example/di-registrations-rich.md +3 -2
- package/dist/agentic/guides/reference-modules/example/di-service-tokens.md +1 -1
- package/dist/agentic/guides/reference-modules/example/exact-override-targets.md +10 -6
- package/dist/agentic/guides/reference-modules/example/index.md +4 -4
- package/dist/agentic/guides/reference-modules/example/umes-contributions.md +8 -5
- package/dist/agentic/guides/upstream/BACKWARD_COMPATIBILITY.md +1 -0
- package/dist/agentic/guides/upstream/manifest.json +2 -2
- package/dist/agentic/shared/ai/harness/README.md +4 -2
- package/dist/agentic/shared/ai/harness/RELEASE.md +4 -4
- package/dist/agentic/shared/ai/harness/cases.json +292 -34
- package/dist/agentic/shared/ai/harness/cases.schema.json +4 -4
- package/dist/agentic/shared/ai/harness/design-system-inventory.json +63 -3
- package/dist/agentic/shared/ai/harness/source-link-inventory.json +316 -8
- package/dist/agentic/shared/ai/harness/validators.json +1 -1
- package/dist/agentic/shared/ai/skills/om-integration-builder/references/provider-families.md +1 -1
- package/package.json +5 -4
- package/template/.env.example +30 -2
- package/template/package.json.template +1 -0
- package/template/scripts/dev-docker-availability.mjs +47 -0
- package/template/scripts/dev-mcp.mjs +11 -0
- package/template/scripts/dev.mjs +37 -4
- package/template/src/bootstrap-api.ts +12 -2
- package/template/src/modules/example/__integration__/TC-EXAMPLE-018-visit-availability.spec.ts +602 -0
- package/template/src/modules/example/__tests__/di-registration.test.ts +35 -0
- package/template/src/modules/example/api/visit-availability/__tests__/route.test.ts +152 -0
- package/template/src/modules/example/api/visit-availability/route.ts +127 -0
- package/template/src/modules/example/commands/interceptors.ts +2 -1
- package/template/src/modules/example/components/VisitPanel.tsx +126 -0
- package/template/src/modules/example/components/__tests__/VisitPanel.test.tsx +200 -0
- package/template/src/modules/example/di.ts +23 -0
- package/template/src/modules/example/i18n/de.json +36 -0
- package/template/src/modules/example/i18n/en.json +36 -0
- package/template/src/modules/example/i18n/es.json +36 -0
- package/template/src/modules/example/i18n/ko.json +36 -0
- package/template/src/modules/example/i18n/pl.json +37 -1
- package/template/src/modules/example/lib/__tests__/visitAvailability.test.ts +531 -0
- package/template/src/modules/example/lib/__tests__/visitAvailabilityClient.test.ts +61 -0
- package/template/src/modules/example/lib/__tests__/visitAvailabilityDecision.test.ts +50 -0
- package/template/src/modules/example/lib/__tests__/visitBookingSerialization.test.ts +571 -0
- package/template/src/modules/example/lib/__tests__/visitBookings.test.ts +211 -0
- package/template/src/modules/example/lib/visitAvailability.ts +212 -0
- package/template/src/modules/example/lib/visitAvailabilityClient.ts +79 -0
- package/template/src/modules/example/lib/visitAvailabilityDecision.ts +234 -0
- package/template/src/modules/example/lib/visitAvailabilityGuard.ts +147 -0
- package/template/src/modules/example/lib/visitBookingSerialization.ts +281 -0
- package/template/src/modules/example/lib/visitBookings.ts +123 -0
- package/template/src/modules/example/references/surface-inventory.json +55 -2
- package/template/src/modules/example/references/surface-map.md +10 -0
- package/template/src/modules/example/widgets/__tests__/calendar-event-types.test.ts +69 -0
- package/template/src/modules/example/widgets/__tests__/component-override-modes.test.ts +64 -1
- package/template/src/modules/example/widgets/__tests__/components.test.ts +5 -3
- package/template/src/modules/example/widgets/__tests__/injection-table.test.ts +1 -0
- package/template/src/modules/example/widgets/__tests__/required-modules.test.ts +1 -0
- package/template/src/modules/example/widgets/__tests__/visit-availability-widget.test.ts +85 -0
- package/template/src/modules/example/widgets/components.ts +34 -0
- package/template/src/modules/example/widgets/injection/calendar-visit/widget.ts +37 -0
- package/template/src/modules/example/widgets/injection/visit-availability/widget.client.tsx +12 -0
- package/template/src/modules/example/widgets/injection/visit-availability/widget.ts +61 -0
- package/template/src/modules/example/widgets/injection-table.ts +2 -0
- package/template/src/modules.ts +6 -0
package/README.md
CHANGED
|
@@ -152,7 +152,7 @@ yarn install-skills
|
|
|
152
152
|
yarn harness:release --runner codex --prepare-targets /absolute/empty-release-targets --acknowledge-writes
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
The target directory must be absolute, new or empty, and outside the controller app. Select one blocking primary runner with `--runner codex` or `--runner claude`; it owns all
|
|
155
|
+
The target directory must be absolute, new or empty, and outside the controller app. Select one blocking primary runner with `--runner codex` or `--runner claude`; it owns all 238 routing cases and every writable/review lane, with no per-case fallback. Optionally add the different authenticated runner through `--portability-runner` for the exact 49-case representative read-only lane. Omitting it is valid and recorded as not requested; once requested, its failures are blocking. Use a fresh, sanitized controller: automatic preparation fails before copying `.env`/`.env.*` local configuration (safe example/sample/template files remain allowed), credential files, or private-key files. The complete gate requires Linux with trusted system Bubblewrap (`bwrap`) and user namespaces because its Playwright API/browser lanes need a loopback namespace isolated from the host. Preflight rejects untrusted/no-op/pass-through executables and proves isolated loopback plus a capability-free payload before target preparation, provider invocation, or writes; native macOS and Windows therefore fail closed. The command also fails closed when a required runner, browser, or test runtime is unavailable. The 238-case catalog includes 93 framework-neutral business prompts and 49 writable implementation/regression cases (20.6%). The release command runs live routing, writable trusted oracles, per-target `generate`/`typecheck`/`lint`/`build`, any declared generated test, and isolated generated-code review for every writable result. Foundation and target validation—including `yarn build`—receive a minimal environment with network access denied, and persisted diagnostics redact sensitive environment values and URL userinfo. Test-authoring coverage executes a Jest unit test plus Linux/Bubblewrap loopback-only Playwright API and browser tests through fixed controller-owned commands against a read-only target; runtime reports must attest at least one passed test and zero skipped, todo, focused, flaky, or expected-failure tests. The suite then writes a schema-valid sanitized mode-`0600` report under `.ai/harness/results/` with the selected primary and optional portability runner policy.
|
|
156
156
|
|
|
157
157
|
Use the bundled `om-evolve-harness` skill to add a real case: reproduce failure first, select one smallest knowledge owner, run any generated unit/integration tests plus target checks, require code review, and finish with the full release suite. Open Mercato framework maintainers use the monorepo-only `$om-refresh-standalone-harness --from <ref> --to <ref>` workflow for every release range and retain its sanitized maintenance report.
|
|
158
158
|
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Customers calendar event types
|
|
2
|
+
|
|
3
|
+
Use this guide after `.ai/guides/modules/customers/index.md` when adding, removing, or modifying calendar event types. Calendar behavior belongs to Customers and app-owned contributions. Keep framework packages read-only; generic CrudForm, InjectionSpot, widget loading, and module overrides must remain independent of calendar business rules.
|
|
4
|
+
|
|
5
|
+
## Exact reference implementation
|
|
6
|
+
|
|
7
|
+
- [Customers definitions, schemas, and registry operations](../../node_modules/@open-mercato/core/src/modules/customers/calendar-event-types.ts)
|
|
8
|
+
- [Customers server catalog resolution](../../node_modules/@open-mercato/core/src/modules/customers/lib/calendar/eventTypeResolver.ts)
|
|
9
|
+
- [Customers editor](../../node_modules/@open-mercato/core/src/modules/customers/components/calendar/CalendarEventEditor.tsx)
|
|
10
|
+
- [Example adds Visit and optionally patches Meeting](../../src/modules/example/widgets/injection/calendar-visit/widget.ts)
|
|
11
|
+
- [Example injection bindings](../../src/modules/example/widgets/injection-table.ts)
|
|
12
|
+
- [Example Visit lifecycle widget](../../src/modules/example/widgets/injection/visit-availability/widget.ts)
|
|
13
|
+
- [Example optional availability checks](../../src/modules/example/lib/visitAvailability.ts)
|
|
14
|
+
- [Example Visit panel and dependency warnings](../../src/modules/example/components/VisitPanel.tsx)
|
|
15
|
+
- [Example server validation](../../src/modules/example/commands/interceptors.ts)
|
|
16
|
+
- [Example server availability guard](../../src/modules/example/lib/visitAvailabilityGuard.ts)
|
|
17
|
+
- [Example server DI registration](../../src/modules/example/di.ts)
|
|
18
|
+
|
|
19
|
+
The shipped example is disabled by default. Read and adapt its connected files into your own `src/modules/<id>/`; enable your own module in `src/modules.ts`. Do not modify the canonical teaching example merely to customize an app.
|
|
20
|
+
|
|
21
|
+
## Add a type
|
|
22
|
+
|
|
23
|
+
Export an ordinary injection widget typed as `CalendarEventTypeWidget` from `@open-mercato/core/modules/customers/calendar-event-types`. Include stable `metadata.id`, `Widget: () => null`, and `eventTypes: [definition]`. Bind the widget to `calendar:customers.event-types` in your module's `widgets/injection-table.ts`. Use the example's injection-table shape; retain enabled-module and feature gates.
|
|
24
|
+
|
|
25
|
+
A definition has a stable lowercase `key`, fallback `label`, translated `labelKey`, optional `icon`, `color`, `panelKey`, and a complete `behavior`. Set `schemaVersion: 1`, a supported `baseKind`, `selectable`, `order`, every `fields` switch, and `customFieldsetIds`. The `baseKind` selects the existing Customers persistence behavior; a new type does not require a duplicate customer event entity. Visit uses `baseKind: 'event'` and `panelKey: 'example.visit'`. Keep validation, custom fields, and panel selection inside the owning business module.
|
|
26
|
+
|
|
27
|
+
An empty `customFieldsetIds` preserves unrestricted legacy custom fields; it does not hide every field. Supply a non-empty list to restrict the editor to those fieldsets. Preserve shipped field behavior when adapting a definition, including `endTime: true` for Call and Task.
|
|
28
|
+
|
|
29
|
+
## Remove, replace, or patch a type
|
|
30
|
+
|
|
31
|
+
In your own app module, use `eventTypeOverrides: { note: null }` to remove a type from the selectable catalog. This is an app-owned customization; it is not part of the shipped Example declaration. A non-null override supplies a complete replacement definition accepted by the Customers schema. For a targeted modification, add an `eventTypePatches` entry with `targetEventTypeKey`, then explicit operations such as `replaceLabelKey`, `replaceFields`, `replaceSelectable`, `replaceCustomFieldsetIds`, `appendCustomFieldsetIds`, or `deleteCustomFieldsetIds`. The example changes Meeting's translated label with `replaceLabelKey`. The shipped example preserves all six baseline types with either flag value. Only its Meeting patch is an opt-in demonstration controlled by `OM_EXAMPLE_CALENDAR_DEMO_OVERRIDES`; the default is false. Visit sets `adminConfigurable: false`, so its extension behavior remains code-owned.
|
|
32
|
+
|
|
33
|
+
Removing a type is a catalog tombstone, not deletion of existing activities or tasks. Preserve historical fallback when opening records whose type is tombstoned, unknown, or contributed by a disabled module. Test existing records as well as the create selector, and do not silently migrate their stable type keys.
|
|
34
|
+
|
|
35
|
+
For server-owned programmatic contributions, resolve Customers' `calendarEventTypeRegistry` through DI. Its `upsert`, `replace`, `patch`, `remove`, and `removeSource` operations carry provenance; follow the exact installed signatures and keep source cleanup deterministic. The example's `di.ts` softly resolves this service and registers the same widget definitions and patches for API and worker execution. Follow that module registrar when adapting the client declaration: registering a browser widget alone does not register server contributions. Keep dependency resolution optional and do not add a global calendar dispatcher or calendar properties to shared override or widget metadata contracts.
|
|
36
|
+
|
|
37
|
+
## Optional staff and resources
|
|
38
|
+
|
|
39
|
+
Staff and resources are optional integrations. Do not statically import their entities or implementations into an app module that must work without those packages. Resolve optional services or query by scoped entity IDs only after confirming the module is enabled. If staff or resources are unavailable, show a translated warning, skip only their unavailable checks, and keep the Visit panel and ordinary Customers calendar operational. An installed and enabled dependency still enforces its normal authorization, scope, and availability validation. A denied or failed check must not be treated as a missing module.
|
|
40
|
+
|
|
41
|
+
Visit reports each selected staff member or resource by display name and distinguishes missing schedules or intervals outside working hours from an existing booking (`example.calendar.visitAvailability.booked`). Booking checks include overlapping Customers interactions of every event type, including recurrence occurrences, in the authorized tenant and organization. Use half-open intervals: touching boundaries do not overlap. Canceled and deleted interactions do not reserve subjects. On edit, pass the validated current `excludeInteractionId` to preview; the command guard excludes that same existing interaction automatically, while retaining other collisions. Preview and rejected writes return the blocked subject names and reason keys without disclosing other event titles or IDs. Booking reads and recurrence expansion are bounded; failed, incomplete, or unsupported booking checks fail closed rather than reporting an available subject. These guards protect Visit scheduling against bookings from any type; they do not impose Visit rules on other event-type writes.
|
|
42
|
+
|
|
43
|
+
The availability widget must gate its handlers to Visit itself; UI visibility alone does not gate mutation hooks. Keep matching server validation in API/command interceptors so direct calls enforce the same rules. Preserve tenant/organization scope, optimistic locking, guarded mutations, and the read/save/reload round trip.
|
|
44
|
+
|
|
45
|
+
## Event timezones and recurring availability
|
|
46
|
+
|
|
47
|
+
Every calendar event editor exposes an IANA timezone selector. Keep its `timezone` in form values when wrapping the standard panel; use the Customers wall-time helpers to convert its local date/time into the `scheduledAt` instant. The API accepts optional nullable `timezone`, validates explicit IANA names, and returns it on reads. Persist the chosen zone and restore it on edit. Legacy records with a null zone retain browser-local interpretation. Weekly event recurrence with an explicit zone preserves the event-local wall time across daylight-saving changes; reject nonexistent local times rather than shifting them silently. When a local time occurs twice during a fall-back transition, conversion chooses the earlier instant.
|
|
48
|
+
|
|
49
|
+
The Visit example wraps the original Customers panel, preserving its datepicker, time selects, recipient/resource pickers, and two-column layout. Add availability feedback around `Original`; do not duplicate the editor fields or import its private components. The preview must convert values in the selected event timezone, independently of the browser timezone, and match the server's persisted interval.
|
|
50
|
+
|
|
51
|
+
Planner timezone interpretation is explicit: Visit calls `plannerAvailabilityService.getMergedAvailabilityWindows` with `respectTimezone: true` and `weeklyScheduleTemplate: true`. The second option applies only to unbounded weekly schedules. Staff/resource weekly editors store the next matching weekday as `DTSTART`; treat that date as a weekday/time anchor rather than an effective start date. For example, a Tuesday 09:00–13:00 Warsaw template anchored on October 6 also covers September 29, 09:15–12:00 Warsaw. Preserve one-off date overrides and count-bounded recurrence start dates. Existing callers that omit these options retain their previous UTC/DTSTART semantics.
|
|
52
|
+
|
|
53
|
+
Availability reads translate an auth `userId` to the active staff member `id` before querying planner `subjectType: 'member'`; these IDs are different. Scope checks to the interaction or parent customer's authorized organization, not merely the selected UI organization. A title-only edit need not revalidate its saved assignments; changing the interval or subjects must run the fresh check.
|
|
54
|
+
|
|
55
|
+
## Validation
|
|
56
|
+
|
|
57
|
+
Run `yarn generate` after adding injection files, then the smallest relevant typecheck and tests. Cover add/replace/patch/remove order, translated labels, custom fieldsets, historical fallback, Visit-only hooks, direct API validation, disabled staff, disabled resources, both absent, and enabled-but-denied dependencies, staff/resource weekly and one-off availability, selected-zone round trips, daylight-saving recurrence, and title-only edits after schedule removal. The harness regression is `OMH-238`; shared components and installed package files are outside the app's writable scope.
|
|
@@ -22,6 +22,8 @@ Add every other match too: `backend-ui` + `om-backend-ui-design` when authoring,
|
|
|
22
22
|
|
|
23
23
|
## Mechanism Selector
|
|
24
24
|
|
|
25
|
+
For Customers calendar event types, follow the [Customers calendar guide](customers-calendar.md) and its exact app example links. It owns add/remove/patch behavior and optional staff/resources coupling.
|
|
26
|
+
|
|
25
27
|
| Goal | Mechanism | App module file |
|
|
26
28
|
|---|---|---|
|
|
27
29
|
| Add computed/read data | Response enricher | `data/enrichers.ts` |
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Agent harness evaluations
|
|
2
2
|
|
|
3
|
-
`cases.json` is the
|
|
3
|
+
`cases.json` is the 238-case standalone-app contract. Run `yarn harness:validate --all` for the deterministic gate. Live routing uses a fresh read-only process per case:
|
|
4
|
+
|
|
5
|
+
`OMH-238` routes Customers calendar add/remove/patch requests to `.ai/guides/customers-calendar.md`, exact installed Customers definitions, and the bounded canonical `umes.customers.calendar-event-types` example. It preserves historical records, generic shared components, and warnings when optional staff/resources integrations are unavailable.
|
|
4
6
|
|
|
5
7
|
UMES routing is fact-first. The additive and unified-override audit evaluations, plus their targeted cases, resolve exact/pattern hosts, outgoing contributions, correlation provenance, round-trip groups, framework-owned targets, and override domain/key/mode from the generated module sheets and `.ai/guides/framework-extension-points.md` before bounded installed source. The repository UMES umbrella spec may appear as optional source-checkout provenance; it is never required in a standalone scaffold.
|
|
6
8
|
|
|
@@ -18,7 +20,7 @@ yarn harness:release --runner codex --prepare-targets /absolute/empty-release-ta
|
|
|
18
20
|
yarn harness:release --runner codex --portability-runner claude --prepare-targets /absolute/empty-release-targets --acknowledge-writes
|
|
19
21
|
```
|
|
20
22
|
|
|
21
|
-
The primary runner owns all
|
|
23
|
+
The primary runner owns all 238 routing cases, all 49 writable cases, and all generative-judge runs. No per-case fallback or mixed primary ownership is allowed. Omitting `--portability-runner` is valid and the sanitized report records `portabilityRunner: null`; explicitly requesting an unavailable or failing secondary runner fails that extended run.
|
|
22
24
|
|
|
23
25
|
Writable evaluation is intentionally opt-in. The expanded catalog has a 49-case writable release target, but only cases registered in `release-matrix.json` and backed by controller-owned fixtures and oracles are executable. Copy or create a fresh standalone app for one registered case, then seed only that case and mark the target disposable:
|
|
24
26
|
|
|
@@ -6,7 +6,7 @@ Run the complete per-release gate from a generated standalone app with one comma
|
|
|
6
6
|
yarn harness:release --runner codex --prepare-targets /absolute/empty-release-targets --acknowledge-writes
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Choose exactly one blocking primary runner with `--runner codex` or `--runner claude`. That runner owns the complete
|
|
9
|
+
Choose exactly one blocking primary runner with `--runner codex` or `--runner claude`. That runner owns the complete 238-case routing gate and every writable/review lane. To add cross-model portability evidence, explicitly pass the other runner as `--portability-runner claude` or `--portability-runner codex`; it runs only the exact 49-case representative read-only set. The two runners must differ. Omitting the portability option is valid and is recorded as `portabilityRunner: null`; no secondary result is claimed. There is no per-case fallback or mixed primary ownership. Once requested, a portability failure or unavailable runner fails that extended release run.
|
|
10
10
|
|
|
11
11
|
`--prepare-targets` accepts only an absolute, new or empty regular directory outside the controller app. The controller must be a sanitized fresh scaffold: automatic preparation fails before copying when it finds `.env`, `.env.*` (except `.env.example`, `.env.sample`, and `.env.template`), credential files, or private-key files. Never use a configured development or production app as the controller. It copies the fresh scaffold once per catalog case whose `evaluationKind` is `implementation` or `regression`, while excluding `.git`, `node_modules`, build/cache/coverage output, `.ai/harness/results`, `.ai/reports`, and `.ai/framework-context`. Each target receives a guarded link to the controller's installed dependency tree. The OS sandbox resolves that link as read-only during both the writable model run and the target command gate. The release gate also hashes every dependency entry and regular-file body once before execution and once after the complete suite, and fails if any nested content or metadata changed. A generated `release-targets.json` records the local mapping.
|
|
12
12
|
|
|
@@ -34,17 +34,17 @@ For externally prepared apps, `--writable-targets /absolute/release-targets.json
|
|
|
34
34
|
}
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
The current catalog contains
|
|
37
|
+
The current catalog contains 238 cases, including 49 writable implementation/regression cases (20.6%). The command still derives all counts and case IDs from `cases.json`, `validators.json`, and `release-matrix.json`; those figures are documented release facts, not runner constants. The matrix keeps both supported runner model selectors, an exact all-case primary profile, an exact 49-case portability profile, and runner-neutral writable assignments. Run `yarn install-skills` first so the pinned external `om-code-review` skill and ownership evidence are present; the reusable local `om-judge-agent-session` skill ships with the scaffold. Before running a model or writing a fixture, the release command requires complete deterministic, primary live-routing, writable, trusted-oracle, target, generated-test, and generative-judge coverage. Every one of the 49 writable cases must have a judge assignment composing both skills. Missing business fixtures or release-matrix entries fail preflight and are listed by exact case ID in the report.
|
|
38
38
|
|
|
39
39
|
## PR #4529 remediation evidence
|
|
40
40
|
|
|
41
|
-
The PR's focused remediation evidence is not a release-certification substitute. Fresh emitted controllers pass deterministic 192/192, and the field-tested OMH-188–192 generative cohort passes on default Codex, Claude Sonnet, and high-effort gpt-5.4-mini. Fresh OMH-185 writable attempts fixed concrete organization-scope, command-object, module-activation, command-snapshot, schema, custom-field, UI, and Jest guidance defects at their routed owners without relaxing trusted oracles. The final attempt reached the case's fixed 600-second ceiling and is excluded from pass evidence. Issue #4670 now owns the complete selected-primary
|
|
41
|
+
The PR's focused remediation evidence is not a release-certification substitute. Fresh emitted controllers pass deterministic 192/192, and the field-tested OMH-188–192 generative cohort passes on default Codex, Claude Sonnet, and high-effort gpt-5.4-mini. Fresh OMH-185 writable attempts fixed concrete organization-scope, command-object, module-activation, command-snapshot, schema, custom-field, UI, and Jest guidance defects at their routed owners without relaxing trusted oracles. The final attempt reached the case's fixed 600-second ceiling and is excluded from pass evidence. Issue #4670 now owns the complete selected-primary 238-case routing and 49-case writable/generated-test/review certification, prioritizing the generative cohort and recording unavailable Claude lanes without fallback or mixed-runner ownership.
|
|
42
42
|
|
|
43
43
|
After preflight it runs, in order:
|
|
44
44
|
|
|
45
45
|
1. deterministic validation for the complete catalog;
|
|
46
46
|
2. the release matrix's fixed `yarn generate`, `yarn typecheck`, `yarn lint`, and `yarn build` foundation;
|
|
47
|
-
3. the selected primary runner across all
|
|
47
|
+
3. the selected primary runner across all 238 live-routing cases, followed by the optional distinct portability runner across the exact 49-case read-only sample when requested;
|
|
48
48
|
4. fixture preparation and the selected primary runner for every writable case, including the controller-owned AST/behavior oracles and target typecheck;
|
|
49
49
|
5. `yarn generate`, `yarn typecheck`, `yarn lint`, and `yarn build` in every writable target, after its trusted oracles;
|
|
50
50
|
6. real generated-code execution for OMH-163 and OMH-192 through fixed Jest, OMH-164 through API-only Playwright, and OMH-165 through real-browser Playwright; and
|
|
@@ -17828,7 +17828,7 @@
|
|
|
17828
17828
|
"mode": "analysis",
|
|
17829
17829
|
"evaluationKind": "routing",
|
|
17830
17830
|
"risk": "medium",
|
|
17831
|
-
"prompt": "In a freshly scaffolded standalone Open Mercato app, the operations team tracks shared company assets
|
|
17831
|
+
"prompt": "In a freshly scaffolded standalone Open Mercato app, the operations team tracks shared company assets \u2014 vans, measuring tools, loaner laptops \u2014 in a spreadsheet. They want them grouped by kind, labelled with their own tags, searchable, commented on, and carrying a readable history of what happened to each one. Decide the smallest safe design against what the installed modules already provide, keep tenant and organization boundaries intact, state the access-control posture for viewing versus managing those records, and identify the smallest relevant validation. Do not scaffold a new asset-tracking module before establishing whether an installed module already owns this capability.",
|
|
17832
17832
|
"tags": [
|
|
17833
17833
|
"architecture",
|
|
17834
17834
|
"module-facts",
|
|
@@ -19406,7 +19406,7 @@
|
|
|
19406
19406
|
"mode": "one-shot",
|
|
19407
19407
|
"evaluationKind": "routing",
|
|
19408
19408
|
"risk": "medium",
|
|
19409
|
-
"prompt": "Add a staff page that lists this week's pickup appointments, soonest first, from the appointments our own module already stores. Skip the spec for this one and go straight to the work
|
|
19409
|
+
"prompt": "Add a staff page that lists this week's pickup appointments, soonest first, from the appointments our own module already stores. Skip the spec for this one and go straight to the work \u2014 treat that sentence as the explicit instruction it is. Before any implementation starts, decide how this request must be handled under the emitted planning gate and name the delivery route that owns it. Do not write, amend, or stage any file while deciding.",
|
|
19410
19410
|
"tags": [
|
|
19411
19411
|
"spec-gate",
|
|
19412
19412
|
"planning-decision",
|
|
@@ -19711,7 +19711,7 @@
|
|
|
19711
19711
|
"mode": "analysis",
|
|
19712
19712
|
"evaluationKind": "routing",
|
|
19713
19713
|
"risk": "medium",
|
|
19714
|
-
"prompt": "An app must extend an installed list screen with an added column, a server-strategy filter, a single-row action, and a bulk action over the selected rows. Decide which routed instructions own that extension work, then name the exact example widget sources you would open for each of those four DataTable seams separately
|
|
19714
|
+
"prompt": "An app must extend an installed list screen with an added column, a server-strategy filter, a single-row action, and a bulk action over the selected rows. Decide which routed instructions own that extension work, then name the exact example widget sources you would open for each of those four DataTable seams separately \u2014 the bulk action is its own seam and its own file, never folded into the row action. Start from the example entry document and its surface index. The example component-replacement surface is marked qa-only and must not be opened or copied. Do not open unrelated example surfaces, do not list or glob the widget directory, and do not change anything inside the example root.",
|
|
19715
19715
|
"tags": [
|
|
19716
19716
|
"umes",
|
|
19717
19717
|
"canonical-example",
|
|
@@ -20872,31 +20872,123 @@
|
|
|
20872
20872
|
"evaluationKind": "implementation",
|
|
20873
20873
|
"risk": "medium",
|
|
20874
20874
|
"prompt": "Resume the interrupted implementation described by .ai/specs/2026-08-10-interrupted-export-format.md. Begin with the focused TypeScript check named by the spec, reconcile the implementation tree against the canonical ledger, and preserve the already verified first slice without re-executing it. Resume from the first unticked slice: repair the paired export contract and formatter atomically so no intermediate invalid state is left behind, then update the same ledger with exact verification evidence. Use an IN FLIGHT marker while the slice is incomplete and clear it only after the slice gate passes. Do not create a second plan or spec and do not rewrite the preserved artifact.",
|
|
20875
|
-
"tags": [
|
|
20876
|
-
|
|
20877
|
-
|
|
20878
|
-
|
|
20875
|
+
"tags": [
|
|
20876
|
+
"spec",
|
|
20877
|
+
"resume",
|
|
20878
|
+
"planning-proof",
|
|
20879
|
+
"writable"
|
|
20880
|
+
],
|
|
20881
|
+
"owner": {
|
|
20882
|
+
"kind": "skill",
|
|
20883
|
+
"path": ".ai/skills/om-implement-spec/references/resume.md",
|
|
20884
|
+
"ruleIds": [
|
|
20885
|
+
"BC-01",
|
|
20886
|
+
"BC-03"
|
|
20887
|
+
]
|
|
20888
|
+
},
|
|
20889
|
+
"expectedRouter": {
|
|
20890
|
+
"required": [
|
|
20891
|
+
"spec-pr"
|
|
20892
|
+
],
|
|
20893
|
+
"allowedExtra": [
|
|
20894
|
+
"module-data",
|
|
20895
|
+
"debugging",
|
|
20896
|
+
"testing"
|
|
20897
|
+
]
|
|
20898
|
+
},
|
|
20899
|
+
"requiredSkills": [
|
|
20900
|
+
"om-implement-spec"
|
|
20901
|
+
],
|
|
20879
20902
|
"context": {
|
|
20880
|
-
"required": [
|
|
20881
|
-
|
|
20882
|
-
|
|
20883
|
-
|
|
20884
|
-
|
|
20885
|
-
|
|
20886
|
-
|
|
20887
|
-
|
|
20888
|
-
|
|
20889
|
-
|
|
20903
|
+
"required": [
|
|
20904
|
+
"AGENTS.md",
|
|
20905
|
+
".ai/guides/spec-delivery.md",
|
|
20906
|
+
".ai/skills/om-implement-spec/SKILL.md",
|
|
20907
|
+
".ai/skills/om-implement-spec/references/resume.md",
|
|
20908
|
+
".ai/skills/om-implement-spec/references/planning-and-progress.md"
|
|
20909
|
+
],
|
|
20910
|
+
"allowedExtra": [
|
|
20911
|
+
".ai/skills/om-implement-spec/references/phases-and-gates.md"
|
|
20912
|
+
],
|
|
20913
|
+
"forbidden": [
|
|
20914
|
+
".env*",
|
|
20915
|
+
".git/**",
|
|
20916
|
+
".mercato/generated/**"
|
|
20917
|
+
]
|
|
20918
|
+
},
|
|
20919
|
+
"decisionVocabulary": [
|
|
20920
|
+
"focused-typecheck-first",
|
|
20921
|
+
"ledger-tree-reconciliation",
|
|
20922
|
+
"resume-first-unticked-slice",
|
|
20923
|
+
"never-reexecute-ticked",
|
|
20924
|
+
"never-trust-unticked",
|
|
20925
|
+
"in-flight-ledger",
|
|
20926
|
+
"atomic-edit-sequence",
|
|
20927
|
+
"restart-from-first-slice",
|
|
20928
|
+
"trust-unticked-ledger"
|
|
20929
|
+
],
|
|
20930
|
+
"requiredDecisions": [
|
|
20931
|
+
"focused-typecheck-first",
|
|
20932
|
+
"ledger-tree-reconciliation",
|
|
20933
|
+
"resume-first-unticked-slice",
|
|
20934
|
+
"never-reexecute-ticked",
|
|
20935
|
+
"never-trust-unticked",
|
|
20936
|
+
"in-flight-ledger",
|
|
20937
|
+
"atomic-edit-sequence"
|
|
20938
|
+
],
|
|
20939
|
+
"forbiddenPatterns": [
|
|
20940
|
+
"(?:tenant|organization).{0,30}(?:unscoped|scope optional)",
|
|
20941
|
+
"node_modules.{0,40}(?:write|edit|patch)"
|
|
20942
|
+
],
|
|
20943
|
+
"validators": [
|
|
20944
|
+
"catalog.schema",
|
|
20945
|
+
"owner.reference",
|
|
20946
|
+
"skills.reference",
|
|
20947
|
+
"router.contract",
|
|
20948
|
+
"context.budget",
|
|
20949
|
+
"context.forbidden",
|
|
20950
|
+
"patterns.forbidden",
|
|
20951
|
+
"writable.allowed-paths",
|
|
20952
|
+
"oracle.artifacts",
|
|
20953
|
+
"oracle.planning.spec-resume"
|
|
20954
|
+
],
|
|
20955
|
+
"fixture": {
|
|
20956
|
+
"scaffold": "fresh-standalone",
|
|
20957
|
+
"setup": [
|
|
20958
|
+
"fixture:spec-resume-half-done"
|
|
20959
|
+
]
|
|
20960
|
+
},
|
|
20961
|
+
"allowedWrites": [
|
|
20962
|
+
".ai/specs/2026-08-10-interrupted-export-format.md",
|
|
20963
|
+
"src/modules/resume_demo/lib/export-contract.ts",
|
|
20964
|
+
"src/modules/resume_demo/lib/format-export.ts"
|
|
20965
|
+
],
|
|
20890
20966
|
"oracle": {
|
|
20891
|
-
"validatorIds": [
|
|
20892
|
-
|
|
20967
|
+
"validatorIds": [
|
|
20968
|
+
"writable.allowed-paths",
|
|
20969
|
+
"oracle.artifacts",
|
|
20970
|
+
"oracle.planning.spec-resume"
|
|
20971
|
+
],
|
|
20972
|
+
"expectedArtifacts": [
|
|
20973
|
+
".ai/specs/2026-08-10-interrupted-export-format.md",
|
|
20974
|
+
"src/modules/resume_demo/lib/export-contract.ts",
|
|
20975
|
+
"src/modules/resume_demo/lib/format-export.ts"
|
|
20976
|
+
]
|
|
20893
20977
|
},
|
|
20894
20978
|
"timeoutMs": 600000,
|
|
20895
20979
|
"maxContextFiles": 10,
|
|
20896
20980
|
"maxInitialContextBytes": 65536,
|
|
20897
20981
|
"maxTotalContextBytes": 131072,
|
|
20898
|
-
"relatedCases": [
|
|
20899
|
-
|
|
20982
|
+
"relatedCases": [
|
|
20983
|
+
"OMH-006",
|
|
20984
|
+
"OMH-168",
|
|
20985
|
+
"OMH-223"
|
|
20986
|
+
],
|
|
20987
|
+
"source": {
|
|
20988
|
+
"paths": [
|
|
20989
|
+
".ai/specs/2026-08-14-standalone-harness-optimizations.md"
|
|
20990
|
+
]
|
|
20991
|
+
}
|
|
20900
20992
|
},
|
|
20901
20993
|
{
|
|
20902
20994
|
"id": "OMH-231",
|
|
@@ -20906,14 +20998,44 @@
|
|
|
20906
20998
|
"evaluationKind": "routing",
|
|
20907
20999
|
"risk": "medium",
|
|
20908
21000
|
"prompt": "Before changing an app-owned command-backed CRUD route, explain the installed contracts for CommandHandler execution and undo/redo hooks, command registration, command-owned CRUD persistence and side effects, makeCrudRoute ownership, typed event timing, command optimistic locking, defensive JSON parsing, and DataEngine scope/flush behavior. Select the emitted guide and its exact installed source links first. Use the bounded resolver only for one named fact that remains unresolved, and do not browse a package directory or modify node_modules.",
|
|
20909
|
-
"tags": [
|
|
20910
|
-
|
|
20911
|
-
|
|
21001
|
+
"tags": [
|
|
21002
|
+
"framework-context",
|
|
21003
|
+
"commands",
|
|
21004
|
+
"crud",
|
|
21005
|
+
"source-links"
|
|
21006
|
+
],
|
|
21007
|
+
"owner": {
|
|
21008
|
+
"kind": "guide",
|
|
21009
|
+
"path": ".ai/guides/framework-contracts.md",
|
|
21010
|
+
"ruleIds": [
|
|
21011
|
+
"BC-01",
|
|
21012
|
+
"BC-03",
|
|
21013
|
+
"BC-05",
|
|
21014
|
+
"BC-07"
|
|
21015
|
+
]
|
|
21016
|
+
},
|
|
21017
|
+
"expectedRouter": {
|
|
21018
|
+
"required": [
|
|
21019
|
+
"framework-context"
|
|
21020
|
+
],
|
|
21021
|
+
"allowedExtra": [
|
|
21022
|
+
"module-data",
|
|
21023
|
+
"architecture"
|
|
21024
|
+
]
|
|
21025
|
+
},
|
|
20912
21026
|
"requiredSkills": [],
|
|
20913
21027
|
"context": {
|
|
20914
|
-
"required": [
|
|
20915
|
-
|
|
20916
|
-
|
|
21028
|
+
"required": [
|
|
21029
|
+
"AGENTS.md",
|
|
21030
|
+
".ai/guides/framework-contracts.md"
|
|
21031
|
+
],
|
|
21032
|
+
"allowedExtra": [
|
|
21033
|
+
".ai/skills/om-framework-context/SKILL.md"
|
|
21034
|
+
],
|
|
21035
|
+
"forbidden": [
|
|
21036
|
+
".env*",
|
|
21037
|
+
".git/**"
|
|
21038
|
+
],
|
|
20917
21039
|
"sourceReferenceIds": [
|
|
20918
21040
|
"guides/framework-contracts:node_modules/@open-mercato/shared/src/lib/commands/types.ts",
|
|
20919
21041
|
"guides/framework-contracts:node_modules/@open-mercato/shared/src/lib/commands/registry.ts",
|
|
@@ -20925,15 +21047,45 @@
|
|
|
20925
21047
|
"guides/framework-contracts:node_modules/@open-mercato/shared/src/lib/data/engine.ts"
|
|
20926
21048
|
]
|
|
20927
21049
|
},
|
|
20928
|
-
"decisionVocabulary": [
|
|
20929
|
-
|
|
20930
|
-
|
|
20931
|
-
|
|
21050
|
+
"decisionVocabulary": [
|
|
21051
|
+
"framework-contract-digest-first",
|
|
21052
|
+
"exact-installed-source-links",
|
|
21053
|
+
"bounded-resolver-only-if-unresolved",
|
|
21054
|
+
"installed-packages-read-only",
|
|
21055
|
+
"whole-package-discovery",
|
|
21056
|
+
"node-modules-edit"
|
|
21057
|
+
],
|
|
21058
|
+
"requiredDecisions": [
|
|
21059
|
+
"framework-contract-digest-first",
|
|
21060
|
+
"exact-installed-source-links",
|
|
21061
|
+
"bounded-resolver-only-if-unresolved",
|
|
21062
|
+
"installed-packages-read-only"
|
|
21063
|
+
],
|
|
21064
|
+
"forbiddenPatterns": [
|
|
21065
|
+
"node_modules.{0,40}(?:write|edit|patch)",
|
|
21066
|
+
"node_modules/@open-mercato/shared/(?:\\*\\*|src/?$)"
|
|
21067
|
+
],
|
|
21068
|
+
"validators": [
|
|
21069
|
+
"catalog.schema",
|
|
21070
|
+
"owner.reference",
|
|
21071
|
+
"skills.reference",
|
|
21072
|
+
"router.contract",
|
|
21073
|
+
"context.budget",
|
|
21074
|
+
"context.forbidden",
|
|
21075
|
+
"patterns.forbidden"
|
|
21076
|
+
],
|
|
20932
21077
|
"maxContextFiles": 12,
|
|
20933
21078
|
"maxInitialContextBytes": 73728,
|
|
20934
21079
|
"maxTotalContextBytes": 196608,
|
|
20935
|
-
"relatedCases": [
|
|
20936
|
-
|
|
21080
|
+
"relatedCases": [
|
|
21081
|
+
"OMH-003",
|
|
21082
|
+
"OMH-222"
|
|
21083
|
+
],
|
|
21084
|
+
"source": {
|
|
21085
|
+
"paths": [
|
|
21086
|
+
".ai/specs/2026-08-14-standalone-harness-optimizations.md"
|
|
21087
|
+
]
|
|
21088
|
+
}
|
|
20937
21089
|
},
|
|
20938
21090
|
{
|
|
20939
21091
|
"id": "OMH-232",
|
|
@@ -21360,7 +21512,7 @@
|
|
|
21360
21512
|
"mode": "analysis",
|
|
21361
21513
|
"evaluationKind": "routing",
|
|
21362
21514
|
"risk": "medium",
|
|
21363
|
-
"prompt": "In a freshly scaffolded standalone Open Mercato app, backoffice users report pages that feel slow even though server-side API traces show fast responses, and the team wants client-side browser telemetry
|
|
21515
|
+
"prompt": "In a freshly scaffolded standalone Open Mercato app, backoffice users report pages that feel slow even though server-side API traces show fast responses, and the team wants client-side browser telemetry \u2014 document-load and fetch spans \u2014 correlated with the existing server traces in the OTLP backend. Decide the smallest safe design against what the installed modules already provide, state the access-control posture of the span-ingest path and where the collector credential lives, and identify the smallest relevant validation. Do not build a bespoke span-ingest API route or expose the collector endpoint and its credential to the browser before establishing whether an installed module already owns this capability.",
|
|
21364
21516
|
"tags": [
|
|
21365
21517
|
"architecture",
|
|
21366
21518
|
"module-facts",
|
|
@@ -21429,5 +21581,111 @@
|
|
|
21429
21581
|
"OMH-194",
|
|
21430
21582
|
"OMH-195"
|
|
21431
21583
|
]
|
|
21584
|
+
},
|
|
21585
|
+
{
|
|
21586
|
+
"id": "OMH-238",
|
|
21587
|
+
"title": "Add and modify Customers calendar event types while preserving every built-in type",
|
|
21588
|
+
"family": "umes",
|
|
21589
|
+
"mode": "analysis",
|
|
21590
|
+
"evaluationKind": "routing",
|
|
21591
|
+
"risk": "medium",
|
|
21592
|
+
"prompt": "In a fresh standalone Open Mercato app, add a Visit type to the Customers calendar and change the Meeting label while keeping all six built-in types available and preserving existing records. Follow the shipped app-local example and identify the exact contribution, panel, and server-validation seams. The Visit panel must work with staff and resources disabled or not installed, show a translated warning, and retain checks for enabled dependencies. Name each blocked staff member or resource and distinguish working-hour restrictions from overlapping bookings of any Customers type, including recurrence; exclude the current edited interaction, canceled/deleted bookings, and touching boundaries within tenant/organization scope. Keep CrudForm, InjectionSpot, shared widget metadata, shared loaders, and installed package source independent of calendar business rules. Explain historical fallback, scoped persistence, and the smallest meaningful verification.",
|
|
21593
|
+
"tags": [
|
|
21594
|
+
"umes",
|
|
21595
|
+
"customers",
|
|
21596
|
+
"calendar",
|
|
21597
|
+
"optional-modules",
|
|
21598
|
+
"standalone-boundary"
|
|
21599
|
+
],
|
|
21600
|
+
"owner": {
|
|
21601
|
+
"kind": "guide",
|
|
21602
|
+
"path": ".ai/guides/customers-calendar.md",
|
|
21603
|
+
"ruleIds": [
|
|
21604
|
+
"BC-01",
|
|
21605
|
+
"BC-02",
|
|
21606
|
+
"BC-03",
|
|
21607
|
+
"BC-06",
|
|
21608
|
+
"BC-07",
|
|
21609
|
+
"BC-08"
|
|
21610
|
+
]
|
|
21611
|
+
},
|
|
21612
|
+
"expectedRouter": {
|
|
21613
|
+
"required": [
|
|
21614
|
+
"umes"
|
|
21615
|
+
],
|
|
21616
|
+
"allowedExtra": [
|
|
21617
|
+
"backend-ui",
|
|
21618
|
+
"module-data",
|
|
21619
|
+
"testing",
|
|
21620
|
+
"framework-context"
|
|
21621
|
+
]
|
|
21622
|
+
},
|
|
21623
|
+
"requiredSkills": [
|
|
21624
|
+
"om-system-extension"
|
|
21625
|
+
],
|
|
21626
|
+
"context": {
|
|
21627
|
+
"required": [
|
|
21628
|
+
"AGENTS.md",
|
|
21629
|
+
".ai/guides/extensions.md",
|
|
21630
|
+
".ai/guides/customers-calendar.md",
|
|
21631
|
+
".ai/skills/om-system-extension/SKILL.md"
|
|
21632
|
+
],
|
|
21633
|
+
"forbidden": [
|
|
21634
|
+
".env*",
|
|
21635
|
+
".git/**"
|
|
21636
|
+
],
|
|
21637
|
+
"exampleRoots": [
|
|
21638
|
+
{
|
|
21639
|
+
"root": "src/modules/example",
|
|
21640
|
+
"entrypoints": [
|
|
21641
|
+
"README.md",
|
|
21642
|
+
"references/surface-map.md"
|
|
21643
|
+
],
|
|
21644
|
+
"allowedCapabilityIds": [
|
|
21645
|
+
"umes.customers.calendar-event-types"
|
|
21646
|
+
],
|
|
21647
|
+
"maxFiles": 14,
|
|
21648
|
+
"maxBytes": 262144
|
|
21649
|
+
}
|
|
21650
|
+
],
|
|
21651
|
+
"sourceReferenceIds": [
|
|
21652
|
+
"guides/customers-calendar:node_modules/@open-mercato/core/src/modules/customers/calendar-event-types.ts",
|
|
21653
|
+
"guides/customers-calendar:node_modules/@open-mercato/core/src/modules/customers/lib/calendar/eventTypeResolver.ts"
|
|
21654
|
+
]
|
|
21655
|
+
},
|
|
21656
|
+
"requiredDecisions": [
|
|
21657
|
+
"calendar-module-owned",
|
|
21658
|
+
"calendar-add-patch-preserve",
|
|
21659
|
+
"calendar-historical-fallback",
|
|
21660
|
+
"optional-staff-resources",
|
|
21661
|
+
"named-booking-conflicts"
|
|
21662
|
+
],
|
|
21663
|
+
"forbiddenPatterns": [
|
|
21664
|
+
"node_modules.{0,40}(?:write|edit|patch)",
|
|
21665
|
+
"overrides\\.calendar",
|
|
21666
|
+
"calendarEventTypeKeys",
|
|
21667
|
+
"(?:CrudForm|InjectionSpot).{0,60}(?:calendar-specific|calendar filtering)"
|
|
21668
|
+
],
|
|
21669
|
+
"validators": [
|
|
21670
|
+
"catalog.schema",
|
|
21671
|
+
"owner.reference",
|
|
21672
|
+
"skills.reference",
|
|
21673
|
+
"router.contract",
|
|
21674
|
+
"context.budget",
|
|
21675
|
+
"context.forbidden",
|
|
21676
|
+
"patterns.forbidden"
|
|
21677
|
+
],
|
|
21678
|
+
"maxContextFiles": 16,
|
|
21679
|
+
"maxInitialContextBytes": 65536,
|
|
21680
|
+
"maxTotalContextBytes": 262144,
|
|
21681
|
+
"relatedCases": [
|
|
21682
|
+
"OMH-026",
|
|
21683
|
+
"OMH-071"
|
|
21684
|
+
],
|
|
21685
|
+
"source": {
|
|
21686
|
+
"paths": [
|
|
21687
|
+
".ai/guides/customers-calendar.md"
|
|
21688
|
+
]
|
|
21689
|
+
}
|
|
21432
21690
|
}
|
|
21433
21691
|
]
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"$id": "https://open-mercato.dev/schemas/standalone-harness-cases.schema.json",
|
|
4
4
|
"title": "Open Mercato standalone harness case catalog",
|
|
5
5
|
"type": "array",
|
|
6
|
-
"minItems":
|
|
7
|
-
"maxItems":
|
|
6
|
+
"minItems": 238,
|
|
7
|
+
"maxItems": 238,
|
|
8
8
|
"items": {
|
|
9
9
|
"type": "object",
|
|
10
10
|
"additionalProperties": false,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"maxTotalContextBytes", "relatedCases"
|
|
16
16
|
],
|
|
17
17
|
"properties": {
|
|
18
|
-
"id": { "type": "string", "pattern": "^OMH-(00[1-9]|0[1-9][0-9]|1[0-9][0-9]|20[0-9]|21[0-9]|22[0-9]|23[0-
|
|
18
|
+
"id": { "type": "string", "pattern": "^OMH-(00[1-9]|0[1-9][0-9]|1[0-9][0-9]|20[0-9]|21[0-9]|22[0-9]|23[0-8])$" },
|
|
19
19
|
"title": { "type": "string", "minLength": 12, "maxLength": 180 },
|
|
20
20
|
"family": { "enum": ["architecture", "module", "umes", "integration", "ai-workflow", "bugfix", "business", "testing"] },
|
|
21
21
|
"mode": { "enum": ["analysis", "one-shot", "spec", "bugfix", "review"] },
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"maxInitialContextBytes": { "type": "integer", "minimum": 4096, "maximum": 98304 },
|
|
169
169
|
"maxTotalContextBytes": { "type": "integer", "minimum": 8192, "maximum": 1048576 },
|
|
170
170
|
"timeoutMs": { "type": "integer", "minimum": 1000, "maximum": 600000 },
|
|
171
|
-
"relatedCases": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "pattern": "^OMH-(00[1-9]|0[1-9][0-9]|1[0-9][0-9]|20[0-9]|21[0-9]|22[0-9]|23[0-
|
|
171
|
+
"relatedCases": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "pattern": "^OMH-(00[1-9]|0[1-9][0-9]|1[0-9][0-9]|20[0-9]|21[0-9]|22[0-9]|23[0-8])$" } },
|
|
172
172
|
"source": {
|
|
173
173
|
"type": "object",
|
|
174
174
|
"additionalProperties": false,
|