openloops.method#
The organising method: the seam between the loop record and the system that organises it.
A loop (openloops.loops.Loop) records one of the owner’s commitments and stays
neutral about how commitments are organised: its list field is a place whose
vocabulary belongs to a method. A method supplies that vocabulary and the five
operations that personal organising methods share (Getting Things Done, Personal
Kanban, PARA, the Bullet Journal, the Eisenhower matrix and the apps that implement
them; the comparison is in docs/research/organising-methods-seam.md):
capture: where an unclarified item lands (
inbox);clarify: which questions an item is asked, and where the answers send it (
questions,clarify);organise: the places, and the rules for moving a loop to one (
places,default_place,organise);review: what is surfaced for a decision, as exceptions (
review);engage: how the next thing to do is chosen (
criteria,engage).
The method only decides. The rules that hold whatever the method, and so live here
rather than in each method, are applied by organise(): a move is logged; only an
explicit acceptance turns an agent’s proposal into a commitment; a loop the owner has
attended to, or given a new time, is scheduled again rather than left as fired.
Every function in openloops that needs a method takes it as one keyword argument,
method=, defaulting to default_method() (Getting Things Done,
openloops.gtd.GTD), the only method implemented. A second one is a class with
the same attributes, passed in; nothing else changes.
>>> m = default_method()
>>> m.name, m.inbox, m.default_place
('gtd', 'in', 'next')
>>> isinstance(m, Method)
True
>>> sorted(describe(m))
['criteria', 'default_place', 'inbox', 'name', 'places', 'questions']
Functions
The method used wherever |
|
|
A method's vocabulary as flat JSON: what an agent reads before clarifying for it. |
|
|
|
|
|
A capture made by |
Classes
|
One question a method's clarify step asks of an item. |
|
What an organising method supplies. |
- class openloops.method.Method(*args, **kwargs)[source]#
Bases:
ProtocolWhat an organising method supplies. Pure: no clock, file or network.
name: a short id (gtd).places: the values a loop’slistmay take under this method.inbox: where an unclarified capture lands;default_place: where an item the owner asked for directly lands (both amongplaces).questions: whatclarifyasks, in order.criteria: the keyword filtersengageunderstands.clarify(answers): where the answers send the item, as data:{place, changes, do_now, close, why}.placeisNonewhen the item leaves the system (closethen names the lifecycle state, e.g.canceled).organise(loop, place, now, *, others, **fields): the field changes a move toplacemakes, as a dict, after checking them;ValueErrorwhen the method refuses the move.othersare the other loops, for a rule that counts (a work-in-progress limit). The move itself is applied byorganise().review(loops, now):{method, at, sections: [{name, group, rows}], counts}; only rows that need a decision, each{id, title, list, why}.engage(loops, now, *, limit, **criteria): the candidates to do now, best first, each a row withwhy.
- class openloops.method.Question(key, ask, kind='bool', choices=(), when=None)[source]#
Bases:
objectOne question a method’s clarify step asks of an item.
keyis the answer’s name in the mapping given toclarify;kindis one ofbool,choice(thenchoiceslists them),text,minutes,time,words(a list, or a comma/space separated string).whennames the answer this question depends on ("actionable=false"), so an agent or a form can skip what does not apply.
- openloops.method.capture(title, *, by, source=None, method=None, now=None, id=None)[source]#
A capture made by
by, on the method’s inbox; an agent’s is a proposal.It never pushes and never reaches
engageuntil the owner accepts it.source({kind, ref, quote, said_by}) is what makes it traceable; keep the owner’s words.>>> loop = capture("Call the notary", by="bosun", source={"kind": "voice", "quote": "call the notary"}, ... now=datetime(2026, 11, 28, tzinfo=timezone.utc), id="loop-c") >>> loop.list, loop.proposed_by, loop.remind_at ('in', 'bosun', None)
- Return type:
- openloops.method.check_place(method, place)[source]#
placeif the method has it, else aValueErrornaming its places.>>> check_place(default_method(), "later") Traceback (most recent call last): ... ValueError: gtd has no list 'later'; its lists are in, next, waiting, someday, reference
- Return type:
- openloops.method.default_method()[source]#
The method used wherever
method=is not given: Getting Things Done.- Return type:
- openloops.method.describe(method=None)[source]#
A method’s vocabulary as flat JSON: what an agent reads before clarifying for it.
- openloops.method.organise(loop, place, now, *, method=None, by='owner', accepted=False, others=(), **fields)[source]#
loopmoved toplace, with what the method’s rules make offields.The rules that hold whatever the method:
the loop must be open, and the place one of the method’s;
accepted=Truemeans the owner said yes to this move, in their own words. It turns a proposal into a commitment, and settles a loop that came back (input-required): it is open again (submitted), with no second push for a time already past. Anyone’s move otherwise leaves both as they were, so an agent never reschedules the owner’s commitments;a loop given a new time in the future is scheduled again, whoever moved it;
one
organisedentry is logged, byby.
>>> now = datetime(2026, 11, 28, 12, tzinfo=timezone.utc) >>> from openloops.loops import new_loop >>> loop = capture("Ask the bank", by="bosun", now=now, id="loop-b") >>> moved = organise(loop, "waiting", now, by="bosun", waiting={"on": "the bank"}) >>> moved.list, moved.proposed_by, moved.waiting["since"] ('waiting', 'bosun', '2026-11-28T12:00:00Z') >>> organise(moved, "waiting", now, accepted=True).proposed_by is None True
- Return type: