# AUTO-AUCT-006 Select Auction House Examples

These examples demonstrate the current DecisioQ flow:

1. Request `jwtToken` from `https://identity.vinquery.com/connect/token`.
2. Load `AUTO-AUCT-006` metadata from `https://dks.vinquery.com/decisioncatalog/decisions/AUTO-AUCT-006`.
3. Read `constraints` from the decision detail response. If the array is missing or empty, all validated candidates proceed to criteria-based ranking.
4. Execute a catalog-shaped request at `https://dde.vinquery.com/api/v1/execute-catalog`.
5. Inspect `constraintSummary` and `decisionResult.excludedOptions` in the response. Excluded candidates do not participate in ranking.

Set these environment variables before running:

```text
DECISIOQ_CLIENT_ID
DECISIOQ_CLIENT_SECRET
```

Optional overrides:

```text
DECISIOQ_AUDIENCE=vinquery:api:decisioq
DECISIOQ_IDENTITY_URL=https://identity.vinquery.com/connect/token
DECISIOQ_DKS_URL=https://dks.vinquery.com
DECISIOQ_DDE_URL=https://dde.vinquery.com
```

Available examples:

- `curl/run-auto-auct-006.sh`
- `csharp/Program.cs`
- `javascript/auto-auct-006.mjs`
- `typescript/auto-auct-006.ts`
- `python/auto_auct_006.py`
- `php/auto-auct-006.php`
- `go/auto-auct-006.go`
- `java/AutoAuct006Example.java`
- `csharp-complete/`
- `decisioq-auto-auct-006-complete-example.zip`

## Constraint handling

This decision currently has no catalog-defined hard constraints. All validated candidates proceed to criteria-based ranking.

Client examples should still keep this pattern:

```text
constraints = decisionDetail.constraints || []
if constraints is empty:
  submit all validated candidates for ranking
else:
  show eligible and excluded candidates from constraintSummary and decisionResult.excludedOptions
```

For this example, the expected response has `constraintSummary.definedConstraintCount = 0`, `constraintSummary.excludedOptionCount = 0`, and an empty `decisionResult.excludedOptions` array.