Skip to main content

LOBSTER

The Lightweight Open BMW Software Traceability Evidence Report allows you to demonstrate software traceability and requirements coverage, which is essential for meeting standards such as ISO 26262.

Configuration

This tool requires a few parameters in a configuration file. They describe how to convert a TRLC record type to a LOBSTER item.

For example, your TRLC input files may contain a Requirement type, which has a summary field, and you want to use this field as text in the LOBSTER item. Such a mapping can be defined in the configuration file.

Example:

inputs:
  - carrot.rsl
  - carrot1.trlc
  - carrot2.trlc
  - potato.rsl
  - potato.trlc

conversion-rules:
  - package: vegetables
    record-type: Requirement
    namespace: req
    description-fields:
      - summary
      - other_summary
    justification-up-fields:
      - justification1
      - justification2
    justification-down-fields:
      - justification3
    justification-global-fields:
      - justification4
    tags:
      - derived_from
    applies-to-derived-types: true
  - package: vegetables
    record-type: Security_Requirement
    namespace: req
    description-fields:
      - summary
      - extra_text
    tags:
      - field: trace
        namespace: act

to-string-rules:
  - package: vegetables
    tuple-type: External_Id
    to-string:
      - "$(item)@$(version)"
      - "$(item)"

Only record types covered by a conversion-rules entry are emitted as LOBSTER items. Set applies-to-derived-types: true to apply a rule to derived record types as well; the default is false.

The description-fields specify which fields carry the description text that can be optionally included in LOBSTER.

Version parameter (version-field)

Use version-field inside a conversion-rules entry to select which TRLC record field is written as the generated LOBSTER item version.

Some teams call this a "version flag" in prose, but the exact configuration key is version-field.

Example:

conversion-rules:
  - package: vegetables
    record-type: Requirement
    namespace: req
    version-field: p_version

Behavior:

  • Configured and field exists: If version-field is configured and the record object contains a field with that name, the tool sets the tag version to that field's value.
  • Configured but field missing: If version-field is configured but the record object does not contain a field with that name, the tool sets the tag version to None.
  • Not configured: If no version-field entry is present in the conversion rule, the tool sets the tag version to None regardless of the record object.

version-field sets the version on the generated LOBSTER item tag. Separately, expressions such as $(item)@$(version) in to-string-rules read the version component from the TRLC tuple being formatted. If that tuple component is unset, that rule is skipped and the next rule is attempted.

Example configuring both the item version and tuple formatting:

to-string-rules:
  - package: vegetables
    tuple-type: External_Id
    to-string:
      - "$(item)@$(version)"
      - "$(item)"

conversion-rules:
  - package: vegetables
    record-type: Requirement
    namespace: req
    version-field: p_version
    tags:
      - external_id

Here, p_version sets the generated Requirement item's tag version. The to-string-rules independently format each external_id tuple, preferring the item@version form and falling back to item when the tuple's version component is unset.

Generated output example:

{
  "data": [
    {
      "tag": "req test_reqs.req_with_version@1234",
      "location": {
        "kind": "file",
        "file": "reqs.trlc",
        "line": 3,
        "column": 9
      },
      "name": "test_reqs.req_with_version",
      "messages": [],
      "just_up": [],
      "just_down": [],
      "just_global": [],
      "framework": "TRLC",
      "kind": "featReq",
      "text": "Feature requirement with an explicit version",
      "status": null
    }
  ],
  "generator": "lobster-trlc",
  "schema": "lobster-req-trace",
  "version": 4
}

If p_version is unset, the generated item tag has no version suffix: req test_reqs.req_with_version.

The tags field identifies fields carrying tracing targets. Their namespace defaults to req; specify a namespace for an individual tag entry to override it, as in the example above. The generated LOBSTER item tag itself uses the req namespace.

LOBSTER trace tags support these namespaces:

  • req for "requirement"
  • act for "activity"
  • imp for "implementation"

Define tuple types in a TRLC schema (.rsl file):

package example

tuple Codebeamer_Id {
  item Integer
  separator @
  version optional Integer
}

In the YAML configuration, provide text expansions for each tuple type so lobster-trlc can build LOBSTER tags from its values:

to-string-rules:
  - package: example
    tuple-type: Codebeamer_Id
    to-string:
      - "$(item)@$(version)"
      - "$(item)"

These to-string rules are tried in order, and the tool picks the first one that fully manages to apply. If a value is null and required for the expansion (as in the first to-string rule above), the current function is skipped, and the next one is attempted. If none of the functions can be applied, an error is raised.

To provide justification text for requirements that are not linked or implemented, configure justification-up-fields, justification-down-fields, and/or justification-global-fields in a conversion-rules entry. Each key accepts either a single TRLC field name or a list of field names. See the example above.

The meaning of "up" is along the usual direction of tracing tags. For example putting this in a software requirement means it is not linked to a system requirement. The meaning of "down" is against the usual direction of tracing tags. For example putting this in a software requirement means it is either not implemented or not tested.

As you can see the down justification is much more imprecise than an up justification. You should only use them if there is no other way to attach this justification on the actual offending object.

Finally the "global" justification is a catch all: it just means no tracing policy will be validated at all when considering this object.

Executing lobster-trlc tool

lobster-trlc takes the following command line arguments:

  • --config - YAML based config file path in which the following parameters can be mentioned.
    • inputs: A list of input file paths (can include directories).
    • inputs-from-file: A file containing paths to input files or directories.
  • DIR|FILE (optional positional arguments): Additional input directories or files.
  • --out: The name of the output file where results will be stored.

Command

> lobster-trlc --config "path/to/the/config/file.yaml" --out "output/path.lobster"

Tools

lobster-trlc: Extract requirements from TRLC.

The copyright holder of LOBSTER is the Bayerische Motoren Werke Aktiengesellschaft (BMW AG), and LOBSTER is published under the GNU Affero General Public License, Version 3.

Metadata

Release files for bmw-lobster-tool-trlc 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for bmw-lobster-tool-trlc 1.1.0
File Interpreter ABI Platform Actions
bmw_lobster_tool_trlc-1.1.0-py3-none-any.whl Python 3 none any Details for bmw_lobster_tool_trlc-1.1.0-py3-none-any.whl

Release files / bmw_lobster_tool_trlc-1.1.0-py3-none-any.whl

Download URL bmw_lobster_tool_trlc-1.1.0-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44db957fb2744ca584b4ebe964f32d58f0df4fe6872c9cf99872e19f0bea2490
BLAKE2b-256 checksum
How to use checksums
ba18e2a3a13ecbd8f8090c84edcb29cbcca849aa01e1fd6ff9cece0ca81b17f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for bmw-lobster-tool-trlc 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for bmw_lobster_tool_trlc-1.1.0-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page