Skip to main content

Contract expiry and the responsible user

A contract tells you when it is about to run out, and who answers for it.

Specification: openspec/changes/archive/2026-11-24-contracts-expiry-and-owner/specs/contract-expiry-and-owner/spec.md.

Statuses​

A contract has one of four statuses:

StatusMeaning
ActiveThe contract runs, and its end date is more than the notice window away.
ExpiringThe contract runs, and its end date falls inside the notice window.
ExpiredThe end date has passed.
In negotiationThe contract is being (re)negotiated.

Stackiq moves contracts between Active, Expiring and Expired itself, once a day:

  • An Active contract whose end date is today or later and at most the notice window away becomes Expiring.
  • An Active or Expiring contract whose end date has passed becomes Expired. The end date itself still counts as running.
  • An Expiring contract whose end date was moved past the window, because it was extended, becomes Active again.

A contract that is In negotiation or Expired is never changed by the daily pass. To reopen an expired contract, renegotiate it. A contract without an end date is left alone.

The notice window​

The window is the admin setting contract_expiry_window_days and defaults to 90 days. An empty, zero or negative value also means 90 days.

The Contracts page​

The Contracts page has a quick filter for each status: All, Active, Expiring, Expired and In negotiation. The Responsible user column shows who answers for each contract.

The responsible user​

Each contract can name one responsible user, picked from the users of this Nextcloud in the contract form. The field stores the user's Nextcloud id and is optional.

The contract expiry warning goes to the software catalogue administrators, everyone with manage rights on the contract, and the responsible user.

Demo data​

The demo dataset (setup wizard, "demo data") holds one contract that reads Expiring and names admin as its responsible user. Its dates are relative to the day of the import, so it still ends inside the 90-day window whenever the demo data is installed: in the descriptor lib/Settings/stackiq_mock_register.json a demo date can be written as {{today}}, {{today+45d}}, {{today-2y}} or {{today+3m}}, and becomes a real date at import.