Linen

Available

Employee service desk on TanStack Start, React and a Hono Worker with native D1 accounts and domain history, R2 attachments, Base local auth and Freshservice file migration.

Linen is available as MIT-licensed source for self-hosting. See its public source and release documents for setup. Business can also install and run projects for invited accounts; the app shows whether it offers Linen before checkout.

Run Linen on your own computer with one line:

npx -y @runeditrun/rer dev just-every/run-linen

It clones the public source, installs it, sets up a local owner and starts the app; nothing is deployed. To set up without starting, run npx -y @runeditrun/rer setup just-every/run-linen. Without Node 22 or later, run curl -fsSL https://runeditrun.com/install.sh | sh -s -- dev just-every/run-linen.

Or have your agent set it up for a Business: Start a Business with Linen ticked

For HappyToHelp: Assisted is in early access; Managed is in early access.

Category
itsm
Licence
MIT
Version
0.1.2
Requirements
25 clauses
Release signature
Signed by just-every · key rer-ed25519-5a42fb9c9c4f8acb2b32386e9e40461c · statement
Target release
v0.1.2 · published
Publisher’s stage
local-implementation; release-acceptance-pending

Outside services

The services the project declares it sends data to, each with its reason.

cloudflare
Worker runtime, D1 database and R2 attachment storage

Scope and limits

What it will not do

  • Source publication is not hosted deployment or live provider acceptance.
  • Imported records and restored grants never confer permission to resume external effects.

Declared limits

Status
unmeasured

Requirements

All 25 clauses of Linen’s CONTRACT.md. They say what the project must do; the handover and verification records say what is built and tested.

  1. E1
    Help and incidents Requirement. Authenticated portal, email, Slack and Teams intake with one stable conversation per issue, incident/request classification, accountable routing and reassignment, employee replies and private notes, attachments, impact, service/device context, response/resolution commitments and restoration evidence. Employees can correct, confirm when useful, report "still not working" or reopen; confirmation is not required when fresh independent evidence proves usable work. Duplicate messages, unknown senders, attachment failure, wrong classification, absent assignee, holidays/time zones, nonresponse and simultaneous edits are handled. Closure policy is disclosed; closure is distinct from verified recovery. Acceptance. 1. An employee opens a request in the portal and another by email. 2. An operator replies publicly and privately with an attachment; the employee never sees the private note or the attachment. 3. The employee reports "still not working" and reopens the request. 4. A duplicate message creates no second ticket. 5. Closure is shown separately from verified recovery.
  2. E2
    Access, device and software requests Requirement. A natural-language request or catalog selection resolves beneficiary, purpose and prerequisites from permitted context, then shows exact authority, fulfillment owner, provision/delivery evidence and an understandable rejection or completion. Linen asks only for a genuinely missing fact or decision. Missing managers enter an accountable exception; substitutes need real delegated authority; material changes invalidate affected approval. Partial fulfillment, no stock/license, cancellation after effects, failed/unknown provider actions, temporary access expiry and independently verified revocation are handled; routine reapproval or confirmation is not required when a versioned grant the company issued and machine evidence suffice. Software requests install through the device's MDM and complete only when the device's installed-application inventory shows the app (CATALOG-005). Acceptance. 1. Request time-limited group access in plain language and supply the one missing fact. 2. A request without the needed authority is denied. 3. Approve under a versioned grant the company issued and read back the provider membership. 4. Reach expiry and observe independently verified removal. 5. Cancel a second request after its effect and see the remaining compensation duty. 6. Request Visio for one's laptop and see the request stay "effect submitted" until the laptop's inventory shows Visio.
  3. E3
    Join, move and leave Requirement. Authorized HR/manager initiation with effective times, task dependencies, accounts, access and devices; an authoritative HR event starts routine work without a separate request. Join prepares the authorized baseline and physical fulfillment; move compares retained, added and removed access; leave revokes access and keeps separate custody/return duties. Changed dates, canceled hires, contractor expiry, urgent termination, already-disabled identity, partial revocation, unreturned laptop and ambiguous local times/daylight saving are handled. HR remains authoritative for employment facts; completed subtasks cannot conceal outstanding security or custody work. Acceptance. 1. Run a join, a move and an urgent leave from HR facts. 2. Move a start date and see the dependent work move with it. 3. Cancel a hire after an account was created and see the compensation duties. 4. Submit a time in a daylight-saving gap and see the ambiguous time rejected. 5. After identity revocation verifies, the laptop-return duty stays open.
  4. E4
    Custody and context Requirement. Stable device ID/serial, person, location, lifecycle, receipt/return and service ownership linked to work, with source and freshness. Conflicting serials, reassignment in progress, missing devices, disposed-but-assigned records, renamed/merged/deactivated people and stale MDM feeds are reconciled. Imported observation is distinct from verified custody. Acceptance. 1. Record, assign, receive and return a laptop with attributed receipts. 2. Disposing of an assigned device is refused. 3. Importing a duplicate serial shows the conflict. 4. An aged MDM observation shows as stale. 5. Physical return does not certify security completion.
  5. E5
    Shared incidents and problems Requirement. Accountable shared interruption, impact, linked employee incidents, update cadence, recurring cause/workaround and follow-up. Linen proposes correlations from permitted evidence and keeps each employee's work separate; people correct mistaken links. Parent recovery does not establish every employee's recovery. Confidential scopes, stale workarounds and failed notifications stay visible; restoration and cause/prevention outcomes are separate. Acceptance. 1. Open an outage from a monitoring event and link three employee tickets. 2. Correct one mistaken link. 3. Restore the service while one employee is still broken; that employee's ticket stays open. 4. A failed notification is shown with its reason.
  6. E6
    Controlled changes Requirement. Service, owner, risk/impact, dependencies, scheduled window, versioned authorization, exact implementation, execution and rollback/compensation evidence, success/failure and follow-up. Standard low-risk changes run under the versioned grants the company issued for them. Emergency authority, conflicts, post-approval edits, partial execution, failed rollback and post-change incidents are handled. A change record is not authority in a provider. Acceptance. 1. Authorize a change, edit its implementation and see the approval invalidated. 2. Schedule a conflicting window and see the conflict. 3. Run a canary, then the rollout. 4. Fail the rollback and see accountable takeover with the partial effect recorded.
  7. E7
    Knowledge and management review Requirement. Scoped reviewed articles with explicit expiry, search and escalation into a request with context. Reports cover age, response/resolution commitments, blocked approvals, lifecycle obligations, recurrence and outcomes with definitions, range and time zone. Paused clocks, changed schedules, reopened work, permission changes and failed refreshes stay explicit; closure counts never substitute for fulfillment. Acceptance. 1. Search a reviewed article as an employee. 2. Escalate it into a request carrying the article revision. 3. Read a management report for a date range in America/Chicago that separates closed from verified-fulfilled work.
  8. A1
    Identity and privacy Requirement. Linen separates requester/beneficiary, approver, HR, service operator, owner, auditor and integration rights, and its scopes reach attachments, search, notifications, exports and AI context. Restricted departures and incidents are protected, HR data is minimized, and erased content is never restored on replay. Privileged read/export and policy changes are audited. Acceptance. 1. An employee is denied a private note across every read surface. 2. An employee is denied a private attachment across every read surface. 3. An employee is denied an HR record across every read surface. 4. Revoked membership prevents later access. 5. Erasure prevents later access and replay.
  9. A2
    Granted action Requirement. Versioned grants bind action, target, beneficiary, conditions, limits and time. A grant the company issued can cover a repeated low-risk effect without a fresh human approval each time; wider-impact action needs a grant that covers it. At-action checks reject stale, expired, revoked or concurrently superseded decisions. Source/policy editing cannot silently let the executor expand its own privileges. Acceptance. 1. Dispatch an effect under a versioned grant the company issued. 2. Revoke the grant between plan and effect and see the effect refused. 3. Expire a grant between plan and effect and see the effect refused. 4. Hostile retrieved text cannot cause an effect.
  10. A3
    Durable effects Requirement. Persist intent and operation identity before dispatch; fence competing execution and human takeover. Reconcile unknown remote effects before repeat. Resume after crash without duplicating confirmed effects. Record partial completion, failed compensation and remaining obligations. A revocation or cancellation request is not proof that a remote action stopped. Acceptance. 1. Crash before a provider write, restart, and see reconciliation instead of a duplicate. 2. Crash after a provider write, restart, and see reconciliation instead of a duplicate. 3. Cancel after the effect and see the compensation owed.
  11. A4
    Verifiable outcomes Requirement. Bind each claim to fresh attributed evidence, target/cohort and verifier version. Distinguish submission, effect and usable recovery. Retain unknown/disputed results and negative checks; no false success from sent instructions, tool status, nonresponse or a model's self-assessment. Acceptance. 1. Provider readback alone leaves a request at "effect verified". 2. Only the independent verifier's positive and negative workflow probes mark it usable.
  12. A5
    Legible service Requirement. Employees see truthful status and next action in their conversation; operators see accountable exceptions in their work context and can take over. Linen owns permitted routing, safe follow-up and escalation; routine acknowledgment is not a gate to machine-verifiable completion. Desktop and mobile paths, private/public separation, real delivery states, calendars/escalation and an audited outage recovery-access procedure are provided. Acceptance. 1. The six UX.md journeys pass at 1440 and 390 px with keyboard only. 2. A failed delivery shows its real state. 3. An IdP outage uses the audited recovery-access path.
  13. A6
    Data and source custody Requirement. Imports preserve identities, relationships, public/private history, attachments and meaningful status/approval history; imported approval is history, not new authority (D-6). Reconcile dry run and actual cutover, late arrivals and dual execution. Usable export/restore preserves policy, evidence and intent. Updates preserve applied migration history and test existing data and owner adaptations. Source may diverge deeply without losing eligibility for useful upstream improvements. Erasure inside archives is A8. Acceptance. 1. Upgrade an archived database and retain every prior row. 2. The upgrade retains every prior migration entry. 3. Import with an approval that stays inert.
  14. A8
    Erasure in exports and archives Requirement. After an identity erasure, archives carry the erased person only as a stable opaque alias, keep the business record, and never bring the erased content back (RL-23). Audit-history values also inherit DESK-017's erasure rule (DESK-028), including redacted history on restore/replay and never reconstructing earlier cleared values. Acceptance. 1. After an identity erasure, a workspace export redacts the erased person's personal and free-text content. 2. The export maps each erased actor or person reference to a stable, per-installation opaque archive alias. 3. Archive tombstones stay keyed digests, never raw identities. 4. Typed business policy, effect and audit identities and their relationships remain, and no grant is revived. 5. Export and import reference validation use the same typed table and field schema; untyped content that still contains an erased identity refuses. 6. A snapshot taken before an erasure stays refused against the destination's known tombstones. 7. Fresh imports stay held and inert. 8. No field is exempted from the tombstone check and no retained business row is deleted to pass it.
  15. A7
    Honest operating and cost boundaries Requirement. Declare supported commands, runtime, resources, provider effects and recovery targets. Record every model/tool attempt, failures and uncertain charges, budgets, latency and all human work, counting touches and active minutes for sign-ins/consents, setup gaps, corrections, physical custody, vendor/technician tasks, takeover and recovery; report unresolved and missed work beside any lower-interruption result. Fixture, real provider, hosted and owner evidence stay distinct. Missing configuration cannot produce mock data or successful fallback execution. Acceptance. 1. Exhaust a model budget with unresolved obligations: an employee's request is held as budget_held for the workspace owner. 2. A dispatched call without a usage receipt is an unknown charge that keeps its budget reservation. 3. The held request and the unknown charge both survive a restart. 4. Missing model configuration returns needs_configuration, with no interpretation and never data. 5. Every recorded human touch (a time entry, or a resumed measured session) names what it was for: the request itself, sign-in or consent, a setup gap, a correction, physical custody, vendor or technician work (the default for work attributed to a vendor or technician), takeover or recovery. 6. The period effort report counts touches and active minutes per kind for each request type beside that type's unresolved and failed requests, so a lower-touch period never hides missed work.
  16. O1
    Service graph and major incidents Requirement. Relate business impact, services, technical dependencies, people and suppliers with provenance, freshness and uncertainty. Coordinate incident command, parallel scoped diagnostics, escalation, audience-specific updates and recovery checks across affected cohorts. Integrate real monitoring/on-call systems under declared authority; do not infer health or dependencies from missing data. Acceptance. 1. A multi-user SSO outage runs with competing hypotheses and parallel diagnostics. 2. Updates go to each affected cohort. 3. Recovery is checked per cohort against real monitoring.
  17. O2
    Change, release and prevention Requirement. Coordinate change windows, dependencies, deployment gates, canaries and compensations with real provider evidence. Connect known errors, recurrence and post-incident learning to owned preventive changes. Measure sustained recovery and effectiveness; a drafted postmortem or prevention suggestion is not a completed improvement. Acceptance. 1. A preventive change is released by canary on a real provider. 2. Recurrence is measured over a declared window afterwards.
  18. O3
    Lifecycle and economics Requirement. Extend custody through acquisition, assignment, renewal, repair, return and disposal; manage software entitlements and reclamation with service impact and authority. Track supplier commitments, handoffs and breaches. Show attributed service costs, demand and avoided-work hypotheses with uncertainty. Owners' agents can add integrations and deeply adapt source through the tested change lane, keeping authority and verification guarantees. Acceptance. 1. A full asset and license lifecycle runs with a supplier breach. 2. A reclamation is measured. 3. A connector is authored through the change lane and kept through an update.
  19. F1
    Persistent service commitments Requirement. Linen extends the destination with persistent service commitments, as defined in [FRONTIER-EXTENSION.md](FRONTIER-EXTENSION.md#f1-persistent-service-commitments). Like every frontier extension, it inherits A1–A7 and preserves E1–E7 and O1–O3. Acceptance. 1. One owner-defined service outcome becomes explicit cohort, observations, dependency assumptions, responsible owner and dated obligations. 2. The commitment continues across case closure and restart. 3. The commitment continues across changing staff and service facts. 4. A stale or absent observation stays unknown.
  20. F2
    Semantic observation and help Requirement. Linen extends the destination with semantic observation and help, as defined in [FRONTIER-EXTENSION.md](FRONTIER-EXTENSION.md#f2-semantic-observation-and-immediately-useful-help). Acceptance. 1. Real selected events reveal a threatened or broken commitment; employee/operator views provide useful truthful next steps. 2. Compare atomic decisions with a direct capable-model route, including misleading benign events, missing context, wrong confident decisions and provider failure. 3. No event storm creates one model call per log line.
  21. F3
    Unfamiliar causal research Requirement. Linen extends the destination with unfamiliar causal research, as defined in [FRONTIER-EXTENSION.md](FRONTIER-EXTENSION.md#f3-unfamiliar-causal-research). Acceptance. 1. Hold out the actual cause and repair from the harness and reusable library. 2. Resolve an unfamiliar multi-system regression with rival explanations, predicted observations and discriminating probes; retain rejected explanations and all attempts. 3. Include an incorrect fast classification that does not suppress an independently warranted deep investigation.
  22. F4
    Autonomous service engineering Requirement. Linen extends the destination with autonomous service engineering, as defined in [FRONTIER-EXTENSION.md](FRONTIER-EXTENSION.md#f4-autonomous-service-engineering). Acceptance. 1. An absent diagnostic/connector or substantive service fix is authored against real owned source, independently tested, released under an actual engineering grant and adopted on the selected provider. 2. Demonstrate a canary the company's grant already covers, without a manufactured human click. 3. Demonstrate real workflow recovery and the existing failed/unknown-effect paths.
  23. F5
    Executable service models and experiments Requirement. Linen extends the destination with executable service models and experiments, as defined in [FRONTIER-EXTENSION.md](FRONTIER-EXTENSION.md#f5-executable-service-models-and-experiments). A supplied trace checks the model only; a bound check binds its assumptions to persisted probe evidence. A missing dependency or violated assumption invalidates the affected conclusion; the proof cannot certify the whole external service. Acceptance. 1. Check one useful bounded policy/protocol property, its assumptions and a counterexample or mutation that the check catches. 2. Run representative replay/experiment evidence and separately verify live effects. 3. A bound check names a root commitment and the exact revisions and observation IDs of its complete transitive dependency graph; each reference uses that commitment's existing reader scope. 4. The latest observation for every declared spec/cohort must be verified, carry admitted probe provenance and name the current active verifier connection revision. 5. Missing, superseded, failed or stale observations, inactive commitments, edited dependencies and changed or removed sources invalidate the bound conclusion on recheck, even when the model trace still passes. 6. Freshness is the half-open interval from observed time through observed time plus the commitment's freshness seconds; future observations are invalid. 7. Each check appends its original inputs, result, checked time and earliest evidence/commitment expiry. 8. Rechecking submits the same binding to the existing check door and appends a new dated result; an old stored result never claims to be current.
  24. F6
    Reusable capabilities from solved cases Requirement. Linen extends the destination with reusable capabilities from solved cases, as defined in [FRONTIER-EXTENSION.md](FRONTIER-EXTENSION.md#f6-turn-solved-cases-into-reusable-capability). Acceptance. 1. Generate a versioned detector/action/verifier package from a verified case; succeed on held-out repetitions. 2. A similar symptom with a different cause rejects reuse and starts fresh investigation. 3. Context/provider/action/model drift invalidates affected decisions and packages until revalidated; report both wrong reuse and unnecessarily rejected valid reuse.
  25. F7
    Continuous service simplification Requirement. Linen extends the destination with continuous service simplification, as defined in [FRONTIER-EXTENSION.md](FRONTIER-EXTENSION.md#f7-continuously-simplify-the-service-estate). Acceptance. 1. Compare at least one substantive redesign with continued repair using service outcomes and total work. 2. Execute a worthwhile granted change and observe subsequent exposure, recurrence, employee impact and net work/cost. 3. Include migration effort, displaced burden and adverse outcomes; proposals or fewer tickets alone do not pass.

View as agent

Everything on this page is in these files, copied unmodified from the release. An agent evaluating Linen can read them instead of the page.

seed.json
The manifest: capabilities, outside services, extension points, limits, operating cost and deployment needs.
CONTRACT.md
The requirements on this page, in source form.
AGENTS.md
Instructions for the coding agent that maintains an installation.
LICENSE
RELEASE.json
README.md
Source setup, available commands and implementation status.
OPERATIONS.md
How the project is set up, operated and deployed.
ACCEPTANCE.md
What the publisher accepts as a finished release.

Every project, with its availability, is in /agents/catalogue.json; the agents page describes the machine-readable files.